TMin: Efficiently Post-Training Terminal Agents Enables Studying Reward Hacking with Academic Compute
Zaid Khan, Joykirat Singh, Runchu Tian, Justin Chih-Yao Chen, Akshay Nambi, Hyunji Lee, Elias Stengel-Eskin, Mohit Bansal
Abstract
Terminal agents are commonly post-trained with reinforcement learning (RL), using automated tests to reward task completion. However, agents can learn to pass these verifiers without completing the intended task, a failure mode known as reward hacking that can cause serious problems in real software environments. Studying how reward hacking develops during RL is difficult with academic compute because existing open recipes, such as TMax, require thousands of environments and up to 64 datacenter GPUs (80 GB H100s). We develop TMin, an efficient RL recipe that trains on a small, adaptive pool of learnable tasks and replaces tasks as the model improves. Using four workstation GPUs (48 GB RTX 6000 Ada), our resulting model (TMin-4B) improves upon Qwen3.5-4B to match the released TMax-4B on TerminalBench-Lite and TerminalBench 2.1 at an order of magnitude lower compute cost per run. The same recipe generalizes out of domain to math (AIME) and software engineering (SWE-bench Verified) and scales to 27B models, where TMin-27B matches TMax-27B using one eighth of the GPUs. We show that our recipe can be used to train a low-cost model organism of reward hacking, and we use this model organism to study how reward design and environment design affect reward hacking. We find that verifier-only RL significantly intensifies reward hacking. Reward shaping with an anti-cheating judge, or using task-specific rubrics in addition to the verifier reward reduce reward hacking to near the untrained model's level while preserving agent capability. In contrast, environment shaping alone (e.g. improving verifiers) only prevents learning some specific forms of reward hacking. We release our training code, learnable environment pools, and local sandboxing infrastructure to support further research on terminal-agent RL and reward hacking with academic compute.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL
- Comments
- First two authors contributed equally. Code+Data+Models: https://github.com/joykirat18/Tmin
Related papers
MMSearchArt: Training Unified Multimodal Deep Research Agents with Scalable Synthetic Task Mixtures
Shared title terminologycs.AIXiaohan Yu, Liyan Liu, Xiangnan Chen et al.
Grounded Policy Learning for Computer Use Agents
Shared title terminologycs.AIHyunseo Yang, Byungwoo Jeon, Jinheon Baek et al.
Generalist Terminal-Use Agents for Event Extraction in Aviation Accident Investigations
Shared title terminologycs.AIJaya Adithya Pavuluri, Ming Shen, Ben Zhou
Shell or Screen? Benchmarking Personal Assistant Agents on a Computer in Use
Shared title terminologycs.AIKangjia Zhao, Chenglong Li, Xingwei Qu et al.
Beyond the Rollout Group: Training Language Agents with Credit from Past Decisions
Shared title terminologycs.AIMingxuan Jiang, Keyang Chen, Zeping Li et al.
DoG: Sniffing Out Overconfidence in LLM Agents via Post-hoc Trajectory Restructuring
Shared title terminologycs.AIHyunjun Jeon, Dongha Lim, Kunwoong Kim et al.