Papers
arxiv:2612.04874

TMin: Efficiently Post-Training Terminal Agents Enables Studying Reward Hacking with Academic Compute

Published on Dec 3
· Submitted by
Zaid Khan
on Dec 4
Authors:
,
,
,
,
,
,
,

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.

Community

Paper submitter

An open RL recipe for terminal-agent post-training that can improve Qwen3.5-4B and Qwen3.6-27B on academic compute that allows us to study reward hacking during terminal agent RL.

Sign up or log in to comment

Models citing this paper 8

Browse 8 models citing this paper

Datasets citing this paper 1

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2612.04874 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.