Source-linked AI summary

ASA: Backbone-Training-Free Representation Engineering for Tool-Calling Agents

Youjin Wang, Run Zhou, Yingjie Ma, Rong Fu, Jiani Liang, Shuaishuai Cao, Min Huang, Tao Fang, Liangming Pan

arXiv:2602.04935v3cs.SEcs.AI

TL;DR

Domain-specific tool calling is brittle because readable tool-use intent does not reliably become parser-valid execution. ASA addresses this gap with a backbone-training-free, inference-time controller that combines shared boundary and domain-local steering with signed gating, improving executable tool calling while leaving schema-realization errors unresolved.

  • Problem

    Domain-specific tool calling remains brittle under evolving interfaces, and readable hidden-state tool-use evidence does not guarantee parser-valid execution.

    Source: §1 · p. 1
  • Method

    ASA is a backbone-training-free inference-time controller using shared boundary steering, domain-local residual steering, and a probe-guided signed gate.

    Source: §1 · p. 2
  • Results

    ASA improves executable tool-use behavior on NESTFUL and BFCL by reducing missing-tool failures and improving first-call and sequence accuracy.

    Source: §1 · p. 2, §8 · p. 9
  • Takeaways & Limitations

    Intent signals benefit from control, but fine-grained schema realization, nested binding, and argument precision remain challenging.

    Source: §1 · p. 2, §8 · p. 9

    The experiments do not fully isolate each controller component, and ASA does not fully solve post-boundary schema realization.

    Source: §5.1 · p. 4, Limitations · p. 9

Abstract

from arXiv · show

Adapting LLM agents to domain-specific tool calling remains notably brittle under evolving interfaces. Prompt and schema engineering is easy to deploy but often fragile under distribution shift and strict parsers, while continual parameter-efficient fine-tuning improves reliability at the cost of training, maintenance, and potential forgetting. We identify a critical Lazy Agent failure mode where tool necessity is nearly perfectly decodable from mid-layer activations, yet the model remains conservative in entering tool mode, revealing a representation-behavior gap. We propose Activation Steering Adapter (ASA), a training-free, inference-time controller that performs a single-shot mid-layer intervention and targets tool domains via a router-conditioned mixture of steering vectors with a probe-guided signed gate to amplify true intent while suppressing spurious triggers. On MTU-Bench with Qwen2.5-1.5B, ASA improves strict tool-use F1 from 0.18 to 0.50 while reducing the false positive rate from 0.15 to 0.05, using only about 20KB of portable assets and no weight updates.

1 Introduction

Domain-specific tool calling remains brittle because models can recognize tool needs yet fail to produce valid calls under changing schemas and strict execution. ASA addresses this representation–behavior gap with training-free hidden-state control and improves tool-use reliability.

Motivation

  • Tool calls can fail through missed invocation, invalid tools, malformed schemas, or omitted nested arguments, especially across changing domains.Domain-specific interfaces vary in tool names, schemas, argument meanings, and calling conventions.Source: §1 · p. 1
  • Prompting and parameter-efficient adaptation improve tool use but remain sensitive to interface changes or require retraining and regression testing.Prompt-only methods are affected by wording and context length, while tuning methods incur maintenance costs.Source: §1 · p. 1

Intent–Execution Gap

  • Readable tool-use evidence mainly predicts crossing the parser-recognizable boundary into tool mode, not complete executable success.Execution still requires valid tools, arguments, formats, and trajectory-level constraints.Source: §1 · pp. 1–2

Approach

  • ASA is a backbone-training-free inference controller that combines shared boundary steering, domain-local residual steering, and a probe-guided signed gate.The gate can open the tool boundary, suppress spurious crossing, or abstain under uncertainty.Source: §1 · p. 2

Results

  • ASA reduces missing-tool failures and improves executable accuracy on NESTFUL and BFCL, while fine-grained schema realization and nested argument binding remain residual bottlenecks.The error analysis identifies boundary-entry and trajectory-continuation failures as the main corrected categories.Source: §1 · p. 2

2 Related Work

Prior work improves tool use through elicitation, adaptation, constrained decoding, and activation steering. ASA targets the stricter problem of parser-valid execution by controlling the hidden-state boundary between answering and tool calling.

