HEIST

Pre-trained checkpoint for HEIST: Hierarchical Embeddings for Integrated Spatial Transcriptomics (ICLR 2026).

Model code, training scripts, and tutorials live on GitHub: https://github.com/Graph-and-Geometric-Learning/HEIST

Models

Each model is a folder in this repo (config.json + model.safetensors):

Model Pretraining data Gene identity
nonmarker_all Xenium (v1 + Prime 5K) + Vizgen (FFPE showcase + MERFISH 2.0) + SEA-AD MERFISH none
xenium_marker Xenium (v1 + Prime 5K) learned per-gene embedding
nonmarker_all_iclr the original ICLR 2026 pretraining data none

nonmarker_all_iclr is the model from the paper (also kept at the repo root, so GraphEncoder.from_pretrained("HirenMadhu/HEIST") still loads it). nonmarker_all and xenium_marker were pretrained on rebuilt data that fixes a preprocessing bug in the original pipeline, where every cell of a cell type shared one gene-expression vector.

nonmarker_all and xenium_marker use the gene vocabulary in gene_vocab.json (6,495 human gene symbols). Genes outside this vocabulary are ignored, so datasets with partly unknown panels still work. Mouse symbols need mapping to human orthologs first.

Usage

Clone the repo and install dependencies:

git clone https://github.com/Graph-and-Geometric-Learning/HEIST
cd HEIST
pip install -e .

Embed a dataset (raw counts in .X, coordinates in .obsm['spatial']; needs a CUDA GPU):

python embed.py --adata sample.h5ad --out sample_heist.h5ad --model nonmarker_all

or from Python:

from utils.inference import load_heist, embed_adata

model, gene_vocab = load_heist("nonmarker_all")   # or "xenium_marker", "nonmarker_all_iclr"
adata.obsm["X_heist"] = embed_adata(adata, model, gene_vocab, save_root="data/preprocessed", name="sample")

embed_adata runs the same preprocessing as the pretraining data: spatial tiling of large tissues, top-200 highly variable genes, Leiden clusters, MAGIC, a Voronoi cell graph, and GPU KSG mutual-information gene networks. For a walkthrough with PHATE visualization, see cell_embeddings.ipynb.

Citation

@inproceedings{madhu2026heist,
  title={{HEIST}: A Graph Foundation Model for Spatial Transcriptomics and Proteomics Data},
  author={Madhu, Hiren and Rocha, Jo{\~a}o Felipe and Huang, Tinglin and Viswanath, Siddharth and Krishnaswamy, Smita and Ying, Rex},
  booktitle={The Fourteenth International Conference on Learning Representations},
  year={2026},
  url={https://openreview.net/forum?id=lK82jpa8jr}
}
Downloads last month
111
Safetensors
Model size
10.4M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support