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 Base model
, obtained via
multimodal continual pretraining
of Qwen3-4B-Base on 304.4 billion tokens spanning text, molecular and protein 1D/3D data, and cross-modal corpora. This base checkpoint is intended for further fine-tuning on downstream tasks. For an instruction-tuned model ready for inference, see
BioMatrix-4B-SFT
.
BioMatrix maps
all biological 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
✓
✗
✓
✗
✓
BioMatrix
✓
✓
✓
✓
✓
Model Details
Base Architecture
: Qwen3-4B-Base
Parameters
: 4B
Training Stage
: Multimodal Continual Pretraining only (not instruction-tuned)
Training Tokens
: 304.4B
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
Embedding Initialization
New vocabulary entries are initialized via a
description-based scheme
: each new token is grounded in the pretrained Qwen3 embedding space by averaging the embeddings of the subword tokens of a short natural-language description (e.g.,
<A_W>
→ "Tryptophan"), plus a small isotropic Gaussian perturbation to break symmetry. This provides a more stable starting point than random initialization.
Pretraining Corpus (304.4B tokens)
Category
Tokens
Sources
Text
(105.3B)
General: 25.6B
FineWeb-Edu
Scientific: 79.7B
FineFineWeb (biology/chemistry/medical/health), PubMed Full Articles
Molecule
(73.7B)
1D: 36.0B
PubChem, MolTextNet
3D: 17.6B
PubChem, PCQM4Mv2, PubChemQC
Other: 24.0B
(text descriptions, properties, IUPAC names)
Protein
(77.4B)
1D: 17.1B
UniRef50
3D: 38.5B
RCSB PDB, AlphaFold DB
Other: 19.5B
Swiss-Prot, TrEMBL annotations
Other (additional): 2.9B
Cross-entity
(48.0B)
Interleaved Text: 17.1B
PubMed, bioRxiv, S2ORC, USPTO
3D: 11.4B
CrossDocked, PPIRef
Other: 19.5B
BindingDB, STITCH, jglaser, AlphaSeq
Training Configuration
Framework
: LLaMA-Factory
Hardware
: 64 NVIDIA H100 GPUs
Global Batch Size
: 1,024
Maximum Sequence Length
: 8,192 tokens
Optimizer
: AdamW
Peak Learning Rate
: 2.0 × 10⁻⁴ (cosine schedule)
Warmup Steps
: 2,000
Total Steps
: ~36.4K (1 epoch over the full 304.4B-token corpus)
Intended Use
This
Base model is not instruction-tuned
. It is suitable for:
Further fine-tuning
on custom biological tasks
Continued pretraining
on domain-specific corpora
Research on representation learning
across biomolecular modalities
Embedding extraction
for downstream classification/regression tasks
For ready-to-use instruction-following capabilities (e.g., molecule captioning, protein design, property prediction), please use the
SFT variant
.
Natural language text is left unwrapped and serves as the default carrier modality.
Limitations
This model is
not instruction-tuned
and is unlikely to follow natural-language instructions out-of-the-box. Use the SFT variant for instruction-following.
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.
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-Base on huggingface.co
152
Total runs
0
24-hour runs
48
3-day runs
142
7-day runs
142
30-day runs
More Information About BioMatrix-4B-Base huggingface.co Model
BioMatrix-4B-Base huggingface.co is an AI model on huggingface.co that provides BioMatrix-4B-Base's model effect (), which can be used instantly with this QizhiPei BioMatrix-4B-Base model. huggingface.co supports a free trial of the BioMatrix-4B-Base model, and also provides paid use of the BioMatrix-4B-Base. Support call BioMatrix-4B-Base model through api, including Node.js, Python, http.
BioMatrix-4B-Base huggingface.co is an online trial and call api platform, which integrates BioMatrix-4B-Base's modeling effects, including api services, and provides a free online trial of BioMatrix-4B-Base, you can try BioMatrix-4B-Base online for free by clicking the link below.
QizhiPei BioMatrix-4B-Base online free url in huggingface.co:
BioMatrix-4B-Base is an open source model from GitHub that offers a free installation service, and any user can find BioMatrix-4B-Base on GitHub to install. At the same time, huggingface.co provides the effect of BioMatrix-4B-Base install, users can directly use BioMatrix-4B-Base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.