Abstract
Aligning Large Language Models (LLMs) typically requires expensive human feedback or brittle reward models. This paper introduces SR-GRPO, a method that uses stable rank—a measure of the effective dimensionality of a model's internal hidden states—as an unsupervised, annotation-free reward signal. By optimizing for representational richness rather than external labels, SR-GRPO achieves significant performance gains in reasoning and STEM tasks, often outperforming traditional supervised reward models and "LLM-as-a-judge" baselines.
The Challenge of External Supervision
Reinforcement Learning from Human Feedback (RLHF) is the standard for LLM alignment but faces a major bottleneck: external supervision is costly, scarce, and prone to "reward hacking." Models often exploit mathematical shortcuts, such as excessive verbosity, to achieve high scores without improving actual quality. Even self-evaluation methods suffer from prompt sensitivity and systematic biases. SR-GRPO addresses this by asking: can we measure response quality directly from the model's internal hidden states without any external labels?
Stable Rank as a Geometric Reward
The core innovation is the use of Stable Rank (SR) as an intrinsic geometric reward. Derived from matrix theory, SR measures the "effective dimensionality" of the hidden state matrix $H$:
$$SR(H) = \frac{\|H\|_F^2}{\|H\|_2^2}$$
High SR indicates information spread across many semantic dimensions, representing rich and coherent content. Conversely, low SR signals "representation collapse," often associated with hallucinations or repetitive loops.
SR-GRPO integrates this metric into Group Relative Policy Optimization (GRPO). Instead of a separate reward model, the algorithm samples a group of responses and uses their relative stable rank as the advantage signal. To prevent the training policy from "hacking" its own geometry, SR is computed using a frozen reference model.
Visualizing the Semantic Manifold
The researchers found that high-quality text is reflected in a high-dimensional "semantic manifold" within the model. When a model produces repetitive or low-quality output, its internal representation collapses into a narrow cone.
Analysis shows that quality signals emerge sharply in the final layers of the transformer, suggesting that semantic abstraction is a late-stage process. Notably, stable rank correlates negatively with token count but positively with information density, effectively penalizing verbosity and rewarding concise, information-rich responses.
Experimental Results
The approach was evaluated across benchmarks including GPQA, MMLU-redux, MATH500, and RewardBench. Using zero preference labels during training, SR-GRPO demonstrated remarkable efficacy:
- Reward Proxy Accuracy: Stable rank achieved 84.04% accuracy on RewardBench (using Qwen3-8B), matching or exceeding "LLM-as-a-judge" baselines.
- Reasoning Improvements: For Qwen2.5-1.5B-Instruct, SR-GRPO improved STEM task performance by 10% and mathematical reasoning by 19%.
- Best-of-N Sampling: Using SR to select the best of 16 samples improved task accuracy by an average of 11.3 percentage points over greedy decoding.
Limitations and Future Directions
While powerful, SR-GRPO has limitations. Its accuracy degrades for very short responses (under 128 tokens) due to insufficient geometric data. Additionally, while excellent for reasoning, its ability to capture subjective stylistic preferences (like empathy) remains to be fully explored. Future work may investigate other geometric properties of the residual stream and scale the approach to larger models.
Summary updated