GitHub - lishiqianhugh/NeuralForceField: Learning Generalized Physical Representation from a Few Examples (original) (raw)
Neural Force Field: Few-shot Learning of Generalized Physical Reasoning
ICLR 2026
π Project structure
NeuralForceField/
β
βββ data/
β βββiphyre/game_seq_data/
β βββ activated_pendulum/
β βββ angle/
β βββ ...
β βββ support_hole/
β βββ nbody/
β βββ train_data.npy
β βββ val_data.npy
β βββ within_data.npy
β βββ cross_data.npy
β
βββ checkpoints/
β βββ nbody/
β βββ nff/
β βββ in/
β βββ slotformer/
β βββ segno/
β βββ model_best.pth
β βββ train_args.json
β βββ iphyre/
β
βββ iphyre/
β βββ configs/ # Configuration files
β βββ models/ # Model dir containing NFF, IN, SlotFormer
β βββ utils/ # Useful tools such as dataloader
β βββ planning.py # Planning script
β βββ README.md # An instruction for use
β βββ test.py # Evaluation functions
β βββ train.py # Training functions
β
βββ iphyre/
β βββ configs/ # Configuration files
β βββ models/ # Model dir containing NFF, IN, SlotFormer
β βββ utils/ # Useful tools such as dataloader
β βββ generate_data.py # Data generation functions
β βββ planning.py # Planning script
β βββ README.md # An instruction for use
β βββ test.py # Evaluation functions
β βββ train.py # Training functions
π§ Getting started
Make sure you have installed torch, torchdiffeq, iphyre, and rebound.
Go to the specific task directory to train and test the models. The instructions of running commands are provided for each task (README_iphyre and README_nbody). Download data here and checkpoin ts here.
or
π Related Projects
- [ICLR 2026] Learning Physics-Grounded 4D Dynamics with Neural Gaussian Force Fields: Our latest approach extending NFF to video prediction and 3D deformable objects. [Project Page | Paper | Code]
π Citation
If you find our work helpful, please consider citing:
@inproceedings{ li2026nff, title = {Neural Force Field: Few-shot Learning of Generalized Physical Reasoning}, author = {Li, Shiqian and Shen, Ruihong and Tao, Yaoyu and Zhang, Chi and Zhu, Yixin}, year = {2026}, booktitle = {ICLR}, url = {https://neuralforcefield.github.io/} }