Tool-use models

  • ReAct, Toolformer, ToolLLM, Gorilla, and later function-calling models expand API use through elicitation, self-supervision, scaling, or specialization.These approaches establish tool use across increasingly broad API collections and model settings.Source: §2.1 · p. 2

Adaptation and decoding

  • Prompting, constrained decoding, supervised tuning, reinforcement learning, and parameter-efficient adapters improve invocation or format compliance but add adaptation or robustness considerations.LoRA and QLoRA reduce adaptation cost without eliminating the need to fit additional parameters.Source: §2.1 · p. 2

Representation control

  • Activation steering shifts intermediate representations without changing prompts or backbone weights and has been extended to conditional behavior and agent policies.ASA applies this inference-time control paradigm to parser-defined tool execution.Source: §2.2 · p. 2

Diagnostics

  • Pre-generation probes can decode tool decisions, and tool identity can be linearly read and steered in fixed-menu settings.These findings motivate Probe&Prefill and Tool-identity steering as controls for ASA.Source: §2.2 · p. 2

Positioning

  • ASA asks whether readable tool-use evidence guarantees boundary entry and correct execution under strict evaluation, and the paper shows that it does not.The target is stricter than merely eliciting tool use.Source: §2.1 · p. 2, §2.2 · p. 3

3 Problem Setup

The paper models tool calling as parser-defined execution over hidden representations, separating boundary entry from post-entry validity. This setup distinguishes tool necessity, parser triggers, schema realization, and domain-specific representations.

Execution model

  • An input instruction x produces an autoregressive output y, with an oracle label indicating whether a tool call is required.The label distinguishes Tool-Necessary inputs from cases where a direct answer is sufficient.Source: §3.1 · p. 3
  • A deterministic parser maps generated text to a binary trigger event indicating whether the model enters tool mode.Boundary entry is defined by the parser-visible trigger rather than by latent intent alone.Source: §3.1 · p. 3
  • Strict schema realization requires boundary entry plus valid formatting, tool names, arguments, and applicable task-level or multi-turn correctness.The objective improves strict success on Tool-Necessary inputs while preserving no-trigger behavior on Non-Tool inputs without modifying model weights.Source: §3.1 · p. 3

Research question

  • The central question is whether pre-generation tool-use evidence readable from hidden states is sufficient for parser-valid execution.This question motivates separating trigger behavior from post-entry validity.Source: §3.1 · p. 3

Representations

  • Representations are taken from the final non-padding prompt token at a selected Pre-LN residual-stream layer and standardized using training-split statistics.The standardized representation uses the training mean and standard deviation.Source: §3.2 · p. 3

Domains and probes

  • A domain denotes a tool-schema family sharing tool names, argument semantics, and executable output conventions.The domain is not defined as a topical category.Source: §3.2 · p. 3
  • Probe scores are trained and selected on non-test splits and rank Tool-Necessary examples into diagnostic top-ρ buckets.These buckets compare readable evidence, parser-visible entry, and strict executable success.Source: §3.2 · p. 3

4 Evidence for the Intent–Execution Gap

Mid-layer representations contain readable and steerable tool-use evidence, but that evidence does not guarantee strict execution. Probe-ranked examples often enter tool mode while failing parser-valid output requirements.

Diagnostic design

  • The diagnostic setup tests whether readable tool-use evidence before decoding guarantees parser-valid execution.It first establishes readability, then compares that evidence with strict execution outcomes.Source: §4 · p. 3, §4.1 · p. 3

Evidence readability

  • A linear probe separates Tool-Necessary from Non-Tool inputs with approximately 0.84 AUC, while shuffled labels remain near chance.Steering along the learned direction shifts trigger-token evidence more than a norm-matched random direction.Source: §4.1 · p. 3
  • The frozen backbone therefore contains a readable and causally relevant tool-use signal, but the signal’s sufficiency for executable success remains the stricter question.Readability and behavioral realization are evaluated separately.Source: §4.1 · p. 3

Probe–trigger dissociation

  • High probe evidence predicts boundary entry much better than schema realization under strict execution.Table 2 frames the dissociation between probe scores, triggers, and strict success.Source: Table 2 · p. 4
  • In the top 10% probe bucket, the baseline enters tool mode on all examples, but only 25.0% pass strict evaluation.Across top 25% and top 50% buckets, trigger recall remains 97.5% while strict success stays at 20.0%.Source: §4.2 · p. 4

