Finetuning#
We can unlock the utility of AlphaGenome for new datasets with fine-tuning / transfer learning. We use the pretrained trunk to extract rich sequence representations, then add custom heads for specific prediction tasks.
Overview#
The typical finetuning workflow is:
Load pretrained weights (trunk only, excluding heads)
Configure transfer mode (full, linear probing, LoRA, Locon, IA3 — or combine adapter modes)
Add custom heads for your target tracks
Train using the target tracks
Quick Start#
# Linear probing (frozen backbone, fastest)
python scripts/finetune.py --mode linear-probe \
--genome hg38.fa \
--modality atac --bigwig *.bw \
--train-bed train.bed --val-bed val.bed \
--pretrained-weights model.pth
# LoRA finetuning (recommended)
python scripts/finetune.py --mode lora \
--lora-rank 8 --lora-alpha 16 \
--genome hg38.fa \
--modality atac --bigwig *.bw \
--train-bed train.bed --val-bed val.bed \
--pretrained-weights model.pth
# Full finetuning (all parameters)
python scripts/finetune.py --mode full \
--genome hg38.fa \
--modality atac --bigwig *.bw \
--train-bed train.bed --val-bed val.bed \
--pretrained-weights model.pth
Finetuning Topics: