Characterizing Learning in Deep Neural Networks using Tractable Algorithmic Complexity Analysis

Pedram Bakhtiarifard, Sophia N. Wilson, Mahmoud H. A. Afifi, Jonathan Wenshøj, Raghavendra Selvan

TL;DR

Why can we ruthlessly prune and quantize massive neural networks without ruining their accuracy? This paper provides direct mathematical evidence for the "learning as compression" hypothesis by introducing QuBD, the first scalable method to estimate the true algorithmic complexity of modern deep neural networks. By watching how the hidden structure of weights evolves, the authors show that learning literally compresses a network's description length—giving us a principled, practical diagnostic for deciding how much we can shrink a model.

What Problem Does This Paper Address?

For years, researchers have leaned on the "learning as compression" hypothesis: the idea that training forces randomly initialized, chaotic network weights to organize into structured, redundant patterns. That hidden structure is why models generalize well instead of merely memorizing, and why post-training compression works.

The ultimate mathematical yardstick for structure is Kolmogorov-Chaitin-Solomonoff (KCS) complexity—the length of the shortest computer program capable of generating an object. Random noise is incompressible (high KCS complexity); a structured pattern has a short generating program (low KCS complexity).

While KCS complexity is technically uncomputable due to the halting problem, we can approximate it for tiny binary strings using massive lookup tables of simulated Turing machines, known as the Coding Theorem Method (CTM), and extend it to slightly larger binary arrays via the Block Decomposition Method (BDM). However, these tools hit a brick wall with modern deep learning. Neural networks contain millions or billions of floating-point numbers, not tiny binary grids. Crudely binarizing weights (e.g., keeping only their $\pm$ signs) throws away crucial information, while serializing floats into massive bit-streams quickly saturates finite lookup tables, making complex networks indistinguishable from simple ones.

Methods

To bridge the gap between small binary Turing tables and billion-parameter floating-point networks, the authors introduce Quantized Block Decomposition (QuBD).

Figure 2: QuBD first quantizes weights into fi- nite codes (top), then decomposes them into aligned bit-planes to aggregate the per-plane KCS estimates (bottom).

Instead of squashing weights into 1-bit signs or stringing bits end-to-end, QuBD borrows a classic trick from digital image processing: bit-plane decomposition.

  1. Quantize: Floating-point weight matrices (reshaped to 2D if needed) are mapped to $b$-bit integers (e.g., 8-bit codes from $0$ to $255$).
  2. Decompose: Rather than reading each weight's bits together, QuBD slices across the entire layer by bit position. All the Most Significant Bits (MSBs) form one 2D binary grid, the second-most significant bits form another, down to the Least Significant Bits (LSBs).
  3. Aggregate: Standard $4 \times 4$ BDM/CTM lookup tables estimate the algorithmic complexity of each binary bit-plane independently, and QuBD sums them up.

The authors prove theoretically that if bit-planes are independent, QuBD provides a tighter upper bound on ideal KCS complexity than binarization, while avoiding the lookup-table saturation that plagues serialized bit-streams.

Datasets

No new benchmarks are introduced; instead, the authors evaluate QuBD across standard datasets spanning multiple scales and modalities:

  • Fashion-MNIST (for MLPs of varying parameter counts and data budgets)
  • CIFAR-10 (for Tiny-ViT training dynamics)
  • ImageNet (evaluating 100 pretrained timm models and post-training quantization on ResNet, ViT, EfficientNet, and MobileNet)
  • The Pile (analyzing training checkpoints of the 1-billion-parameter Pythia-1B LLM)
  • Synthetic Modular Arithmetic ($P=97$, used to study "grokking")

Key Insights and Ideas

  • Generalization is simplification; memorization is complexification: As a model learns, the QuBD complexity of its weights steadily drops. Remarkably, when an MLP begins to overfit, its weight complexity bends upward again—memorizing noise requires more algorithmic description length than learning a clean rule.
  • Tracking "Grokking" under the hood: In grokking—where a model memorizes training data immediately but only generalizes thousands of epochs later—QuBD complexity stays stubbornly high during the memorization phase, plunges right as validation loss drops to zero, and keeps falling afterward as the network continues to simplify its internal circuit.
  • Structure lives in the top bits: Across architectures, training organizes the Most Significant Bit-planes while leaving the Least Significant Bit-planes looking almost completely random.
