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

迈向顺序公平性:通过双组优势优化缓解大语言模型的顺序敏感性

Towards Order Fairness: Mitigating LLMs Order Sensitivity through Dual Group Advantage Optimization

School of Software and Microelectronics, Peking University(软件与微电子学院,北京大学)

Xu Chu, Guanyu Wang, Zhijie Tan, Xinrong Chen, Ziyu Li, Tong Mo, Weiping Li

AI总结:

本文提出双组优势优化(DGAO),通过平衡组内准确性优势和组间稳定性优势,缓解LLM的顺序敏感性,提升模型在RAG、数学推理和分类任务中的性能。

摘要:

大型语言模型(LLMs)存在顺序偏见,其性能受输入元素排列顺序的影响。这种不公平性限制了模型在上下文学习和检索增强生成(RAG)等场景中的应用。近期研究尝试基于统计结果或使用数据集搜索获得最优或次优排列,但这些方法增加了推理开销,而未能解决模型本身的顺序偏见。其他研究通过监督微调使用多顺序变体的增强训练集来缓解顺序敏感性,但往往以牺牲准确性为代价,使模型陷入一致但错误的幻觉。本文提出双组优势优化(DGAO),旨在同时提高模型的准确性和顺序稳定性。DGAO计算并平衡组内相对准确优势和组间相对稳定性优势,奖励策略模型生成稳定且正确的输出,同时惩罚顺序敏感或错误的响应。这标志着首次将强化学习应用于缓解LLM的顺序敏感性。我们还提出了两个新指标,一致性率和过度自信率,以揭示先前方法的伪稳定性,并指导更全面的评估。大量实验表明,DGAO在提升RAG、数学推理和分类任务性能的同时,实现了更优越的顺序公平性。我们的代码可在:https://github.com/Hyalinesky/DGAO获取。

英文摘要:

Large Language Models (LLMs) suffer from order bias, where their performance is affected by the arrangement order of input elements. This unfairness limits the model's applications in scenarios such as in-context learning and Retrieval-Augmented Generation (RAG). Recent studies attempt to obtain optimal or suboptimal arrangements based on statistical results or using dataset-based search, but these methods increase inference overhead while leaving the model's inherent order bias unresolved. Other studies mitigate order sensitivity through supervised fine-tuning using augmented training sets with multiple order variants, but often at the cost of accuracy, trapping the model in consistent yet incorrect hallucinations. In this paper, we propose \textbf{D}ual \textbf{G}roup \textbf{A}dvantage \textbf{O}ptimization (\textbf{DGAO}), which aims to improve model accuracy and order stability simultaneously. DGAO calculates and balances intra-group relative accuracy advantage and inter-group relative stability advantage, rewarding the policy model for generating order-stable and correct outputs while penalizing order-sensitive or incorrect responses. This marks the first time reinforcement learning has been used to mitigate LLMs' order sensitivity. We also propose two new metrics, Consistency Rate and Overconfidence Rate, to reveal the pseudo-stability of previous methods and guide more comprehensive evaluation. Extensive experiments demonstrate that DGAO achieves superior order fairness while improving performance on RAG, mathematical reasoning, and classification tasks. Our code is available at: https://github.com/Hyalinesky/DGAO.

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

↑