A Minimum Description Length Approach to Regularization in Neural Networks

Matan Abudy, Orr Well, Emmanuel Chemla, Roni Katzir, Nur Geffen LanarXiv 2025 · DOI

Abstract

Modern neural networks excel at function approximation but often fail to capture the underlying symbolic rules of formal tasks, leading to poor systematic generalization. This study investigates the Minimum Description Length (MDL) principle as a regularization framework to address this gap. By framing learning as a data compression problem, MDL provides an inductive bias that favors simple, rule-based solutions. We evaluate MDL against standard $L_1$ and $L_2$ regularization using a "Golden Network" strategy, where models are initialized at known symbolic optima. Our results show that while traditional regularizers often degrade perfect solutions, MDL consistently preserves and even simplifies them, achieving near-optimal performance across a suite of formal language benchmarks.

Introduction

While neural networks are theoretically capable of representing complex formal logic, they frequently converge to "heuristics"—shortcuts that satisfy training data but fail on longer sequences or novel distributions. The authors posit that standard regularization techniques, such as weight decay ($L_2$) or sparsity constraints ($L_1$), do not provide the necessary inductive bias to prefer elegant, rule-based solutions over fuzzy approximations. This paper proposes the use of the Minimum Description Length (MDL) principle to guide networks toward more generalizable, compact representations.

Methodology

The core of the proposed approach is the MDL objective function, which minimizes the total description length: the sum of the model complexity $|H|$ and the data misfit $|D:H|$.

The "Golden Network" Strategy

To rigorously test the impact of different regularizers, the researchers employed a "Golden Network" strategy. They manually constructed or searched for "perfect" Recurrent Neural Networks (RNNs) that solve specific formal tasks. By initializing training at these optimal points, they could observe whether a regularization method would preserve the symbolic logic or push the model toward a flawed approximation.

Experimental workflow and configuration of the three primary experiments.

Experimental Setup

The study utilized "free-form" RNNs, which offer greater flexibility than standard LSTMs for representing compact logic. Because the MDL objective is non-differentiable, Genetic Algorithms (GA) were primarily used for optimization, with Gradient Descent reserved for differentiable sub-tasks. The benchmarks included formal languages requiring various levels of memory and recursion, such as $a^n b^n c^n$, Dyck languages (parenthesis matching), and nested arithmetic syntax.

Results and Discussion

The experiments revealed a fundamental difference between MDL and traditional regularization.

The Destructive Nature of Standard Regularizers

A key finding was that $L_1$ and $L_2$ regularization are often "destructive" to perfect solutions. Because these methods penalize weight magnitude rather than information content, they often force weights away from the precise values required for symbolic logic to satisfy an arbitrary mathematical penalty. In contrast, MDL penalizes the precision (bit length) of weights, which aligns better with the goal of finding simple rules.

Generalization through Compression

MDL was the only method that consistently maintained the performance of the Golden Networks. As shown in the performance plots, MDL-regularized models cluster significantly closer to the theoretical optimum (the origin) than those using $L_1$, $L_2$, or no regularization.

Performance of different regularizers relative to the optimal 'Golden' network across six formal language tasks.

On the $a^n b^n c^n$ task, for instance, MDL achieved a 0.0% deviation from the optimum, whereas $L_2$ resulted in a 3.2% error. Furthermore, MDL often "distilled" the manually created Golden Networks into even smaller, more efficient forms without sacrificing accuracy.

Conclusion

The Minimum Description Length principle offers a robust framework for regularizing neural networks toward systematic generalization. By prioritizing compression, MDL successfully identifies the "Golden" rules underlying formal tasks. While the current reliance on non-differentiable optimization presents a scaling challenge, the success of MDL suggests that developing differentiable approximations for modern architectures like Transformers is a promising direction for future research in robust AI.

Summary updated

BibTeX
@misc{abudy2025minimum,
  author = {Matan Abudy and Orr Well and Emmanuel Chemla and Roni Katzir and Nur Geffen Lan},
  title = {{A Minimum Description Length Approach to Regularization in Neural Networks}},
  year = {2025},
  eprint = {2505.13398},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13398},
}
Figure