Preference optimization improves mathematical reasoning in large language models (LLMs), yet building reliable preference pairs typically requires costly external supervision. We investigate whether preference supervision can instead be derived from a model's internal representation geometry in a semi-supervised setting. Across distinct math problems, reasoning trajectories form global point clouds in which correct solutions cluster more densely and merge into connected components at smaller distance scales than incorrect ones. Leveraging this structure, we propose Cloud-guided Semi-supervised Preference Optimization (CSPO). From a small labeled set, CSPO embeds verified correct and incorrect rollouts by the normalized mean of their final-layer response-token hidden states and samples multiple pairs of correct and incorrect reference clouds. To mine preference pairs on a much larger unlabeled set, CSPO samples multiple rollouts per unlabeled problem and scores each one against these labeled reference clouds, contrasting its soft k-nearest-neighbor proximity to early connected components in the correct versus incorrect clouds. For each unlabeled problem, majority voting over sampled answers selects the preferred and rejected answers, while the cloud score chooses the highest-scoring majority trajectory and lowest-scoring minority trajectory and retains only pairs with the largest score gap. Across four model settings on GSM8K and MATH-Numeric, CSPO outperforms strong semi-supervised baselines by up to 4.49 and 4.19 percentage points, respectively, using far fewer pairs than an external reward model. Pair-level diagnostics confirm that CSPO preserves correctness reliability while more cleanly separating well-formed chosen trajectories from incomplete, repetitive, or corrupted rejections.
翻译:暂无翻译