Self-Supervised Scaling of Terminal Environments for Scientific Domains
Zhongzhi Li, Yucheng Shi, Zongxia Li, Junyao Yang, Ruhan Wang, Yu Wang, Jingyuan Huang, Jichao Yu and 3 others
Tencent HY LLM Frontier · University of Georgia · University of Maryland, College Park · National University of Singapore · Indiana University · University of Illinois at Chicago
Published October 2, 2026 · on the feed October 5, 2026 · ▲ 13 · arXiv 2610.02710
The abstract
Terminal agents are increasingly deployed beyond software engineering in science and other specialized domains. Constructing training environments requires executable reference behavior and a domain-specific verifier that distinguishes semantic correctness from superficially plausible artifacts. Authoring these components for each task requires repeated engineering and limits reuse. We introduce software-in-the-loop reconstruction, a self-supervised framework that obtains reference outputs and verification targets from existing software workflows, executable programs mapping structured inputs to outputs. For each workflow, we execute multiple input configurations and partition cases into public observations and hidden evaluations. Given the instruction, input schema, and public input--output observations, an agent constructs an editable program without access to the source workflow. The candidate is evaluated on hidden configurations against workflow outputs. A hierarchical verifier combines domain-specific semantic comparison, structural validity, and anti-shortcut checks, while public feedback supports iterative revision. The construction admits additional workflows and configurations without authoring a reference solution for each task. We instantiate SWR with 500 workflows and 46 software families across six domains. Across three attempts per task, Qwen3.8-Max solves 838 tasks and produces 1,422 verified trajectories, which we oversample to 3,000 reconstruction-only training examples. Supervised fine-tuning of Qwen3.8-27B improves mean Terminal-Bench 2 performance from 47.94% to 53.56% across three seeds and achieves the highest mean among four matched-token corpus controls on all four reported evaluations. These results indicate that existing scientific software can provide scalable, behaviorally verified supervision for terminal agents.
The Brief
2:57A short podcast summary of the paper. Written and voiced by AI.
Transcript
Self-Supervised Scaling of Terminal Environments for Scientific Domains. By Zhongzhi Li and ten others, from Tencent HY LLM Frontier, the University of Georgia, and five other institutions. Published on the second of October. No code repository is linked to it.
Terminal agents are now being deployed beyond software engineering, into science and other specialised domains. Training them needs environments, and an environment needs two components. One is executable reference behaviour. The other is a verifier specific to the domain, able to tell an output that is semantically correct from an artifact that merely looks plausible. Authoring both of those by hand, task after task, takes repeated engineering and leaves little that can be reused.
Software-in-the-loop reconstruction, shortened to SWR, gets both components from software that already exists. A scientific software workflow is an executable program that maps structured inputs to outputs. Run it, and it supplies the reference outputs and the verification targets for free. The framework is self-supervised in that sense: the supervision comes from the workflow, not from someone writing a solution.
For each workflow, many input configurations are executed, and the cases are split into public observations and hidden evaluations. The agent receives the instruction, the input schema, and the public input and output pairs. It never sees the source workflow. From those it builds an editable program, which is then run on the hidden configurations and compared with what the workflow produced.
Checking is done by a hierarchical verifier. It combines semantic comparison specific to the domain, a test of structural validity, and checks designed to catch shortcuts. Feedback on the public cases lets the agent revise iteratively. Because nothing in this requires a reference solution per task, new workflows and new configurations can be added freely.
The instantiation uses five hundred workflows from forty-six software families, across six domains. Given three attempts per task, Qwen3.8-Max solves eight hundred and thirty-eight tasks and produces one thousand four hundred and twenty-two verified trajectories. Those are oversampled to three thousand training examples built only from reconstruction.
Supervised fine-tuning of Qwen3.8-27B on that data lifts mean Terminal-Bench 2 performance from forty-seven point nine four percent to fifty-three point five six percent, averaged over three seeds. Against four control corpora matched for token count, it achieves the highest mean on all four of the evaluations reported.
The authors' conclusion is that existing scientific software can serve as a scalable source of supervision for terminal agents, and supervision whose correctness is checked against behaviour rather than appearance. Two choices carry that. The software itself supplies the answers, so adding a task means adding a workflow and not writing a solution. And the agent is judged on hidden inputs, against a workflow it never saw, with checks aimed at shortcuts, so a plausible-looking imitation of the public examples is not enough to pass.
More with an account
Listen to every day’s papers
Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.
Join free