scimeatlas

Research map / Large language models / Retrieval and knowledge

Learning to Rank for In-Context Example Retrieval

Yuwen Ji, Luodan Zhang, Ambyerhan, Haoran Que, Lei Shi, Wang Chao, Yue Zhang

NeurIPS 2025Large language models › Retrieval and knowledgeapproach: Retrieval-augmented reasoningopen problems in this approach0 citations (OpenAlex)

Westlake University · Beihang University · Alibaba Group

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
9improved
1no clear effect
2hurt
1mixed
In one sentence

Proposes training an in-context example retriever with a ranking objective instead of a classification objective, to match how ICEs are retrieved at inference by score ranking.

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Problem

Retrieval-based in-context learning trains retrievers with a classification objective that labels in-context examples as most useful or the rest, but at inference examples are selected by score ranking, so the training objective mismatches test-time use.

Approach

Replace the absolute-score classification objective for the ICE retriever with a learning-to-rank objective so training directly optimizes the ordering used at inference.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train retriever with ranking objective (SeDPO) instead of classification (Se2)in-context example retriever · PAWSaccuracy: 54.7 -> 73.0Improved
train retriever with SeDPO instead of Se2in-context example retriever · Paraphrase averageavg. metric: 73.2 -> 77.9Improved
add in-batch rejection (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 73.9 -> 77.9Improved
add positive chosen data filtering (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 77.9 -> 77.9No clear effect
use diverse high-margin preference pairs instead of top-1 chosen (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 70.8 -> 77.9Improved
use score-based preference pairs instead of random preference pairs (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 57.6 -> 77.9Improved
use SeDPO loss instead of LambdaRank (UDR) loss (ablation)retriever training · Paraphrase average (GPT-Neo-2.7B)avg. metric: 72.9 -> 77.9Improved
use RoBERTa-base instead of BERT-base-uncased as retriever backbone (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 77.9 -> 85.7Improved
initialize Se2 retriever with trained SeDPO weights (ablation)Se2 · Paraphrase average (GPT-Neo-2.7B)avg. metric: 73.2 -> 79.0Improved
initialize SeDPO with Se2 weights (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metric: 77.9 -> 74.8Hurt
increase beta too far from 0.01-0.1 range (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metricHurt
increase T (number of preferred/dispreferred examples) too much (ablation)SeDPO · Paraphrase average (GPT-Neo-2.7B)avg. metricMixed

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in retrieval-augmented reasoning

How can retrieval-augmented reasoning cut its extra LLM calls, storage and dependence on retrieval and LLM-built structures?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy