Representation-Based Exploration for Language Models: From Test-Time to Post-Training

Jens Tuyls, Dylan J Foster, Akshay Krishnamurthy, Jordan T. Ash

Current reinforcement learning (RL) techniques for large language models (LLMs) often fall into a trap: rather than discovering truly new reasoning paths, they simply "sharpen" existing behaviors. This makes the model more confident in what it already knows but limits its ability to solve novel, complex problems.

To address this, researchers have introduced RepExp (Representation-Based Exploration), a method that uses a model's own internal hidden representations to drive deliberate exploration. By explicitly incentivizing the model to try diverse strategies, RepExp achieves up to a 13x improvement in sample efficiency and uncovers novel solutions that standard RL misses.

The Problem: Diversity Collapse in RL

When training LLMs using RL (similar to the techniques behind OpenAI’s o1 or DeepSeek-R1), models are typically rewarded for generating the correct answer. However, if a base model only has a 1% chance of stumbling upon the correct solution to a hard math problem, standard RL struggles to find enough "positive" examples to learn from.

Consequently, most current RL recipes take the few correct paths the model already knows and make them more likely. This leads to diversity collapse, where the model becomes a "one-trick pony." For LLMs to truly reason, they need deliberate exploration—an explicit incentive to try diverse, novel strategies during both training and inference.

The Solution: RepExp

RepExp shifts the focus from the final generated text to the model's internal "thought process." It uses the model's hidden states to measure how "novel" a particular response is.

Overview of the RepExp method, which uses hidden state representations and an elliptic bonus to select diverse, novel responses.

The methodology breaks down into three core components:

  1. The Representation: Instead of relying on raw text (which can be brittle), RepExp extracts the last-layer hidden states for every token in a generated response and averages them. A sparse random projection is used to reduce these high-dimensional vectors efficiently.
  2. The Elliptic Bonus: Borrowing from "bandit" theory, the system maintains a covariance matrix of all previously seen responses. For a new response, its novelty is calculated against this matrix. A high value indicates the response is semantically "far" from prior attempts.
  3. Dual Applications:
  4. Inference-Time Selection: Given a large pool of possible answers, RepExp selects a diverse subset to send to a verifier, vastly improving efficiency over random selection.
  5. RL Post-Training: The novelty bonus is integrated directly into the RL reward (using the GRPO algorithm). The model is rewarded not just for being correct, but for being correct in a new way.

Key Insights

  • Representations > Text: Measuring diversity based on n-grams is flawed because two different mathematical approaches might use similar wording. Hidden states capture the underlying "semantic" strategy.
  • Anti-Sharpening: While standard RL shifts the model's output toward high-likelihood, "safe" responses, RepExp pushes the model toward responses that were initially unlikely under the base model but are still correct.
  • The "Rich Get Richer": Stronger models (like Qwen-32B) benefit more from RepExp than weaker ones. As models get smarter, their internal representations become better guides for where to explore next.
  • Harder is Better: Performance gains are most dramatic on the hardest questions, where stumbling onto the right answer by chance is nearly impossible.

Performance and Results

The researchers evaluated RepExp across reasoning-heavy benchmarks, including MATH, GSM8K, AIME 2024/2025, MBPP+ (coding), Game-of-24, and even protein sequence generation.

Pass@k performance on MATH, GSM8K, and AIME 2024, demonstrating RepExp's significant sample efficiency gains over standard GRPO.

The results highlight massive efficiency gains. In RL post-training on the AIME 2024 benchmark, RepExp was 3.2x more sample-efficient than standard GRPO, and up to 13.4x more efficient on GSM8K. Essentially, RepExp achieved with 80 samples what standard RL needed 256 samples to reach.

Furthermore, RepExp eliminates diversity collapse. While standard RL often sees performance drop when sampling many responses (due to repetition), RepExp's performance continues to scale upward. In cross-domain applications like protein design, RepExp improved verifier efficiency by a staggering 35.9x, showcasing its potential for scientific discovery where verification is expensive.

Limitations and Future Work

While powerful, RepExp does introduce computational overhead. Calculating the representation for every response requires an extra forward pass, increasing wall-clock training time by about 37% (though this could be optimized in the future). Additionally, the current study focuses on tasks with verifiable "ground truths" (like math and code). Future work will need to explore how well this representation-based exploration translates to open-ended tasks like creative writing or general chat, where rewards are highly subjective.

Summary updated

BibTeX
@inproceedings{tuyls2026representation,
  author = {Jens Tuyls and Dylan J Foster and Akshay Krishnamurthy and Jordan T. Ash},
  title = {{Representation-Based Exploration for Language Models: From Test-Time to Post-Training}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=S4PCF1YxoR},
}
Figure