SONAPSE-PICO-1 โ€” a 131 KB standalone recurrent world agent

A GRU-256 policy, stored with 4-bit weights (quantization-aware trained), that runs on NumPy alone. It does not need PyTorch, a teacher model or network access at inference.

Package

File Bytes Role
model.pico 129,896 Weights (.pico v1: per-row INT4 + FP16 scales, FP32 biases, SHA-256 checksum)
manifest.json 1,661 Architecture, tensor table, lineage, limitations
Inference assets total 131,557 Fits the 1 MB / 3 MB / 5 MB PICO tiers
runtime.py ~9 KB Reference NumPy runtime and format spec (stdlib + NumPy)
env.py ~4 KB Task environment (needed to run episodes, not to run the model)

model.pico SHA-256: 96d2bff1aaeb945320215af62a3177dcd7e0a8044672be3bb8895ea24dfc12a5

Only the model assets fit the budget. The full application is larger: NumPy is about 31 MB installed, plus the Python interpreter. The weights are stored as INT4 but dequantized to FP32 at load, so no native INT4 compute speed is claimed.

Use

pip install numpy
python run_episode.py 1000      # success rate on locked test layouts
from runtime import PicoAgent
from env import GridWorld
ag = PicoAgent("model.pico"); ag.reset(1)
env = GridWorld(seed=2_000_000)
while not env.done:
    env.step(int(ag.step(env.obs())[0]))
print(env.success, env.collected)

Streaming API: reset(batch), then step(obs[B, 55]) -> actions[B]. The loader rejects bad magic numbers, versions, offsets, shapes and checksums, and it never unpickles anything.

Task

  • 13ร—13 grid with random walls (p=0.18) and 5 resources. The episode succeeds if all 5 are collected within 60 steps.
  • The agent sees only a 5ร—5 egocentric window (walls and resources) plus its last action and a "collected" flag. It must remember explored areas to succeed.
  • Actions: up, down, left, right.
  • Train, validation and test layouts come from disjoint seed ranges.

Results (locked test, evaluated in an isolated process with torch blocked and sockets disabled)

Condition n This model (131 KB) Teacher GRU-256 FP32 Algorithmic mapper expert Privileged oracle
Standard test 1000 80.7% [78.1, 83.0] 77.5% 94.3% 100%
5% sensor bit-flip noise 500 9.2% 9.8% 17.8% 100%
15ร—15, 6 resources, 90 steps 500 79.4% 77.2% 98.6% 100%
Wall density 0.28 500 61.2% 60.8% 89.2% 100%

Single-step latency at batch 1 is about 108 ยตs on a Windows 11 laptop CPU. Peak process RSS is about 65 MB, mostly Python and NumPy.

Training (summary)

  1. A non-privileged mapping/frontier expert generates demonstrations.
  2. A GRU-256 teacher is trained by behaviour cloning plus one DAgger round.
  3. The student is a GRU-256 trained with output KD from the teacher plus Procrustes-aligned hidden-state KD (a Plato's Keyโ€“style alignment).
  4. INT4 quantization-aware fine-tuning, then export to .pico.
  5. Selection: highest validation success under the tier budget. The test set was evaluated only after the model was locked.

Limitations โ€” read before use

  • Narrow, synthetic task. This is not a general agent and has no language ability.
  • Retention vs the expert is 85.6%. That misses the project's own 95% retention target.
  • The hand-written algorithmic expert beats it in every condition.
  • Fails under sensor noise (about 9% success).
  • In this project's ablations, Procrustes hidden KD was not distinguishable from shuffled or learned-projection controls. Do not cite this model as evidence that alignment-based distillation helps.
  • Results are exploratory: 1โ€“3 training seeds per comparison, CPU-only compute, Windows 11 is the only platform tested.
  • The test set was used twice (tier packaging and one live-learning check).
Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading

Evaluation results

  • Episode success rate (n=1000) on SONAPSE-PICO GridWorld 13x13 (locked test seeds 2,000,000-2,000,999)
    self-reported
    0.807