ZICQ
中 Log in / Sign up
Newsroom Agentic #StateForge #Tool-Using Agents #State-Change Supervision #Reinforcement Learning #Long-Horizon Tasks

StateForge Trains Tool-Using Agents with Verifiable State-Change Supervision

Avatar of Mr.Xu

By Mr.Xu Compiled & Reviewed by Editorial

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:StateForge's authors propose a data synthesis and training framework for tool-using agents that treats verifiable environment state changes as the unit of supervision instead of matching a canonical call trace. The system builds 544 executable environments and 1,697 tasks, averages 69 tool calls per task, and aligns SFT filtering and RL rewards with the same reachable target across Direct, Progressive, and Recovery trajectory modes. The supplied abstract reports that a 4B StateForge model reach


Core problem and approach

StateForge changes the unit of supervision for long-horizon tool-using agents from matching a reference call trace to verifying the resulting environment state. A successful API call is only a local fact: it does not prove that an order was created, a permission was revoked, or a configuration was applied. Conversely, the same objective may be completed through multiple valid tool sequences, so a fixed reference trajectory can reject correct executions as false negatives.

The pipeline can be summarized as:

Task specification → dependency-guided execution → reachable target → trajectory generation → state-diff verification → SFT and RL

The framework first constructs executable environments with explicit state spaces. Each tool can query the state and transform it in a defined way. The authors execute dependency-guided tool workflows and derive reachable targets from the observed results. Those targets then ground task synthesis and task-target consistency checks, reducing the chance of training on objectives that cannot actually be completed.

How state-change supervision works

An environment can be abstracted as E=(S,A,T,O), where S is the explicit state set and T(s,a) is the state transition induced by tool action a. A dependency-guided workflow produces a reachable target G, containing required changes Δ_required and forbidden or unintended modifications Δ_forbidden.

For a trajectory τ, the verifier checks whether:

  • every required state change in Δ_required has been completed;
  • no forbidden modification has been introduced; and
  • the final environment still satisfies the task's business invariants.

The verifier therefore compares outcomes rather than tool names or parameter sequences. Different execution paths can receive credit when they produce the same required state, while trajectories whose individual calls appear successful but miss the objective are rejected.

For supervised fine-tuning, StateForge retains trajectories that pass the target check. For reinforcement learning, the same target drives rewards: required changes receive credit and unintended modifications are penalized. Data filtering and policy optimization consequently share one task-level definition of success.

From an implementation perspective, validating a full snapshot with N objects and M fields per object costs roughly O(NM). An event-sourced implementation that validates only ΔS can approach O(|ΔS|) for storage and comparison. Exact matching nevertheless requires canonicalization: timestamps, random identifiers, field ordering, and other irrelevant metadata must be normalized or excluded, or valid trajectories will be rejected.

Three trajectory modes share one target

| Mode | How the task is presented | Main training value | |---|---|---| | Direct | The complete goal is supplied at once | Global planning, tool selection, and end-to-end execution | | Progressive | The goal is revealed in stages | Long-context accumulation and planning before all constraints are visible | | Recovery | Recoverable environment perturbations are introduced | Error detection, state repair, and recovery behavior |

All three modes retain the same reachable state target. Their differences lie in information exposure and execution conditions, not in the completion criterion. Direct trajectories strengthen ordinary execution, Progressive trajectories test sustained planning, and Recovery trajectories teach agents to repair partially disrupted environments without confusing the three data distributions as contradictory objectives.

Engineering trade-offs

  • Environment instrumentation cost: Every tool needs queryable and comparable state semantics. This is practical for databases and internal APIs, but much harder for third-party search, payment, or generative services whose internal state is not observable.
  • Long-horizon latency and context pressure: Tasks average 69 tool calls. For mostly serial execution, total latency is approximately T_task ≈ ΣT_tool,i + T_LLM. A 4B model may reduce inference cost, but external API latency, context growth, and accumulated errors can still dominate the end-to-end budget.
  • Exactness versus robustness: Overly strict comparison rejects valid trajectories because of irrelevant metadata; overly loose comparison can miss destructive side effects. Practical deployments need field whitelists, object canonicalization, timestamp masking, and semantic-equivalence rules.
  • RL credit assignment: State differences are denser than final success or failure, but they do not automatically identify which call caused which change. One tool action may produce several side effects, so dependency graphs, tool preconditions, or counterfactual replay may still be needed to assign responsibility.
  • Data scale and distribution risk: The 544 environments and 1,697 tasks form a substantial synthetic corpus, but the diversity of tools, state structures, and failure modes remains unknown. Synthetic data may also amplify the framework's predefined state representation and rule bias.

Reported results and scope

The paper abstract reports the following results:

| Benchmark | Metric | Reported 4B result | |---|---|---:| | τ²-Bench | Macro-average success | 91.17% | | DeepPlanning Shopping | Accuracy | 43.33% | | BFCL-v3 Multi-Turn | Overall score | 27.25% |

The authors characterize these as state-of-the-art performance among specialized agent models. The results indicate that explicit state supervision can produce competitive tool-use performance with a 4B model, but they should not be interpreted as evidence that the system surpasses every general-purpose model. The three benchmarks use different metrics and difficulty scales, so their scores cannot be aggregated. The abstract also omits the baseline list, tested model variants, context length, maximum tool-call budget, random seeds, variance, and significance tests.

The currently available material contains only the paper abstract. Author affiliations, the base model, training compute, and code and dataset licensing status are not specified. The 91.17% τ²-Bench result therefore needs validation under the complete evaluation protocol, while the 27.25% BFCL-v3 score should be interpreted alongside its subtask-level errors rather than as a standalone headline metric.

Deployment guidance

  1. Define the state contract first: Specify normalized schemas, business objects, state machines, and permitted side effects. Separate required changes, acceptable changes, and forbidden modifications.
  2. Generate targets from reachable execution: Run dependency-guided workflows in a sandbox and extract targets from actual transitions instead of hand-authoring goals that the environment may not be able to satisfy.
  3. Produce all three trajectory types: Use Direct data for baseline competence, Progressive data for long-range planning, and Recovery data for exception handling, with one shared acceptance verifier.
  4. Replace call matching with diff verification: Record pre- and post-action snapshots or event logs, compare object-level state differences, and normalize nondeterministic fields.
  5. Add transactional safeguards: Execute tools in sandboxes or transactional systems, and enforce idempotency keys, permission boundaries, state invariants, and rollback paths for high-risk actions.
  6. Separate task success from tool success: Track completion rate alongside unintended-change rate, invalid-call rate, recovery success, mean tool calls, token cost, and end-to-end P95 latency.
  7. Start with deterministic workflows: Order configuration, access management, and internal ticketing are better initial targets than open-web search or irreversible external actions. Broader deployment should wait for the full training scripts, model weights, environment versions, and independent replication.

Source: ArXiv AI (cs.AI) (2026-12-01)

— END —

Tags: #StateForge #Tool-Using Agents #State-Change Supervision #Reinforcement Learning #Long-Horizon Tasks

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…