forked from robotron-models/supreme_v1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodelcard.tex
More file actions
393 lines (336 loc) · 13.7 KB
/
Copy pathmodelcard.tex
File metadata and controls
393 lines (336 loc) · 13.7 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
\documentclass[10pt,a4paper]{article}
\usepackage[margin=2cm]{geometry}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{graphicx}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage{enumitem}
\usepackage{titlesec}
\usepackage{fancyhdr}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{array}
\usepackage{float}
% Colors
\definecolor{supreme}{RGB}{30, 60, 114}
\definecolor{lightbg}{RGB}{245, 247, 250}
\definecolor{accent}{RGB}{0, 128, 128}
\definecolor{phase}{RGB}{100, 100, 100}
% Hyperlinks
\hypersetup{
colorlinks=true,
linkcolor=supreme,
urlcolor=accent,
citecolor=supreme
}
% Section styling
\titleformat{\section}{\Large\bfseries\color{supreme}}{}{0em}{}[\titlerule]
\titleformat{\subsection}{\large\bfseries\color{supreme!80}}{}{0em}{}
\titleformat{\subsubsection}{\normalsize\bfseries\color{supreme!60}}{}{0em}{}
% Header/Footer
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\textcolor{phase}{\small Supreme --- Model Card}}
\fancyhead[R]{\textcolor{phase}{\small v1.0 / April 2026}}
\fancyfoot[C]{\textcolor{phase}{\thepage}}
\renewcommand{\headrulewidth}{0.4pt}
\newcommand{\metricbox}[2]{%
\begin{tabular}{@{}l@{}}
\textcolor{phase}{\scriptsize #1} \\
\textbf{\large #2}
\end{tabular}
}
\begin{document}
% ============================================================
% TITLE
% ============================================================
\begin{center}
{\Huge\bfseries\textcolor{supreme}{Supreme}}\\[6pt]
{\Large Model Card}\\[12pt]
{\large A World Model with HOPE Hierarchical Memory for Robotics}\\[8pt]
{\normalsize April 2026 \quad$\cdot$\quad Version 1.0}
\end{center}
\vspace{1em}
\noindent\fcolorbox{supreme!20}{lightbg}{%
\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
\centering
\vspace{6pt}
\begin{tabular}{cccc}
\metricbox{Total Parameters}{$\sim$6.7M} &
\metricbox{Best Real Reward}{$-$10.57} &
\metricbox{Full Training Time}{$\sim$3 hours} &
\metricbox{Hardware}{M4 Air 16GB}
\end{tabular}
\vspace{6pt}
\end{minipage}
}
% ============================================================
\section{Model Overview}
% ============================================================
Supreme implements the Vision--Memory--Controller (V-M-C) architecture from World Models (Ha \& Schmidhuber, 2018) with the M model replaced by HOPE (Hierarchical Optimisation through Pattern Extraction) from the Nested Learning paper (Behrouz et al., 2025). The agent learns a compressed predictive model of its environment, then trains inside its own hallucinated dreams via CMA-ES evolutionary strategy.
\subsection{Intended Use}
\begin{itemize}[nosep,leftmargin=*]
\item Continuous control in MuJoCo robotics environments (Reacher-v5)
\item Research into hierarchical memory for model-based reinforcement learning
\item Dream training / imagination-based policy optimisation
\item Studying continual learning properties of multi-frequency memory systems
\end{itemize}
% ============================================================
\section{Architecture Specifications}
% ============================================================
\subsection{V Model --- ConvVAE Encoder}
\begin{table}[H]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Property} & \textbf{Value} \\
\midrule
Architecture & Convolutional Variational Autoencoder \\
Input & RGB frames, $64 \times 64 \times 3$ \\
Latent dimension & 32 \\
Parameters & $\sim$4.4M (encoder + decoder) \\
KL regularisation & Free bits with $\text{kl\_tolerance} = 0.5$ per dim \\
Training data & 100,000 frames from 2,000 random rollouts \\
Training time & $\sim$2 minutes on MPS \\
KL health & 13.80 nats/sample \\
\bottomrule
\end{tabular}
\end{table}
\subsection{M Model --- HOPEMemory}
The M model predicts next-latent distributions:
$P(z_{t+1} \mid a_t, z_t, h_t) = \sum_{k=1}^{K} \pi_k \, \mathcal{N}(\mu_k, \sigma_k^2)$
\begin{table}[H]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Property} & \textbf{Value} \\
\midrule
Total parameters & $\sim$2.3M \\
Input projection & $34 \to 128$ (latent 32 + action 2) \\
\addlinespace
\multicolumn{2}{@{}l}{\textit{Self-Modifying Titans}} \\
\quad Memory dimension & 128 \\
\quad Self-referential matrices & 6 ($M_k, M_v, M_q, M_\eta, M_\alpha, M_\text{memory}$) \\
\quad Update rule & L2-regression Delta Gradient Descent \\
\quad Key/query normalisation & L2 \\
\quad Local convolution window & 4 \\
\addlinespace
\multicolumn{2}{@{}l}{\textit{Continuum Memory System (CMS)}} \\
\quad Number of levels & 4 \\
\quad Frequencies & [1, 16, 1\,000\,000, 16\,000\,000] \\
\quad Active levels (50-step episodes) & L0 (freq=1), L1 (freq=16) \\
\quad Output dimension & 256 \\
\quad Level architecture & Sequential MLP chain \\
\addlinespace
\multicolumn{2}{@{}l}{\textit{MDN Head}} \\
\quad Gaussian components & 5 \\
\quad Output dimension & 32 (matching latent dim) \\
\quad Covariance & Diagonal \\
\quad Temperature range & $\tau \in [0.5, 1.3]$ \\
\addlinespace
Optimiser & AdamW throughout (M3 infrastructure validated Phase 6) \\
Loss function & MDN negative log-likelihood \\
\bottomrule
\end{tabular}
\end{table}
\subsection{C Model --- Controller}
\begin{table}[H]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Property} & \textbf{Value} \\
\midrule
Architecture & 1-hidden-layer MLP \\
Input dimension & 160 ($z_t = 32$, $h_t = 128$) \\
Hidden layer & 32 units, ELU activation \\
Output & 2 actions, $\tanh$ bounded to $[-1, 1]$ \\
Parameters & 5,218 \\
Training method & CMA-ES (population 64, $\sigma_0 = 0.3$) \\
Rollouts per evaluation & 8 \\
Generations & 100 \\
\bottomrule
\end{tabular}
\end{table}
% ============================================================
\section{Training Details}
% ============================================================
\subsection{Phase Summary}
\begin{table}[H]
\centering
\small
\begin{tabular}{@{}clllr@{}}
\toprule
\textbf{Phase} & \textbf{Component} & \textbf{Method} & \textbf{Key Output} & \textbf{Time} \\
\midrule
0 & Environment & MuJoCo setup & Reacher-v5 verified & --- \\
1 & V (ConvVAE) & Backprop (MSE+KL) & Frozen encoder & 2 min \\
2 & M (HOPE) & Backprop (MDN NLL) & Frozen world model & $\sim$30 min \\
3v1 & C (linear) & CMA-ES, real env & Reward: $-$16.1 & 7.4 min \\
3v2 & C (nonlinear) & CMA-ES, real env & Reward: $-$8.2 & 57.8 min \\
4 & C (dream) & CMA-ES, DreamEnv & Poor transfer & $\sim$10 min \\
5 & C (iterative) & CMA-ES + reward head & Reward: $\sim\!-$77 & $\sim$45 min \\
6 & M + C (scaled) & CMS inner-loop + ablations & Gradient starvation & $\sim$67 min \\
7 & Reward head & Decoupled training & Reward: $-$107 & $\sim$15 min \\
8A & M (fine-tune) & Multi-step + sched.~sampling & R$^2$@25: 0.99 & 21.9 min \\
8B+C & C (branched) & CMA-ES + $\lambda_u$ penalty & Dream: $-$32.0 & 7.2 min \\
8D & Transfer eval & Real environment & Reward: $-$59.7 & --- \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Data}
\begin{table}[H]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Property} & \textbf{Value} \\
\midrule
Environment & MuJoCo Reacher-v5 \\
Observation space & $64 \times 64$ RGB \\
Action space & 2 continuous $\in [-1, 1]$ \\
Episode length & 50 steps \\
Collection policy & Random \\
Rollouts collected & 2,000 \\
Total frames & 100,000 \\
Storage format & HDF5, uint8 \\
Storage size & $\sim$375 MB \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Hardware \& Software}
\begin{table}[H]
\centering
\begin{tabular}{@{}ll@{}}
\toprule
\textbf{Component} & \textbf{Specification} \\
\midrule
Hardware & Apple Mac M4 Air \\
RAM & 16 GB unified memory \\
Compute backend & MPS (Metal Performance Shaders) \\
Python & 3.12 \\
PyTorch & 2.x with MPS support \\
MuJoCo & Gymnasium[mujoco] \\
Evolution strategy & \texttt{cma} Python package \\
Data storage & HDF5 via \texttt{h5py} \\
\bottomrule
\end{tabular}
\end{table}
% ============================================================
\section{Evaluation Results}
% ============================================================
\subsection{Real-Environment Transfer}
All controllers evaluated over 100 rollouts in the real MuJoCo Reacher-v5 environment:
\begin{table}[H]
\centering
\begin{tabular}{@{}lcrrl@{}}
\toprule
\textbf{Agent} & \textbf{Training Mode} & \textbf{Reward} & \textbf{$\pm$ Std} & \textbf{Notes} \\
\midrule
Random & --- & $-$43.17 & 3.44 & No learning \\
Phase 3v1 (linear) & Real env & $-$16.1 & --- & 322 params \\
\rowcolor{lightbg}
Phase 3v2 (nonlinear) & Real env & $\mathbf{-10.57}$ & 3.08 & \textbf{Gold standard} \\
Phase 5 (iterative) & Dream & $\sim\!-$77 & --- & Reward head added \\
Phase 7 (calibrated) & Dream & $-$107.02 & 2.18 & Full 50-step dreams \\
\rowcolor{lightbg}
Phase 8 (branched) & Dream + buffer & $\mathbf{-59.71}$ & 2.19 & \textbf{Best dream-trained} \\
\bottomrule
\end{tabular}
\end{table}
\subsection{World Model Fidelity (Phase 8A)}
\begin{table}[H]
\centering
\begin{tabular}{@{}lcc@{}}
\toprule
\textbf{Metric} & \textbf{Before Fine-Tuning} & \textbf{After Fine-Tuning} \\
\midrule
R$^2$ at horizon 25 & 0.9735 & 0.9902 \\
Single-step MDN loss & $-$119.95 & $-$138.00 \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Dream Training (Phase 8B+C)}
\begin{table}[H]
\centering
\begin{tabular}{@{}lr@{}}
\toprule
\textbf{Detail} & \textbf{Value} \\
\midrule
Real-state buffer size & 24,500 transitions (500 episodes) \\
Branch curriculum & $k = 5 \to 10 \to 15$ steps \\
MDN variance penalty $\lambda_u$ & 0.5 \\
CMA-ES convergence & Generation 52 (early stopped) \\
Best dream reward & $-$31.99 \\
Training time & 7.2 minutes \\
\bottomrule
\end{tabular}
\end{table}
% ============================================================
\section{HOPE-Specific Properties}
% ============================================================
\subsection{CMS Frequency Separation (Validated Phase 6)}
\begin{table}[H]
\centering
\begin{tabular}{@{}llll@{}}
\toprule
\textbf{CMS Level} & \textbf{Frequency} & \textbf{Update Cadence (50-step ep.)} & \textbf{Drift During Training} \\
\midrule
Level 0 (fast) & 1 & Every step (50$\times$) & High (as expected) \\
Level 1 (medium) & 16 & Every 16 steps ($\sim$3$\times$) & Moderate \\
Level 2 (slow) & 1\,000\,000 & Never (frozen) & Zero \\
Level 3 (permanent) & 16\,000\,000 & Never (frozen) & Zero \\
\bottomrule
\end{tabular}
\end{table}
\subsection{CMS Reset Levels for Dream Training}
\begin{table}[H]
\centering
\begin{tabular}{@{}llll@{}}
\toprule
\textbf{reset\_level} & \textbf{Resets} & \textbf{Persists} & \textbf{Use Case} \\
\midrule
\texttt{all} & Titans + all CMS & Nothing & Standard (matches original paper) \\
\texttt{fast} & Titans + L0 & L1, L2 & Cross-episode memory \\
\texttt{fast+mid} & Titans + L0 + L1 & L2 only & Strongest persistence \\
\bottomrule
\end{tabular}
\end{table}
% ============================================================
\section{Limitations \& Known Issues}
% ============================================================
\begin{enumerate}[nosep]
\item \textbf{Dream-to-real gap.} The best dream-trained controller ($-$59.7) still trails the real-environment-trained controller ($-$10.6) by a significant margin. Compounding prediction error remains the primary bottleneck despite multi-step fine-tuning and branched rollouts.
\item \textbf{Single environment.} Validated only on Reacher-v5 (2-DOF, simple visuals). Scaling to harder tasks (pick-and-place, dexterous manipulation) is untested.
\item \textbf{Reward head fragility.} Joint training of the reward head with the MDN loss causes gradient starvation. Decoupled training is required.
\item \textbf{CMS frequency levels are task-specific.} The [1, 16, 1M, 16M] schedule from the NL paper means only L0 and L1 actively update in 50-step episodes; longer horizons would activate L2/L3.
\item \textbf{MPS backend limitations.} Some PyTorch operations fall back to CPU on MPS. CUDA would likely provide 2--3$\times$ speedup.
\item \textbf{No sim-to-real transfer tested.} All evaluations are in simulation. Physical robot deployment is out of scope.
\end{enumerate}
% ============================================================
\section{Key Design Decisions}
% ============================================================
\begin{enumerate}[nosep]
\item \textbf{Tiny controller:} 5,218 parameters keeps CMA-ES tractable. All intelligence resides in V and M.
\item \textbf{Fixed-dim HOPE projection:} Memory matrix projected to 256-dim $h_t$ for CMA-ES compatibility.
\item \textbf{CMS frequencies from NL paper:} [1, 16, 1M, 16M] naturally creates a fast/slow hierarchy where L0--L1 adapt per-episode while L2--L3 serve as frozen knowledge anchors.
\item \textbf{Branched rollouts over full dreams:} MBPO-style $k$-step branches from real states cap compounding error.
\item \textbf{Scheduled sampling for M fine-tuning:} Gradually shifts from teacher-forced to autoregressive training.
\item \textbf{MDN variance as uncertainty signal:} Free uncertainty estimate for reward penalty without ensembles.
\end{enumerate}
% ============================================================
\section{References}
% ============================================================
\begin{enumerate}[nosep,label={[\arabic*]},leftmargin=*]
\item Ha, D.\ \& Schmidhuber, J.\ (2018). World Models. \textit{arXiv:1803.10122}.
\item Behrouz, A.\ et al.\ (2025). Nested Learning. (HOPE/NL paper).
\item Janner, M.\ et al.\ (2019). When to Trust Your Model: Model-Based Policy Optimization. \textit{NeurIPS}.
\item Yu, T.\ et al.\ (2020). MOPO: Model-Based Offline Policy Optimization. \textit{NeurIPS}.
\item Hansen, N.\ (2016). The CMA Evolution Strategy: A Tutorial. \textit{arXiv:1604.00772}.
\end{enumerate}
\vfill
\begin{center}
\textcolor{phase}{\rule{0.5\textwidth}{0.5pt}}\\[6pt]
\textcolor{phase}{\small Supreme v1.0 --- Built on Mac M4 Air --- April 2026}
\end{center}
\end{document}