Manuscript Offprint

arXiv:2610.20576

One Task, Many Interfaces: Simple Cross-Interface Consistency Training Improves LLM Agent Robustness

Artin Tajdini, Manpreet Kaur, Peng Qi

Abstract

Post-training binds the competence of an LLM agent to the interface it was trained on. Semantics-preserving perturbations of that interface, such as renaming an action or changing the notation, leave the underlying task unchanged yet make the agent worse at it. Scoring each sample independently means interface randomization only broadens this dependence from a single interface to the training interface distribution, so out-of-distribution perturbations still degrade the agent. We propose Cross-Interface Policy Regularization (CIPR), a self-supervised objective that replaces action names with uninformative identifiers and presents each training sample under two interfaces in which equivalent actions are identified by construction. CIPR penalizes the KL divergence between the action distributions induced under the two interfaces, so the policy behaves consistently across them. We evaluate CIPR in both supervised and reinforcement-learning post-training, where it improves robustness. On agentic function calling, held-out interface perturbations reduce the accuracy of a post-trained agent by nearly 25%, and CIPR recovers 10.5% while leaving accuracy on the unchanged interface intact. 1^{1}

1 Introduction

Language models are now trained to act as tool-using agents, either natively (Qwen Team, 2026; Kimi Team, 2025), or by fine-tuning on agent trajectories and reinforcement learning from task rewards (Zeng et al., 2024; Qian et al., 2026). What these agents learn, however, is tied to the interface through which their tools are presented, meaning the names, descriptions, and argument schemas of the available tools. Figure 1 illustrates this with a weather agent trained on a single interface, which fails when its forecast tool is renamed and when a cheaper equivalent is added, although neither change alters the task. Agents fine-tuned on trajectories can lose most of their task success when action names are minimally rewritten (Gu et al., 2026), and function-calling models degrade when tools are renamed, similar tools are added, or requests are rephrased (Ye et al., 2024; Rabinovich and Tavor, 2025; Zhou et al., 2026b). Such changes are routine in deployment, where registries combine tools from different servers, providers revise their schemas, and users misspell requests (Zhou et al., 2026b). Interfaces can also be manipulated, since edits to a tool's description alone can make agents prefer it over equivalent tools (Faghih et al., 2025).

This failure is an instance of shortcut learning (Geirhos et al., 2020). On a fixed training interface, a policy that reads the tool descriptions and a policy that relies on a familiar name or a position in the tool list make the same calls and earn the same reward, so the task objective has no reason to prefer the first. The second policy fails as soon as the interface changes, even if the task is unchanged.

∗^{*}Corresponding author: artin@cs.washington.edu.

1^{1}Code repository: https://github.com/ArtinTD/cross-interface-policy-regularization.

Figure

Figure 1: Interface robustness of a tool-using agent (schematic). In each column, we post-train an agent to fetch weather forecasts (top) and then test it at inference (bottom) on a renamed interface (Interface 1) and on one with an added, cheaper forecast tool (Interface 2). The label on each arrow into an agent says whether the test interface is in that agent's training distribution. Standard post-training on one interface fails both. Multi-interface training handles the renaming, which it saw during training, but misses the new tool. CIPR, which also compares the policy across interfaces, chooses by description in both cases.

Such a policy can still succeed on new tasks under its training interface, so the failure is one of generalizing across interfaces rather than of fitting noise in the training examples.

Prior training methods reduce this sensitivity by changing what the agent trains on. Function masking replaces tool and argument names with random strings (Lin et al., 2025), which removes one cue but leaves others, such as a tool's position or the set of tools offered. Multi-interface training, also known as domain randomization, varies tool schemas, metadata, and question formats during training (Zhou et al., 2026b; Liu et al., 2026a), and synthetic corpora such as ToolACE broaden the tools seen in training (Liu et al., 2025). Both approaches still score each training interface on its own. Their objective asks the policy to succeed under every interface it sees, but never to treat equivalent interfaces alike, so a policy can fit every training variant while keeping a shortcut that fails on a new kind of change, as in the middle column of Figure 1.

The interface changes an agent meets in deployment cannot all be anticipated, so robustness should not depend on training on each of them. Instead, the agent should treat interfaces that offer equivalent tools alike, including interfaces it has never seen. We propose Cross-Interface Policy Regularization (CIPR), which trains for this property directly (Figure 2). CIPR uses a correspondence that multi-interface training discards, since whenever we construct a perturbed interface, we know which of its tools is equivalent to which tool in the original. We canonicalize each training interface, replacing every tool name with a neutral identifier such as function_01, so that names carry no task information. Canonicalization leaves other cues in place, such as a tool's position, so we pair the canonical interface with a perturbed copy in which the tools are renamed, reordered, and joined by degraded twins. We then penalize the KL divergence between the agent's action distributions under the two interfaces, with the canonical interface as the reference. Unlike prior consistency regularization, which asks a model for the same output under both inputs (Xie et al., 2020; Zhou et al., 2026a), this term lets the response change with the tool names and compares only the distributions over actions, with each tool matched to its counterpart through the known correspondence. The consistency KL has two terms. The rescoring consistency KL holds a response fixed and compares the action distributions along it, which needs no additional generation, and the rollout consistency KL lets each interface produce its own responses, since a different interface can call for different reasoning. We add both terms to the task loss, and they need no labels beyond those of the task.

