Papers
Topics
Authors
Recent
Search
2000 character limit reached

ScaleBox: Enabling High-Fidelity and Scalable Code Verification for Large Language Models

Published 30 Apr 2026 in cs.SE and cs.CL | (2604.27467v1)

Abstract: Code sandboxes have emerged as a critical infrastructure for advancing the coding capabilities of LLMs, providing verifiable feedback for both RL training and evaluation. However, existing systems fail to provide accurate verification and efficiency under high-concurrency workloads. We present ScaleBox, a high-fidelity and scalable system designed to address these limitations in large-scale code training. ScaleBox introduces automated special-judge generation and management, fine-grained parallel execution across test cases with seamless multi-node coordination, and a configuration-driven evaluation suite for reproducible benchmarking. A series of experiments demonstrates that ScaleBox significantly enhances code verification accuracy and efficiency. Our further RLVR experiments show that ScaleBox substantially improves both performance on LiveCodeBench and training stability, significantly outperforming heuristic-matching baselines. By providing a reliable and high-throughput infrastructure, ScaleBox facilitates more effective research and development in large-scale code training.

Summary

  • The paper proposes a novel approach that synthesizes special judges to ensure accurate verification for non-deterministic or precision-sensitive code tasks.
  • It employs a hybrid parallelism strategy with distributed containers to achieve significant throughput gains and overcome traditional serial execution bottlenecks.
  • Empirical results show improvements in reward signal fidelity and policy performance, enhancing RL training stability and code verification scalability.

SCALEBOX: High-Fidelity, Scalable Code Verification for LLMs

Motivation and Problem Statement

The proliferation of LLMs in code-related tasks has foregrounded code sandboxes as indispensable infrastructure for verifiable RL training and evaluation. However, legacy sandbox systems are fundamentally deficient in delivering both accurate and scalable verification for large-scale workloads. Relying predominantly on Exact Match (EM) or simplistic heuristics, these systems systematically misclassify correct solutions, especially for tasks with multiple valid outputs or floating-point constraints. Empirical analysis across 34,757 programming tasks demonstrates that 14.57% require specialized verification logic—so-called “special judges”—and 59.01% of their correct solutions are incorrectly rejected by EM, injecting substantial noise into RL reward signals and degrading gradient estimation and convergence.

Moreover, prior sandbox architectures impose severe computational inefficiencies, manifesting as serial execution bottlenecks and host-accelerator imbalance in multi-node deployments. Consequently, throughput and training scalability are severely impaired, forestalling reliable policy improvement in RLVR settings.

SCALEBOX Architecture and Core Innovations

SCALEBOX addresses these challenges by integrating high-fidelity verification and scalable execution within a distributed sandbox system, supporting the complete lifecycle of RLVR training:

  • Automated Special Judge Synthesis: LLM-driven classification and code synthesis pipelines systematically generate task-specific validators, enhancing reward fidelity by capturing semantic correctness for tasks with solution multiplicity or numerical tolerance. Pre-deployment robustness checks ensure judge reliability, achieving TPR ≥ 90.0% and TNR ≥ 84.0% across evaluated LLMs, with Claude-3.7-Sonnet reaching 96.3% TPR and 88.5% TNR (2604.27467).
  • Hybrid Parallelism & Distributed Deployment: SCALEBOX introduces granular parallelism at both instance and unit test levels, orchestrated via an NGINX-based load balancer and Dockerized worker clusters. Real-time resource allocation and monitoring via web-based dashboard enable horizontal scaling, leveraging idle CPU resources for maximized throughput.
  • Configuration-Driven Benchmark Evaluation: One-click workflows standardize evaluation across major code benchmarks (LiveCodeBench, HumanEval, AetherCode), ensuring reproducible performance measurement under diverse code and RL settings.
  • Short-Circuit Verification Strategy: Special judges are invoked only when EM fails, maintaining efficiency by avoiding unnecessary computational overhead except on non-deterministic or precision-sensitive tasks.

Empirical Results and Quantitative Impact

SCALEBOX consistently demonstrates superior accuracy and throughput relative to strong baselines:

  • Verification Fidelity: On AetherCode, SCALEBOX's synthesized special judges achieve >84% per-solution precision, substantially improving evaluation integrity for complex programming problems.
  • Efficiency Scaling: Through efficiency benchmarking on 8,192 PrimeIntellect Python problems, SCALEBOX delivers a single-node throughput of 39.31 tasks/s (1.59× over verl, 2.63× over SandboxFusion) and scales to 62.1 tasks/s on 3 nodes. This architecture directly addresses serial bottlenecks and host-accelerator imbalance, critical for large-scale RL training.
  • RL Training Performance: Incorporating high-fidelity reward signals via special judges yields +5.91% Pass@1 improvement on LiveCodeBench-v5 for the 1.2K special judge subset. Even with SPJ cases constituting only ~10% of the full dataset, overall policy performance improves (+1.91% LCB-v6). Enhanced reward signals reduce variance in credit assignment and yield more stable convergence, as evidenced by superior reward trajectories and Pass@1 accuracy throughout RLVR training.

Theoretical and Practical Implications

SCALEBOX fundamentally redefines verification infrastructure for code-centric LLM RL training by:

  • Mitigating Reward Noise: Reliable special judge evaluation resolves noisy EM failures, ensuring dense and accurate reward signals for credit assignment.
  • Enabling Robust Policy Improvement: Accurate verification of complex, non-deterministic tasks translates to disproportionate benefits for policy generalization, even on standard coding challenges.
  • Unlocking Large-Scale RLVR: The scalable architecture overcomes operational bottlenecks, facilitating RL training at volume and velocity heretofore unattainable with legacy sandboxes.
  • Foundation for Autonomous Code Agents: Beyond code training and evaluation, the infrastructure is adaptable to advanced applications in automated software engineering and multi-turn autonomous problem-solving, providing a robust backbone for future agentic code intelligence.

Limitations and Future Directions

While SCALEBOX achieves both fidelity and scalability for specific model scales and benchmark settings, its evaluation is currently concentrated on Python-centric datasets and select LLM architectures. Future research will extend coverage to multilingual and broader agentic tasks, exploring adaptation to multi-turn reasoning, collaborative coding agents, and software engineering pipelines. Systemic exploration of reward signal diversity and verification reliability in diverse coding domains will further enhance its utility.

Conclusion

SCALEBOX provides a robust, scalable, and high-fidelity infrastructure for LLM code verification and RLVR training, achieving demonstrable gains in reward accuracy, training stability, and throughput. Automated special judge synthesis and distributed execution architectures enable rigorous and efficient assessment of complex programming tasks, delivering critical improvements for both practical benchmarking and theoretical advancement in autonomous code generation and reasoning (2604.27467).

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.