mlsanityData to 14 Oct 2026

Diagnosing Task Insensitivity in Language Agents

arXiv 2606.26918 ↗First posted 25 Jun 2026cs.AIcited by 0

On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks

Abstract (arXiv)

Large language models can serve as capable long-horizon agents, but their out-of-distribution (OOD) generalization remains weak. We identify a key source of this failure as task insensitivity: when faced with similar but distinct tasks, models might apply patterns learned during training and fail to solve the task at hand. We show that models often continue with actions aligned with the original task even when the instruction is semantically corrupted and cannot be directly answered. We further find that, when we replace the task description in a trained prompt with another similar but distinct task, the model may still output the same action. This behavior is accompanied by a consistent training-time attention drift away from task tokens and toward local observations, suggesting an optimization bias toward shortcuts. To mitigate this problem, we propose Task-Perturbed NLL Optimization, a lightweight contrastive regularizer that explicitly encourages action dependence on the task instruction. Extensive evaluations show that our intervention improves task sensitivity and OOD generalization while preserving more stable attention to task tokens.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 17 of its 24 references that are in the map. First posted on arXiv 25 Jun 2026.

Builds on

17 of 24 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023AgentTuning: Enabling Generalized Agent Abilities for LLMs19 Oct

Other references · 16

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,724
  3. 2020Shortcut Learning in Deep Neural Networkscited by 1,969
  4. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
  5. 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,205
  6. 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 672
  7. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
  8. 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 282
  9. 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 228
  10. 2024DigiRL: Training In-The-Wild Device-Control Agents with Autonomous Reinforcement Learningcited by 214
  11. 2025WebAgent-R1: Training Web Agents via End-to-End Multi-Turn Reinforcement Learningcited by 165
  12. 2025Reinforcement Learning for Long-Horizon Interactive LLM Agentscited by 108
4 more
  1. 2021Counterfactual Invariance to Spurious Correlations: Why and How to Pass Stress Testscited by 77
  2. 2025RLVMR: Reinforcement Learning with Verifiable Meta-Reasoning Rewards for Robust Long-Horizon Agentscited by 58
  3. 2024Shortcut Learning in In-Context Learning: A Surveycited by 8
  4. 2025Gradient Coupling: The Hidden Barrier to Generalization in Agentic Reinforcement Learningcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ACCORD: Action-Conditioned Contextual Grounding for Language Agents
  2. 2026Operationalising the Superficial Alignment Hypothesis via Task Complexity
  3. 2025Head-Specific Intervention Can Induce Misaligned AI Coordination in Large Language Models
  4. 2025An Analysis for Reasoning Bias of Language Models with Small Initialization
  5. 2026A Systematic Study of Small Language Models on Abstract Reasoning Tasks
  6. 2026Spurious Tool Use: When RL Agents Learn the Wrong Reason to Act
  7. 2026AM-Bench: Understanding Agents under Task Underspecification across Models and Harnesses
  8. 2026AgentPatch: Coarse-to-Fine Weak-Task Repair for Merging Agentic Multimodal Large Language Models