HyperAIHyperAI

Command Palette

Search for a command to run...

Recâblage spectral pour l'exploration, la purification et la fusion de modèles

Zhilong Zhang Hongli Yu Huan-ang Gao Hanlin Wu Yuxuan Song Wei-Ying Ma Ya-Qin Zhang Hao Zhou

Résumé

L'apprentissage par renforcement est devenu une recette standard de post-entraînement pour les grands modèles de langue, mais les mises à jour denses de tous les paramètres créent deux goulots d'étranglement pertinents pour le déploiement : une performance de raisonnement supprimée, souvent reflétée par une saturation prématurée de la mise à l'échelle en temps de test, et des interférences lors de la consolidation de multiples capacités par un entraînement multi-domaine ou une fusion de modèles. Nous montrons que la composante efficace pour le raisonnement de ces mises à jour est largement concentrée dans l'espace spectral du modèle de base, ce qui motive le Subspace-Aligned Rewiring (SAR), une méthode d'édition post-hoc qui conserve ce noyau spectral tout en supprimant les composantes orthogonales. SAR préserve ainsi les gains de raisonnement et filtre les directions de mise à jour résiduelles qui suppriment les performances ou amplifient les interférences inter-domaines. À travers plusieurs familles et échelles de modèles, SAR extrait des noyaux de raisonnement compacts en utilisant aussi peu que ∼0,58 % du total des paramètres : il préserve plus de 99 % des performances post-entraînement et améliore l'exploration à haut k en raisonnement mathématique, et se généralise au codage agentique en améliorant six des sept benchmarks ouverts sur un modèle interne. SAR purifie également les mises à jour d'entraînement multi-domaine en libérant la capacité de codage supprimée tout en maintenant le raisonnement mathématique et le suivi d'instructions. Il permet en outre la fusion de modèles entre experts, produisant une généralisation inter-domaines qui surpasse les références de fusion précédentes et même les meilleurs experts mono-domaine. Dans l'ensemble, SAR montre que l'extraction de mises à jour efficaces pour le raisonnement à partir de la géométrie des paramètres peut servir de mécanisme sans entraînement pour améliorer le raisonnement et les performances multi-domaines.

One-sentence Summary

Researchers from Tsinghua University’s Institute for AI Industry Research (AIR) and ByteDance Seed propose Subspace-Aligned Rewiring (SAR), a post-hoc editing method that extracts a compact reasoning-effective spectral core from reinforcement learning updates, preserving over 99% of performance with 0.58%\sim 0.58\%0.58% of parameters while improving exploration, purifying cross-domain interference, and enabling superior model merging.

Key Contributions

  • Subspace-Aligned Rewiring (SAR) extracts compact reasoning cores from RL updates by projecting them into the base model's spectral space, preserving over 99% of math performance with as little as 0.58% of parameters and improving six of seven agentic coding benchmarks.
  • SAR improves high-k exploration, surpassing full-parameter RL in Pass@k scaling, and in mixed-domain RL it purifies updates to release suppressed coding capability while maintaining math reasoning and instruction following.
  • SAR enables model merging across math and code experts, producing merged models that outperform the best single-domain experts and previous merging baselines on both AIME and LiveCodeBench at multiple scales.

Introduction

Reinforcement learning (RL) post-training has become a key method for improving large language models on tasks like math, coding, and agentic workflows by optimizing against task-level feedback. However, the black-box nature of full-parameter RL provides limited control over the induced parameter changes, leading to two practical bottlenecks: reward optimization can narrow the policy to a small set of high-reward trajectories, suppressing exploration and test-time scaling, and updates from multiple domains can interfere destructively in parameter space, causing cross-domain performance trade-offs. The authors address these issues by proposing a geometric perspective in which the base model's singular value decomposition (SVD) defines a coordinate system of pretrained "atomic skills." They show that RL primarily reconnects these skills through a compact, non-diagonal rewiring matrix rather than arbitrary parameter drift. This insight yields Subspace-Aligned Rewiring (SAR), a post-hoc editing method that projects dense RL updates onto the base model's spectral manifold, enabling extraction of a compact reasoning-effective component, purification of multi-domain updates to reduce interference, and improved expert model merging.

Method

