hLLM: Single Pass Decoding for Generative Reranking

Emil Laftchiev, Prachi Agrawal, Moe Kayali, Bixing Yan, Qi Xu +5 more
9/1/2026
cs.LGcs.AIcs.IR

No official code found. Best implementation: teddytennant/jax-hllm (0 stars, MIT, last commit 2026-09-03).

Abstract

Large language models (LLMs) achieve state-of-the-art generative ranking quality, but the ranking they produce must be decoded, and autoregressive decoding spends one sequential forward pass per emitted token. We observe that the only tokens a ranker must emit are the $N$ ordinal values naming the items in ranked order, and that this narrow, permutation-structured output format admits decoding strategies which are much more efficient than left-to-right generation. We introduce hLLM (Hungarian LLM), a format-specialized decoding strategy that decodes all $N$ ordinals in $O(1)$ forward passes. hLLM reads an $N \times K$ item-position score matrix off the LLM's prefill hidden states with a lightweight self-attention head, then decodes the ordinals as the optimal bipartite assignment of that matrix via the Hungarian algorithm, yielding a valid permutation by construction rather than by repair. Through a systematic study of training signals and backbone adaptation, we show that LoRA-based fine-tuning combined with teacher ranking distillation reaches 28 ms end-to-end inference, a speed-up of $64\times$ while maintaining ranking quality on par with the teacher. We provide a complete ablation decomposing the contributions of architecture, training signal, and backbone adaptation. Our framework connects generative ranking to combinatorial optimization, opening a path toward other $O(1)$-decode mechanisms for real-time ranking.

View on arXivView PDF

Code Implementations(1)

MIT

JAX implementation of hLLM: Single Pass Decoding for Generative Reranking (arXiv:2609.01807)

00PythonSep 3, 20261 months agoMIT

Similar Papers

Cite this paper

@article{laftchiev2026hllm,
  title  = {hLLM: Single Pass Decoding for Generative Reranking},
  author = {Emil Laftchiev and Prachi Agrawal and Moe Kayali and Bixing Yan and Qi Xu and Zijie Lei and Chen Qiu and Zhi Hua and Ke Li and Luke Simon},
  year   = {2026},
  eprint = {2609.01807},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.01807v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.01807.svg)](https://codeofpaper.com/paper/2609.01807)

Discussion