NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Loong: Synthesize Long Chain-of-Thoughts at Scale through Verifiers

Xingyue Huang, Rishabh, Gregor Franke, Ziyi Yang, Jiamu Bai, Weijie Bai, Jinhe Bi, Zifeng Ding, Yiqun Duan, Chengyu Fan, Wendong Fan, Xin Gao, Ruohao Guo, Yuan He, Zhuangzhuang He, Xianglong Hu, Neil Johnson, Bowen Li, Fangru Lin, Siyu Lin, Tong Liu, Yunpu Ma, Hao Shen, Hao Sun, Beibei Wang, Fangyijie Wang, Hao Wang, Yang Wang, Yifeng Wang, Zhaowei Wang, Ziyang Wang, Yifan Wu, Zikai Xiao, Chengxing Xie, Fan Yang, Junxiao Yang, Qianshuo Ye, Ziyu Ye, Guangtao Zeng, Yuwen Ebony Zhang, Zeyu Zhang, Zihao Zhu, Bernard Ghanem, Philip Torr, Guohao Li

TL;DR

The Loong Project introduces an open-source framework designed to scale synthetic data generation and automated verification for complex reasoning across 12 diverse domains, including physics, chemistry, and finance. By pairing generated questions with executable Python code to establish ground-truth answers, Loong creates a scalable agent-environment loop that lays the groundwork for Reinforcement Learning with Verifiable Reward (RLVR) far beyond traditional math and coding boundaries.

What Problem Does This Paper Address?

Recent breakthroughs in large reasoning models (like DeepSeek-R1 and OpenAI's o3) demonstrate that post-training via Reinforcement Learning with Verifiable Reward (RLVR) drastically boosts an LLM's reasoning capabilities. However, this success has been largely confined to mathematics and programming—domains where code compilers or symbolic mathematics engines can automatically verify an answer's correctness.

Extending RLVR to other reasoning-heavy fields (such as logic, physics, finance, and medicine) is bottlenecked by two major challenges: the severe scarcity of high-quality, verifiable datasets, and the prohibitive cost of human annotation at scale. Without a reliable, automated way to verify answers, models cannot easily acquire diverse, domain-specific reasoning patterns. The Loong Project tackles this by providing a framework to synthesize and verify complex multi-step reasoning problems automatically.

Methods

The core of the Loong Project is an automated Agent-Environment Loop designed to bootstrap data generation without heavy human intervention:

The automated Agent-Environment Loop proposed in the Loong Project.
  1. Question Synthesis: A generator agent takes high-quality seed data and uses automated prompting strategies—specifically Few-shot prompting, Self-Instruct, and Evol-Instruct—to synthesize new natural language questions.
  2. Code & Answer Generation: A separate coder agent generates a Python script designed to solve the new question. This script is executed within a sandboxed environment to yield a grounded, verified synthetic answer.
  3. Verification: A trainable agent attempts to solve the synthetic question using natural language Chain-of-Thought (CoT) reasoning. A verifier (currently utilizing an LLM-as-a-judge paradigm) compares the agent's CoT-derived answer with the code-executed ground truth to ensure semantic agreement.

Datasets

The authors introduce LOONGBENCH, a meticulously curated seed dataset containing 8,729 human-vetted examples spanning 12 reasoning-intensive domains. Rather than being a massive training set, LOONGBENCH serves as the high-quality "bootstrap" foundation for the generation environment (LOONGENV).

Every data point in LOONGBENCH includes a natural language question, a verified final answer, an accompanying rationale written as executable Python code, and rich metadata (difficulty, dependencies, etc.).

Detailed breakdown of the 12 domains and code dependencies in LOONGBENCH.

Key Insights and Ideas

  • Code as the Universal Verifier: The central thesis is that an LLM equipped with a code interpreter is far more reliable at solving complex tasks than one relying purely on natural language. By leveraging domain-specific libraries (like sympy for physics, QuantLib for finance, and networkx for graph theory), code execution becomes the source of truth for verification.
  • The Complexity vs. Reliability Trade-off: When scaling data generation in LOONGENV, the authors found a clear trade-off among prompting techniques. Simple Few-Shot prompting is highly stable, yielding high code execution success rates but lower problem diversity. Conversely, Evol-Instruct pushes the boundaries of complexity but results in a much higher rate of non-executable code or judge rejections.
  • Evol-Instruct Deepens Reasoning: Semantic analysis revealed that Evol-Instruct keeps generated questions close to the core concepts of the seed data (high embedding similarity) while significantly increasing the reasoning depth required to solve them, effectively capturing difficult edge cases.

Key Results

The authors benchmarked a robust suite of open-source and proprietary LLMs on LOONGBENCH, revealing several critical performance trends:

  • Well-Calibrated Difficulty: The benchmark avoids ceiling effects. While the Programming domain is nearly saturated (o3-mini achieves 100% accuracy), the Mathematical Programming domain remains highly challenging, with all tested models scoring between 6.4% and 13.2%.
  • Reasoning Models Dominate: Models explicitly optimized for multi-step reasoning consistently outperformed general LLMs. DeepSeek-r1 achieved top-2 performance in 8 out of 12 domains, while o3-mini reached top-2 in 6 out of 12.
  • The Open-Source Gap: Despite strong competition, open-source models still lag in strategy- and logic-heavy domains. For instance, Qwen3-8B trailed o3-mini by a massive 50 percentage points in the Game domain and 22 points in Logic.

Limitations and Future Work

While the framework successfully automates data generation, it currently relies on the LLM-as-a-judge paradigm to verify semantic equivalence between the agent's answer and the code output. The authors acknowledge that this can introduce biases and aim to develop more efficient, deterministic, domain-specific programmatic verifiers in the future.

Additionally, actually executing the full Reinforcement Learning (RLVR) training pipeline using these synthetically generated questions is preserved for future work. The team also plans to expand LOONGBENCH to cover multilingual and multimodal tasks.

Summary updated

BibTeX
@inproceedings{huang2025loong,
  author = {Xingyue Huang and Rishabh and Gregor Franke and Ziyi Yang and Jiamu Bai and Weijie Bai and Jinhe Bi and Zifeng Ding and Yiqun Duan and Chengyu Fan and Wendong Fan and Xin Gao and Ruohao Guo and Yuan He and Zhuangzhuang He and Xianglong Hu and Neil Johnson and Bowen Li and Fangru Lin and Siyu Lin and Tong Liu and Yunpu Ma and Hao Shen and Hao Sun and Beibei Wang and Fangyijie Wang and Hao Wang and Haoran Wang and Yang Wang and Yifeng Wang and Zhaowei Wang and Ziyang Wang and Yifan Wu and Zikai Xiao and Chengxing Xie and Fan Yang and Junxiao Yang and Qianshuo Ye and Ziyu Ye and Guangtao Zeng and Yuwen Ebony Zhang and Zeyu Zhang and Zihao Zhu and Bernard Ghanem and Philip Torr and Guohao Li},
  title = {{Loong: Synthesize Long Chain-of-Thoughts at Scale through Verifiers}},
  booktitle = {LAW @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=UjOmDs3NrR},
}
Figure