Spaces:
Running
Running
File size: 11,107 Bytes
ca4b706 57f9b3a 66f269e 57f9b3a ca4b706 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="description" content="Inspect recorded sensory predictions and recurrent states in small world models. A bounded spatial-memory research kit with negative results.">
<title>Spatial Memory Kit · Trace Explorer</title>
<link rel="stylesheet" href="style.css">
<script defer src="catalog.js"></script>
<script defer src="app.js"></script>
</head>
<body>
<header class="masthead">
<div class="brand"><span class="mark" aria-hidden="true">◎</span><span>SPATIAL MEMORY KIT <small>v0.1 / trace explorer</small></span></div>
<span class="badge">RECORDED REPLAY</span>
</header>
<main>
<section class="intro">
<p class="eyebrow">SMALL WORLD MODELS · OPEN RESEARCH</p>
<h1>Remembering a route.<br><span>Understanding a place?</span></h1>
<p class="lede">Follow the observations, predictions, and 128 internal values of a small recurrent world model. History can help prediction while spatial understanding still fails to transfer.</p>
<p class="jp" lang="ja">小型世界モデルが見たもの・予測したもの・内部状態を、実測記録から追います。「履歴を使うこと」と「経路が変わっても場所を理解できること」を分けて見てください。</p>
<div class="facts"><span><strong>276,501</strong> parameters / model</span><span><strong>12</strong> trained models</span><span><strong>24</strong> recorded traces</span><span><strong>49</strong> observed steps / trace</span></div>
</section>
<section class="explorer" aria-labelledby="trace-title">
<div class="section-heading"><div><p class="eyebrow">01 / COMPARE RECORDED TRAJECTORIES</p><h2 id="trace-title">One model. Two routes.</h2></div><span id="status" role="status">Loading trace…</span></div>
<div class="controls">
<label>Update & initial bias<select id="arm"><option value="coupled_b7">Coupled · bias 7</option><option value="separate_b7">Separate · bias 7</option><option value="coupled_b2">Coupled · bias 2</option><option value="separate_b2">Separate · bias 2</option></select></label>
<label>Paired seed<select id="seed"><option>33101</option><option>33113</option><option>33127</option></select></label>
<label>Route<select id="route"><option value="a_one">A1 · original route</option><option value="a_two">A2 · rearranged route</option></select></label>
<label>Prediction horizon<select id="horizon"><option value="1">1 action ahead</option><option value="5">5 actions ahead</option></select></label>
</div>
<p class="micro">Default model: a preselected explanation example, not the best-performing model. All four conditions and all three paired seeds are available. Trained states only; paired initial weights are available in the Python kit.</p>
<div class="transport">
<button id="play" type="button" aria-label="Play recorded trajectory">▶ Play</button>
<button id="back" type="button" aria-label="Previous recorded step">−1</button>
<label class="timeline">Observed time <output id="time">0 / 48</output><input type="range" min="0" max="48" value="0" id="step" aria-label="Observed timestep"></label>
<button id="next" type="button" aria-label="Next recorded step">+1</button>
<label class="speed">Speed<select id="speed"><option value="500">2 steps/s</option><option value="1000">1 step/s</option><option value="250">4 steps/s</option></select></label>
</div>
<div class="images">
<article class="image-card"><p class="card-kicker">INPUT</p><h3>Current observation</h3><canvas id="observation" width="256" height="256" role="img" aria-label="Current recorded 16 by 16 grayscale observation"></canvas><p id="observation-label">o(t)</p></article>
<article class="image-card accent"><p class="card-kicker">MODEL OUTPUT</p><h3>Predicted future</h3><canvas id="prediction" width="256" height="256" role="img" aria-label="Model's recorded future image prediction"></canvas><p id="prediction-label">Prediction</p></article>
<article class="image-card"><p class="card-kicker">EVALUATION TARGET</p><h3>Actual future</h3><canvas id="truth" width="256" height="256" role="img" aria-label="Recorded future image target, not a model input at current time"></canvas><p id="truth-label">Target</p></article>
</div>
<div class="metric-strip"><span>Image MSE <strong id="mse">—</strong></span><span>Current-image copy MSE <strong id="copy">—</strong></span><span>Known planned actions <strong id="actions">—</strong></span></div>
<p class="micro">MSE values are calculated from the original float32 images at this one timestep. Display images are rounded to 8-bit grayscale. This single case is not the full evaluation score. Future actions are supplied; future observations are withheld from the model.</p>
<div class="section-heading state-heading"><div><p class="eyebrow">02 / FOLLOW THE COMPUTATION</p><h2>What changes inside?</h2></div><span class="legend"><i class="negative"></i> −1 <i class="zero"></i> 0 <i class="positive"></i> +1</span></div>
<div class="states">
<article><h3>Observation state <code>h(t)</code></h3><p>History through the current observation.</p><canvas id="hidden" width="512" height="256" role="img" aria-label="128 observed state values arranged by feature index"></canvas><span id="h-summary" class="micro"></span></article>
<article><h3>Action prior <code>p(t)</code></h3><p id="prior-label">Based on the previous action.</p><canvas id="prior" width="512" height="256" role="img" aria-label="128 action-prior values, or unavailable when not computed"></canvas><span id="prior-summary" class="micro"></span></article>
<article><h3>Imagined state <code id="z-label">z₁(t)</code></h3><p>Rollout from h(t) using future actions only.</p><canvas id="imagined" width="512" height="256" role="img" aria-label="128 imagined future state values arranged by feature index"></canvas><span id="z-summary" class="micro"></span></article>
</div>
<p class="state-note"><strong>These are feature values, not a map or a physical circuit.</strong> The 8×16 arrangement follows index order (0–127). A value at the same index in different models need not have the same meaning. Hover over a grid for its displayed value. States are rounded to six decimals for display. At the coupled episode start the prior is computed but unadopted; its value is masked in the saved trace and is not fabricated here.</p>
<p class="jp" lang="ja">この色の格子は128個の値を順番に並べたものです。神経配線の配置図でも、位置をそのまま表す地図でもありません。どの成分が場所を因果的に担うかを同定した表示ではありません。</p>
<details><summary>Trace identity and provenance</summary><dl id="provenance"></dl><p>All traces are case 0, with query time 48, recorded using FP32 with TF32 disabled. Trained weights are fixed throughout. Simulator coordinates are not model inputs.</p></details>
</section>
<section class="explainer">
<p class="eyebrow">03 / KEEP THE CLAIM SMALL ENOUGH TO TEST</p>
<h2>Three questions. Three different tests.</h2>
<div class="questions">
<article><span class="number">01</span><h3>Can it predict?</h3><p>Compare future sensory predictions with a current-image-copy baseline. Better prediction alone does not establish spatial memory.</p></article>
<article><span class="number">02</span><h3>Does history help?</h3><p>Remove or exchange earlier state while controlling current observations. Compare trained models with matched untrained recurrence.</p></article>
<article><span class="number">03</span><h3>Does it transfer?</h3><p>Change the route, direction, or distance. Check both the model's predictions and external readouts, with their assumptions kept separate.</p></article>
</div>
<div class="result"><div><p class="eyebrow">ORIGINAL FULL EVALUATION · FEATURED CHECKPOINT</p><h3>A1 → A2: memory remained,<br>route transfer was limited.</h3></div><div class="score"><span>A1 h1 / h5</span><strong>100 / 100<small>%</small></strong></div><div class="score"><span>A2 h1 / h5</span><strong>42.19 / 37.50<small>%</small></strong></div></div>
<p>The A2 reset-eight control was 25% / 25%. These are native future-image candidate accuracies from the original multi-case evaluation, not aggregates of the displayed 24 traces. The fixed combined v33 criterion (short-task retention, long wait, movement-native prediction, and spatial readout) was unmet for all 12 candidates. Some earlier acquisition preconditions were unmet, so this does not mean every model learned and then forgot.</p>
<p>Across the original evaluation, failures of source-trained position readouts did not prove an absence of position information: recalibration within the target route could recover useful information. Architecture differences also changed sign across seeds. General navigation, autonomous exploration, and long-term survival were not established.</p>
</section>
<section class="getting-started"><div><p class="eyebrow">04 / RECOMPUTE THE MODEL</p><h2>From a replay to a test.</h2><p>The Python kit contains original-precision NPZ traces, 12 final models and 12 matched initial models, safetensors weights, portable inference, and a small training smoke run. It does not include the complete 39-candidate historical study or all original training data.</p><p class="jp" lang="ja">ここは記録の再生です。Pythonキットでは、同じ観測列をモデルへ入力し直して計算を確認できます。未学習モデルとの比較もできます。</p></div><pre><code>python -m pip install -e .
python -m spatial_memory_kit verify --root .
python -m spatial_memory_kit replay --root . \
--model coupled_b7_s33101 \
--route a_two --state initial</code></pre></section>
<footer><p><a href="https://github.com/qwel64/spatial-memory-kit" target="_blank" rel="noopener noreferrer">GitHub · code and research kit</a> · <a href="https://huggingface.co/nao1357/spatial-memory-kit-v0.1" target="_blank" rel="noopener noreferrer">Hugging Face · weights and traces</a> · <a href="https://github.com/qwel64/spatial-memory-kit/blob/v0.1.0/README.ja.md" target="_blank" rel="noopener noreferrer" lang="ja">日本語の説明</a></p><p>Exploratory personal research by qwel64 · MIT · 2026. Developed with AI agents for implementation, analysis, checks, and writing. Agent checks are not external peer review or independent laboratory replication.</p><p>No external scripts, analytics, live model service, or GPU computation are used by this viewer.</p></footer>
</main>
<noscript><p class="noscript">JavaScript is required to load and replay the recorded trajectories. Scientific scope and limitations remain readable above.</p></noscript>
</body>
</html>
|