Self-Supervised Scaling of Terminal Environments for Scientific Domains

Zhongzhi Li, Yucheng Shi, Zongxia Li, Junyao Yang, Ruhan Wang +6 more
10/2/2026
cs.SEcs.AI
contrastive-ssl

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026selfsupervised,
  title  = {Self-Supervised Scaling of Terminal Environments for Scientific Domains},
  author = {Zhongzhi Li and Yucheng Shi and Zongxia Li and Junyao Yang and Ruhan Wang and Yu Wang and Jingyuan Huang and Jichao Yu and Ninghao Liu and Haitao Mi and Leowei Liang},
  year   = {2026},
  eprint = {2610.02710},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.02710v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.02710.svg)](https://codeofpaper.com/paper/2610.02710)

Discussion