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, Yicheng 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 a novel framework for generating and verifying synthetic reasoning data at scale, enabling LLMs to improve their capabilities in complex domains beyond math and programming. By combining a curated dataset (LoongBench) with a flexible data generation environment (LoongEnv), Loong addresses the critical bottleneck of scarce, high-quality, and verifiable data for training advanced AI reasoning.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive reasoning abilities, especially when fine-tuned with Reinforcement Learning with Verifiable Reward (RLVR). This approach has been particularly successful in domains like mathematics and programming where correctness can be automatically checked. However, extending this success to other reasoning-intensive fields (e.g., logic, physics, finance) is hampered by a lack of high-quality, verifiable datasets and the prohibitive cost of human supervision. This creates a significant gap: how can we train LLMs to reason effectively in these complex domains without extensive manual data creation?

Methods

The Loong project tackles this problem with a two-pronged approach:

  1. LoongBench: A meticulously curated seed dataset containing 8,729 human-vetted examples across 12 diverse reasoning-intensive domains. Each example includes a natural language question, a verified answer, and crucially, executable Python code that generates the answer. This code acts as a ground truth and a verifiable reward signal.
  2. LoongEnv: A modular and extensible synthetic data generation environment. LoongEnv uses the seed data from LoongBench to generate new question-answer-code triples. It employs various prompting strategies (Few-shot, Self-Instruct, Evol-Instruct) to create diverse synthetic data. The generated code is executed to produce answers, and a "judge agent" (another LLM) verifies the correctness and quality of the generated questions and answers. This creates an agent-environment loop where LLMs can be trained using synthetically generated, verifiable data.

Datasets

  • LoongBench: A newly introduced benchmark dataset comprising 8,729 human-vetted examples across 12 reasoning-intensive domains. These domains include Advanced Math, Advanced Physics, Chemistry, Computational Biology, Finance, Game, Graph & Discrete Math, Logic, Mathematical Programming, Medicine, Security & Safety, and Programming. Each data point is paired with executable code and metadata.
  • Existing Datasets: LoongBench was constructed by curating examples from various existing high-quality sources, such as the MATH dataset, SciBench, Olympiadbench, ChemistryQA, CTF-Wiki, LeetCode, and others, adapted and verified for the Loong framework.

Key Insights and Ideas

  • Code as the Ultimate Verifier: The core idea is that executable code provides a robust, objective, and scalable way to verify answers in complex reasoning tasks, overcoming the limitations of purely natural language evaluation.
  • Synthetic Data Generation is Key: The scarcity of real-world data in many reasoning domains necessitates scalable synthetic data generation. LoongEnv provides a flexible framework for this.
  • Evol-Instruct for Deeper Reasoning: While Few-shot prompting generates lexically diverse data, Evol-Instruct, despite lower executability and higher rejection rates, produces semantically similar yet more complex and challenging questions. This type of data is hypothesized to be crucial for capturing deeper reasoning patterns and improving generalization.
  • Reasoning-Optimized Models Shine: The benchmark results clearly show that models specifically tuned for reasoning (like DeepSeek-r1 and GPT4.1-mini) significantly outperform general-purpose models, highlighting the need for structured, multi-step reasoning capabilities.

Key Results

  • Benchmarking Performance: LoongBench was used to benchmark various state-of-the-art LLMs. Reasoning-optimized models like GPT4.1-mini and DeepSeek-r1 achieved top scores across most domains, with accuracies reaching near-saturation in domains like Programming (100% for GPT4.1-mini) and showing significant challenges in Mathematical Programming (around 10-13% accuracy).
  • Synthetic Data Quality: LoongEnv demonstrated the ability to generate diverse synthetic data. Evol-Instruct, while having lower pass rates (e.g., 62.0% for GPT4.1-mini on Advanced Physics), generated questions that were significantly harder for models to solve, suggesting its value for training robust models.
  • Domain Difficulty Spectrum: LoongBench covers a wide spectrum of difficulty, from nearly saturated domains (Programming) to those with substantial unresolved complexity (Mathematical Programming), making it a valuable testbed.

Limitations and Future Work

  • LLM-as-Judge Paradigm: The current verification relies on an LLM-as-judge approach. The authors acknowledge that developing domain-specific, more efficient, and reliable verifiers (e.g., for math or programming) is a future direction.
  • False Positives: While rare, there's a possibility of false positives where both the generator and verifier might agree incorrectly.
  • Future Directions: The authors plan to leverage LoongEnv to support Reinforcement Learning with Verifiable Reward (RLVR) using synthetically generated questions. They also aim to extend LoongEnv with tool-augmented generation, formal abstraction, and 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 Yicheng 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