DynaCLIP is a self-supervised visual encoder that embeds implicit physical dynamics into visual representations through contrastive pre-training with analytically computed physics priors. Built on DINOv2-ViT-B/14, it fine-tunes the entire backbone with a Soft InfoNCE loss using category-grounded material properties (mass, friction, restitution) derived from 10 physics archetypes.
1import torch
2from dynaclip.models import DynaCLIPEncoder
3
4# Load backbone for downstream feature extraction
5encoder = DynaCLIPEncoder(checkpoint_path="dynaclip_backbone.pt")
6encoder.eval().cuda()
7
8images = torch.randn(4, 3, 224, 224).cuda()
9with torch.no_grad():
10 features = encoder(images) # [4, 1536]
1from huggingface_hub import hf_hub_download
2
3path = hf_hub_download(repo_id="zhengtaoyao/DynaCLIP", filename="dynaclip_backbone.pt")
1@inproceedings{yao2026dynaclip,
2 title={DynaCLIP: Physics-Grounded Visual Representations via Dynamics Contrastive Learning},
3 author={Yao, Zhengtao},
4 booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
5 year={2026}
6}