Implication

  • The dissociation motivates a controller that opens or suppresses the tool boundary and adds schema-local bias after entry.ASA combines shared boundary and domain-local directions with a signed gate.Source: §4.3 · p. 4

5 Proposed Method

ASA is a backbone-training-free controller that constructs shared and domain-local steering directions from frozen representations, then applies a signed gate for inference-time tool-mode intervention. It supports both one-shot prefill and trajectory-level state-cascade correction under strict executable evaluation.

Controller construction

  • ASA constructs a gated controller from frozen-backbone representations using shared boundary and domain-local directions.The shared direction targets tool-mode entry, while local residual directions capture schema-specific variation without claiming perfect semantic factorization.Source: §5 · p. 4, §5.1 · p. 4

Inference instantiations

  • ASA applies the gated hidden-state update either once before decoding with ASA-Prefill or repeatedly across generation states with ASA-StateCascade.Prefill uses a single forward hook, while StateCascade recomputes features for multi-turn and nested trajectories without updating backbone parameters.Source: §5 · p. 4, §5.2 · p. 5, §5.3 · p. 6

Controller construction

  • A calibration split estimates the shared boundary direction at layer L as the displacement from non-tool behavior into tool mode.The calibration data are separate from evaluation, and the direction is derived from final-token residual representations.Source: §5.1 · p. 4

Signed abstention gate

  • At inference, a lightweight predictor identifies the tool-schema domain and its confidence before domain-specific evidence and boundary-readiness signals are computed.The predictor outputs the domain estimate, while a domain-specific probe estimates tool-use evidence and a calibration map produces readiness.Source: §5.2 · pp. 4–5
  • The signed boundary action ab(x) ∈ {−1, 0, +1} opens the tool boundary, suppresses spurious crossing, or abstains.The action is determined by tool-use evidence and readiness thresholds; schema-local steering activates only when the boundary is reachable and the domain estimate is reliable.Source: §5.2 · p. 5

6 Experiments

ASA is evaluated under strict parser-defined interfaces on NESTFUL and BFCL with Qwen3-8B, using disjoint calibration data and trajectory-level control for multi-step settings.

Protocol

  • Calibration examples, probes, thresholds, and hyperparameters are selected without access to held-out evaluation data.Experiments use greedy decoding throughout and retain ASA-Prefill as a diagnostic one-shot variant.Source: §6.1 · p. 6, §6 · p. 6

NESTFUL

  • ASA raises NESTFUL first-call accuracy from 24.46% to 41.94% and sequence accuracy from 16.94% to 25.00%.NESTFUL measures executable nested function calling, including first emitted calls and complete trajectories.Source: §6.2 · p. 6, §6.1 · p. 6
  • ASA reduces NESTFUL missing-tool failures from 59.14% to 6.72%.The missing-tool rate measures failures to call a required tool.Source: §6.2 · p. 6, §6.1 · p. 6

BFCL

  • ASA improves BFCL multi-turn success from 32.50% to 38.75% and non-live single-turn AST accuracy from 89.40% to 95.60%.BFCL also evaluates live single-turn executable-subset AST accuracy and argument-level F1.Source: §6.2 · p. 6, §6.1 · p. 6, Table 4 · p. 7
  • ASA improves BFCL live single-turn AST accuracy from 72.50% to 77.00%.Multi-turn columns use official Prompt-mode success, while single-turn columns use executable-subset AST accuracy.Source: §6.2 · p. 7, Table 4 · p. 7

7 Analysis

Error-level analysis separates boundary entry from post-entry validity and shows that ASA primarily corrects missing entry and trajectory failures, while selective gating protects executable precision.

Failure analysis

  • Strict failure occurs either when boundary entry is missing or when post-entry validity fails for tools, arguments, formats, or trajectories.For Non-Tool inputs, over-triggering corresponds to entering tool mode when no tool is required.Source: §7.1 · p. 8
  • ASA mainly corrects missing boundary entry and trajectory-continuation errors, while schema realization and nested argument binding remain dominant residual failures.The analysis decomposes strict execution into parser-visible boundary entry and post-entry validity.Source: §7.1 · p. 8, Table 5 · p. 8
  • ASA improves call recall while reducing false calls, tool-name errors, and path-level mismatches across the reported diagnostics.The paired transition breakdown reports 11 corrected baseline failures and one degraded baseline-correct case.Source: §7.1 · p. 8