Figure 1: Relative algorithmic complexity expressed as the ratio between the complexities of pre- trained and random weights, ∆CQuBD (%), estimated using QuBD. We show the trend for 100 pre- trained timm models (Wightman, 2019) with up to 100M parameters using 8 bit-planes. Models are ordered by decreasing ∆CQuBD for the most significant bit-plane (MSB). Further details can be found in Sec. 4, Appx. E.1, and Appx. F.1.

Key Results

The authors normalize complexity against random weights ($\Delta\mathcal{C}_{\text{QuBD}}$), where $100\%$ means random noise and lower percentages indicate learned structure:

  • Scaling with data and size: Training MLPs ($0.6\text{M}$ to $13.7\text{M}$ parameters) with more Fashion-MNIST samples monotonically increases accuracy and drops $\Delta\mathcal{C}_{\text{QuBD}}$—down to $\sim 5\%$ of initialization complexity for the largest MLP. Standard BDM (with binarization) and raw GZIP compression fail to capture this trend.
  • 100 Pretrained Models & LLMs: Across 100 timm vision models (up to $100\text{M}$ parameters) and Pythia-1B, pretrained weights consistently exhibit lower complexity than random initialization, continuing to simplify even after training loss plateaus.
  • Zero-shot compression diagnostic: Testing 16-bit QuBD on five ImageNet models (including ResNet-50 and ViT-B/16) reveals that only the top $\sim 5$ bit-planes show complexity reduction; lower planes sit at $\Delta\mathcal{C}_{\text{QuBD}} \approx 100\%$. Sure enough, applying post-training quantization (PTQ) shows virtually no accuracy drop down to 4-to-6 bits, confirming that algorithmically "random" bit-planes can be safely discarded.

Limitations and Future Work

  • The independence assumption: Summing complexity across bit-planes assumes they share no mutual algorithmic information. If correlations exist between planes, QuBD overestimates total complexity. Accounting for cross-plane mutual information could yield even tighter bounds.
  • Diagnostic vs. full compression pipeline: While QuBD clearly flags redundant bit-planes and compressible inner layers, the authors note that future work is needed to turn this diagnostic into an automated pruning/quantization algorithm benchmarked head-to-head against state-of-the-art compression methods.
  • Single-epoch LLM regime: Because Pythia-1B checkpoints cover a single epoch of massive-scale pretraining, LLM experiments do not explore the multi-epoch overfitting regime or variance across random seeds.

Summary updated

Abstract

Training large-scale deep neural networks (DNNs) is resource-intensive, making model compression a practical necessity. The widely accepted ''learning as compression'' hypothesis posits that training induces structure in network weights, which enables compression. Measuring this structure through Kolmogorov-Chaitin-Solomonoff (KCS) complexity is appealing, but existing estimators based on the Coding Theorem Method (CTM) and the Block Decomposition Method (BDM) are limited to small binary objects and do not scale to modern DNNs. We introduce the Quantized Block Decomposition method (QuBD), which extends algorithmic complexity estimation to any $k$-ary object. QuBD first quantizes the network weights to a finite alphabet, then estimates the KCS complexity by aggregating per bit-plane CTM estimates. We show theoretically that QuBD yields a tighter upper-bound on the estimation gap for ideal prefix KCS complexity under bit-plane independence than binarization-based methods. Using QuBD, we study how the algorithmic complexity of neural network weights evolves during training, showing that it decreases as models learn, scales with data budget, increases during overfitting, follows the delayed generalization observed during grokking, and correlates with generalization performance. We further show that algorithmic information resides predominantly in the most significant bit-planes, which can serve as a practical diagnostic for determining appropriate post-training quantization levels. This work offers novel insights into learning mechanisms in DNNs by providing the first scalable, tractable estimates of KCS complexity for large, non-binary objects such as DNN weights.
BibTeX
@inproceedings{bakhtiarifard2026characterizing,
  author = {Pedram Bakhtiarifard and Sophia N. Wilson and Mahmoud H. A. Afifi and Jonathan Wenshøj and Raghavendra Selvan},
  title = {{Characterizing Learning in Deep Neural Networks using Tractable Algorithmic Complexity Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zT1uGkhHsM},
}
Figure