Skip to main content

Research paper

Model CompositionHidden State InjectionCapability TransferBlades Architecture

Blades: Hidden State Injection from Phi Reasoning Models into MediPhi

Hidden state injection improved reported accuracy on a direct medical reasoning task for one Phi-to-MediPhi model pair. Transfer failed in the other three tested pairs.

Updated September 22, 2026 · Editorial correction dated 2026-09-22; no new experiment or independent reproduction. The linked PDF is the original version and does not include these web corrections.

Scope Four model pairs; one successful Phi reasoning-to-MediPhi transfer. Reported medical-task accuracy: target 55.4%, source 62.5%, combined 69.6%. Limitations and artifacts

Abstract

We study hidden state injection between specialized models using a gated aggregation mechanism. In the reported Phi reasoning-to-MediPhi experiment, accuracy on a direct medical reasoning task was 69.6% for the combined system, 55.4% for MediPhi and 62.5% for the source alone: a 14.2 percentage-point gain over the target. Three other tested model pairs did not improve. A three-layer comparison and medical-domain stacking experiments motivate hypotheses about injection depth and compatibility. Gate fitting, inference cost, sample size and inconsistent layer-table baselines remain insufficiently documented; these results do not establish a general transfer rule or a standardized benchmark improvement.

On this page
  1. Introduction
  2. The Blades framework
  3. Injection mechanism
  4. Injection depth hypothesis
  5. Experiments
  6. Phase 1: Transfer across four model pairs
  7. Phase 2: Comparison of three injection layers
  8. Phase 3: Reported multi-blade synergy scores
  9. Observations and open hypotheses
  10. Connection to the Model Garage toolkit
  11. Conclusion
  12. Version and reproduction notes

Introduction

The demand for AI systems with diverse capabilities continuously grows, yet training new models from scratch for each task is computationally prohibitive. Current approaches to capability enhancement each have significant limitations:

  • Fine-tuning: Risk of catastrophic forgetting, requires substantial computational budget
  • Model merging: Parameter averaging approaches often degrade performance (Task Arithmetic, DARE)
  • Ensembles: Multiple forward passes increase inference cost and latency
  • Adapters (LoRA, Prefix Tuning): Additional parameters and potential incompatibilities between modules

We propose Blades, a framework for injecting source-model hidden states into a target model during inference. A learned gate selects features for transfer. This mechanism requires source hidden states as well as the target computation; the report does not establish a single-model inference cost.

The original paper describes the approach as requiring no additional training while also specifying a learned gate. It does not give a reproducible account of which parameters were frozen, fitted or calibrated in each experiment, or whether source states were cached. We therefore do not treat zero training or zero added inference cost as established results.

The term “Blades” draws an analogy from mechanical engineering: just as a mechanic swaps engine components to enhance performance, we can inject computational modules (blades) between model layers to dynamically enhance capabilities at runtime.

The Blades framework

Blades consists of three components:

  1. Source Model: A specialized model containing the capability to transfer (e.g., strong reasoning abilities)
  2. Target Model: A base model that lacks or performs poorly on the capability
  3. Injection Mechanism: A gated aggregation layer that inserts source hidden states into target computation

Injection mechanism

During inference on the target model, at selected layer ℓ:

h_target(ℓ) = h_target(ℓ) + α · g(w) ⊙ h_source(ℓ)

Where:

  • h_target(ℓ): hidden state from target model at layer ℓ
  • h_source(ℓ): hidden state from source model at the same layer
  • g(w): learned gating function (e.g., sigmoid gate) with parameters w
  • α: scalar weight parameter (range 0.1–0.3)
  • ⊙: element-wise multiplication

Injection depth hypothesis

The three tested layers suggest layer 28 as a candidate injection point for the reported 32-layer setting. Here, N − 4 equals 87.5% of depth; for other layer counts the fraction is (N − 4)/N. This is a heuristic from a limited sweep, not an established optimum across architectures.

Hypothesis: Later injection may retain useful high-level features while reducing interference with earlier processing. The layer comparison below does not by itself establish distinct causal roles for each layer range.

Experiments

Phase 1: Transfer across four model pairs

We tested hidden state injection across four model pairs to identify conditions for success:

ExpSource → TargetDim ChangeResultOutcome
T01CLIP → GPT-2512 → 768 (+50%)No effect✗
T02CLIP → Gemma-270M768 → 640 (−17%)No effect✗
T03MediPhi → Gemma-270M3072 → 640 (−79%)Degradation✗
T04Phi-4 reasoning → MediPhi3072 → 3072 (0%)+14.2 percentage points✓

Only the same-dimension, same-family transfer (T04) improved performance in this set. Cross-modal (T01, T02) transfers had no reported effect, and T03 degraded. These observations do not isolate dimension matching from model family, modality or other differences.

