Papers › Towards Order Fairness: Mitigating LLMs Order Sensitivity through Dual Group Advantage...

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

12 May 2026arXiv:2605.11974added by Syntology

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

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.11974")

Code

Syntology Ran 10 of 15 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 9 ran with no contract checked.

By repository: found in paper text by Syntology: 15 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Hyalinesky/DGAO found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 10 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
9ran
5unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Hyalinesky/DGAO. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_chat_template Hyalinesky/DGAO/trl/data_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · c70072e46530e6e1 · report
convert_state_dict Hyalinesky/DGAO/trl/models/sd_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 8f1ce89b816a0734 · report
flatten_dict Hyalinesky/DGAO/trl/core.py found in paper text by Syntology ran Apache-2.0 (permissive) · dfd0ecd9cb25af69 · report
is_conversational Hyalinesky/DGAO/trl/data_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5439c57a72337fa8 · report
masked_mean Hyalinesky/DGAO/trl/core.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 4f7075aac2163cbc · report
masked_var Hyalinesky/DGAO/trl/core.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 67607956afbb2a83 · report
maybe_apply_chat_template Hyalinesky/DGAO/trl/data_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 2d343f4f4297efa7 · report
nanstd Hyalinesky/DGAO/trl/trainer/dgao_trainer.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · a6cece2ffebe0f9c · report
shuffle_tensor_dict Hyalinesky/DGAO/trl/trainer/dgao_trainer.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4267969b53182b8f · report
split_tensor_dict Hyalinesky/DGAO/trl/trainer/dgao_trainer.py found in paper text by Syntology ran Apache-2.0 (permissive) · ba58cd6dfd66f89c · report
aesthetic_scorer Hyalinesky/DGAO/trl/models/auxiliary_modules.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7bdaf561b7b05114 · report
convert_state_dict_to_diffusers Hyalinesky/DGAO/trl/models/sd_utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · fa59c920caf016e6 · report
get_act_offloading_ctx_manager Hyalinesky/DGAO/trl/models/activation_offloading.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f230a287da3ef006 · report
is_liger_kernel_available Hyalinesky/DGAO/trl/import_utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 48cdac62e24819f1 · report
scheduler_step Hyalinesky/DGAO/trl/models/modeling_sd_base.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2ad63a9a0bae9859 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.11974, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections