TMin: Efficiently Post-Training Terminal Agents Enables Studying Reward Hacking with Academic Compute
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.
Models citing this paper 8
joykirat/Single-Visit-4B
Datasets citing this paper 1
joykirat/TMin-ZPD-Pools
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper