Event ·Official first-hand

ConTra 训练框架:用强化学习生成前缀提升上下文检索效果

Salesforce Research 提出 ConTra(Context That Travels),一个用强化学习训练轻量级前缀生成器的框架,用于改进 RAG 中的上下文检索。其奖励函数综合了冻结的 embedding 模型和 reranker 的反馈,并加入事实校验与长度控制,在索引阶段为每个 chunk 生成一个文本前缀,供向量检索和重排序共用。 配套的 RealContextBench 包含五个应用集合和三种受控条件,用于隔离干扰文本对检索的影响。实验中 ConTra-2B 在 ConTEB 和 RealContextBench 上超过 Anthropic 提示式 9B 方法和 PPLX-4B 上下文编码器,最高领先 3.15 分,索引短文档速度分别快 7.74 倍和 2.15 倍。仅在 ConTEB 上后训练的模型在 RealContextBench 重排序后仍领先各独立方法,对随机和同主题干扰的鲁棒性优于提示式 2B 基线。

Current read

做 RAG 检索的朋友可以看看这套思路:用 2B 小模型在索引时生成文本前缀,检索和重排序都能用,比 Anthropic 的提示式方案便宜不少,速度还快好几倍。代码和模型都开源了,可以直接拿来跑对比。

11 sources39° AI heatLast updated 2026/11/25 13:30:46

Evidence

11 sources
Primary sourcearXiv: Anthropic
View source
Related source 1Andrew Curran
View source
Related source 2Microsoft AI
View source
Related source 3rohanpaul_ai
View source
Related source 5Gorden Sun
View source
Related source 6Ethan Mollick
View source
Related source 8claudedevs
View source
Related source 10kimmonismus
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.