HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-BENCH
Yueyang Wang, Jiawei Fu, Baolong Bi, Xili Wang, Xiaoqing Liu
TL;DR
The paper tackles the challenge of guiding mid-training for SWE-focused LLMs by identifying the inadequacy of perplexity under the Long-Context Tax and proposing an entropy-centric framework. Grounded in the Entropy Compression Hypothesis, it introduces HE-SNR, a metric that concentrates on high-entropy decision points within a carefully filtered action space, and demonstrates a strong, linear relationship between HE-SNR (and HE-PPL) and downstream SWE-bench performance across large MoE models and extended context windows. It reveals that SFT can incur an Alignment Tax, degrading high-entropy predictive signals even as global PPL improves, and provides data-efficient evaluation protocols using 500 trajectories. The work offers practical tools and theoretical insight for steering mid-training toward latent reasoning capabilities in complex software engineering tasks, with potential implications for efficiency and ecological impact. Overall, HE-SNR emerges as a robust, interpretable proxy for latent SWE potential, enabling more effective mid-training optimization and highlighting the nuanced trade-offs of alignment processes.
Abstract
SWE-bench has emerged as the premier benchmark for evaluating Large Language Models on complex software engineering tasks. While these capabilities are fundamentally acquired during the mid-training phase and subsequently elicited during Supervised Fine-Tuning (SFT), there remains a critical deficit in metrics capable of guiding mid-training effectively. Standard metrics such as Perplexity (PPL) are compromised by the "Long-Context Tax" and exhibit weak correlation with downstream SWE performance. In this paper, we bridge this gap by first introducing a rigorous data filtering strategy. Crucially, we propose the Entropy Compression Hypothesis, redefining intelligence not by scalar Top-1 compression, but by the capacity to structure uncertainty into Entropy-Compressed States of low orders ("reasonable hesitation"). Grounded in this fine-grained entropy analysis, we formulate a novel metric, HE-SNR (High-Entropy Signal-to-Noise Ratio). Validated on industrial-scale Mixture-of-Experts (MoE) models across varying context windows (32K/128K), our approach demonstrates superior robustness and predictive power. This work provides both the theoretical foundation and practical tools for optimizing the latent potential of LLMs in complex engineering domains.
