# Self-Supervised Scaling of Terminal Environments for Scientific Domains

- **ID:** 1299
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2610.02710
- **Authors:** Zhongzhi Li, Yucheng Shi, Zongxia Li, Junyao Yang, Ruhan Wang, Yu Wang, Jingyuan Huang, Jichao Yu, Ninghao Liu, Haitao Mi, Leowei Liang
- **Published:** 2026
- **Source:** x
- **Added:** 2026-10-08
- **Verified:** 2026-10-08
- **Page:** https://papers.projxon.ai/entries/1299

## Summary

SWR (software-in-the-loop reconstruction): turn existing scientific software workflows into self-supervised, verifiable terminal-agent training environments - run workflows, reveal some input-output examples, hide others; the agent reconstructs the behavior and the original software supplies reference outputs for checking via a hierarchical verifier (domain-specific semantic comparison, structural validity, anti-shortcut checks).

## Research notes

- Discovery: @Yucheng__Shi (Yucheng Shi, Research Scientist @ Tencent Hunyuan LLM Seattle, Self-Improving AI / RL & Agents) X thread 2026-10-08 ~1:35 AM ET (~11.3K views, 29 likes, 18 bookmarks), announcing two Tencent Hunyuan papers together: "In SWR, we run existing workflows, reveal some input-output examples, and keep others hidden. The agent reconstructs the behavior; the original software supplies the reference outputs for checking its work. ... Existing software becomes a teacher, with exercises that can actually be checked."
Method: software-in-the-loop reconstruction - reference outputs and verification targets come from existing software workflows (executable programs mapping structured inputs to outputs). For each workflow, multiple input configurations are executed and partitioned into public observations and hidden evaluations; the agent builds an editable program without access to the source workflow; evaluation is on hidden configs against workflow outputs. Hierarchical verifier combines domain-specific semantic comparison, structural validity, and anti-shortcut checks; public feedback supports iterative revision. No per-task reference solution authoring needed.
Scale: 500 workflows, 46 software families, six domains (physical/engineering simulation, life and molecular sciences, earth and space sciences).
Results: Qwen3.8-Max solves 838 tasks across three attempts, producing 1,422 verified trajectories, oversampled to 3,000 reconstruction-only training examples. SFT of Qwen3.8-27B improves mean Terminal-Bench 2 from 47.94% to 53.56% across three seeds, highest mean among four matched-token corpus controls on all four reported evaluations.
Directly relevant to the user's RL post-training and unnamed AI agent app: verifiable agent training environments built from existing software, no hand-authored verifiers.
Caveats: arXiv license not shown on the abs page (unverified); no code/data repo linked on arXiv at catalog time.

## Similar entries

- [AgentEnv (Scale AI) — open framework for building RL agent environments](https://papers.projxon.ai/entries/1276) (code, #1276)
- [Mixture of Self-Improving Branches For Agent Harness Optimization](https://papers.projxon.ai/entries/1193) (paper, #1193)
- [TermGrade: 1,004 graded RL environments for terminal agents (environments + 36k trajectories)](https://papers.projxon.ai/entries/1312) (dataset, #1312)
- [RL Environment Explorer — Hugging Face Hub RL Environments filter](https://papers.projxon.ai/entries/1290) (tool, #1290)
- [Refining Over Resampling: Test-Time Self-Correction for LLM Reasoning](https://papers.projxon.ai/entries/1252) (paper, #1252)
- [SelfSearch: Reward-Free Search for Self-Improving Agents](https://papers.projxon.ai/entries/1262) (paper, #1262)
