# CrossEnv: Synthesizing Verifiable Cross-Environment Tasks for Long-Horizon Agent Training

> CrossEnv synthesizes executable cross-environment LLM agent training tasks via entity-tool graph composition, achieving competitive benchmark performance with roughly 25% of baseline training data.

- **Source:** [arXiv](https://arxiv.org/abs/2611.22777)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/QwEj1W
- **Whiteboard:** https://picx.dev/p/QwEj1W/image

## Summary

## 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:

$$\tau = (E_S, I, s_{0,\tau}, A^*, C_\tau) \tag{1}$$

where:
- $E_S$: set of environments used in the task
- $I$: instruction
- $s_{0,\tau}$: joint initial state
- $A^*$: reference execution sequence
- $C_\tau$: 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 $E_i$, construct a local entity–tool graph $G_i = (V_i, R_i)$ where:
- **Nodes** ($V_i$): entity types
- **Directed edges** ($R_i$): 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

1. **Graph merging**: Merge local graphs through shared entity types (e.g., `Person`, `City`), retaining each relation's source environment
2. **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

1. **Data alignment**: Select concrete entities, supplement missing data, resolve conflicts across environments
2. **Reference execution**: Execute planned actions from $s_{0,\tau}$, recording outputs and state changes
3. **Verification rule generation**: Derive executable rules $C_\tau$ from objectives, including negative cases (omitted operations, incorrect values)
4. **Task validation**: Replay $A^*$ 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

1. **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.

2. **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.

3. **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

1. **Data efficiency**: CrossEnv achieves competitive performance with ~25% of the training data used by comparable baselines, reducing the cost of agent training.

2. **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.

3. **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:
1. Using entity–tool graphs to identify connections between environments
2. Aligning task-specific data to ensure executability and verifiability
3. 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.

---

_Markdown view of https://picx.dev/p/QwEj1W, served by PicX — AI-generated visual whiteboard summaries of research papers._
