smallhours19 commited on
Commit
36295d9
·
verified ·
1 Parent(s): 7cbdb61

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +75 -0
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: pytorch
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - nested-learning
7
+ - hope
8
+ - test-time-learning
9
+ - test-time-training
10
+ - continual-learning
11
+ - byte-level
12
+ - attention-free
13
+ - recurrent
14
+ - arxiv:2512.24695
15
+ ---
16
+
17
+ # HOPE — Nested Learning in PyTorch
18
+
19
+ The index card for [nested-learning-hope](https://github.com/smallhours19/nested-learning-hope),
20
+ an independent PyTorch reproduction of HOPE from **"Nested Learning: The Illusion
21
+ of Deep Learning Architectures"** ([arXiv:2512.24695](https://arxiv.org/abs/2512.24695),
22
+ Behrouz et al., Google Research). No official code or weights exist for the paper;
23
+ this is an unofficial reproduction at reduced scale.
24
+
25
+ HOPE is an attention-free language model whose weights change during the forward
26
+ pass (test-time learning): Self-Modifying Titans (Eq. 83-93, gated delta rule,
27
+ self-generated targets) plus a Continuum Memory System (Eq. 70-71, MLP levels
28
+ updated every 1/2/4 chunks by the accumulated task-loss gradient).
29
+
30
+ ## The released recipe (reproducible in ~7 GPU-hours)
31
+
32
+ | | |
33
+ |---|---|
34
+ | Parameters | 30.6M (4 layers, d=512, chunk 512, no positional embedding) |
35
+ | Tokenizer | none — raw bytes (vocab 256) |
36
+ | Training data | FineWeb-Edu sample, 0.3B bytes, sequence length 2048 |
37
+ | Held-out validation | **1.721 bits/byte** |
38
+ | Needle recall (1K / 6.6K bytes) | **+2.59 / +2.10 bpb** vs control (n=40) |
39
+ | 8K extrapolation (trained at 2K) | flat, no horizon (1.66 → 1.96 bpb) |
40
+
41
+ Every number is reproducible from the GitHub repository (committed training
42
+ log, evaluation scripts, and an exactness test verifying the chunk-parallel
43
+ path equals the sequential recurrence to fp64 machine precision).
44
+
45
+ ## Reproducing the model
46
+
47
+ No weights are hosted here (yet) — the checkpoint reproduces from the GitHub
48
+ repository in about 7 hours on one 16 GB GPU, and the committed training log
49
+ lets you verify your run against ours at step 100/200 before committing the
50
+ full budget:
51
+
52
+ ```bash
53
+ git clone https://github.com/smallhours19/nested-learning-hope && cd nested-learning-hope
54
+ pip install -r requirements.txt
55
+ python scripts/download_data.py --out data/fineweb-edu --shards 3
56
+ python scripts/train_byte.py --data data/fineweb-edu --out runs/hope-byte
57
+ ```
58
+
59
+ Where this implementation had to choose beyond the paper's text, every choice
60
+ is documented in
61
+ [DEVIATIONS.md](https://github.com/smallhours19/nested-learning-hope/blob/main/docs/DEVIATIONS.md);
62
+ stability devices the paper does not mention are cataloged in
63
+ [STABILITY.md](https://github.com/smallhours19/nested-learning-hope/blob/main/docs/STABILITY.md).
64
+
65
+ ## Citation
66
+
67
+ ```bibtex
68
+ @article{behrouz2025nested,
69
+ title = {Nested Learning: The Illusion of Deep Learning Architectures},
70
+ author = {Behrouz, Ali and Razaviyayn, Meisam and Zhong, Peilin and
71
+ Mirrokni, Vahab},
72
+ journal = {arXiv preprint arXiv:2512.24695},
73
+ year = {2025}
74
+ }
75
+ ```