Towards Interpretable and Inference-Optimal COT Reasoning with Sparse Autoencoder-Guided Generation
Preprint
Abstract
We propose a novel method that leverages sparse autoencoders (SAEs) and clustering techniques to analyze the internal token representations of large language models (LLMs) and guide generations in mathematical reasoning tasks. Our approach first trains an SAE to generate sparse vector representations for training tokens, then applies k-means clustering to construct a graph where vertices represent token clusters and weighted edges capture sequential token transitions. Using this graph, we define an edge-weight based reward function to quantify adherence to established reasoning traces, thereby identifying exploitative reasoning trajectories. Additionally, we measure generation diversity from clustering to assess the extent of exploration. Our findings indicate that balancing both exploitation and exploration is crucial for achieving high accuracy in mathematical reasoning tasks. During generation, the SAE can serve as a scalable reward model to guide generations, ensuring a balanced trade-off between exploitation and exploration. This prevents extreme behaviors in either direction, ultimately fostering a higher-quality reasoning process in LLMs.Keywords
All Related Versions
This publication has 7 references indexed in Scilit:
- Latent Feature Activation Steering for Enhancing Semantic Consistency in Large Language Models2025
- Chain-of-Thought Reasoning Without Prompting2024
- Back to Basics: Revisiting REINFORCE-Style Optimization for Learning from Human Feedback in LLMs2024
- Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Future2024
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model2023
- Self-Refine: Iterative Refinement with Self-Feedback2023
- Enhancing Chat Language Models by Scaling High-quality Instructional Conversations2023