FlowNIB: An Information Bottleneck Analysis of Bidirectional vs. Unidirectional Language Models
Md Kowsher, Nusrat Jahan Prottasha, Shiyun Xu, Shetu Mohanto, Ozlem Garibay, Niloofar Yousefi, Chen Chen
TL;DR
The paper pairs information theory with empirical NLP analysis to explain why bidirectional language models excel at understanding context. It introduces FlowNIB, a dynamic mutual-information estimator with a schedule that unifies $I(X;Z)$ and $I(Z;Y)$ into a single trajectory per layer, and defines the Optimal Information Coordinate (OIC) to compare representations. Theoretical results show bidirectional representations retain more mutual information about inputs and targets and possess higher effective dimensionality, while FlowNIB enables practical estimation via variational MI bounds and normalization by generalized effective dimensionality. Experiments across 16 NLP datasets demonstrate consistent MI advantages for bidirectional models, with masking-based predictions delivering notable gains; the approach also reveals that smaller bidirectional models can outperform larger unidirectional ones under comparable compute. Overall, FlowNIB provides a principled explanation for bidirectional efficacy and a scalable tool for analyzing information flow in deep language models.
Abstract
Bidirectional language models have better context understanding and perform better than unidirectional models on natural language understanding tasks, yet the theoretical reasons behind this advantage remain unclear. In this work, we investigate this disparity through the lens of the Information Bottleneck (IB) principle, which formalizes a trade-off between compressing input information and preserving task-relevant content. We propose FlowNIB, a dynamic and scalable method for estimating mutual information during training that addresses key limitations of classical IB approaches, including computational intractability and fixed trade-off schedules. Theoretically, we show that bidirectional models retain more mutual information and exhibit higher effective dimensionality than unidirectional models. To support this, we present a generalized framework for measuring representational complexity and prove that bidirectional representations are strictly more informative under mild conditions. We further validate our findings through extensive experiments across multiple models and tasks using FlowNIB, revealing how information is encoded and compressed throughout training. Together, our work provides a principled explanation for the effectiveness of bidirectional architectures and introduces a practical tool for analyzing information flow in deep language models.
