GAINER: Gain-Aware Allocation of Transformer Depth for Efficient Cross-Encoder Re-Ranking
Preprint. Submitted to the International Journal of Advanced Computer Science and Applications (IJACSA); not peer reviewed. Code and registered runs: https://github.com/ibrahimjamadi98/GAINER Cross-encoder re-rankers are among the most effective components of retrieval and retrieval-augmented generation pipelines, but they pass every candidate through every Transformer layer. This study investigates where, under a fixed compute budget, the next block of layers improves the final ranking most, and proposes Gain-Aware Allocation for Neural Re-ranking (GAINER). At each intermediate checkpoint, GAINER orders the active candidates by the expected gain in nDCG@10 from advancing them, using small rankers trained on counterfactual gains in the states the cascade actually visits, and an exact-budget schedule decides how many advance. A leak test guarantees that every decision uses only computation already paid for. In a leave-one-dataset-out evaluation on seven BEIR datasets with two backbones and five seeds, with hypotheses pre-registered before the final runs, GAINER retains 96.5% of full-depth nDCG@10 at half of the candidate-layer compute of Ettin-68M, a measured 1.69x GPU speedup. At this budget it improves on a score-based cascade by +0.0178 nDCG@10 (95% CI [0.0125, 0.0233]) and on SEE, a recent similarity-based early-exit method, by +0.0154; at a quarter of the compute, its advantage over the cascade grows to +0.063 (18% relative). Two further pre-registered hypotheses, sharing one budget across queries and replacing the learned ranker with an explicit, label-free value-of-computation rule, are not supported: intermediate-layer uncertainty barely identifies which candidates are mis-scored, so the value of further computation has to be learned.
- Link
- https://zenodo.org/records/23340638
- Found by
- Zenodo
- Authors
- Mohd Jamadi, Ibrahim, Anuar, Syahid
- Categories
- evaluation, dataset
- Published
- 2026-10-13
- Last seen by the radar
- 2026-10-13
- Downloads
- 0
- Views
- 0
- Radar score
- 43.42 / 100 (how it is scored)
- Why it scored so
- Matched: dataset, evaluat; Recency discount: updated event ×0.5; Primary record: Zenodo
- Related links
- https://doi.org/10.5281/zenodo.23340638