arXiv:2611.05255cs.LGNov 2026

Manuscript Offprint

arXiv:2611.05255

Going Deeper With Memories

Afshin Khadangi

Afshin Khadangi

SnT, University of Luxembourg afshin.khadanki@uni.lu afshin.xyz

Figure

Figure 1: DEEPMEM. Bytes descend into fewer memories while a lossless carrier (gold) keeps every byte exact. At the 16-position bottleneck, one shared state is refined twice (R=2R=2) at ∼7,600×\sim 7,600\times fewer FLOPs than at full byte resolution, and super-resolution restores byte-level states. Side panels: gains vs. a matched Transformer (left) and the FastWeight baseline (right).

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 7,600×7,600\times fewer counted FLOPs than equivalent full resolution reasoning, while maintaining competitive evaluation throughput.

Working Paper.

1 Introduction

Modern language models typically process sequences produced by fixed subword tokenizers. Byte-pair encoding and unigram tokenization shorten sequences and make Transformer training practical [16, 8, 20], but require choosing a vocabulary and segmentation in advance. Tokenizers can fragment rare words, names, code, and morphologically rich forms; compress languages and scripts unevenly; and react discontinuously to small character perturbations [13, 23]. They therefore introduce an external representation bottleneck despite bytes already providing a universal digital representation.

Byte-level models remove this dependency. A fixed vocabulary of 256 symbols represents arbitrary Unicode text and other digital data without unknown tokens while exposing spelling, morphology, punctuation, and formatting. ByT5 demonstrated strong byte-level representations and robustness to character noise [23], while CANINE and Charformer improved efficiency by shortening character or byte sequences before deeper processing [2, 19]. The remaining challenge is sequence length: documents contain many more bytes than subword tokens, making full-resolution computation expensive.

Recent work addresses this cost through internal compression. MEGABYTE separates global patch computation from local byte prediction [25]; SpaceByte creates larger blocks near likely word boundaries [17]; and MambaByte uses a selective state-space backbone [22]. Byte Latent Transformer forms entropy-based variable-length patches [11], MrT5 dynamically removes redundant positions [5], and Multiscale Byte Language Models use multiple autoregressive stages [4]. Other hierarchical models combine byte- and word-level computation [10], while recent work explores diffusion and speculative mechanisms for faster byte generation [6]. These approaches show that tokenizer-free modeling is viable, but its efficiency depends strongly on how computation is distributed across resolutions.

Hierarchical computation also appears beyond byte modeling. Funnel Transformers shorten hidden sequences and reinvest the savings in deeper representations [3], while Hourglass Transformers combine autoregressive downsampling and upsampling [9]. MEGABYTE uses coarse representations to coordinate local decoders, and Autoregressive U-Nets learn hierarchies from bytes toward abstract units [25, 21]. All avoid performing every layer at full resolution, but pooling, deletion, merging, and patching create a tension between efficiency and fidelity: compressed states must preserve exact byte information, rely on a separate local path, or reconstruct detail later.

We address this tension using multirate signal-processing principles. Laplacian pyramids represent signals through coarse approximations and residual bands [1]. The lifting scheme implements invertible wavelet transforms through learned predict and update operations while preserving an exact algebraic inverse [18]. U-Net similarly combines a contracting path with an expanding path and skip connections for fine-resolution recovery [12]. These ideas suggest that semantic computation can be compressed aggressively when exact byte information is preserved separately rather than forced through a narrow bottleneck.

Applying subband analysis to autoregressive modeling requires explicit causal constraints. A feature summarizing a span [a,b][a, b] may influence only positions whose available context includes bb. Likewise, a parent derived from two children cannot be copied to the earlier child without leaking information from the later one. Causality must therefore govern the analysis transform, synthesis path, and skip connections—not only individual attention or recurrent layers.

We introduce DEEPMEM (Fig. 1), a causal lossless subband architecture for byte-level autoregressive language modeling. It maintains a learned semantic stream and a lossless carrier stream. The semantic stream is progressively shortened to capture predictive structure, while each byte is mapped to a fixed eight-dimensional binary carrier and recursively transformed through learned lifting steps. Each level produces a coarse carrier and an explicit detail sideband whose hierarchy reconstructs the original carrier exactly in real arithmetic. Semantic compression therefore need not discard or implicitly memorize byte identity.

The encoder performs memory based mixing at progressively shorter resolutions. Fast-weight and linear attention models interpret sequence processing as recurrent associative memory, where a controller writes key-value associations into a rapidly changing state [15, 7, 14]. Gated linear attention adds data-dependent forgetting and chunk-parallel training [24]. We use this causal memory along the encoding path and in a two step shared state refinement module at the final semantic bottleneck. An attention based super-resolution decoder then restores byte resolution representations from delayed parent proposals, encoder skips, and exact carrier features.

This separation gives each path a distinct role. The semantic encoder performs deep computation at reduced lengths while retaining a sufficiently wide coarse representation for linguistic abstraction. The carrier preserves fine-grained byte information explicitly. The decoder combines compressed semantic representations with locally available carrier features and encoder skips to construct high-resolution states for next-byte prediction. The method thus differs from single segmentation patch models and lossy hourglass architectures whose compressed states must retain all relevant local detail.

At approximately 100 million parameters, the model achieves 1.0134 BPB on FineWeb-Edu, versus 1.0457 for a matched raw-byte Transformer and 1.0187 for a FastWeight baseline. It also improves on PG19 (1.4402 versus 1.4635 BPB) and obtains the best macro-average across eight FLORES languages (1.9694 versus 2.0082 BPB), with a modest tradeoff on Stack-smol code. It remains competitive on HellaSwag, PIQA, and ARC and is robust to repeated-character, Antspeak, uppercase, and random-case perturbations.

Contributions. Our main contributions are:

  • a learned, recursively invertible subband decomposition separating a compressed semantic hierarchy from an exact byte carrier and explicit detail sidebands;

  • causal analysis, delayed super resolution synthesis, and skip-fusion rules that prevent completed span features from leaking to earlier positions;

  • a hybrid fast-weight memory encoder with two step shared state bottleneck refinement and an attention based super resolution decoder; and

  • improved general domain, long form, and multilingual BPB over a matched raw byte Transformer.