The original PDF, section 4.1, reports the following results on the same direct medical task:

ConfigurationReported accuracy
MediPhi target55.4%
Phi reasoning source alone62.5%
Combined system69.6%

Reported accuracy on the direct medical task

experiment T04, from section 4.1 of the original PDF

MediPhitarget alone
55.4%
Phi reasoningsource alone
62.5%
Combined systemtarget with injection
69.6%
Figure 1. The combined system scores 14.2 percentage points above the target and 7.1 above the source. Sample size, split and uncertainty are not reported, so the chart shows point values only.

The increase over the target is 14.2 percentage points. The PDF calls the source Phi-4-mini-reasoning in the setup and shortens it elsewhere; an exact checkpoint identifier is not supplied here. Its limitations section states these are direct task evaluations, not standardized MedQA or MMLU results. Sample size, split and uncertainty are not reported in this article.

Phase 2: Comparison of three injection layers

LayerPosition (%)AccuracyOriginal delta (unreconciled)Original interpretation
2475%48.1%−7.3%Degradation (early interference)
2887.5%67.8%−1.6%Near-baseline, stable
3093.75%60.5%−4.9%Output preparation interference

Layer 28 has the highest listed accuracy among these three settings. The inconsistent baselines prevent a reliable interpretation of the original stability claim; a full layer sweep was not reported.

Phase 3: Reported multi-blade synergy scores

BladesTargetSynergy ScoreDomain
medical + medical_pubmedMediPhi+27.8%Same
medical + medical_pubmedClinical+22.2%Same
medical_clinical + medical_pubmedMediPhi+16.7%Same
reasoning + medicalMediPhi−27.8%Cross

Original synergy scores by blade combination

score definition and denominator not supplied

medical + medical_pubmedMediPhi · same domain
+27.8%
medical + medical_pubmedClinical · same domain
+22.2%
medical_clinical + medical_pubmedMediPhi · same domain
+16.7%
reasoning + medicalMediPhi · cross domain
−27.8%
Figure 2. The three same-domain combinations score positive and the one cross-domain combination scores negative. These are the report's synergy scores, not accuracy gains.

The reported scores favor same-domain combinations in this limited medical-domain experiment. The score definition and denominator are not supplied here, so these percentages are retained as original synergy scores, not relabeled as accuracy gains.

Observations and open hypotheses

  1. Injection depth: Layer N − 4 is a candidate for the tested 32-layer setting.
  2. Compatibility: The successful pair shared hidden dimensions and model family; necessity of either condition is unproven.
  3. Capability gap: A relationship between source-target capability differences and transfer benefit remains a hypothesis.
  4. Gating: The original report gives +8.9% over identity injection; the metric denominator and fitting procedure need documentation.
  5. Domain combinations: Original synergy scores include +27.8% for a same-domain pair and −27.8% for a cross-domain pair; generality is untested.
  6. Router control: The report gives 1.67× domain selectivity; this is not itself a downstream accuracy result.
  7. FFN projection: Projection is a proposed path for dimension bridging, with transfer validation incomplete.

Connection to the Model Garage toolkit

The original project links Model Garage, a toolkit intended for extracting, composing and managing model components. Its stated capabilities include:

  • Hidden State Extraction: Efficient extraction at selected layers
  • Gating Mechanisms: Pre-implemented learned gating (sigmoid, linear, softmax)
  • Injection Automation: Automated injection at specified layers with configurable parameters
  • Validation Pipelines: Benchmarking against standard tasks (MMLU, MedQA, etc.)

Conclusion

The reported Phi-to-MediPhi experiment motivates further study of hidden state transfer: combined accuracy exceeded both individual-model scores on one direct task. The failed transfers and limited layer sweep are equally important boundaries. Establishing reproducible gains requires exact checkpoints, task data, gate-fitting details, consistent baselines and measured inference cost.

Version and reproduction notes

This web revision corrects claim scope and percentage-point units without rerunning experiments. The linked PDF remains the original preprint version. No run-level dataset or exact code revision is identified in this record; artifact availability alone does not establish reproducibility.

Paper record

Scope

Four model pairs; one successful Phi reasoning-to-MediPhi transfer. Reported medical-task accuracy: target 55.4%, source 62.5%, combined 69.6%.

Author-reported results

Limitation

Direct task evaluation, not a standardized MedQA result. Layer-table baselines, gate fitting and per-query source-model cost remain unresolved.

Artifacts

Original preprint PDF available. Model Garage is linked in the article; run-level data and an exact reproduction revision are not identified here.

Citation

Use this record when citing the current public version.

Andrew Young (2026). Blades: Hidden State Injection from Phi Reasoning Models into MediPhi. Automate Capture Research. https://research.automate-capture.co/journals/blades-capability-enhancement/