Going Deeper With Memories
Organizations: SnT, University of Luxembourg
Abstract
Byte level language models avoid tokenizer dependence and provide universal coverage, but processing every byte at full resolution is expensive. We introduce DeepMem, a causal multiscale architecture that separates semantic compression from exact byte preservation. A learned invertible subband transform constructs a hierarchy of shorter sequences, while a lossless carrier and explicit detail sidebands preserve byte identity. Fast weight memory blocks operate along the encoder, with iterative shared state computation at the compressed bottleneck, while an attention based super resolution decoder restores byte resolution representations. DeepMem achieves stronger language modeling performance than a matched byte level Transformer on FineWeb-Edu and PG19, and obtains the best macro average performance across the evaluated FLORES languages. It also improves PIQA accuracy while remaining competitive on code modeling, multiple choice reasoning, and byte level corruption robustness. Bottleneck refinement requires approximately fewer counted FLOPs than equivalent full resolution reasoning, while maintaining competitive evaluation throughput.
Figures & tables
| Model | FineWeb-Edu | PG19 | Stack-smol | FLORES |
|---|---|---|---|---|
| Transformer | 1.0457 0.019 | 1.4635 0.023 | 2.4474 0.077 | 2.0082 0.028 |
| FastWeight | 1.0187 0.008 | 1.4956 0.019 | 2.9558 0.047 | 2.0599 0.022 |
| BLT | 1.0336 0.009 | 1.5920 0.050 | 2.6138 0.065 | 2.0233 0.021 |
| AU-Net | 1.0319 0.006 | 1.4885 0.022 | 2.4894 0.058 | 2.0077 0.020 |
| DeepMem (NR) | 1.0145 0.010 | 1.4462 0.022 | 2.5021 0.046 | 1.9758 0.017 |
| DeepMem | 1.0134 0.008 | 1.4402 0.017 | 2.4854 0.034 | 1.9694 0.020 |
| Model | English | German | Arabic | Hindi | Bengali | Thai | Vietnamese | Swahili | Macro |
|---|---|---|---|---|---|---|---|---|---|
| T | 1.2013 0.020 | 2.4014 0.036 | 2.1194 0.028 | 1.4265 0.013 | 1.6157 0.020 | 1.7914 0.021 | 2.3884 0.032 | 3.1216 0.053 | 2.0082 0.028 |
| FW | 1.2484 0.013 | 2.3674 0.019 | 2.1350 0.026 | 1.4196 0.011 | 1.6205 0.023 | 1.7722 0.016 | 2.4547 0.022 | 3.4613 0.044 | 2.0599 0.022 |
| BLT | 1.2543 0.013 | 2.3916 0.027 | 2.1316 0.027 | 1.4430 0.013 | 1.6065 0.022 | 1.7627 0.016 | 2.3588 0.016 | 3.2376 0.032 | 2.0233 0.021 |
| AU | 1.2208 0.019 | 2.3831 0.022 | 2.1172 0.028 | 1.4202 0.011 | 1.6175 0.023 | 1.7526 0.010 | 2.3635 0.019 | 3.1865 0.027 | 2.0077 0.020 |
| DM (NR) | 1.2134 0.013 | 2.3473 0.014 | 2.0406 0.019 | 1.4518 0.015 | 1.5996 0.012 | 1.6569 0.016 | 2.2988 0.018 | 3.1978 0.028 | 1.9758 0.017 |
| DM | 1.2007 0.015 | 2.3408 0.019 | 2.0383 0.019 | 1.4403 0.013 | 1.6132 0.016 | 1.6535 0.016 | 2.3059 0.027 | 3.1624 0.032 | 1.9694 0.020 |
| Model | FineWeb-Edu | PG19 | Stack-smol | Average |
|---|---|---|---|---|
| Transformer | 147,788 | 146,590 | 146,690 | 147,023 |
| FastWeight | 87,577 | 86,663 | 87,095 | 87,112 |
| BLT | 109,302 | 109,792 | 109,932 | 109,675 |
| AU-Net | 114,565 | 115,658 | 118,965 | 116,396 |
| DeepMem (NR) | 137,963 | 136,905 | 139,287 | 138,051 |
| DeepMem | 118,963 | 120,905 | 119,287 | 119,718 |
| Model | HellaSwag | PIQA | ARC-E | ARC-C | Mean |
|---|---|---|---|---|---|
| Transformer | 28.81 0.4 | 60.55 0.5 | 35.96 0.6 | 22.74 0.5 | 37.02 0.5 |
| FastWeight | 29.95 0.4 | 60.61 0.5 | 37.72 0.6 | 20.07 0.3 | 37.09 0.5 |
| BLT | 28.80 0.4 | 60.55 0.5 | 33.16 0.7 | 21.07 0.4 | 35.90 0.5 |
| AU-Net | 28.64 0.4 | 60.66 0.5 | 34.67 0.6 | 20.86 0.4 | 36.21 0.5 |
| DeepMem (NR) | 29.87 0.4 | 61.81 0.7 | 36.32 0.6 | 21.74 0.3 | 37.44 0.5 |
| DeepMem | 30.30 0.4 | 60.83 0.7 | 36.49 0.6 | 23.41 0.3 | 37.76 0.5 |
| Model | Clean | Drop | Repeat | Antspeak | Uppercase | Randomcase |
|---|---|---|---|---|---|---|
| T | 28.81 0.4 | 27.97 0.5 | 27.50 0.4 | 25.93 0.4 | 28.79 0.5 | 27.38 0.4 |
| FW | 29.95 0.4 | 29.18 0.4 | 28.54 0.4 | 27.06 0.4 | 29.89 0.4 | 28.58 0.4 |
| BLT | 28.80 0.4 | 28.98 0.4 | 27.92 0.4 | 26.02 0.4 | 28.68 0.4 | 27.42 0.4 |
| AU | 28.64 0.4 | 28.86 0.4 | 27.54 0.4 | 26.10 0.4 | 28.42 0.4 | 27.56 0.4 |
| DM | 30.30 0.4 | 29.16 0.4 | 28.64 0.4 | 26.89 0.4 | 29.82 0.3 | 29.16 0.4 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Mean BPB | Throughput (B/s) | |||||||
|---|---|---|---|---|---|---|---|---|
| Variant | FineWeb | PG19 | Stack | FLORES | FineWeb | PG19 | Stack | Average |
| DeepMem | 1.0134 | 1.4402 | 2.4854 | 1.9694 | 118,963 | 120,905 | 119,287 | 119,718 |
| No shared-state refinement | 1.0145 | 1.4462 | 2.5021 | 1.9758 | 137,963 | 136,905 | 139,287 | 138,051 |
| No carrier sem. | 1.0141 | 1.4482 | 2.4845 | 1.9830 | 121,953 | 122,663 | 122,754 | 122,457 |
| All-scale fusion | 1.0142 | 1.4413 | 2.4082 | 1.9851 | 117,374 | 118,468 | 119,369 | 118,404 |
| All attention | 1.0613 | 1.4827 | 2.4527 | 2.0498 | 140,812 | 134,798 | 139,944 | 138,518 |
| Variant | English | German | Arabic | Hindi | Bengali | Thai | Vietnamese | Swahili | Macro |
|---|---|---|---|---|---|---|---|---|---|
| DeepMem | 1.2007 | 2.3408 | 2.0383 | 1.4403 | 1.6132 | 1.6535 | 2.3059 | 3.1624 | 1.9694 |
| No shared-state refinement | 1.2134 | 2.3473 | 2.0406 | 1.4518 | 1.5996 | 1.6569 | 2.2988 | 3.1978 | 1.9758 |
| No carrier sem. | 1.2206 | 2.3625 | 2.0522 | 1.4513 | 1.6225 | 1.6542 | 2.3284 | 3.1726 | 1.9830 |
| All-scale fusion | 1.2187 | 2.3512 | 2.0530 | 1.4553 | 1.6135 | 1.6887 | 2.3256 | 3.1748 | 1.9851 |
| All attention | 1.2246 | 2.4511 | 2.1191 | 1.5030 | 1.6574 | 1.7709 | 2.4596 | 3.2131 | 2.0498 |
| Variant | Hella | PIQA | ARC-E | ARC-C | Mean |
|---|---|---|---|---|---|
| DeepMem | 30.30 | 60.83 | 36.49 | 23.41 | 37.76 |
| No shared-state refinement | 29.87 | 61.81 | 36.32 | 21.74 | 37.44 |
| No carrier sem. | 29.76 | 60.99 | 35.61 | 23.75 | 37.53 |
| All attention | 28.70 | 59.68 | 33.68 | 21.74 | 35.95 |
| Variant | Clean | Drop | Repeat | Antspeak | Uppercase | Randomcase | Mean |
|---|---|---|---|---|---|---|---|
| DeepMem | 30.30 | 29.16 | 28.64 | 26.89 | 29.82 | 29.16 | 29.00 |
| No carrier sem. | 29.76 | 29.33 | 28.66 | 26.90 | 29.44 | 28.52 | 28.77 |
| No shared-state refinement | 29.87 | 29.13 | 28.56 | 27.23 | 29.50 | 28.78 | 28.85 |
| All attention | 28.70 | 27.56 | 26.95 | 25.92 | 28.07 | 27.32 | 27.42 |
| Test | Cutoffs | Max prefix diff. | Max suffix diff. | Result | |
|---|---|---|---|---|---|
| Midpoint | 1 | Pass | |||
| Exhaustive | 2,048 | Pass |
Language Modeling
Language modeling develops systems that learn patterns in text and other sequences to understand, predict, and generate language.
See all 526 papers