Decoding in Geometry: Alleviating Embedding-Space Crowding for Complex Reasoning
Yixin Yang, Qingxiu Dong, Zhifang Sui
TL;DR
The paper identifies embedding-space crowding as a decoding-time phenomenon where next-token probability mass concentrates among geometrically similar embeddings, and demonstrates its negative association with mathematical reasoning success. It then introduces CraEG, a training-free, geometry-guided reweighting method that downweights high-probability, highly crowded tokens in a step-adaptive manner, improving robustness and diversity without extra forward passes. Empirical results across multiple models and benchmarks (AIME, HMMT) show CraEG consistently enhances Avg@32 and Pass@8 while boosting diversity metrics, with ablations clarifying the roles of nonlinear weighting and correction strength. Overall, the work provides a practical framework for geometry-informed decoding that can be integrated with standard sampling strategies to improve complex reasoning in LLMs.
Abstract
Sampling-based decoding underlies complex reasoning in large language models (LLMs), where decoding strategies critically shape model behavior. Temperature- and truncation-based methods reshape the next-token distribution through global probability reweighting or thresholding to balance the quality-diversity tradeoff. However, they operate solely on token probabilities, ignoring fine-grained relationships among tokens in the embedding space. We uncover a novel phenomenon, embedding-space crowding, where the next-token distribution concentrates its probability mass on geometrically close tokens in the embedding space. We quantify crowding at multiple granularities and find a statistical association with reasoning success in mathematical problem solving. Motivated by this finding, we propose CraEG, a plug-and-play sampling method that mitigates crowding through geometry-guided reweighting. CraEG is training-free, single-pass, and compatible with standard sampling strategies. Experiments on multiple models and benchmarks demonstrate improved generation performance, with gains in robustness and diversity metrics.
