Reasoning Vectors: Transferring Chain-of-Thought Capabilities via Task Arithmetic

Mohammad Zbeeb, Hasan Abed Al Kader Hammoud, Bernard Ghanem · Submission to ICLR 2026 · Withdrawn

TL;DR

Reinforcement learning (RL) instills powerful multi-step reasoning capabilities in LLMs, but training is computationally expensive. This paper shows that reasoning ability can be extracted as a modular "reasoning vector" via simple weight subtraction ($\theta_{\text{GRPO}} - \theta_{\text{SFT}}$) and added directly into compatible base models without further training. Doing so yields consistent performance gains across math, code, and logic benchmarks—effectively democratizing compute-intensive RL through simple tensor arithmetic.

What Problem Does This Paper Address?

While large language models (LLMs) excel at broad knowledge retrieval, complex multi-step reasoning typically requires specialized reinforcement learning methods (like RLHF, PPO, or GRPO). However, RL training is notoriously fragile, resource-intensive, and computationally prohibitive for many practitioners.

Prior work in task arithmetic showed that specific skills or domain knowledge could be represented as vectors in weight space and composed linearly. The authors ask: Can complex cognitive reasoning abilities learned via RL also be isolated, transferred, and reused across models as modular task vectors?

Methods

The authors introduce the Reasoning Vector ($v_{\text{reason}}$) using the following workflow:

  1. Vector Extraction via Controlled Subtraction:
    Using two open-source checkpoints with identical pretraining and initializations—one tuned via Supervised Fine-Tuning ($\theta_{\text{SFT}}$) and the other optimized via Group Relative Policy Optimization ($\theta_{\text{GRPO}}$) on the exact same dataset (GSM8K)—they compute: $$v_{\text{reason}} = \theta_{\text{GRPO}} - \theta_{\text{SFT}}$$ Because both models share the same data and task knowledge, subtracting $\theta_{\text{SFT}}$ strips out shared dataset-specific facts, leaving behind the parameter updates responsible for multi-step reasoning.

  2. Weight Addition (Transfer):
    The vector is added directly to a compatible instruction-tuned model ($\theta_{\text{target}}$, e.g., Qwen2.5-Instruct) via MergeKit: $$\theta_{\text{enhanced}} = \theta_{\text{target}} + \alpha \cdot v_{\text{reason}}$$ The authors find $\alpha = 1.0$ is naturally well-calibrated and requires no layer masks or fine-tuning.

  3. Activation Cue:
    Prefixing prompts with a minimal trigger ("Think step by step") primes the injected weights to reliably activate chain-of-thought pathways.

  4. Theoretical Justification:
    Grounds safety in Linear Mode Connectivity (LMC): because donor models share initializations and training data, their trajectory lies in a shared low-loss basin, avoiding catastrophic degradation when added to structurally similar targets.

Datasets

  • Donors/Source Training Data: GSM8K training set (used for extracting math-derived vectors) and HumanEval (used for code-derived vectors).
  • Evaluation Benchmarks:
  • GSM8K: Grade-school arithmetic reasoning.
  • HumanEval & HumanEval+: Python code generation with docstrings and unit tests.
  • SciQ: Science multiple-choice questions requiring domain knowledge and reasoning.
  • BigBenchHard (BBH): Five challenging subsets (logical deduction, temporal sequences, multistep arithmetic, tracking shuffled objects, and dyck languages).
  • Adversarial / Robustness Variants (Custom GSM8K):
    • GSM Hard Lite: Larger numbers and extra intermediate reasoning steps.
  • Noise+Digit: Interleaved typos, irrelevant numerical tokens, and distracting punctuation.
  • Sentence Shuffle: Reordered premises testing logical reconstruction rather than positional bias.

Key Insights and Ideas

  • Reasoning as an Abstract Direction: The math-derived reasoning vector does not simply memorize math solutions; it generalises to non-mathematical tasks like Python code generation (+4.3%) and symbolic deduction (+12.3% on BBH). This indicates it captures domain-general problem-solving structures rather than surface heuristics.
  • Symmetric Weight Properties: Adding $v_{\text{reason}}$ improves multi-step execution, but subtracting it ($\theta_{\text{base}} - v_{\text{reason}}$) leads to an 11.8% accuracy collapse on GSM8K (falling well below the baseline). Qualitative inspection reveals the degraded model skips crucial logical steps and misapplies rules.
  • Robustness Against Adversarial Perturbations: Enhancements hold under sentence shuffling and noise injection (retaining a 2–6% margin over baseline), ruling out superficial pattern matching.

Key Results

Evaluated on Qwen2.5-1.5B and Qwen2.5-7B:

  • Qwen2.5-1.5B Improvements (+Vector + "Think"):
  • GSM8K: 45.1% $\rightarrow$ 50.0% (+4.9%)
  • HumanEval / HumanEval+: 54.9% $\rightarrow$ 59.2% (+4.3%) / 51.2% $\rightarrow$ 54.3% (+3.1%)
  • BigBenchHard: 6.7% $\rightarrow$ 19.0% (+12.3%)
  • SciQ: 25.6% $\rightarrow$ 27.2% (+1.6%)
  • Qwen2.5-7B Improvements (+Vector + "Think"):
  • GSM8K: 55.3% $\rightarrow$ 60.3% (+5.0%)
  • HumanEval: 76.8% $\rightarrow$ 80.5% (+3.7%)
  • BigBenchHard: 27.3% $\rightarrow$ 28.7% (+1.4%)
  • Cross-Domain Transfer: Code-derived vectors improve GSM8K (+2.1%), and math-derived vectors improve HumanEval (+1.8%).

Limitations and Future Work

  • Strict Architectural & Initialization Constraints: Transfer currently requires matched tensor shapes, identical tokenizers, and shared weight lineage (e.g., within the Qwen2.5 family). Cross-family transfer (e.g., Llama to Qwen) is unsupported.
  • Reliance on Public Donor Pairs: The approach offloads, rather than eliminates, RL compute—it requires open-source communities to supply matched SFT and RL checkpoints trained on identical datasets.
  • Evaluation Scope: Results were reported from single runs per experiment without error bars or multi-seed statistical significance testing.

Summary updated

Abstract

Large language models often require costly optimization, such as reinforcement learning, to master complex reasoning tasks. This work demonstrates that reasoning ability, once learned, can be extracted and transferred between models as a compact \emph{task vector}. We source two publicly available, identically initialized Qwen2.5 models: one fine-tuned with supervised fine-tuning (SFT) and the other with group relative policy optimization (GRPO) on the same dataset. From these, we extract a reasoning vector: $$ v_{\text{reason}} = \theta_{\text{GRPO}} - \theta_{\text{SFT}}. $$ We hypothesize that this vector captures the reasoning capability instilled by reinforcement learning while factoring out shared knowledge from the SFT process. When added to compatible instruction-tuned models through simple arithmetic, this vector consistently improves performance across diverse reasoning benchmarks: GSM8K (+4.9\%), HumanEval (+4.3\%), SciQ (+1.7\%), and BigBenchHard (+12.3\% for the 1.5B model). The performance improvements persist under adversarial conditions. Conversely, subtracting the vector causes significant performance degradation ($-11.8\%$ on GSM8K), demonstrating the vector's strong contribution to the model's reasoning abilities. This work shows how reasoning capabilities, typically developed through expensive training, can be extracted from existing open-source models and reused through simple tensor arithmetic, offering a practical way to enhance models by recycling prior computational investments.
BibTeX
@misc{zbeeb2025reasoning,
  author = {Mohammad Zbeeb and Hasan Abed Al Kader Hammoud and Bernard Ghanem},
  title = {{Reasoning Vectors: Transferring Chain-of-Thought Capabilities via Task Arithmetic}},
  year = {2025},
  eprint = {2509.01363},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.01363},
}
Figure