Reproduce “Attention in Large Language Models Yields Efficient Zero-Shot Re-Rankers” 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
Shijie Chen, Bernal Jiménez Gutiérrez, Yu Su
Researchers at The Ohio State University developed In-Context Re-ranking (ICR), a method that leverages Large Language Model internal attention patterns for efficient zero-shot document re-ranking. ICR reduces computational latency by over 60% and achieves performance comparable to strong proprietary models like GPT-4o mini using open-weight LLMs on various information retrieval benchmarks.
Key insights
- LLMs possess rich relevance signals within their internal attention mechanisms that can be more effectively and efficiently leveraged than through autoregressive generation.
- Careful aggregation of attention weights, particularly between query and document tokens, allows LLMs to perform sophisticated relevance judgments without generating text.
- Calibrating attention scores with a content-free query is crucial for mitigating LLM intrinsic biases (e.g., positional biases, attention to non-semantic tokens) and enhancing true semantic relevance detection.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.