[Paper Review] Paying Less Generalization Tax: A Cross-Domain Generalization Study of RL Training for LLM Agents
The paper identifies state information richness and planning complexity as key factors driving cross-domain generalization in RL-trained LLM agents and proposes a lightweight state augmentation method to improve OOD robustness.
Generalist LLM agents are often post-trained on a narrow set of environments but deployed across far broader, unseen domains. In this work, we investigate the challenge of agentic post-training when the eventual test domains are unknown. Specifically, we analyze which properties of reinforcement learning (RL) environments and modeling choices have the greatest influence on out-of-domain performance. First, we identify two environment axes that strongly correlate with cross-domain generalization: (i) state information richness, i.e., the amount of information for the agent to process from the state, and (ii) planning complexity, estimated via goal reachability and trajectory length under a base policy. Notably, domain realism and text-level similarity are not the primary factors; for instance, the simple grid-world domain Sokoban leads to even stronger generalization in SciWorld than the more realistic ALFWorld. Motivated by these findings, we further show that increasing state information richness alone can already effectively improve cross-domain robustness. We propose a randomization technique, which is low-overhead and broadly applicable: add small amounts of distractive goal-irrelevant features to the state to make it richer without altering the task. Beyond environment-side properties, we also examine several modeling choices: (a) SFT warmup or mid-training helps prevent catastrophic forgetting during RL but undermines generalization to domains that are not included in the mid-training datamix; and (b) turning on step-by-step thinking during RL, while not always improving in-domain performance, plays a crucial role in preserving generalization.
Motivation & Objective
- Investigate what environmental properties of RL training domains best preserve cross-domain generalization for agentic LLMs.
- Quantify how state information richness and planning complexity correlate with out-of-domain performance.
- Evaluate simple interventions (state augmentation) and modeling choices (mid-training, step-by-step reasoning) on generalization.
- Provide practical guidelines for designing training domains when deployment domains are unknown.
Proposed method
- Train Llama-3.1-8B-Instruct-based agents across four agentic environments (WebShop, Sokoban, ALFWorld, SciWorld) and evaluate cross-domain generalization to the other three domains.
- Define and measure two environmental axes: state information richness (average state character count) and planning complexity (average trajectory length).
- Inject goal-irrelevant content into observations (state information augmentation) to increase state richness without changing task dynamics and assess impact on OOD performance.
- Examine modeling choices: effects of SFT warmup/mid-training on generalization and the role of explicit step-by-step thinking in preserving generalization.
- Use a ranking-based OOD robustness metric (sum of domain-wise ranks) to compare training domains across three OOD evaluation domains.
Experimental results
Research questions
- RQ1Which properties of RL training environments most strongly correlate with cross-domain generalization for LLM agents?
- RQ2Can increasing state information richness alone improve cross-domain robustness without altering the task dynamics?
- RQ3How do mid-training, SFT warmup, and explicit step-by-step reasoning affect in-domain performance and generalization to unseen domains?
- RQ4What practical strategies can be applied to improve generalization when deployment domains are unknown?
Key findings
- Two environment axes correlate with cross-domain robustness: state information richness and planning complexity.
- Sokoban (high richness and high planning complexity) yields strong cross-domain generalization, with OOD ranking 1st under certain conditions.
- SciWorld (high planning complexity) also shows strong OOD performance, with ranking 3rd or better depending on setup.
- WebShop and ALFWorld are less robust to OOD shifts, linked to lower planning complexity or information richness in the observed settings.
- State information augmentation (adding goal-irrelevant content to observations) consistently improves cross-domain robustness without changing task goals.
- Mid-training robustly preserves knowledge for domains included in the mid-training mix but can reduce generalization to unseen domains.
- Enabling step-by-step thinking helps preserve generalization even if it does not always boost in-domain scores.
- Increased state richness benefits OOD performance, with careful tuning of augmentation magnitude to avoid harming ID performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.