Resonance: From Teacher to Self-Distillation in LLMs for Reaction Prediction

Anagha Aneesh, Sebastian Ibarraran, Frank Hu, Jason Liu, Grant M. RotskoffAI4Science @ NeurIPS 2026

TL;DR

Can a small, open-weight language model learn specialized scientific reasoning without staying tethered to a massive, closed-weight teacher? Using chemical reaction prediction as a testbed, Resonance shows that a single round of frontier-model supervision is enough to bootstrap an 8B model into a self-improving regime. After the teacher steps away, the student keeps climbing on its own verified outputs, eventually matching the frontier reference's accuracy.

What Problem Does This Paper Address?

Forward reaction prediction—figuring out the major product of a chemical reaction given its reactants—is a core puzzle in computer-aided synthesis planning. Frontier models like Claude Sonnet 4.6 have picked up impressive chemical intuition, but they are closed-weight, expensive to run at scale, and hard to adapt for specialized workflows.

Smaller open-weight models offer control and lower inference costs, yet they often flounder on domain-specific reasoning out of the box. The authors ask a practical question: instead of relying on a frontier model for endless supervision, can we use it as a one-time bootstrap, and let the smaller model teach itself from there?

Methods

The authors introduce Resonance, a three-stage post-training pipeline starting from Qwen3-8B. Predictions are elicited as chain-of-thought reasoning followed by a delimited SMILES string, and scored by Top-1 exact match against RDKit-canonicalized ground-truth products.

The three-stage Resonance pipeline: Teacher SFT, Rejection Sampling, and Preference Tuning
  1. Stage 1 (Teacher SFT): Claude Sonnet 4.6 generates reasoning traces for training reactions. Fine-tuning Qwen3-8B on these traces installs the output format and basic chemical competence.
  2. Stage 2 (Rejection-Sampling SFT): The teacher is removed. The student generates multiple candidate traces per prompt, keeps only those that arrive at the verified ground-truth product, and fine-tunes on its own correct reasoning.
  3. Stage 3 (Preference Tuning via DPO): Using Direct Preference Optimization, the model trains on pairs of its own outputs—preferring verified-correct traces over incorrect ones—to sharpen its Top-1 predictions.

Combining teacher distillation with two rounds of verifiable self-distillation in a single staged pipeline is the paper's core methodological contribution.

Datasets

  • USPTO-50k: A standard benchmark of ~50,000 atom-mapped reactions curated from US patents, evaluated on the standard 5,000-reaction test split.
  • Synthetic Reaction Benchmark: A held-out internal dataset spanning 104 reaction mechanisms, sampled hierarchically across three class-weighting regimes ($\alpha \in \{0, 0.5, 1\}$) to test generalization beyond patent chemistry.
  • General-capability benchmarks: MMLU, GSM8K (strict), and IFEval to check whether chemistry specialization erodes broad reasoning.

Key Insights and Ideas

  • Self-training drives substantial gains after the teacher leaves: While Stage 1 provides the largest single jump, Stages 2 and 3 add significant accuracy purely from the model's own verified experience. Skipping Stage 2 (going straight from S1 to DPO) drops final performance by 13 percentage points.
  • Matching accuracy $\neq$ matching capabilities: Even though the final model (S3) and Sonnet 4.6 hit nearly identical overall accuracy, their predictions overlap on only 39.3% of correct reactions ($\kappa = 0.17$).
  • Dramatic per-class asymmetries: S3 crushes Sonnet 4.6 on protection chemistry (56.5% vs. 30.5%), yet completely fails on heterocycle formation (solving 1 of 102 reactions vs. Sonnet's 31.4%). Overall parity is a sum of localized strengths and deficits, not uniform distillation.

Key Results

  • USPTO-50k: Qwen3-8B jumps from near-zero accuracy in the base model to 47.9% at S3—statistically indistinguishable from Claude Sonnet 4.6 (46.8%) and well above GPT-5.4. Specifically, S1 adds +30 percentage points, S2 adds +14, and S3 adds +4.
Figure 2: Top-1 exact-match accuracy on USPTO-50k across the Resonance pipeline (S0 base →S1 SFT →S2 rejection-sampling SFT →S3 DPO), with sonnet 4.6 and GPT-5.4 at right. Each stage improves over the previous one; the largest jump is at S1, and the final model approaches the frontier reference. Bars are 95% Wilson intervals.
  • Synthetic Reaction Benchmark: At $\alpha = 0.5$, accuracy climbs from near zero to 35.1% at S3, again comparable to Sonnet 4.6.
  • General capabilities hold steady: MMLU (73.0 $\rightarrow$ 72.6) and GSM8K (88.1 $\rightarrow$ 87.4) barely budge, while instruction-following (IFEval) actually improves.

Limitations and Future Work

  • Scope: The study tests one 8B base model on single-step forward reaction prediction, and Resonance trains on the USPTO-50k distribution while frontier models are evaluated zero-shot.
  • Product vs. reasoning verification: The pipeline scores whether the final SMILES product is right, not whether the intermediate chemical mechanism is sound—a trace can reach the right answer for the wrong reason.
  • Unexplained class gaps: Why protection chemistry surges while heterocycle formation stalls remains an open question for future work.

Summary updated

BibTeX
@inproceedings{aneesh2026resonance,
  author = {Anagha Aneesh and Sebastian Ibarraran and Frank Hu and Jason Liu and Grant M. Rotskoff},
  title = {{Resonance: From Teacher to Self-Distillation in LLMs for Reaction Prediction}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=6XPcE7Nmst},
}
Figure