TL;DR
Reasoning language models are brilliant problem-solvers, but they tend to ramble—burning through GPU memory and blowing past latency budgets with massive chains of thought. This paper introduces Low-Rank Hierarchical Merging (LHM), a training-free technique that blends a verbose reasoning model with a concise base model using the mathematical "curvature" of the loss landscape as a guide. The result? Models that solve hard math problems with higher accuracy than existing merging methods while cutting token output by up to 93%.
What Problem Does This Paper Address?
Large Reasoning Models (like DeepSeek-R1) achieve incredible accuracy by thinking out loud via long Chain-of-Thought (CoT) traces. However, inference cost scales linearly with generated tokens, making this verbosity an expensive engineering bottleneck.
How do we get these models to get to the point? Prompting them to "be brief" breaks down on complex tasks, and retraining them with length penalties is expensive. A clever, zero-cost alternative is Long-to-Short (L2S) model merging: taking the weights of a concise base model and blending them with the weights of a verbose reasoning model.
Unfortunately, naive linear averaging of weights often tanks accuracy by over 10 percentage points because a straight-line path between two models in parameter space can cut right across high-loss "mountains." Newer methods try to merge each transformer layer differently based on neuron activations (first-order statistics), but activations don't actually tell you how sensitive the model's loss is to weight changes. To know which layers are fragile and which can be safely compressed, you need second-order curvature information—the Hessian.
Methods
Computing the exact Hessian (a matrix of second derivatives measuring how sharply the loss curves) for a multi-billion-parameter LLM is computationally impossible; a single $4096 \times 4096$ layer would yield $2.8 \times 10^{13}$ entries. LHM bypasses this bottleneck with a lightweight, three-step pipeline:
- Low-Rank Hessian Approximation: Instead of building the whole Hessian matrix, LHM only estimates its trace (the sum of its diagonal, representing average curvature across all directions). Using a classic math trick called Hutchinson’s stochastic trace estimator, it probes each layer with just $k=16$ random vectors of $+1$s and $-1$s (Rademacher vectors) fed on completely random token sequences. Two quick backpropagation passes per vector estimate the curvature of an entire 7B model in under 40 seconds on a single A100 GPU.
- Layer Second-Order Sensitivity (LSOS) Index: High curvature alone doesn't mean merging a layer is dangerous—if the reasoning model barely changed that layer's weights, merging won't disrupt anything. Grounded in a second-order Taylor expansion, the authors multiply each layer's estimated Hessian trace by the squared $\ell_2$ norm of its task vector (the weight difference $\delta = \theta_{\text{reasoning}} - \theta_{\text{base}}$). This unified score captures both how steep the terrain is and how far we are stepping.
- Dual-Constraint Coefficient Mapping (DCCM): Finally, LHM normalizes these LSOS scores and maps them via a closed-form affine transform into layer-specific merge weights ($\lambda_l$). Sensitive layers get higher weights to protect reasoning accuracy, while less sensitive layers are pulled toward the base model to enforce a user-specified global target ($\bar{\lambda}$) for length reduction.
Datasets
Because LHM is training-free and estimates curvature using random uniform token sequences, no task-specific training or calibration data is needed for the sensitivity estimation itself.
- Validation: A tiny 64-sample split of GSM8K is used solely to pick the global target knob $\bar{\lambda}$ via a quick grid search over four values.
- Evaluation: Six existing mathematical reasoning benchmarks spanning elementary arithmetic to Olympiad-level competition math: GSM8K, MATH500, Minerva Math, OlympiadBench, CollegeMath, and AIME24. No new benchmarks are introduced.
Key Insights and Ideas
- Random noise reveals intrinsic architecture: You don't need curated math problems to figure out which layers of a transformer are structurally sensitive. Probing the network with random vocabulary tokens decouples curvature from dataset bias and hits $<2\%$ relative error compared to ground truth at rank $k=16$ ($174\times$ faster than full finite-difference baselines).
- Reasoning lives at the bookends: Plotting LSOS across DeepSeek-R1-Distill-Qwen-7B reveals a striking U-shaped curve (see Figure 2 above). Sensitivity peaks sharply in the very first (input-adjacent) and very last (output-adjacent) transformer layers, while middle layers are remarkably tolerant to compression.
- Curvature needs displacement: In ablation studies, adding the task-vector norm to the Hessian trace (creating the LSOS index) yielded the single largest jump in accuracy (+2.7 percentage points), proving that neither weight magnitude nor landscape curvature tells the whole story alone.
Key Results
Tested on 1.5B and 7B Qwen2.5-Math base models paired with DeepSeek-R1-Distill reasoning counterparts, LHM establishes a new Pareto frontier (see Figure 1 above):
- 1.5B Scale: Paired with the AIM merging baseline, LHM-AIM achieves 48.8% average accuracy—beating the unmerged reasoning model itself (47.3%), outperforming ORCA-AIM by 3.2 points, and beating ACM-TIES by 4.2 points. Simultaneously, it slashes average response length by 59.7% (from 5,276 down to 2,126 tokens). Dialing down $\bar{\lambda}$ achieves up to 93.1% length reduction while maintaining base-model-level accuracy.
- 7B Scale: LHM-AIM reaches 76.9% average accuracy (beating the unmerged R1-7B's 75.2% and ORCA-AIM's 75.1%) while cutting output length from 3,244 tokens down to 1,247 tokens (~61.6% reduction over R1-7B).
Limitations and Future Work
Not discussed in the paper. (Note: Within the provided main text, the authors do not include a dedicated section discussing limitations or future research directions, though they do note an analytical assumption in Section 3.3—the isotropy approximation—which assumes post-training weight changes aren't heavily aligned with single dominant Hessian eigenvectors, and mention that setting the bandwidth hyperparameter $\alpha$ too high can over-suppress low-sensitivity layers).
Summary updated