Ablations

  • ASA-StateCascade abstains on most BFCL generation states and intervenes selectively, concentrating interventions on high-evidence states.The controller uses state-dependent actions rather than unconditional intervention at every generation step.Source: Figure 2 · p. 8
  • Removing the gate sharply increases false-positive trigger rate and lowers success precision.Success precision is the fraction of triggered outputs that pass strict execution validation.Source: §7.2 · p. 8
  • Random directions do not reproduce the gain, while global-only steering is weaker than full ASA.A cross-backbone sanity check reports a similar distinction between boundary-entry prefilling and trajectory-level ASA-StateCascade control.Source: §7.2 · p. 8

8 Conclusion

The paper separates boundary entry from schema realization and applies gated shared–local control over a frozen backbone. Across NESTFUL and BFCL, ASA reduces missing-tool failures while improving executable accuracy, though schema realization and nested binding remain challenging.

Conclusion

  • ASA studies schema-constrained tool calling by separating boundary entry from post-entry schema realization.Hidden-state tool-use evidence does not by itself ensure execution success.Source: §8 · p. 8
  • ASA uses a gated shared–local controller over a frozen backbone, with shared steering for boundary behavior and local residual steering for schema bias.The local residual is applied when domain estimates are reliable.Source: §8 · p. 9
  • Across NESTFUL and BFCL, ASA reduces missing-tool failures and improves first-call and sequence accuracy.The conclusion summarizes the reported executable tool-calling gains across both benchmarks.Source: §8 · p. 9
  • Nested binding and fine-grained schema realization remain challenging after ASA’s improvements.These are identified as remaining error sources rather than resolved aspects of execution.Source: §8 · p. 9

Limitations

The study is limited to offline schema-constrained tool calling under fixed parser-defined evaluators, and its experiments do not fully isolate each controller component. Post-boundary schema realization, argument binding, and decoding-budget effects remain unresolved.

  • The evaluation focuses on offline schema-constrained tool calling under fixed parser-defined evaluators.Source: Limitations · p. 9
  • NESTFUL sequence-accuracy gains combine boundary entry, state-dependent gating, and schema-sensitive residual control rather than isolating each channel.Source: Limitations · p. 9
  • Post-boundary schema realization remains incomplete, with nested argument precision and recall still lagging.Source: Limitations · p. 9
  • Variable binding and argument propagation require finer-grained control than the current linear residual directions provide.Source: Limitations · p. 9
  • Matched decoding-budget comparisons and finer-grained executable benchmarks are needed to strengthen causal interpretation of controller components.Source: Limitations · p. 9

D Representation and Causal Diagnostics

Representation diagnostics show that tool-use directions are only partially aligned across domains, while the selected-layer geometry and boundary-token analyses support combining shared and domain-local steering.

E NESTFUL Implementation Details

The implementation evaluates ASA-StateCascade with deterministic, state-level interventions across NESTFUL and BFCL, using frozen Qwen3-8B backbones and disjoint calibration data. The controller combines gated boundary steering, domain-sensitive residuals, and trajectory-aware actions.

NESTFUL

BFCL

K.5 Detailed Rescue Analysis

Detailed rescue analyses indicate that ASA is strongest on near-boundary strict failures, while prompt-only control exposes a recall–false-positive trade-off and domain conditioning supports schema consistency. Cross-backbone checks show that trajectory-level control improves both first-call and sequence accuracy where one-shot prefill does not.

Rescue analysis

  • ASA has its largest advantage on the highest-ranked strict failures and remains above random steering as the subset expands.Source: §K.5 · p. 21
  • The rescue pattern supports greater effectiveness on near-boundary failures, while deeper schema realization and argument binding remain harder.Source: §K.5 · p. 21

Prompt comparison

  • Prompt-only control illustrates a recall–FPR trade-off: stronger demonstrations increase tool-trigger recall but also false triggers.Source: §K.7 · p. 21

Cross-backbone check

Ablations

Loading 2602.04935v3…