# Reversing input order made a trained agent fail most web tasks

**TL;DR:** A small AI agent trained on simple web tasks fell from 85.0% to 19.2% success when the authors reversed its input order. The best moves stayed the same, so the authors warn that testing new agent setups on an already trained model can mislead.

## Words to know

- **AI agent**: An AI model that takes actions, such as clicking or running commands, to finish a task.
- **harness**: The prompts, tools and control software that show a task to an AI and carry out its moves.
- **ceiling**: The best overall reward any agent could reach inside a given harness.
- **mismatch**: The reward a model loses because its choices differ from the best possible ones.

## The problem
An AI agent is a chatbot-style model that acts, by clicking web pages or running computer commands. It works through a harness: the prompts, tools and control software that show it a task and carry out its moves. Teams revise harnesses often. They often judge a new one by running an already trained model inside it. That single test mixes two things: what the harness offers and how well this model uses it.

## The idea
The authors prove that a perfectly trained model favors each move as strongly as its harness rewards it. Picture a cook trained in one kitchen, the harness here. Reverse the shelves, and the best recipe stays the same, but old habits often grab the wrong jars. An agent's overall reward is task success minus a small penalty. That reward equals the ceiling, the best any agent could reach, minus its mismatch, the reward lost to poorer choices. They further trained a small model on web tasks with known best moves. The authors say the model's habits fit one harness's layout, so a new layout shifts its choices.

## What they showed
- **Same best moves, far worse agent.** Reversing the order of facts in the trained model's input cut its success from 85.0% to 19.2%. The best move at each step stayed exactly the same.
- **Rejected harnesses can win later.** Some new harnesses lowered the trained model's score at first. Each of these that raised the ceiling, seven in all, beat the original agent on overall reward after further training inside the new harness.
- **Coding agents ranked.** For five coding harnesses around one fixed model, a stronger model stood in for the best agent. Ceiling minus mismatch then matched the harnesses' order by success on coding tasks, but neither part alone did.

## Why it matters
People who design agent harnesses, or build tools that search for better ones, should care. If the result holds, they should report the ceiling next to the trained model's score and test several trained versions, as the authors advise. The code is public. For everyone else, an agent's score reflects its setup and its model. A fair comparison of setups must separate the two.

## The catch
The evidence is thin in places. The headline drop came from the worst of five layout changes, so not every reordering breaks an agent. The web tests used one small model on a few kinds of simple tasks. The coding ranking rests on three sample tasks and a stand-in model that is not truly the best agent. Its top two harnesses nearly tie, so that order is fragile.

## Who wrote it
Jian Mu, Ruibo Shen and Yao Shu wrote the paper, with Yao Shu as corresponding author. All three list The Hong Kong University of Science and Technology (Guangzhou). Jian Mu co-authored "GUI-Actor: Coordinate-Free Visual Grounding for GUI Agents" in 2025.

## Links
- [Paper page](https://arxiv.org/abs/2610.37255v1)
- [PDF](https://arxiv.org/pdf/2610.37255v1)
- [Code](https://github.com/2020-qqtcg/HRP)

---

Checked Paper · 2026-11-01 · No. 041 · https://one-paper-a-day.pages.dev/2026-11-01-reversing-input-order-made-a-trained/

How it was checked: Before the post went out, an AI fact-check, separate from the writing step, read the paper and checked the post claim by claim. A very long paper is cut to fit a length limit, the appendix first. Code then confirmed that every quote the check gave appears in the paper, or in the details the check was given about it: its arXiv listing, any code or model links, and the authors' earlier papers from Semantic Scholar. Of 38 claims checked, 35 are supported and 3 are right in substance but loose on a detail. The evidence, claim by claim: https://one-paper-a-day.pages.dev/evidence/2026-11-01.json
