Minimum Description Length Recurrent Neural Networks

Nur Geffen Lan, Michal Geyer, Emmanuel Chemla, Roni Katzir

TL;DR

This paper introduces a novel approach to training recurrent neural networks (RNNs) by optimizing a Minimum Description Length (MDL) objective. This method encourages networks to be both accurate and simple, leading to remarkably small, transparent, and highly generalizable models that can perfectly learn complex formal languages and perform tasks like binary addition, a feat rarely achieved by traditional RNNs.

What Problem Does This Paper Address?

Traditional neural networks, particularly RNNs, often struggle with generalization, especially from limited data. They tend to overfit, require extensive hyperparameter tuning and regularization, and produce probabilistic, rather than categorical, outputs. Furthermore, their complex, "black-box" nature makes it difficult to understand how they arrive at their decisions. This paper tackles these issues by proposing an MDL-based training objective that inherently balances model complexity with accuracy, aiming for truly generalizable and interpretable models.

Methods

The core innovation lies in the training objective: minimizing the Minimum Description Length (MDL) of a network. This means finding a network that is both accurate on the data (low description length of data given the network, $|D:G|$) and simple (low description length of the network itself, $|G|$). To search the vast space of possible network architectures, the authors employ a genetic algorithm (GA) with an Island Model to evolve networks. This GA allows for the discovery of network structures, not just weight optimization, and can grow or prune units and connections as needed. The encoding of networks for the MDL objective is carefully designed to be unique and computable.

Datasets

The paper uses synthetically generated datasets for various formal language tasks, including:

  • $a^nb^n$
  • $a^nb^nc^n$
  • $a^nb^{2n}$
  • $a^nb^mc^{n+m}$ (addition)
  • Dyck-1 and Dyck-2 languages (parentheses matching)
  • Binary addition

These datasets are generated from probabilistic context-free grammars (PCFGs) with varying sizes (e.g., 100 and 500 sequences for training, 50,000 for testing). The binary addition task uses pairs of integers up to a certain limit (K=10 or K=20).

Key Insights and Ideas

  • MDL as a powerful inductive bias: The MDL objective naturally guides the search towards simpler, more generalizable models, effectively acting as a strong inductive bias that combats overfitting.
  • Transparency and interpretability: The resulting MDL-optimized networks are significantly smaller and more transparent than typical RNNs, allowing for formal proofs of their behavior on infinite languages.
  • Perfect generalization: The MDL approach enables networks to achieve perfect accuracy on tasks that require complex memory and counting, even generalizing beyond the training data to the entire infinite language.
  • Beyond context-free: The models demonstrate the ability to learn tasks that go beyond the capabilities of simple context-free grammars, such as addition.
  • GA for architecture search: Using a genetic algorithm to evolve network architectures, rather than just optimizing weights, is crucial for discovering the optimal, minimal structures required by the MDL objective.

Key Results

  • 100% Accuracy: MDL-optimized networks achieved 100% deterministic accuracy on tasks like $a^nb^n$, $a^nb^{2n}$, and binary addition, often with perfect confidence.
  • Near-Optimal Cross-Entropy: For most tasks, the MDL networks achieved near-optimal cross-entropy scores, indicating they learned the underlying probability distributions very well.
  • Small and Transparent Networks: The discovered networks were significantly smaller (e.g., 2-4 units) and more transparent than traditional RNNs, facilitating formal analysis.
  • Formal Proofs of Generalization: The paper provides formal proofs demonstrating that the learned networks generalize perfectly to the entire infinite language, not just the finite test sets.
  • Comparison to Standard RNNs: In contrast, standard RNNs (including GRU, LSTM, and Elman networks) consistently underperformed, failing to achieve 100% accuracy and exhibiting suboptimal cross-entropy, even when given advantages like hyperparameter tuning.

Limitations and Future Work

  • Search Component Limitations: For more complex tasks like $a^nb^nc^nd^n$ and Dyck-2, the MDL model did not reach 100% accuracy. The authors attribute this to limitations in the search component (genetic algorithm) rather than the MDL metric itself, suggesting that larger populations, more generations, or specialized search mechanisms might be needed.
  • Dyck-2 Stack Implementation: The Dyck-2 language, requiring a stack, proved challenging for the GA to evolve a fully operational stack. The authors suggest that incorporating explicit stack-like components or exploring more advanced search strategies could address this.
  • Deceptive Optimization: The difficulty in finding a perfect Dyck-2 stack network might be related to "deceptive optimization" problems, where intermediate good solutions can mislead the search towards local minima.
  • Future Work: The authors suggest exploring more advanced search techniques, potentially incorporating explicit memory structures like stacks into the search space, and applying the MDL approach to a wider range of tasks. They also highlight the potential for this approach to lead to more interpretable AI systems.

Summary updated

BibTeX
@article{lan2022minimum,
  author = {Nur Geffen Lan and Michal Geyer and Emmanuel Chemla and Roni Katzir},
  title = {{Minimum Description Length Recurrent Neural Networks}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2022},
  doi = {10.1162/tacl\_a\_00489},
}
Figure