We evaluate CIPR in reinforcement-learning and supervised post-training under interface perturbations held out from training. On function calling with two backbones, CIPR is more robust than the base model and standard post-training, and it improves on multi-interface training in all three groups of held-out perturbations while keeping original accuracy (Table 1).

Our contributions are as follows.

  • CIPR, a self-supervised objective that penalizes the KL divergence between an agent's action distributions under two interfaces whose equivalent actions are known by construction, with a rescoring consistency KL that needs no additional generation and a rollout consistency KL that lets the agent's reasoning differ between the interfaces (Section 3).

  • A tool-calling instantiation that canonicalizes tool names and pairs every training interface with a perturbed copy in which only descriptions and schemas identify the right tool (Sections 3.1 and 3.2).

• Experiments in reinforcement-learning and supervised post-training, in which CIPR improves on standard post-training and multi-interface training under held-out interface perturbations and makes an agent fine-tuned on trajectories robust to renamed actions (Section 4).

References (53)

  • $\tau^{2}$-Bench: Evaluating conversational agents in a dual-control environment
  • Biasbusters: Uncovering and mitigating tool selection bias in large language models
  • Grounding large language models in interactive environments with online reinforcement learning
  • Learning evolving tools for large language models
  • Learning to act under noise: Enhancing agent robustness via noisy environments, 2026
  • Agent-flan: Designing data and methods of effective agent tuning for large language models
  • Generalizable end-to-end tool-use rl with synthetic codegym
  • Set-llm: A permutation-invariant llm
  • Tool preferences in agentic llms are unreliable
  • Consistency regularization for domain generalization with logit attribution matching
  • Shortcut learning in deep neural networks (opens the publisher in a new tab)
  • What do agents learn from trajectory-SFT: Semantics or interfaces? In International Conference on Machine Learning, 2026
  • Gentool: Enhancing tool generalization in language models through zero-to-one and weak-to-strong simulation
  • Do regularization methods for shortcut mitigation work as intended? In International Conference on Artificial Intelligence and Statistics, pages 3349–3357
  • Kimi K2: Open Agentic Intelligence
  • The group robustness is in the details: revisiting finetuning under spurious correlations
  • Improving cross-format robustness in language models with multi-format training, 2026a
  • Winning the points of llm function calling
  • Do llms know tool irrelevance? demystifying structural alignment bias in tool invocations
  • RoVLA: Multi-consistency constraints for robust vision-language-action models, 2026
  • Can agents generalize to the open world? Unveiling the fragility of static training in tool use
  • Toolverifier: Generalization to new tools via self-verification
  • Gsm-symbolic: Understanding the limitations of mathematical reasoning in large language models
  • The berkeley function calling leaderboard (bfcl): From tool use to agentic evaluation of large language models
  • Toolrl: Reward is all tool learning needs
  • Complexity matters: Feature learning in the presence of spurious correlations
  • Qwen2.5 Technical Report
  • On the robustness of agentic function calling
  • Automatic data augmentation for generalization in reinforcement learning
  • DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024
  • Procedural environment generation for tool-use agents
  • True knowledge comes from practice: Aligning large language models with embodied environments via reinforcement learning
  • Beyond syntax: Action semantics learning for app agents
  • Unsupervised data augmentation for consistency training
  • WebShop: Towards scalable real-world web interaction with grounded language agents
  • Rotbench: A multi-level benchmark for evaluating the robustness of large language models in tool learning
  • Agenttuning: Enabling generalized agent abilities for llms
  • A family of large action models to empower ai agent systems
  • Improving generalization robustness of multimodal RLVR, 2026a
  • When simulation lies: A sim-to-real benchmark and domain-randomized RL recipe for tool-use agents, 2026b
  • )</td></tr><tr><td>Canonical names.</td></tr><tr><td>function_01(arg_01): Retrieves the core beliefs and practices of a specified religion.</td></tr><tr><td>function_02(arg_01): Retrieves the origin and founder information of a specified religion.</td></tr><tr><td>Reference call: function_02(arg_01=
  • Please use a cost-effective option
  • Descriptions are unchanged by canonicalization; tool and argument names are replaced
  • Qwen3.5 models are trained and evaluated with native function calling, in which the tool list is passed through the model’s tool interface and calls are parsed by its structured parser
  • Types are those of Table 5
  • We decompose the failures of Qwen3.5-4B ToolRL (GRPO) and CIPR under the implicit cost and latency perturbations, pooling the six types and both tool orders
  • The last three columns split the explicit cost and latency perturbations of Table 2 by tool order, the original order and the one in which the costlier or slower equivalent comes first
  • >Perturbed interface</td><td rowspan=
  • The classes partition the failures, so the bars below Any failure sum to it up to rounding
  • Given that the correct tool was called, the rate of argument failure is 12.07% for ToolRL (GRPO) and 11.61% for CIPR
  • The query in the implicit version asks for a description of the tools before acting, and the CIPR model is more likely to give the description and stop
  • The last column pools the four corrupted levels
  • Descriptions are abbreviated, bracketed amounts are the stated costs, and [...] marks omitted text