Reproduce “Layer-wise Token Compression for Efficient Document 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
Shengyao Zhuang, Zhichao Xu, Ivano Lauriola
Layer-wise Token Compression (LTC) improves the inference efficiency of Transformer-based cross-encoder and large language model rerankers by applying adaptive token pooling at intermediate Transformer layers. This approach, which allows early layers to process full sequences, delivers up to a 116% increase in queries per second while preserving or enhancing ranking effectiveness and generalizing well across document lengths and domains.
Key insights
- Cross-encoder rerankers fundamentally depend on fine-grained query-document interactions established in their early Transformer layers, making early-stage token compression unsuitable.
- Compressing tokens at an intermediate layer balances the preservation of critical early interactions with significant computational savings in deeper layers.
- Compression-aware training is essential for models to effectively adapt to reduced sequence lengths, as inference-only compression leads to severe performance degradation.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.