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

Evaluating the Safety and Skill Reasoning of Large Reasoning Models Under Compute Constraints

Adarsha Balaji, Le Chen, Rajeev Thakur, Franck Cappello, Sandeep Madireddy

TL;DR

Test-time compute scaling lets Large Reasoning Models (LRMs) "think longer" via extended chain-of-thought (CoT) tokens, but at steep computational costs and unclear safety trade-offs. This paper demonstrates that by pairing reinforcement learning–based reasoning length control with 8-bit weight quantization (GPTQ), quantized models can produce more tokens within the same wall-clock inference budget, matching the skill and safety performance of unquantized models.

What Problem Does This Paper Address?

Standard evaluations of reasoning models typically rank systems by final task accuracy without factoring in test-time computational costs (e.g., token count, latency, or FLOPs) or safety trade-offs. While generating thousands of reasoning tokens can boost math and logic benchmark scores, it dramatically inflates inference latency and cost.

Furthermore, existing LRMs fine-tuned heavily on math and coding traces often suffer in safety, leaving them vulnerable to jailbreaks. The authors address how to maintain strong reasoning performance and safety guardrails under hard compute constraints, investigating whether model quantization combined with explicit reasoning length control can provide a Pareto-optimal trade-off.

Methods

The authors investigate two primary compute-constraint strategies applied to L1-Qwen-1.5B and L1-Qwen-8B:

  1. Safety Reasoning Length Control via Reinforcement Learning:
  2. The authors extend Length Controlled Policy Optimization (LCPO).
  3. Training prompts are augmented with target reasoning budgets (e.g., "Think for n tokens", where $n \in [0, 4000]$).
  4. The policy is trained via reinforcement learning using a compound reward combining a safety reward ($r_s$, evaluated via Llama-Guard-3) and a reasoning length penalty ($r_l$).
  5. Post-Training Quantization (PTQ):
  6. The baseline and safety-tuned models are quantized using GPTQ into INT8 and INT4 weight representations while preserving activations in BF16.
  7. Compute-Constrained Evaluation Metric:
  8. Instead of looking only at token count or precision in isolation, the authors evaluate performance against the total reasoning time (inference seconds), calculated from model throughput (tokens/second) multiplied by the generated token budget.

Datasets

  • Training / Alignment:
  • SafeChain: A chain-of-thought safety dataset used with LCPO to impart safety alignment while preserving reasoning performance. Prompts were augmented with explicit length targets.
  • Skill Evaluation Benchmarks:
  • AIME 2025: 30 competition-level math problems from the American Invitational Mathematics Examination.
  • GPQA Diamond: 198 PhD-level science questions spanning Biology, Chemistry, and Physics.
  • LSAT & MATH500: Evaluated for baseline and quantized reasoning capabilities across varying token lengths.
  • Safety Evaluation Benchmark:
  • StrongReject: 60 jailbreak queries designed to test refusal robustness against adversarial attacks, scored via Llama-Guard-3-8B.

Key Insights and Ideas

  • Longer thinking recovers quantization loss: While quantizing a model degrades per-token representation quality, the higher throughput of INT8 models allows them to generate more reasoning tokens within the same wall-clock compute budget. These extra reasoning steps compensate for quantization degradation, allowing INT8 models to perform at par with BF16 baselines.
  • The INT4 cliff: 4-bit weight quantization (INT4) causes a catastrophic drop in both reasoning accuracy and safety (e.g., dropping the safe@1 score from 40% to 10% at a 512-token budget). Extended thinking cannot overcome the severe error introduced by INT4 GPTQ.
  • Safety scales with reasoning length: For safety fine-tuned models (SL1), increasing the allowed reasoning length steadily improves safety scores (safe@1). Guardrails benefit directly from deliberate test-time processing.

Key Results

  • Throughput Improvements:
  • On an A100 GPU, 8-bit quantization increased generation throughput significantly: Q8-SL-1.5B reached 69.19 tokens/s on AIME (vs. 42.11 tokens/s for full-precision BF16) and 107.33 tokens/s on StrongReject (vs. 71.60 tokens/s).
  • For the 8B model, throughput jumped from 23.18 to 37.21 tokens/s on AIME and from 31.04 to 45.10 tokens/s on StrongReject.
  • Compute Budget Parity:
  • On AIME, full-precision L1-1.5B thinking for 1024 tokens achieved roughly the same accuracy (~1% difference) as Q8-SL-1.5B thinking for 2048 tokens, while running in comparable wall-clock time.
  • On StrongReject, Q8-SL-8B reasoning for 2048 tokens achieved safety within 2% of the full-precision SL-8B model at 2048 tokens, while using 16.4% less compute time.
  • Safety Fine-Tuning Impact: Base L1 models exhibited poor out-of-the-box refusal behavior on StrongReject, but LCPO fine-tuning using SafeChain boosted safe@1 performance significantly across all evaluated token budgets (512 to 3600 tokens) with minimal degradation under INT8 quantization (only a 3–7% safety drop compared to BF16).

Limitations and Future Work

  • Quantization Scope: The study exclusively explored post-training weight-only quantization (GPTQ). It did not explore activation quantization (W8A8/W4A4) or KV-cache compression.
  • Extreme Low-Bit Degradation: The authors had to abandon INT4 models because the degradation was too severe, indicating that post-training quantization alone is insufficient for 4-bit reasoning architectures.
  • Model Scale: Evaluations were limited to 1.5B and 8B parameter models. Future research is needed to determine whether these length-versus-precision dynamics hold for 70B+ parameter models.

Summary updated

BibTeX
@inproceedings{balaji2025evaluating,
  author = {Adarsha Balaji and Le Chen and Rajeev Thakur and Franck Cappello and Sandeep Madireddy},
  title = {{Evaluating the Safety and Skill Reasoning of Large Reasoning Models Under Compute Constraints}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=fb10GLJ1Ku},
}
Figure