BioMatrix
is a multimodal biological foundation model that natively integrates
1D sequences
,
3D structures
, and
natural language
for both
molecules
and
proteins
within a single decoder-only architecture.
This is the
4B-parameter SFT (Supervised Fine-Tuned)
variant, instruction-tuned across 80 downstream biological tasks spanning 6 categories.
BioMatrix closes the gap between native multimodality and broad entity coverage in biological foundation models. Unlike adapter-based approaches that bolt external encoders onto a language model, or prior native-tokenization models confined to a single entity type, BioMatrix maps
all modalities into a shared discrete token space
via a unified tokenization scheme:
Molecular 1D sequences
(both SMILES and SELFIES notations)
Molecular 3D structures
(via MolStrucTok with branch-decoupled decoder)
Protein 1D sequences
(residue-level tokens)
Protein 3D structures
(via GCP-VQVAE backbone tokenizer)
Natural language
(inherited from Qwen3 tokenizer)
All modalities are consumed and produced uniformly under a
single next-token prediction objective
—without external encoders, projection adapters, or modality-specific output heads.
Model
Molecule 1D
Molecule 3D
Protein 1D
Protein 3D
Natural Language
ESM3
✗
✗
✓
✓
✓
3D-MoLM
✓
✓
✗
✗
✓
AlphaFold3
✓
✓
✓
✓
✗
BioT5/BioT5+
✓
✗
✓
✗
✓
BioMedGPT
✓
✗
✓
✗
✓
NatureLM
✓
✗
✓
✗
✓
SciReasoner
✓
✗
✓
✗
✓
BioMatrix
✓
✓
✓
✓
✓
Model Details
Base Architecture
: Qwen3-4B-Base
Parameters
: 4B
Training Stages
:
Continual Pretraining
on 304.4B tokens (general/scientific text, molecular & protein 1D/3D data, cross-modal interleaved corpora)
Instruction Tuning
on a comprehensive suite of 80 downstream tasks across 6 categories
Context Length
: 8,192 tokens
Tokenizer
: Extended Qwen3 vocabulary with:
11,294 joint molecular 3D tokens (composed from SELFIES atom × MolStrucTok codes)
4,096 protein 3D tokens (GCP-VQVAE codebook)
26 protein 1D tokens (amino acids + non-standard/unknown)
SELFIES atom tokens and modality-specific control tokens
Pretraining Corpus (304.4B tokens)
Category
Tokens
Sources
Text
105.3B
FineWeb-Edu, FineFineWeb (biology/chemistry/medical/health), PubMed Full Articles
Molecule
73.7B
PubChem, PCQM4Mv2, PubChemQC, MolTextNet
Protein
77.4B
UniRef50, RCSB PDB, Swiss-Prot, TrEMBL, AlphaFold DB
Note on task-group variants
: As detailed in the paper, the released SFT model is trained on the union of all sub-task corpora with mild oversampling for small-data tasks. For best performance on specific benchmarks, please refer to the paper's task-group-specific variants.
SMILES vs. SELFIES
BioMatrix supports both notations as parallel 1D molecular representations. Empirically:
SELFIES
excels on tasks requiring validity-by-construction (unconditional generation, property optimization)
SMILES
excels on tasks requiring surface-level structural anchoring (customized generation with atom/bond/functional-group constraints, forward synthesis, retrosynthesis)
See Section 9.2 of the paper for detailed analysis.
Limitations
Molecular and protein 3D structures are tokenized in
disjoint geometric reference frames
, so the model cannot natively represent biomolecular complexes (e.g., docking poses).
Heavy domain specialization may erode some general-purpose language capabilities of the underlying Qwen3 backbone.
Coverage is limited to
small molecules and proteins
; nucleic acids, carbohydrates, and lipids are not currently supported.
Fine-grained 3D geometry (e.g., bond lengths) shows residual quantization error from finite codebooks; a lightweight post-hoc force-field refinement (e.g., MMFF) closes most of this gap.
Citation
If you find BioMatrix useful, please cite:
@article{pei2026biomatrix,
title={BioMatrix: Towards a Comprehensive Biological Foundation Model Spanning the Modality Matrix of Sequences, Structures, and Language},
author={Pei, Qizhi and Zhou, Zhimeng and Duan, Yi and Zhao, Yiyang and He, Liang and Hsieh, Chang-Yu and He, Conghui and Yan, Rui and Wu, Lijun},
year={2026}
}
License
This model is released under the Apache 2.0 license. The base model (Qwen3-4B-Base) is subject to its own license terms.
Runs of QizhiPei BioMatrix-4B-SFT on huggingface.co
110
Total runs
0
24-hour runs
33
3-day runs
40
7-day runs
40
30-day runs
More Information About BioMatrix-4B-SFT huggingface.co Model
BioMatrix-4B-SFT huggingface.co is an AI model on huggingface.co that provides BioMatrix-4B-SFT's model effect (), which can be used instantly with this QizhiPei BioMatrix-4B-SFT model. huggingface.co supports a free trial of the BioMatrix-4B-SFT model, and also provides paid use of the BioMatrix-4B-SFT. Support call BioMatrix-4B-SFT model through api, including Node.js, Python, http.
BioMatrix-4B-SFT huggingface.co is an online trial and call api platform, which integrates BioMatrix-4B-SFT's modeling effects, including api services, and provides a free online trial of BioMatrix-4B-SFT, you can try BioMatrix-4B-SFT online for free by clicking the link below.
QizhiPei BioMatrix-4B-SFT online free url in huggingface.co:
BioMatrix-4B-SFT is an open source model from GitHub that offers a free installation service, and any user can find BioMatrix-4B-SFT on GitHub to install. At the same time, huggingface.co provides the effect of BioMatrix-4B-SFT install, users can directly use BioMatrix-4B-SFT installed effect in huggingface.co for debugging and trial. It also supports api for free installation.