Aligning LLMs with Biomedical Knowledge using Balanced Fine-Tuning

Zhenchao Tang, Fang Wang, Haohuai He, Jiale Zhou, Tianxu Lv, Jun Zhu, Shou Zhi Chen, Minghao Yang, Yu Wang, Jiayang Wu, Yidong Song, Yaokun Li, Jiehui Huang, Jun Zhou, Bing He, Jianhua YaoNeurIPS 2026

TL;DR

When fine-tuning language models on general text, low-confidence tokens are usually just stylistic synonyms—safe to down-weight to keep training stable. In biomedicine, however, contiguous clusters of low-confidence tokens actually mark critical knowledge gaps like rare gene names and complex causal pathways. By teaching models to tell the difference between an isolated stylistic quirk and a genuinely hard scientific passage, Balanced Fine-Tuning (BFT) unlocks open-weight models that rival closed-source giants in biological reasoning and thrive under subsequent reinforcement learning.

What Problem Does This Paper Address?

Picture a tired language model reading a dense molecular biology paper late at night. Standard Supervised Fine-Tuning (SFT) forces the model to memorize every single token equally, which often leads to overfitting on quirky phrasing or forgetting general skills. To fix this, recent methods like Dynamic Fine-Tuning (DFT) scale each token’s loss by the model's prediction confidence—essentially telling the model, "If a word seems really improbable, don't sweat it; it's probably just stylistic noise."

That works great for everyday chat, where a surprise word is usually an interchangeable synonym (aleatoric uncertainty). In biomedicine, it is a trap. When an LLM hits a wall of low confidence in a biology paper, it is usually staring at rare protein entities, mutation codes, or multi-step signaling cascades—the exact epistemic knowledge we desperately need it to learn! Suppressing low-confidence tokens wholesale blinds the model to hard science. Furthermore, if the model misses these mechanisms during fine-tuning, later stages of Reinforcement Learning (RL)—where biomedical rewards are notoriously sparse—fail to get off the ground.

Figure 1: Overview of BFT. a: Semantic composition of low-confidence tokens inside Group A (sparse-low) and Group B (dense-low). b: 4096-token trace illustrating one sparse-low window (Group A) and one dense-low window (Group B). c: BFT applies token- and sample-level adjustments.

Methods

Instead of looking at a token's confidence in isolation, Balanced Fine-Tuning (BFT) looks at the neighborhood. Using a single sliding window (default size $g = 256$ tokens), BFT adjusts the training loss at two complementary scales without needing external reward models or extra thresholds:

  1. Token-Level Group-Normalized Reweighting: BFT divides a token's predicted probability by the average confidence of its surrounding $g$-token window.
  2. If an uncertain token sits in an otherwise confident paragraph (sparse-low), its relative weight stays low—treating it as stylistic noise, just like DFT.
  3. If an uncertain token sits inside a uniformly baffling paragraph (dense-low), its weight rebounds toward 1, preserving the gradient signal for dense scientific mechanisms.
  4. Sample-Level Hard-Example Weighting: Reusing those same sliding windows, BFT finds the lowest-confidence window in each training sequence ($p^{\text{conf}}_b$) and scales the entire sequence's loss by $1 - p^{\text{conf}}_b$. Easy, well-known samples fade into the background, reallocating the optimization budget toward sequences with genuinely hard biomedical regions.

Datasets

  • Diagnostic Analysis: PubMed Central open-access full text, the expert-annotated CRAFT corpus, UltraChat-200k (general chat), and NuminaMath-CoT (math).
  • Joint Post-Training Supervision (Newly Synthesized): The authors built a clean, decontaminated training mix from two synthetic streams: medical trajectories generated by GPT-5.1 using clinical instructions and rubrics from OpenAI HealthBench Consensus, and broad biological Q&A pairs synthesized by GPT-OSS-120B from an NCBI corpus (following GenePT).
  • Evaluation Benchmarks: HealthBench Hard (medical competence), GeneAgent benchmarks (MSigDB, NeST, GeneOntology), VCWorld (5 cancer cell lines) and Tahoe-100M (45 cell lines for RL training), MMLU/CMMLU (general knowledge retention), and scIB & STATE datasets (single-cell clustering, multimodal integration, and perturbation prediction).

