Bridging the Empirical-Theoretical Gap in Neural Network Formal Language Learning Using Minimum Description Length
Nur Lan, Emmanuel Chemla, Roni Katzir
TL;DR
The paper investigates why neural networks fail to generalize on formal languages despite theoretical capabilities, proposing the Minimum Description Length (MDL) objective as a bridge. By constructing a golden $a^nb^n$ LSTM and comparing it with networks trained by standard cross-entropy, it shows that MDL aligns with a true MDL-optimal solution while conventional objectives do not. Loss-surface analyses reveal that L1/L2 regularization can push models toward suboptimal optima, whereas MDL preserves the optimal solution in the local landscape, albeit with optimization challenges due to non-differentiability. The findings suggest MDL offers a principled path to provable generalization on formal-language tasks and motivate broader exploration across architectures.
Abstract
Neural networks offer good approximation to many tasks but consistently fail to reach perfect generalization, even when theoretical work shows that such perfect solutions can be expressed by certain architectures. Using the task of formal language learning, we focus on one simple formal language and show that the theoretically correct solution is in fact not an optimum of commonly used objectives -- even with regularization techniques that according to common wisdom should lead to simple weights and good generalization (L1, L2) or other meta-heuristics (early-stopping, dropout). On the other hand, replacing standard targets with the Minimum Description Length objective (MDL) results in the correct solution being an optimum.
