Full text not available for this paper
Summary (Overview)
- CrossEnv is a framework for automatically synthesizing executable, verifiable cross-environment tasks for long-horizon LLM agent training, addressing the gap in generating tasks that span multiple services with information dependencies.
- The framework uses an entity–tool graph to connect independently constructed environments through shared entity types, enabling data alignment across environments for consistent, executable workflows.
- CrossEnv-Curriculum organizes training into five progressive levels (L1–L5), from single-environment tool use to multi-environment, cross-domain coordination with user interaction.
- Experiments on four external benchmarks (τ²-bench, DeepPlanning-Shopping, VitaBench, Claw-Eval) show competitive performance with only 2,954 training records (~25% of comparable baselines' data).
- Cross-environment training improves workflow coordination (output reuse, later-step success, joint success), with evidence of transfer to unseen environment combinations, longer workflows, and tasks with low similarity to training data.
Introduction and Theoretical Foundation
Background and Motivation
Large language models (LLMs) are increasingly deployed as agents that invoke tools and adapt actions based on environmental feedback. Training such agents requires:
- Diverse executable environments
- Verifiable tasks with reliable feedback
However, real-world long-horizon workflows often span multiple services, where actions in one service depend on information obtained from another. The paper illustrates this with a travel-planning example (Figure 1b): after booking flights and accommodation, an agent must select a restaurant based on flight arrival time, hotel location, and personal preferences.
The Core Challenge: Cross-Environment Data Consistency
A key difficulty is maintaining data consistency across environments. Data constructed independently for different environments may be valid in isolation but inconsistent with one another. For example:
- The same hotel may have different addresses in booking vs. navigation environments
- Flight arrival times must align with restaurant reservation times
Gap in Existing Approaches
| Method Type | Limitation |
|---|---|
| Programmatic environment synthesis (EnvScaler, AWM, ScaleEnv, Agent-World, Skill2Env) | Primarily single-environment tasks; limited cross-environment support |
| Cross-application benchmarks | Manual or semi-automated task/evaluator design, limiting scalability |
| Real-world/LLM-simulated environments | High interaction costs or limited verifiability |
Task Representation
Each cross-environment task is formally represented as:
where:
- : set of environments used in the task
- : instruction
- : joint initial state
- : reference execution sequence
- : executable verification rules
Methodology
Phase 1: Single-Environment Research
- Environment seeds: Collected from MCP services and public skill documents (801 MCP seeds, 682 skill seeds after filtering)
- Taxonomy: 10 business domains and 84 capability categories, based on Agent-World taxonomy
- Data construction: A research agent retrieves documentation; a data construction agent builds initial databases
Phase 2: Local Dependency Graphs
For each environment , construct a local entity–tool graph where:
- Nodes (): entity types
- Directed edges (): relations supported by tools
Example: reserve_room supports a booking relation from Person to Hotel; search_hotels supports a search relation from City to Hotel.
Phase 3: Cross-Environment Graph Composition
- Graph merging: Merge local graphs through shared entity types (e.g.,
Person,City), retaining each relation's source environment - Task skeleton sampling: Sample connected subgraphs spanning ≥2 environments, assess coherence, define task objectives specifying:
- Which actions use results from other environments
- What constraints combined outcomes must satisfy
Complexity control through:
- Environment count
- Business-domain scope
- User interaction requirement
Phase 4: Tool Synthesis and Testing
- Reuse tested tool implementations
- Coding agent implements missing tools from descriptions and research findings
- Test for correct outputs, state changes, and error handling; repair failures
Phase 5: Task Instantiation and Verification
- Data alignment: Select concrete entities, supplement missing data, resolve conflicts across environments
- Reference execution: Execute planned actions from , recording outputs and state changes
- Verification rule generation: Derive executable rules from objectives, including negative cases (omitted operations, incorrect values)
- Task validation: Replay requiring reproducible outcomes; run 5 independent agent attempts; retain tasks with ≥2 successful attempts
CrossEnv-Curriculum Training
| Level | Description | Training Method | Train Count |
|---|---|---|---|
| L1 | Single-environment tasks (basic tool use) | SFT | 800 |
| L2 | Two environments, one domain | RL (GRPO) | 579 |
| L3 | 3+ environments, one domain | RL | 620 |
| L4 | 3+ environments, multiple domains | RL | 600 |
| L5 | L4 + user interaction | RL | 355 |
Training procedure: Full-parameter SFT on L1 trajectories, then stagewise trajectory-level outcome GRPO, initializing each stage from the preceding checkpoint.
Empirical Validation / Results
Overall Performance (Table 3)
Key findings across four benchmarks:
1. Consistent gains over base models (8B):
- DeepPlanning: 1.7 → 10.8
- VitaBench: 7.0 → 14.0
- Claw-Eval: 14.4 → 23.6
2. Competitive with fewer training records:
- CrossEnv-8B achieves highest aggregate scores on DeepPlanning and Claw-Eval among 1.7B–8B models
- Ties with Agent-World-8B on VitaBench
- Uses 2,954 records vs. EnvScaler's 11,572 (~25%)
3. Capability variation:
- Strong gains in planning and service coordination across all model sizes
- More modest improvements in interactive tool use (τ²-bench)
Curriculum Learning Analysis
Capability development (Figure 3, Qwen3-8B):
- L1 SFT: improves tool execution (+24.2 pp)
- L2–L3: improves environment coverage and late execution
- L4–L5: improves state accuracy and user interaction
- Earlier gains largely retained
Curriculum vs. Mixed training (Figure 4):
- Curriculum achieves higher success at every task level at similar GPU-hours
- Curriculum accumulates more rollouts (80k+ vs. ~50k) within comparable compute
Generalization Results
Unseen environment combinations (Table 4):
| Model | Seen Success Gain | Unseen Success Gain |
|---|---|---|
| 1.7B | +6.7 | +5.3 |
| 4B | +30.0 | +24.0 |
| 8B | +28.0 | +16.0 |
Longer workflows: Both 4B and 8B improve on tasks with 16–18 and 24–28 reference calls (exceeding training max of 14), though 1.7B shows late-stage decline.
Low-similarity tasks: Both model sizes improve over Base on average in the lowest-similarity group of each benchmark.
Value of Cross-Environment Tasks (Table 5)
| Metric | Base | SFT | SingleEnv | CrossEnv |
|---|---|---|---|---|
| DeepPlanning | 1.7 | 3.3 | 6.7 | 7.5 |
| Claw-Eval | 14.4 | 16.9 | 15.4 | 20.0 |
| Output reuse | 6.7 | 8.3 | 1.7 | 11.7 |
| Later-step success | 23.3 | 18.3 | 28.3 | 33.3 |
| Joint success | 5.0 | 1.7 | 0.0 | 8.3 |
Synthesis Quality and Cost
- Quality: All 100 sampled tasks pass reference replay; skipping operations prevents full credit; reordering queries without changing results still earns full credit
- Scalability: Average construction cost drops to ~4.0K tokens per candidate, below AgentWorld and EnvScaler estimates
- Output yield: 51,566 native outputs with 100 available environments
Theoretical and Practical Implications
Theoretical Contributions
-
Cross-environment data alignment: Introduces a principled approach to maintaining data consistency across independently constructed environments, addressing a fundamental challenge in multi-environment task synthesis.
-
Entity–tool graph composition: Provides a formal mechanism (graph merging through shared entity types) for composing environments into coherent joint workflows, enabling automatic discovery of cross-environment task structures.
-
Curriculum design principle: Demonstrates that organizing training by coordination structure (environment count → domain scope → user interaction) is more effective than mixed training at equivalent compute.
Practical Implications
-
Data efficiency: CrossEnv achieves competitive performance with ~25% of the training data used by comparable baselines, reducing the cost of agent training.
-
Scalable task generation: The framework's reuse of environments, tools, and entity relations enables accelerating growth in candidate task yield as the environment pool expands.
-
Transferability: Training on cross-environment tasks improves:
- Coordination of multiple operations toward shared goals
- Reuse of prior tool outputs
- Completion of later workflow steps
- Generalization to unseen environment combinations and longer workflows
Conclusion
Main Takeaways
CrossEnv successfully addresses the gap in automatically synthesizing cross-environment training tasks by:
- Using entity–tool graphs to identify connections between environments
- Aligning task-specific data to ensure executability and verifiability
- Organizing training through a progressive curriculum from basic tool use to complex cross-domain coordination with user interaction
Future Directions
The authors acknowledge limitations requiring further work:
- Real-world transfer: Programmatically synthesized environments may simplify real service behavior (changing interfaces, noisy responses, complex constraints); transfer to real services needs evaluation
- Generalization bounds: Results are limited to familiar environments in new combinations and workflows up to 24–28 tool calls
- Isolation of training factors: Curriculum vs. mixed comparisons use similar GPU-hours but differ in batch configuration and parallelism, limiting causal attribution
Ethical Considerations
The framework has potential dual-use implications: tasks designed for beneficial automation could be adapted for harmful purposes. The authors encourage responsible use and careful evaluation of trained agents before deployment in sensitive applications.
Related papers
- Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?
A 0.8B model can self-improve by editing its own weights, quintupling GSM8K accuracy, but random edits match it, revealing search, not understanding, drives gains.
- When Answering Is Administering: Permission Replies That Rewrite Coding-Agent Policy
In coding agents, a party trusted only to answer permission prompts can rewrite the operator's security policy, escalating answering authority into administrative control.
- Self-Upgrading Embodied Agents
A self-upgrading embodied agent rewrote its own weights via forward passes alone, improving held-out task completion by 3.6 points without gradients or reward models.