The authors introduce a geometric framework to understand and extract reasoning capabilities elicited by outcome-reward reinforcement learning (RL) from a pretrained model. The core idea is that the reasoning-effective part of an RL update resides within the pretrained model's spectral subspace, and can be isolated via a projection-based algorithm called Subspace-Aligned Rewiring (SAR).

The framework begins by analyzing a linear layer's weight matrix W0Rdout×dinW_0 \in \mathbb{R}^{d_{\text{out}} \times d_{\text{in}}}W0Rdout×din via singular value decomposition (SVD):

ybase=W0x=UΣVx=i=1rσiui(vix)y_{\text{base}} = W_0 x = U \Sigma V^\top x = \sum_{i=1}^r \sigma_i u_i (v_i^\top x)ybase=W0x=UΣVx=i=1rσiui(vix)

Here, the right singular vectors viv_ivi act as feature detectors (information read-in), and the left singular vectors uiu_iui define output directions (information read-out), scaled by singular values σi\sigma_iσi. The authors argue that the pretrained model's functional capacity is concentrated in the principal spectral manifold Sr(W0)=span(UV)\mathcal{S}_r(W_0) = \operatorname{span}(U \otimes V)Sr(W0)=span(UV), which serves as a coordinate system of latent skills.

When a model is fine-tuned with outcome-reward RL, the resulting weight matrix WRLW_{\text{RL}}WRL yields an update ΔW=WRLW0\Delta W = W_{\text{RL}} - W_0ΔW=WRLW0. The central hypothesis is that the reasoning-relevant component of this update can be recovered by projecting ΔW\Delta WΔW onto the pretrained spectral subspace. The update is decomposed as ΔW=ΔW+ΔW\Delta W = \Delta W^* + \Delta W_\perpΔW=ΔW+ΔW, where ΔW\Delta W^*ΔW is the subspace-aligned component and ΔW\Delta W_\perpΔW is the residual outside the manifold. Using projection operators PU=UUP_U = U U^\topPU=UU and PV=VVP_V = V V^\topPV=VV, the reasoning-effective update is extracted as:

ΔW=PUΔWPV=U(UΔWV)V=UMV\Delta W^* = P_U \Delta W P_V = U (U^\top \Delta W V) V^\top = U M V^\topΔW=PUΔWPV=U(UΔWV)V=UMV

The matrix M=UΔWVRr×rM = U^\top \Delta W V \in \mathbb{R}^{r \times r}M=UΔWVRr×r is called the Rewiring Matrix. Unlike the original diagonal Σ\SigmaΣ, MMM is generally dense, capturing cross-dimensional interactions between pretrained singular vectors. In practice, the method first extracts a low-rank approximation of ΔW\Delta WΔW and then projects it onto the SVD subspace, combining parameter compression with spectral alignment.

The rewired forward pass becomes W=W0+ΔW=U(Σ+M)VW^* = W_0 + \Delta W^* = U(\Sigma + M)V^\topW=W0+ΔW=U(Σ+M)V, leading to:

yrewired=i=1r[(σi+Mii)(vix)Rescaling+jiMij(vjx)Rewiring]uiy_{\text{rewired}} = \sum_{i=1}^r \left[ \underbrace{(\sigma_i + M_{ii})(v_i^\top x)}_{\text{Rescaling}} + \underbrace{\sum_{j \neq i} M_{ij}(v_j^\top x)}_{\text{Rewiring}} \right] u_iyrewired=i=1rRescaling(σi+Mii)(vix)+Rewiringj=iMij(vjx)ui

This reveals a mechanistic distinction: diagonal entries MiiM_{ii}Mii simply rescale existing capabilities, while off-diagonal entries MijM_{ij}Mij enable a single output direction uiu_iui to be synthesized from multiple distinct input features vjv_jvj (jij \neq ij=i). This transition from one-to-one associative mapping to many-to-one logical synthesis provides a geometric basis for reasoning, allowing the model to compose independent latent premises into a shared output representation. SAR thus retains the structural rewiring responsible for relational integration while discarding update components that fall outside the pretrained spectral manifold.

The SAR framework offers a practical interface: reasoning updates can be compressed, filtered, or merged by operating on the compact rewiring matrix rather than the full parameter update. This geometric perspective is later applied to cross-domain generalization, where projecting multi-domain RL updates or merged expert models onto the base spectral manifold helps retain shared reasoning structure and filter incompatible residual directions.

Experiment

