paper-with-me

홈 › Papers

Z1: Efficient Test-time Scaling with Code

2025-04-01 · Zhaojian Yu, Yinghao Wu, Yilun Zhao, Arman Cohan, Xiao-Ping Zhang

Large Language Models (LLMs) can achieve enhanced complex problem-solving through test-time computing scaling, yet this often entails longer contexts and numerous reasoning token costs. In this paper, we propose an efficient test-time scaling method that trains LLMs on code-related reasoning trajectories, facilitating their reduction of excess thinking tokens while maintaining performance. First, we create Z1-Code-Reasoning-107K, a curated dataset of simple and complex coding problems paired with their short and long solution trajectories. Second, we present a novel Shifted Thinking Window to mitigate overthinking overhead by removing context-delimiting tags (e.g., <think>. . . </think>) and capping reasoning tokens. Trained with long and short trajectory data and equipped with Shifted Thinking Window, our model, Z1-7B, demonstrates the ability to adjust its reasoning level as the complexity of problems and exhibits efficient test-time scaling across different reasoning tasks that matches R1-Distill-Qwen-7B performance with about 30% of its average thinking tokens. Notably, fine-tuned with only code trajectories, Z1-7B demonstrates generalization to broader reasoning tasks (47.5% on GPQA Diamond). Our analysis of efficient reasoning elicitation also provides valuable insights for future research.

📄 PDF Abstract BibTeX arXiv:2504.00810

Code (1)

efficientscaling/z1 공식 구현

Similar Papers 제목 키워드 기반

Code Generation by Differential Test Time Scaling

2026-05-19 · Yifeng He, Ethan Wang, Jicheng Wang, Xuanxin Ouyang 외 arxiv

Test-time scaling has emerged as a promising approach for improving code generation by exploring large solution spaces at inference time. However, existing methods often rely on public test cases that are unavailable in …

Code Generation

CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Models

2026-02-04 · Xiao Zhu, Xinyu Zhou, Boyu Zhu, Hanxu Hu 외 arxiv

Reinforcement Learning from Verifiable Rewards (RLVR) has driven recent progress in code large language models by leveraging execution-based feedback from unit tests, but its scalability is fundamentally constrained by t…

Reinforcement LearningCode Generation

CodeMonkeys: Scaling Test-Time Compute for Software Engineering

2025-01-24 · Ryan Ehrlich, Bradley Brown, Jordan Juravsky, Ronald Clark 외

Scaling test-time compute is a promising axis for improving LLM capabilities. However, test-time compute can be scaled in a variety of ways, and effectively combining different approaches remains an active area of resear…

Exploring Test-time Scaling via Prediction Merging on Large-Scale Recommendation

2025-12-08 · Fuyuan Lyu, Zhentai Chen, Jingyan Jiang, Lingjie Li 외 arxiv

Inspired by the success of language models (LM), scaling up deep learning recommendation systems (DLRS) has become a recent trend in the community. All previous methods tend to scale up the model parameters during traini…

Recommendation Systems

ATTS: Asynchronous Test-Time Scaling via Conformal Prediction

2025-09-18 · Jing Xiong, Qiujiang Chen, Fanghua Ye, Zhongwei Wan 외 arxiv

Large language models (LLMs) benefit from test-time scaling but are often hampered by high inference latency. Speculative decoding is a natural way to accelerate the scaling process; however, scaling along both the paral…

Ordinal Classification