Key Insights and Ideas

  • Uncertainty has a spatial signature in science: When the authors scanned PubMed Central, biomedical entities made up only 12.5% of isolated low-confidence tokens, but jumped to 60.9% inside dense low-confidence runs (and 63.8% in human-annotated CRAFT concept spans). In general chat (UltraChat) or math, entity shares stayed flat (~3–4%) regardless of density.
  • Good RL needs epistemic-aware initialization: In sparse-reward RL (like Group Relative Policy Optimization, or GRPO), the model only gets a thumbs-up if its final biological prediction is right. SFT and DFT models actually degraded during GRPO because their initial reasoning lacked precise causal hooks. Every BFT variant improved, proving that preserving dense knowledge runs during fine-tuning places the policy in a fertile reasoning zone.
  • Better text generation breeds better biological embeddings: Computational biology is usually split between generative LLMs and specialized discriminative models (like scGPT). Because BFT writes much sharper, mechanism-rich biological profiles than SFT, simply passing BFT-generated gene summaries through a standard text embedder (text-embedding-ada-002) yields rich representations for cell-clustering and perturbation tasks.

Key Results

Fine-tuning DeepSeek-R1-Distill models (14B, 32B, and 70B) under an identical recipe:

  • Chemical Perturbation (VCWorld): Replacing VCWorld's closed-source Gemini-2.5-Flash backbone (0.68 accuracy) with BFT-70B achieved 0.70 average accuracy across five cancer cell lines—statistically matching Gemini and beating SFT-70B (0.56) and DFT-70B (0.49).
  • Sparse-Reward RL Boost: Adding GRPO pushed BFT-70B up to 0.74 accuracy, whereas SFT-70B dropped to 0.49 and DFT-70B fell to 0.42.
  • Biological Reasoning & Medical Competence: Across scales, BFT achieved the highest overall ROUGE scores on GeneAgent benchmarks (surpassing GPT-4o on MSigDB and NeST at 70B) and led axis- and theme-wise scores on HealthBench Hard.
Biological reasoning benchmark results across 14B, 32B, and 70B model scales.
  • Downstream Representations: Encoding BFT-70B entity profiles outperformed scGPT and NCBI-summary-based GenePT on gene-property prediction and cell-type clustering, and reached 0.57 total score on the scIB multimodal integration benchmark (beating Harmony at 0.50 and BBKNN at 0.44).

Limitations and Future Work

The authors are admirably candid about BFT's boundaries:

  • Self-referential confidence: Training weights rely on the model's own evolving confidence rather than an independent oracle, and performance remains somewhat sensitive to the choice of window size $g$.
  • Synthetic supervision & factuality: Training relied heavily on source-conditioned synthetic text. While a knowledge-base check supported 81.4% of BFT's alignable claims (vs. 71.3% for SFT), only about a third of extracted triples could be aligned to the KB—meaning BFT is not a guarantee against clinical hallucination.
  • Future Directions: Extending BFT to use independently calibrated uncertainty estimators, training on naturally occurring expert curations, and running prospective clinical/experimental validations.

Summary updated

Abstract

Engineering LLMs to accelerate life sciences research requires a robust alignment with biomedical knowledge. We observe that biomedical text exhibits a fundamentally different uncertainty structure from general text: dense low-confidence runs encode epistemic knowledge gaps (dense causal chains, rare entities) rather than the sparse aleatoric stylistic variation typical of general text. Based on this discovery, we propose Balanced Fine-Tuning (BFT), a dual-scale post-training method that combines group-normalized token reweighting with sequence-level reallocation toward knowledge-dense samples exhibiting dense epistemic uncertainty. Across medical evaluation, biological reasoning, sparse-reward RL, and biological representation tasks, BFT provides more consistent gains than SFT and DFT under a shared training setup. When replacing the default closed-source backbones in GeneAgent (GPT-4o) and VCWorld (Gemini-2.5-Flash), the BFT-aligned 70B model delivers stronger performance across biological process reasoning and chemical perturbation prediction. Critically, all BFT variants further improve after subsequent GRPO with sparse rewards, while SFT and DFT degrade, suggesting that epistemic-aware post-training provides a more robust policy initialization. Beyond text generation, BFT-aligned LLMs produce more accurate and professional biomedical profile texts; after encoding these profiles with a text embedding model, the resulting representations support gene-level, cell-level, and perturbation-response tasks, suggesting that BFT-enhanced generation can facilitate biological representation and, in turn, broader biomedical downstream tasks.
BibTeX
@inproceedings{tang2026aligning,
  author = {Zhenchao Tang and Fang Wang and Haohuai He and Jiale Zhou and Tianxu Lv and Jun Zhu and Shou Zhi Chen and Minghao Yang and Yu Wang and Jiayang Wu and Yidong Song and Yaokun Li and Jiehui Huang and Jun Zhou and Bing He and Jianhua Yao},
  title = {{Aligning LLMs with Biomedical Knowledge using Balanced Fine-Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=p2HWge7bRt},
}
Figure