arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.01482cs.CL
收藏

超越主题相似性:RAG 中具有可解释注意力对齐的对比证据检索

Beyond Topical Similarity: Contrastive Evidence Retrieval with Interpretable Attention Alignment in RAG

University of Chile(智利大学);São Paulo State University(圣保罗州立大学);Saarland University(萨尔兰州立大学);University of Munich(慕尼黑大学);Portland State University(波特兰州立大学);Idiap Research Institute(Idiap研究机构)

Francielle Vargas, João Robiatti, Diego Alves, Lucas Pascotti Valem, Maximilian Seeth, Sebastián Ferrada, Ameeta Agrawal, Daniel Pedronette, André Freitas

AI总结:

提出 CERA 框架,通过基于主观性的困难负样本选择和辅助注意力对齐损失注入证据归纳偏差,实现可解释且事实准确的检索。

摘要:

确保 RAG 中的事实性和可解释性仍然是一个开放且紧迫的问题。我们引入了对比证据理性注意力(CERA),这是第一个采用基于主观性的困难负样本选择并通过辅助注意力对齐损失将证据归纳偏差注入对比学习的检索框架。CERA 使用两个训练目标微调密集检索器:基于三元组的对比学习和可解释注意力对齐,后者通过使用基于词性标注的掩码分布监督 CLS 到 token 的注意力,该分布覆盖人工标注的事实理性作为证据信号。在大型临床试验报告语料库上的实验表明,与 Contriever 和困难负样本选择基线相比,基于主观性的困难负样本选择显著提高了检索效果。此外,理性对齐在保持竞争性检索性能的同时提高了忠实度,支持了注意力在人类理性指导下可以作为模型行为更忠实解释的假设。超越主题相似性,CERA 使检索器能够识别构成支持证据的特定 token,促进了 RAG 系统中更可解释的证据选择。

英文摘要:

Ensuring factuality and interpretability in RAG remains an open and urgent problem. We introduce Contrastive Evidence Rationale Attention (CERA), the first retrieval framework to employ subjectivity-based hard negative selection and inject an evidential inductive bias into contrastive learning through an auxiliary attention alignment loss. CERA fine-tunes a dense retriever using two training objectives: triplet-based contrastive learning and interpretable attention alignment, which supervises CLS-to-token attention using a part-of-speech-weighted masking distribution over human-annotated factual rationales as evidence signals. Experiments on a large corpus of clinical trial reports demonstrate that the subjectivity-based hard negative selection substantially improves retrieval effectiveness compared to both Contriever and hard negative selection baselines. Furthermore, rationale alignment improves faithfulness while maintaining competitive retrieval performance, supporting the hypothesis that attention can serve as a more faithful explanation of model behavior when guided by human rationales. Moving beyond topical similarity, CERA enables the retriever to identify the specific tokens that constitute supporting evidence, promoting more interpretable evidence selection in RAG systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