The experiments evaluate Spectral Attention Rewiring (SAR), a method that extracts a compact, reasoning-effective spectral update from reinforcement learning (RL) fine-tuned models. Across diverse model scales and families on mathematical reasoning (AIME), coding (LiveCodeBench, agentic benchmarks), and instruction following (IFEval), SAR preserves full RL reasoning gains while retaining only 1–10% of the pretrained spectral rank, and it improves exploration at larger sampling budgets without retraining. In cross-domain settings, projecting multi-task RL updates or merging domain experts through this spectral geometry reduces task interference, yielding merged models that surpass single-domain experts and releasing suppressed cross-domain capabilities, demonstrating that the transferable reasoning signal is concentrated in the base model’s spectral manifold.

Spectral rewiring preserves nearly all RL reasoning gains on AIME benchmarks while using only a tiny fraction of the pretrained spectral rank. Across model scales, projected models match full RL performance within evaluation variance, and strong reasoning recipes require as little as 1% retained rank. This shows that RL-induced improvements concentrate in a compact spectral subspace rather than needing the full parameter update. For the 1.5B model, retaining just 1% of the spectral rank recovers the full RL AVG@32 score on AIME 2024 (40.21% vs. 40.31%) and AIME 2025 (28.96% vs. 29.58%), with identical or slightly higher Pass@32. Strong post-trained reasoning recipes like DeepScaleR and Polaris saturate at 1–10% retained rank, while eliciting reasoning from a less specialized base model requires a larger 30% rank. The compact spectral update translates to storage ratios as low as ~0.58% of total parameters for the 1.5B model, indicating that most of the unconstrained RL update is unnecessary for the measured reasoning gains.

The spectral rewiring matrix M is highly compact, using only about 0.58% of total parameters for the 1.5B model and 0.64% for the 32B model. For the 4B model, which requires a larger projected rank, M still accounts for just 7.75% of parameters. This confirms that reasoning-effective RL updates are concentrated in a small spectral subspace, making them efficient to store and transfer. For the 1.5B and 32B models, the rewiring matrix M occupies only ~0.58% and ~0.64% of total parameters, respectively. The 4B model needs a higher projected rank (10%), resulting in a larger M at ~7.75% of total parameters, still a fraction of the full model size.

Applying a top-1% spectral-rank projection to the coding post-training delta improves six of seven open agentic coding benchmarks, yielding an average relative gain of 2.52% and a maximum improvement of 25.10%. Only MSWE-Bench with the CodeAct agent shows a marginal decline of 0.33%, confirming that the compact spectral update broadly transfers to applied coding workflows. SAR boosts TerminalBench 2.0 by 25.10%, the largest relative gain across all evaluated agentic coding benchmarks. Six out of seven benchmarks improve, with an average increase of 2.52%; the sole regression is a 0.33% drop on MSWE-Bench using the CodeAct agent.

Spectral reasoning rewiring extracts compact, reasoning-effective parameters that, when merged with a code expert, produce models surpassing the best single-domain experts on both math and code benchmarks at 1.5B and 14B scales. This approach reduces cross-domain interference compared to naive weight averaging, enabling stronger and more balanced transfer across domains. SAR merging simultaneously exceeds the best single-domain math and code experts at the 1.5B scale. At 14B, SAR provides balanced cross-domain transfer, improving code performance beyond the code expert while preserving the math expert’s advantage.

The experiments evaluate spectral rewiring for preserving RL reasoning gains on math benchmarks, transferring coding improvements to agentic tasks, and merging reasoning with code experts. Across model scales, projecting RL updates to as little as 1% of the pretrained spectral rank recovers full reasoning performance, showing that improvements concentrate in a compact subspace. This compactness also enables efficient storage and cross-domain transfer, where a top-1% spectral projection boosts most agentic coding benchmarks and merged models surpass single-domain experts while reducing interference.


Créer de l'IA avec l'IA

De l'idée au lancement — accélérez votre développement IA avec le co-codage IA gratuit, un environnement prêt à l'emploi et le meilleur prix pour les GPU.

Codage assisté par IA
GPU prêts à l’emploi
Tarifs les plus avantageux

HyperAI Newsletters

Abonnez-vous à nos dernières mises à jour
Nous vous enverrons les dernières mises à jour de la semaine dans votre boîte de réception à neuf heures chaque lundi matin
Propulsé par MailChimp