SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.11974 · 2026

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

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

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 9 failures of our instrument; 5 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.11974.json · badge: /api/ran/2605.11974.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
Hyalinesky/DGAO canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
FunctionStatusWhere it lives
apply_chat_template Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/data_utils.py
code served (permissive licence) · get_code("c70072e46530e6e1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from typing import Optional, Union, Callable

# Create a minimal tokenizer stand-in that implements apply_chat_template
class MockTokenizer:
    def apply_chat_template(
        self,
        messages: list[dict[str, str]],
        tools: Optional[list[Union[dict, Callable]]] = None,
        tokenize: bool = True,
        continue_final_message: bool = False,
        add_generation_prompt: bool = False,
    ) -> str:
        # Return a simple formatted string representation
        result = ""
        for msg in messages:
            role = msg.get("role", "user")
            content = msg.get("content", "")
            result += f"<{role}>{content}</{role}>"
        return result

# Create test data structures
example_messages = {
    "messages": [
        {"role": "user", "content": "Hello"},
        {"role": "assistant", "content": "Hi there"},
    ]
}

example_prompt_completion = {
    "prompt": [
        {"role": "user", "content": "What is 2+2?"}
    ],
    "completion": [
        {"role": "assistant", "content": "4"}
    ]
}

example_prompt_chosen_rejected = {
    "prompt": [
        {"role": "user", "content": "Say hello"}
    ],
    "chosen": [
        {"role": "assistant", "content": "Hello!"}
    ],
    "rejected": [
        {"role": "assistant", "content": "Hi"}
    ]
}

example_with_label = {
    "prompt": [
        {"role": "user", "content": "Test"}
    ],
    "completion": [
        {"role": "assistant", "content": "Response"}
    ],
    "label": "positive"
}

tokenizer = MockTokenizer()

# Use the simplest valid example
ARGS = {
    "example": example_messages,
    "tokenizer": tokenizer,
    "tools": None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
convert_state_dict Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/models/sd_utils.py
code served (permissive licence) · get_code("8f1ce89b816a0734")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct state_dict with some sample tensors
state_dict = {
    'model.processor.layer1': torch.randn(2, 4),
    'model.processor.layer2': torch.randn(3, 5),
    'encoder.weight': torch.randn(4, 4),
    'decoder.bias': torch.randn(2),
}

# Construct mapping for pattern replacement
mapping = {
    'model.': 'transformed_model.',
    'encoder': 'new_encoder',
}

ARGS = {
    'state_dict': state_dict,
    'mapping': mapping,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flatten_dict Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/core.py
code served (permissive licence) · get_code("dfd0ecd9cb25af69")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from collections.abc import Mapping

torch.manual_seed(0)

# Create a nested dictionary with various data types
nested_dict = {
    'model': {
        'layers': {
            'layer1': 0.5,
            'layer2': 0.3
        },
        'name': 'test_model'
    },
    'training': {
        'epochs': 100,
        'batch_size': 32
    },
    'data': 42
}

# The function takes:
# 1. nested: dict - a nested dictionary to flatten
# 2. sep: str - separator to use when concatenating keys (default '/')

ARGS = {
    'nested': nested_dict,
    'sep': '/'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_conversational Ran
ran, violated the contract we drafted
Hyalinesky/DGAO/trl/data_utils.py
code served (permissive licence) · get_code("5439c57a72337fa8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# Define ARGS with a conversational format example
ARGS = {
    "example": {
        "prompt": [
            {
                "role": "user",
                "content": "What color is the sky?"
            }
        ]
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_mean Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/core.py
code served (permissive licence) · get_code("4f7075aac2163cbc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Create small tensors for testing masked_mean
# values: tensor of shape (2, 4) with float values
values = torch.randn(2, 4)

# mask: binary tensor of same shape as values, with 0s and 1s
mask = torch.randint(0, 2, (2, 4)).float()

# axis: can be None or an integer axis
axis = None

ARGS = {
    "values": values,
    "mask": mask,
    "axis": axis,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
masked_var Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Hyalinesky/DGAO/trl/core.py
code served (permissive licence) · get_code("67607956afbb2a83")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small test tensors
# values: the tensor to compute variance over
# mask: binary mask to select which values to include
values = torch.randn(2, 4)  # shape (2, 4)
mask = torch.ones(2, 4)     # shape (2, 4), all ones means all values are included

ARGS = {
    "values": values,
    "mask": mask,
    "unbiased": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
maybe_apply_chat_template Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/data_utils.py
code served (permissive licence) · get_code("2d343f4f4297efa7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import PreTrainedTokenizerBase

class MockTokenizer(PreTrainedTokenizerBase):
    """Minimal tokenizer implementation for testing."""
    
    def __init__(self):
        super().__init__()
        self.model_max_length = 512
        self.padding_side = "right"
    
    def apply_chat_template(self, messages, tools=None, tokenize=False, continue_final_message=False, add_generation_prompt=False):
        """Mock implementation that returns formatted text."""
        result = ""
        for msg in messages:
            role = msg.get("role", "unknown")
            content = msg.get("content", "")
            result += f"<{role}>{content}</{role}>"
        return result
    
    def encode(self, text, **kwargs):
        return [1, 2, 3]
    
    def decode(self, tokens, **kwargs):
        return "decoded text"

def create_example_conversational():
    """Create a valid conversational example."""
    return {
        "messages": [
            {"role": "user", "content": "Hello, how are you?"},
            {"role": "assistant", "content": "I'm doing well, thank you!"}
        ]
    }

def create_example_with_prompt():
    """Create an example with prompt and completion."""
    return {
        "prompt": [
            {"role": "user", "content": "What is 2+2?"}
        ],
        "completion": [
            {"role": "assistant", "content": "4"}
        ]
    }

def create_example_with_chosen_rejected():
    """Create an example with prompt, chosen, and rejected."""
    return {
        "prompt": [
            {"role": "user", "content": "Which is better?"}
        ],
        "chosen": [
            {"role": "assistant", "content": "Option A is better"}
        ],
        "rejected": [
            {"role": "assistant", "content": "Option B is better"}
        ]
    }

tokenizer = MockTokenizer()
example = create_example_conversational()
tools = None

ARGS = {
    "example": example,
    "tokenizer": tokenizer,
    "tools": tools
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nanstd Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/trainer/dgao_trainer.py
code served (permissive licence) · get_code("a6cece2ffebe0f9c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a 1D tensor with some NaN values
tensor = torch.tensor([1.0, 2.0, float('nan'), 4.0, 5.0, float('nan'), 7.0])

ARGS = {
    "tensor": tensor
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
shuffle_tensor_dict Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/trainer/dgao_trainer.py
code served (permissive licence) · get_code("4267969b53182b8f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors with distinct shapes for different dimensions
x = torch.arange(8).reshape(2, 4)  # batch_size=2, feature_dim=4
y = torch.arange(6).reshape(2, 3)  # batch_size=2, different feature_dim=3
z = None  # Test None values in the dict

tensor_dict = {
    "x": x,
    "y": y,
    "z": z
}

ARGS = {
    "tensor_dict": tensor_dict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
split_tensor_dict Ran
ran; our contract draft was wrong, not the code
Hyalinesky/DGAO/trl/trainer/dgao_trainer.py
code served (permissive licence) · get_code("ba58cd6dfd66f89c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create test tensors with distinct dimensions
x = torch.arange(12).reshape(6, 2)  # 6 rows, 2 cols
y = torch.arange(6).reshape(6, 1)   # 6 rows, 1 col
z = None  # Test optional None values

tensor_dict = {
    "x": x,
    "y": y,
    "z": z
}

num_chunks = 3

ARGS = {
    "tensor_dict": tensor_dict,
    "num_chunks": num_chunks
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
aesthetic_scorer Not yet run
unverified (harvested, no recorded run)
Hyalinesky/DGAO/trl/models/auxiliary_modules.py
code served (permissive licence) · get_code("7bdaf561b7b05114")
How it ran

no invocation recorded.

convert_state_dict_to_diffusers Not yet run
unverified (harvested, no recorded run)
Hyalinesky/DGAO/trl/models/sd_utils.py
code served (permissive licence) · get_code("fa59c920caf016e6")
How it ran

no invocation recorded.

get_act_offloading_ctx_manager Not yet run
unverified (harvested, no recorded run)
Hyalinesky/DGAO/trl/models/activation_offloading.py
code served (permissive licence) · get_code("f230a287da3ef006")
How it ran

no invocation recorded.

is_liger_kernel_available Not yet run
unverified (harvested, no recorded run)
Hyalinesky/DGAO/trl/import_utils.py
code served (permissive licence) · get_code("48cdac62e24819f1")
How it ran

no invocation recorded.

scheduler_step Not yet run
unverified (harvested, no recorded run)
Hyalinesky/DGAO/trl/models/modeling_sd_base.py
code served (permissive licence) · get_code("2ad63a9a0bae9859")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 13 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
nanstd 7 other papers
7 dated earlier
2402.16302 (2024-02)
Graph Diffusion Policy Optimization
2505.17534 (2025-05)
Co-Reinforcement Learning for Unified Multimodal Understanding and Generation
2506.14755 (2025-06)
Optimizing Length Compression in Large Reasoning Models
and 4 more not named here
split_tensor_dict 7 other papers
7 dated earlier
2402.16302 (2024-02)
Graph Diffusion Policy Optimization
2505.17534 (2025-05)
Co-Reinforcement Learning for Unified Multimodal Understanding and Generation
2506.14755 (2025-06)
Optimizing Length Compression in Large Reasoning Models
and 4 more not named here
flatten_dict 6 other papers
6 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
masked_mean 6 other papers
6 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
masked_var 6 other papers
6 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15404 (2025-05)
How Should We Enhance the Safety of Large Reasoning Models: An Empirical Study
and 3 more not named here
is_conversational 4 other papers
4 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2505.09655 (2025-05)
DRA-GRPO: Your GRPO Needs to Know Diverse Reasoning Paths for Mathematical Reasoning
2505.15656 (2025-05)
Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!
and 1 more not named here
scheduler_step 4 other papers
4 dated earlier
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2410.06101 (2024-10)
Coevolving with the Other You: Fine-Tuning LLM with Sequential Cooperative Multi-Agent Reinforcement Learning
2501.06911 (2025-01)
Risk-Averse Fine-tuning of Large Language Models
and 1 more not named here
shuffle_tensor_dict 3 other papers
3 dated earlier
2402.16302 (2024-02)
Graph Diffusion Policy Optimization
2505.17534 (2025-05)
Co-Reinforcement Learning for Unified Multimodal Understanding and Generation
2602.03876 (2026-02)
GOPO: Policy Optimization using Ranked Rewards
aesthetic_scorer 2 other papers
2 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2509.13760 (2025-09)
Iterative Prompt Refinement for Safer Text-to-Image Generation
convert_state_dict 2 other papers
2 dated earlier
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2509.12521 (2025-09)
Phi: Preference Hijacking in Multi-modal Large Language Models at Inference Time
convert_state_dict_to_diffusers 2 other papers
2 dated earlier
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2509.12521 (2025-09)
Phi: Preference Hijacking in Multi-modal Large Language Models at Inference Time
is_liger_kernel_available 2 other papers
2 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models
2509.13760 (2025-09)
Iterative Prompt Refinement for Safer Text-to-Image Generation
maybe_apply_chat_template 1 other paper
1 dated earlier
2504.20157 (2025-04)
Toward Evaluative Thinking: Meta Policy Optimization with Evolving Reward Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 Dual Group Advantage Optimization (DGAO), which aims to improve model accuracy and order stability simultaneously. DGAO calculates and balances intragroup relative accuracy advantage and intergroup relative stability advantage, rewarding the policy model for generating order-stable and correct outputs while penalizing ordersensitive 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 pseudostability 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.11974")
get_code_for_paper("2605.11974")
have("2605.11974")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.11974.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.11974.svg)](https://syntology.ai/paper/2605.11974)

Connect an agent — have() is free.