CoolFace
Modelpublic

GreenGenomicsLab/TARA-WorldModel-VICReg

sourceHugging Faceapache-2.0updated 9d agoView on Hugging Face
0likes
Model Card

TARA-WorldModel-VICReg

Joint environment-proteome embedding model using VICReg (Variance-Invariance-Covariance Regularization) self-supervised learning, applied to the TARA Oceans metagenomic dataset. This model aligns environmental and Pfam protein domain representations in a shared 32-dimensional latent space.

This model represents an exploratory methodological approach deposited for transparency and reproducibility. The XGBoost bidirectional framework (TARA-XGBoost-Bidirectional) was retained as the primary modeling approach in the ELF-NET study.

Architecture

Environment branch: Input(env_dim) -> Linear(hidden) -> ReLU -> Dropout(0.3) -> Linear(32)
Pfam branch:        Input(pfam_dim) -> Linear(hidden) -> ReLU -> Dropout(0.3) -> Linear(32)
PropertyValue
Latent dimension32
Parameters~53K--64K (varies with Pfam input dimensionality)
VICReg loss weightsvariance = 25.0, invariance = 25.0, covariance = 1.0
Prediction head alpha1.0

Training Data

PropertyValue
Source1,151 samples with complete productivity data (Chl-a, POC, NFLH) from the 1,810-sample GPS-mapped domain-analysis subset
Environmental featuresGoogle Earth Engine oceanographic variables
Pfam featuresCLR-transformed domain abundances reduced via PCA to 20, 32, or 64 dimensions

Performance

6-Fold Leave-One-Basin-Out (LOBO) CV

TargetJoint Model R²Env-Only Baseline R²Cohen's dp-value
POC0.5320.4220.0260.38
Chl-a0.5160.561----
NFLH0.5600.700----

9-Fold Spatial Block CV (matching primary XGBoost design)

Pfam dimXGB Baseline R²VICReg R²Delta R²
pfam200.417-2.045-2.462
pfam320.417-4.217-4.634
pfam640.417-1.262-1.679

The negative R² under spatial CV reflects the MLP architecture's sensitivity to distribution shift on spatially distinctive held-out basins (Mediterranean, mid-Pacific), a known limitation of shallow neural networks on small tabular datasets (N ~ 1,100). This is an architecture confound, not evidence against the Pfam alignment signal itself.

Repository Contents

DirectoryContents
checkpoints/24 model checkpoints (4 hyperparameter configurations x 6 ocean basin folds)
scripts/Core training code (train_world_model.py, vicreg_loss.py, world_model.py)
results/Per-fold metrics, training curves, hyperparameter sweep results, permutation tests
config/Best hyperparameter configuration

Usage

python
import torch

checkpoint = torch.load(
    "checkpoints/20260127_111754/world_model_fold_Arctic_20260127_111754.pt",
    map_location="cpu",
    weights_only=False
)
state_dict = checkpoint["model_state_dict"]

Related Resources

ResourceLink
ELF-NET analysis pipeline (371 scripts, 15 modules)github.com/olympus-terminal/ELF-NET
Bidirectional XGBoost models (primary approach)TARA-XGBoost-Bidirectional
algaGPT protein classifierGreenGenomicsLab/algaGPT
Dark-whiteGPLM checkpointsSarahDaakour/dark-whiteGPLM

References

  • —Bardes, A., Ponce, J., & LeCun, Y. (2022). VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning. ICLR 2022.

Authors

David R. Nelson, Kourosh Salehi-Ashtiani

New York University Abu Dhabi

Citation

bibtex
@article{nelson2026elfnet,
  title   = {Coupling of oceanographic state to the dark proteome: a foundation for genome-informed marine productivity modeling},
  author  = {Nelson, David Roy and Plouviez, Maxence and Daakour, Sarah and Jaiswal, Ashish and Fu, Weiqi and Amin, Shady A. and Salehi-Ashtiani, Kourosh},
  journal = {Forthcoming},
  year    = {2026}
}

Contact

Kourosh Salehi-Ashtiani -- ksa3@nyu.edu