Skip to content

Releases

TTC two-network agent weights (s9 + transfer specialist)

Choose a tag to compare

@PedroM2626 PedroM2626 released this 16 Nov 10:36

Weights of the two-network Tick Tock Clock (ds8) agent described in the README section "Two-policy agent: main policy and transfer specialist".

Files (PyTorch state dicts saved by src/btr.py: keys net and n_actions; SHA256 in SHA256SUMS.txt)

File Role Actions
btr_ttc_s9_step_750000.pt main policy: plays from the normal start until it reaches waypoint 340 (decision 1,629, on the clock hand) 10 (ref10)
btr_ttc_spec5_final.pt transfer specialist: takes over at waypoint 340 and goes on to the star 13 (ref13)

Use (put the files under models/, e.g. models/btr_ttc_s9/step_750000.pt and models/btr_ttc_spec5/final.pt; the Super Mario 64 DS ROM and the ds8 savestate are not distributed and must be provided separately, see the README):

python scripts/eval_ttc_composite.py --main models/btr_ttc_s9/step_750000.pt --spec models/btr_ttc_spec5/final.pt \
    --handoff-wp 340 --main-fixed-taus --episodes 5 --seed 81 --max-steps 3000
python scripts/record_ttc_composite.py --main models/btr_ttc_s9/step_750000.pt --spec models/btr_ttc_spec5/final.pt \
    --seed 81 --episode 0 --main-fixed-taus --max-steps 3000 --out videos/ttc_two_policy_star.mp4

Results (episodes from the normal start, horizon 3,000 decisions; success = the course unloads with Mario near the star, see the README):

  • main policy with fixed quantile levels (--main-fixed-taus), specialist with random levels: 39 stars in 40 episodes (97.5%, 95% Wilson interval about 87-100%).
  • random quantile levels in both policies (the specialist spec4, an earlier checkpoint of the same line): 22 stars in 40 episodes (55%), because the main policy falls before the hand in about 45% of the episodes.

Caveats: the stage always starts from the same savestate and the emulator is deterministic, so the 97.5% mostly measures the specialist from one hand-over state; one training run per network; the agent is two networks with a hand-over rule chosen by hand (waypoint 340), not a single end-to-end policy. torch.load unpickles: load these files only from this release.

TTC single-network agent weights v2 (with searched last-jump demonstrations)

Choose a tag to compare

@PedroM2626 PedroM2626 released this 16 Nov 21:35

Weights of the single-network Tick Tock Clock (ds8) agent, version 2: one 13-action network (ref13, IQN/BTR architecture of src/btr.py), distilled from the two-network agent and then corrected with demonstrations of the last jump found by a policy-guided search. Version 1 (release ttc-single-network-v1) is the network before that correction. See the README section "Single network distilled from the two" for the method, the results and the limits.

File: btr_ttc_single_network_v2_final.pt (PyTorch state dict, keys net and n_actions; SHA256 in SHA256SUMS.txt). Put it at models/btr_ttc_single/final.pt; the Super Mario 64 DS ROM and the ds8 savestate are not distributed.

# deterministic policy (fixed quantile levels): the episode ends in the star at decision 1,900
python scripts/probe_ttc.py --model models/btr_ttc_single/final.pt --episodes 1 --max-steps 3000 --deterministic
# random quantile levels (the policy's usual mode)
python scripts/probe_ttc.py --model models/btr_ttc_single/final.pt --episodes 10 --max-steps 3000

Results (episodes from the normal start, horizon 3,000 decisions; success = the course unloads with Mario near the star):

  • random quantile levels: 38 stars in 40 episodes (95%, 95% Wilson interval about 83-99%); the two without a star: one died at waypoint 364, one reached the end of the route (370) without the star.
  • fixed quantile levels (deterministic): the episode ends in the star (1,900 decisions).
  • version 1 of the network, for comparison: 26 of 40.

Limits: the agent works only from the exact start of the stage (for version 1 and for the s9 policy it comes from, any no-op decision before the start broke it; not re-tested for version 2). One training run; 40 episodes; the last epoch was used, not picked among epochs. torch.load unpickles: load these files only from this release.

TTC single-network agent weights (distilled from s9 + specialist)

Choose a tag to compare

@PedroM2626 PedroM2626 released this 16 Nov 18:00

Weights of the single-network Tick Tock Clock (ds8) agent: one 13-action network (ref13, IQN/BTR architecture of src/btr.py) distilled from the two-network agent (main policy s9 + transfer specialist, release ttc-two-network-v1). See the README section "Single network distilled from the two" for the method, the results and the limits.

File: btr_ttc_single_network_final.pt (PyTorch state dict, keys net and n_actions; SHA256 in SHA256SUMS.txt). Put it at models/btr_ttc_single/final.pt; the Super Mario 64 DS ROM and the ds8 savestate are not distributed.

# deterministic policy (fixed quantile levels): the episode ends in the star at decision 1,899
python scripts/probe_ttc.py --model models/btr_ttc_single/final.pt --episodes 1 --max-steps 3000 --deterministic
# random quantile levels (the policy's usual mode), 10 episodes
python scripts/probe_ttc.py --model models/btr_ttc_single/final.pt --episodes 10 --max-steps 3000

Results (episodes from the normal start, horizon 3,000 decisions; success = the course unloads with Mario near the star):

  • random quantile levels: 26 stars in 40 episodes (65%, 95% Wilson interval about 50-78%); of the 14 without a star, 12 reached the end of the route and 2 stopped at waypoint 336.
  • fixed quantile levels (deterministic): the single episode ends in the star (1,899 decisions).

Limits: the agent works only from the exact start of the stage. After k = 1 or more no-op decisions at the start it fails (the same happens to the s9 policy it was distilled from): the world's clock mechanisms are time dependent and the policy follows an almost fixed trajectory. One training run; the number of episodes is small. torch.load unpickles: load these files only from this release.

v1.1.0: 3D Proximity Rewards, RAM State Detection & Environment Assets

Choose a tag to compare

@PedroM2626 PedroM2626 released this 02 Nov 21:03

Release v1.1.0 includes:

  • Exact 3D player coordinates in RAM (s20.12 fixed-point) and potential-based reward shaping toward course finish lines.
  • Instantaneous RAM kill-plane death detection (0x0217F760), eliminating camera fade latency.
  • Global Star Counter detection (0x0209FB64) and Tick Tock Clock support (ds8, ds9).
  • Savestate bundle assets/sm64ds_states.tar.gz containing active starting states (ds1, ds2, ds3, ds8, ds9) with SHA-256 manifest.
  • Savestate management tool (scripts/manage_states.py) for verification, bundling, and unpacking.