It’s late, you’re tired, and you’ve probably spent the day wrestling with an AI agent that works perfectly one minute and fails the next for no apparent reason. If you’ve ever suspected that your model is being "fickle"—changing its mind just because you rephrased a list or swapped the order of tools—you aren't crazy.
A new paper from researchers at Cornell University, titled "Reducing Order Sensitivity in Decision Models," confirms your suspicions and offers a elegant architectural fix.
TL;DR
Current AI "decision models" are surprisingly sensitive to the order in which you present options; simply swapping "Option A" and "Option B" can cause a massive drop in accuracy. This paper systematically evaluates ways to fix this "order sensitivity" and finds that a technique called tree attention can make models mathematically blind to option order without sacrificing speed or performance.
What Problem Does This Paper Address?
We are increasingly using "decision models"—specialized, fast LLM variants—to act as the "brains" of larger systems. They route documents, choose which tool an agent should call next, or classify user intent. Unlike standard chat models, these are designed to look at a question and a list of options and pick the best one in a single pass.
The problem? Most of these models process text sequentially. Because they read from left to right (or top to bottom), they develop a "positional bias." They might favor the first option they see, or the last, or get confused by the relative distance between options.
The authors found that this isn't just a minor quirk; it’s a pervasive "silent killer" of performance. Across ten different models (including OpenAI’s Decisions API), accuracy can plummet by over 60% just by picking the "wrong" order for the options.
Methods
The researchers didn't just point out the flaw; they tested eight different ways to fix it, grouped into four families:
- Post-hoc Calibration: Trying to "math away" the bias after the model gives its answer by rescaling the output probabilities.
- Training-time Augmentation: Showing the model the same questions in thousands of different orders during training so it learns to ignore the sequence.
- Test-time Ensembling: Running the model multiple times with different option orders and averaging the results. This works but is incredibly slow and expensive.
- Architectural Designs: This is where the "aha" moment happens. They compared Separate Option Encoding (encoding each option in a vacuum) against Tree Attention.
Tree Attention is the star of the show. Instead of a linear sequence, it uses a modified attention mask. Imagine the "context" (your question) is the trunk of a tree. Every candidate option is a parallel branch. Each option can "see" the trunk, but it cannot see any of the other branches. Because every option is processed in the exact same "position" relative to the question, the model is mathematically incapable of being biased by their order.
Datasets
The authors put these models through a gauntlet of seven datasets across three domains:
- Multiple-choice QA: ARC-Challenge, MMLU, and MMLU-Pro (where the number of options $K=10$).
- Intent Classification: BANKING77, CLINC150, and MASSIVE. These are particularly tough because the number of options can scale up to 151.
- Agentic Tasks: Mind2Web, which simulates multi-step web navigation.
Key Insights and Ideas
- The Scaling Trap: You might think bigger models are smarter and thus less biased. Nope. Even a 27B parameter model like Mammoth-27B loses significant accuracy when options are shuffled.
- Compounding Errors: In multi-step tasks (like a web agent clicking through pages), a tiny bit of order sensitivity at step one snowballs. By step five, even the best models often retain only half of their original success rate.
- The "Negation" Failure: The authors discovered that "Separate Encoding" (where options don't see the question until the very end) fails miserably on negated questions (e.g., "Which of these is NOT..."). This highlights why Tree Attention is superior: it allows options to attend to the context while they are being encoded.
Key Results
- Tree Attention is the clear winner. It achieves perfect order invariance (0.0 accuracy drop between best and worst case) with virtually no loss in average accuracy.
- Efficiency: Unlike ensembling (which might require 8x the compute), Tree Attention runs in a single forward pass. It maintains the high throughput that makes decision models attractive in the first place.
- Real-world impact: On the CLINC150 dataset with 151 options, the OpenAI Decisions API saw a 55.8% gap between its average and worst-case performance. Tree Attention effectively closes that gap to zero.
Limitations and Future Work
While the results are impressive, the authors note a few caveats:
- Implementation Overhead: Tree Attention requires modifying the attention mask, which might be tricky for models using non-conventional attention layers (like linear or hybrid attention).
- Hardware Specifics: Their latency benchmarks were performed on specific NVIDIA GPUs (A6000/B200); performance might vary on different hardware or with different software kernels.
- Scope: The controlled experiments focused on the Qwen model family. While they tested other open models, the deep architectural comparisons were centered on one lineage.
In short: if you're building an agentic system, stop shuffling your prompts and start looking at your attention masks. Tree attention might just be the "set it and forget it" fix for model reliability.
Summary updated