Reproduce “SPD: Single Pass Decoding for Generative Reranking” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Emil Laftchiev, Prachi Agrawal, Moe Kayali, Bixing Yan, Qi Xu, Zijie Lei, Chen Qiu, Zhi Hua and 2 more

Meta Platforms, Inc. researchers developed SPD (Single Pass Decoding), a novel decoding strategy for generative ranking that reframes ordinal decoding as an optimal assignment problem. This method achieved significant inference latency reductions, up to 64.5x faster than autoregressive Large Language Models, while maintaining ranking quality by using a lightweight scoring head and the Hungarian algorithm on a LoRA-adapted backbone, enabling real-time deployment for recommendation and search applications.

Key insights

  • Generative ranking outputs, which are permutations of a fixed set of items, can be more efficiently decoded by leveraging combinatorial optimization (optimal assignment) instead of general-purpose autoregressive token generation.
  • The comparative information necessary for ranking is already encoded within the LLM's prefill hidden states, which can be directly extracted and processed by a specialized scoring head and assignment algorithm, bypassing sequential decoding.
  • The computational overhead of the Hungarian algorithm for typical slate sizes is negligible (less than 0.03% of total latency), effectively shifting the inference bottleneck entirely to the initial parallel prefill phase of the LLM.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.