SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.15338 · NeurIPS · 2022

Learning Integrable Dynamics with Action-Angle Networks

Miles Cranmer, Shirley Ho, Tess Smidt, Ameya Daigavane, Arthur Kosmala

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2211.15338.json · badge: /api/ran/2211.15338.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ameya98/actionanglenetworks canonical (classifier label)
classifier basis: classifier_2025
3 ran · 2 no recorded run
FunctionStatusWhere it lives
ActionAngleNetwork Ran
ran on a synthesized input · constructed an object; no result was computed
ameya98/actionanglenetworks/action_angle_networks/models.py
code served (permissive licence) · get_code("7286256ed3535fd5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, ActionAngleNetwork: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax
import jax.numpy as jnp
import flax.linen as nn
from typing import Tuple
import chex

# Define minimal encoder implementation
class MinimalEncoder(nn.Module):
    def __call__(self, positions: chex.Array, momentums: chex.Array) -> Tuple[chex.Array, chex.Array]:
        # Simple identity-like encoder that projects to latent space
        # positions: (batch, 4), momentums: (batch, 4) -> latent: (batch, 3)
        latent_positions = positions[:, :3]
        latent_momentums = momentums[:, :3]
        return latent_positions, latent_momentums

# Define minimal decoder implementation
class MinimalDecoder(nn.Module):
    def __call__(self, latent_positions: chex.Array, latent_momentums: chex.Array) -> Tuple[chex.Array, chex.Array]:
        # Simple decoder that projects latent back to observation space
        # latent_positions: (batch, 3), latent_momentums: (batch, 3) -> positions: (batch, 4), momentums: (batch, 4)
        batch_size = latent_positions.shape[0]
        positions = jnp.concatenate([latent_positions, jnp.zeros((batch_size, 1))], axis=1)
        momentums = jnp.concatenate([latent_momentums, jnp.zeros((batch_size, 1))], axis=1)
        return positions, momentums

# Define minimal angular velocity network
class MinimalAngularVelocityNet(nn.Module):
    def __call__(self, actions: chex.Array) -> chex.Array:
        # Takes actions and returns angular velocities
        # actions: (batch, 3) -> angular_velocities: (batch, 3)
        return jnp.ones_like(actions) * 0.1

# Create instances
encoder = MinimalEncoder()
decoder = MinimalDecoder()
angular_velocity_net = MinimalAngularVelocityNet()

ARGS = {
    'encoder': encoder,
    'angular_velocity_net': angular_velocity_net,
    'decoder': decoder,
    'polar_action_angles': True,
    'single_step_predictions': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, flax, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ActionAngleNetwork — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a ActionAngleNetwork output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
cartesian_to_polar Ran
ran, honoured the contract we drafted
ameya98/actionanglenetworks/action_angle_networks/models.py
code served (permissive licence) · get_code("59a6dd48365d5309")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import chex

# Create small cartesian coordinate arrays
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
               [5.0, 6.0, 7.0, 8.0]])

y = jnp.array([[1.0, 1.0, 1.0, 1.0],
               [2.0, 2.0, 2.0, 2.0]])

ARGS = {
    'x': x,
    'y': y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
polar_to_cartesian Ran
ran, violated the contract we drafted
ameya98/actionanglenetworks/action_angle_networks/models.py
code served (permissive licence) · get_code("c787d35684a064db")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import chex

# Create small JAX arrays for polar coordinates
r = jnp.array([1.0, 2.0, 3.0, 4.0])
theta = jnp.array([0.0, jnp.pi/4, jnp.pi/2, jnp.pi])

ARGS = {
    "r": r,
    "theta": theta,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
CoordinateDecoder Not yet run
unverified (harvested, no recorded run)
ameya98/actionanglenetworks/action_angle_networks/models.py
code served (permissive licence) · get_code("4265300dd1f9f61a")
How it ran

no invocation recorded.

CoordinateEncoder Not yet run
unverified (harvested, no recorded run)
ameya98/actionanglenetworks/action_angle_networks/models.py
code served (permissive licence) · get_code("8ca37af455fb39b5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Machine learning has become increasingly popular for efficiently modelling the dynamics of complex physical systems, demonstrating a capability to learn effective models for dynamics which ignore redundant degrees of freedom. Learned simulators typically predict the evolution of the system in a step-by-step manner with numerical integration techniques. However, such models often suffer from instability over long roll-outs due to the accumulation of both estimation and integration error at each prediction step. Here, we propose an alternative construction for learned physical simulators that are inspired by the concept of action-angle coordinates from classical mechanics for describing integrable systems. We propose Action-Angle Networks, which learn a nonlinear transformation from input coordinates to the action-angle space, where evolution of the system is linear. Unlike traditional learned simulators, Action-Angle Networks do not employ any higher-order numerical integration methods, making them extremely efficient at modelling the dynamics of integrable physical systems. * Work performed when affiliated with Google Research and visiting Flatiron Institute.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2211.15338")
get_code_for_paper("2211.15338")
have("2211.15338")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2211.15338.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2211.15338.svg)](https://syntology.ai/paper/2211.15338)

Connect an agent — have() is free.