StaRPO: Stability-Augmented Reinforcement Policy Optimization

Jinghan Zhang, Fengran Mo, Tharindu Cyril Weerasooriya, Ruimin Dai, Xiaoyan Han, Yanjie Fu, Dakuo Wang, Kunpeng Liu

TL;DR

Reinforcement learning for LLMs typically rewards only final answer correctness, leading to fluent but logically broken intermediate reasoning paths. StaRPO fixes this by introducing two lightweight, embedding-level metrics—Autocorrelation Function (ACF) and Path Efficiency (PE)—to reward local coherence and global progression, significantly boosting both reasoning process quality and final accuracy.

What Problem Does This Paper Address?

Large Language Models (LLMs) excel at generating fluent text, but when tackling complex, multi-step reasoning tasks, they often suffer from structural logic flaws. When optimized using standard Reinforcement Learning (RL) frameworks like Group Relative Policy Optimization (GRPO), the model is typically penalized or rewarded based solely on the final answer.

This creates a loophole: a model can take a wildly erratic path, make massive logical leaps, drift completely off-topic, or loop redundantly, yet stumble into the correct answer by chance.

Figure 1: Example of three types of logical errors.

Detecting these errors usually requires expensive "LLM-as-a-judge" setups or auxiliary verifier models, which are computationally heavy and difficult to scale during training. StaRPO aims to find a lightweight, mathematical proxy for logical stability directly within the model's internal representation space.

Methods

The authors propose StaRPO (Stability-Augmented Reinforcement Policy Optimization), which maps out a "Logical-Stable Space" within the token generation space.

Figure 2: Logical-stable space in token generation space for a rea- soning trajectory. From a query x, the LLM generates a sequence of token-level transitions targeting the correct answer region A step- by-step. Incorrect logic may result in three types of errors.

Instead of prompting an external LLM to grade the logic of intermediate steps, StaRPO tracks the geometric trajectory of the model's hidden states across reasoning steps ($K$ steps). It introduces two core metrics:

  1. Stepwise Autocorrelation Function (ACF): Evaluates local stability. It measures the cosine similarity between consecutive step-level embedding changes ($\Delta h_k$). A stable argument moves consistently; sudden reversals or near-identical repetitions signal logical leaps or loops.
  2. Path Efficiency (PE): Evaluates global stability. It calculates the ratio of net displacement (start-to-end distance) to the total path length. A straight, goal-directed trajectory approaches 1, while wandering or looping approaches 0.

These metrics are converted into dense rewards and integrated directly into the GRPO objective function, balancing task success with process stability.

Datasets

The framework was evaluated on four prominent reasoning benchmarks:

  • GSM8K: Grade-school math word problems testing multi-step arithmetic.
  • MATH: Competition-level math problems.
  • GPQA-Diamond: High-difficulty, PhD-level science questions.
  • AIME24: American Invitational Mathematics Examination problems.

Additionally, the Game of 24 task was used to validate the correlation between the proposed metrics and actual logical errors because its reasoning process is highly transparent.

Key Insights and Ideas

  • Logic has a geometric signature: Abstract logical flaws like repetition loops or logical leaps correspond directly to measurable geometric anomalies (like turning angles and path inefficiencies) in the model's internal embedding space.
  • Process accuracy drives final accuracy: Better reasoning paths aren't just nicer to read; they actively prevent the model from getting lost in complex, knowledge-intensive tasks like GPQA.
  • Local and global signals are complementary: Local step-to-step consistency (ACF) prevents sudden erratic jumps, while global efficiency (PE) keeps the model moving toward the finish line rather than running in circles.

Key Results

StaRPO was tested using Qwen2.5-1.5B and 7B-Instruct models, consistently outperforming standard GRPO and other process-aware baselines (like CPPO and $\lambda$-GRPO).

  • Process Accuracy Boost: On the Qwen-1.5B model, StaRPO improved process accuracy on GPQA by +11.62% compared to standard GRPO.
  • Overall Performance: Across all tasks, StaRPO achieved the best or second-best results in both final answer accuracy and process correctness, showing an average process accuracy improvement of +6.14% on the 1.5B model.
Figure 4: Ablation studies with result and process accuracy across different model variants on two datasets.

Ablation studies confirmed that removing either the ACF or PE reward component resulted in a noticeable drop in performance, proving that both local and global constraints are necessary.

Limitations and Future Work

  • Empirical Thresholds: The initial abnormality thresholds for ACF and PE must be empirically estimated using the first 100 trajectories of each benchmark, which might vary across highly diverse tasks.
  • Coarse Semantic Proxies: While embedding-level proxies are lightweight and efficient, they may not capture highly nuanced, domain-specific factual errors that don't disrupt the geometric trajectory.
  • Future Directions: The authors suggest exploring adaptive thresholding or extending this geometric trajectory analysis to multi-modal reasoning tasks.

Summary updated

BibTeX
@inproceedings{zhang2026starpo,
  author = {Jinghan Zhang and Fengran Mo and Tharindu Cyril Weerasooriya and Ruimin Dai and Xiaoyan Han and Yanjie Fu and Dakuo Wang and Kunpeng Liu},
  title = {{StaRPO: Stability-Augmented Reinforcement Policy Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aklS0AbZVw},
}
Figure