newton-kepler
Code for a research paper studying what physics or algorithms transformers learn internally when trained to predict planetary motion. Used to explore how learned world models relate to Kepler and Newton style laws.
Pick a small issue you can reproduce, then fix it with your AI coding agent.
Share on XNo license declared
Overview
This repository holds the code for a research paper titled From Kepler to Newton: Inductive Biases Guide Learned World Models in Transformers. It studies what a transformer learns internally when trained to predict planetary motion, and whether it behaves like a Keplerian or a Newtonian world model. The experiments use 1D sine waves and 2D Kepler orbits, with training scripts and analysis notebooks that reproduce the paper figures.
Key features
- Training scripts for classification and regression transformers
- Experiments on 1D sine waves and 2D Kepler orbits
- Notebooks that reproduce figures and analyze training dynamics
- Compares full-context attention with local attention
Best for
Researchers studying learned world models or interpretability who want to reproduce and extend the paper's experiments.
- Upstream
- KindXiaoming/newton-kepler
- Fork on GitHub
- Guo-astro/newton-kepler
- Upstream stars
- 50
- Category
- Finance, data and research
- License
- No license declaredWithout a license, the author keeps all rights. Ask the upstream owner before reusing the code.
- Forked
- 2026-02-09
- Sync status
- In syncLast synced 2026-10-19
More in Finance, data and research
Python tools and sample data for exploring algorithmic trading strategies, including indicators, performance metrics, optimization, and portfolio simulation.
Forked 2026-10-18Last synced 2026-10-19Custom license (see repository)Finance, data and researchGitHub
NautilusTrader is a Rust-native engine for building multi-asset, multi-venue trading systems. It supports research, deterministic simulation, and live execution using a shared event-driven architecture.
Forked 2026-10-15Last synced 2026-10-19License: LGPL-3.0Finance, data and researchGitHub
A TradingView Pine Script collection for technical market analysis, strategy backtesting, and alerts. It gives traders reusable indicators, strategy scripts, and multi-symbol alert systems for exploring trading setups.
Forked 2026-10-15Last synced 2026-10-19No license declaredFinance, data and researchGitHub
finvizfinance is a Python library for collecting financial information from FinViz, including stock data, news, and insider activity. Use it to analyze individual securities or compare stocks with screening filters.
Forked 2026-10-14Last synced 2026-10-19License: MITFinance, data and researchGitHub