AI AI Toolkit
China AI paper

ALIGN: Automatically Aligning the Interface Between Agent and Environment

📰 X:面壁智能 OpenBMB (@OpenBMB) 📅 2026-07-31

Key Highlights

Modelbest and the Tsinghua NLP team have jointly proposed ALIGN, and the idea behind it runs against the grain of how most teams approach agents: do not touch the agent, do not touch the model, change the environment interface instead. The system automatically generates an interface layer that makes agent behavior line up with human expectations, rewriting the environment's raw and terse feedback into signals a language model can actually act on. Rewording feedback alone lifted Qwen2.5-7B's success rate on ALFWorld from 13.4% to 31.3%, more than doubling it. Across four benchmarks the method delivered gains of up to 45.67 percentage points in success rate while cutting consecutive invalid actions by 65%.

What the Method Actually Does

Teams building LLM agents today spend their effort in two directions. One is making the policy smarter: stronger planners, longer chains of thought, more elaborate multi-agent choreography. The other is making the environment harder: more realistic sandboxes, longer task horizons, messier tool APIs. ALIGN points at the layer sitting between the two that almost nobody optimizes, which is the interface through which the agent and the environment talk to each other.

Feedback from real environments is usually written either for human eyes or for other programs. A return value along the lines of "Nothing happens." is something a human player fills in with common sense, but to a model it is close to pure noise. The model cannot tell whether the action syntax was wrong, whether a precondition went unmet, or whether the object it referenced is not even present in the scene. Denied that information, it can only try again, usually with a nearly identical action. ALIGN constructs a middle layer that rewrites such ambiguous feedback into explicit, actionable descriptions, naming the missing precondition or suggesting what the agent should inspect next.

Technical Details

Interface generation in ALIGN is automated end to end. The system samples trajectories in the target environment, identifies high-frequency failure modes and clusters of invalid actions, has a model propose candidate rewriting rules for the interface, then replays trajectories to verify which rules genuinely improve the success rate, iterating until the rule set converges. No hand-written interface specification or human annotation of failure taxonomies is required, and authoring such a specification by hand is exactly the labor that makes this class of fix impractical at scale.

Among the reported numbers, the 65% reduction in consecutive invalid actions is arguably more informative than the headline success rate. When an agent gets stuck, the failure almost always looks the same from the outside: it repeats an infeasible action over and over, burning tokens and polluting its own context with uninformative observations. Once the interface states plainly why an action failed, the model escapes these local loops far faster, which both raises the ceiling on task completion and lowers the cost per episode.

The work also validates transferability. The same generated interface continues to help when swapped onto different agent frameworks and different base models. That result implies the interface is capturing structural deficiencies on the environment side rather than patching over the idiosyncratic weaknesses of one particular model, and that is exactly what makes it worth generating once and reusing many times.

How It Compares

The mainstream route to better agents is supervised fine-tuning or reinforcement learning on the agent itself. Both are expensive, both require rollouts at scale, and both tend to overfit to the specific environment they were tuned on. ALIGN leaves model weights untouched, so its training cost is effectively zero and its output is a portable artifact rather than a checkpoint tied to one deployment.

Compared with inference-side methods such as ReAct and Reflexion, which bolt reasoning and self-critique loops onto the policy, ALIGN attacks the problem earlier in the pipeline. Reflection is remediation after the fact, and every reflection step costs a full model call; a good interface is prevention before the fact, and it costs nothing at inference time. The two are complementary rather than competing, and stacking them is the obvious next experiment.

Set against work like WebArena and OSWorld that keeps pushing environment difficulty upward, ALIGN offers a useful corrective. Whether an environment is hard is one question. Whether an environment communicates intelligibly is an entirely separate one, and conflating the two has led the field to attribute interface failures to reasoning failures.

Industry Impact and Applicable Scenarios

For teams building vertical agents, this is an unusually high return-on-effort path. Error messages from internal enterprise APIs are notoriously terse, often a bare status code or a raw stack trace, and feeding them straight to a model guarantees a high failure rate. Building a feedback-rewriting layer along the lines ALIGN describes costs a fraction of what fine-tuning would, and it can be developed and validated without any GPU budget at all.

For general-purpose agent platforms, the interface layer becomes a reusable asset that accumulates value across customers. The gains on small models are the most commercially interesting part of the result. Doubling the success rate of a 7B model means a meaningful set of workloads that previously demanded a frontier model can now run locally or on cheaper inference, which directly changes the unit economics of deploying agents at scale.