TL;DR
Probabilistic Transformers (PT) offer a transparent, "white-box" alternative to standard deep learning architectures, but they suffer from severe hyperparameter drift when scaling up. This paper adapts Maximal Update Parametrization ($\mu$P) to PT by embedding scaling factors directly into its underlying potential functions and variational free energy. This mathematical adjustment enables zero-shot hyperparameter transfer from tiny models to large ones, allowing the authors to successfully scale a Probabilistic Transformer up to 0.4 billion parameters.
What Problem Does This Paper Address?
Modern large language models are notoriously opaque "black boxes." To introduce mathematical transparency and theoretical guarantees, researchers developed the Probabilistic Transformer (PT). PT replaces standard attention mechanisms with explicit probabilistic graphical models—specifically Conditional Random Fields (CRFs) solved via Mean Field Variational Inference (MFVI).
While PT performs well at small scales, scaling it up has been a massive headache. PT introduces six unique "information weight" hyperparameters that dictate how message tensors are scaled before normalization. These hyperparameters couple non-linearly with the learning rate and drift drastically as the model grows, making hyperparameter tuning at large scales computationally impossible.
While Maximal Update Parametrization ($\mu$P) is the industry standard for fixing hyperparameter drift in black-box networks, it works by directly scaling intermediate activations. Doing this in a Probabilistic Transformer violates strict probability distribution assumptions, destroying the very "white-box" nature that makes PT desirable.
Methods
The authors resolve this conflict by redesigning how $\mu$P principles are applied to probabilistic architectures. Instead of directly multiplying activation tensors by scaling factors, they inject a temperature parameter $\tau = N/r$ (where $N$ is model width and $r$ is low-rank matrix dimension) directly into the system's potential functions and variational free energy function.
Through rigorous derivation, they prove that modifying these foundational energy equations implicitly scales the final computation graph in a way that is mathematically equivalent to standard $\mu$P (specifically scaling attention logits by $1/r$). This prevents dot-product explosion and Softmax saturation while strictly preserving the probabilistic semantics of each layer.
Additionally, they categorize the model's learnable parameters into three distinct blocks to stabilize training dynamics across scales:
- Input Weights & Biases: Maintained at base distributions and learning rates.
- Hidden Weights: Initialized with variances scaled by $1/N$ and assigned a scaled learning rate ($\eta/N$).
- Output Weights: Initialized with variances scaled by $1/N^2$ and assigned a scaled learning rate ($\eta/N$).
Datasets
The authors evaluated their framework on the MiniPile dataset, a benchmark designed for data-efficient language model training. To ensure a fair comparison of data efficiency, all models were strictly limited to a single training epoch on a Masked Language Modeling (MLM) task with a 15% masking ratio.
Key Insights and Ideas
- White-Box Scaling via Energy Functions: The core "aha!" moment is that you don't need to hack activation tensors to stabilize a scaling model. By scaling the underlying energy and potential functions of a probabilistic graphical model, the correct scaling behavior emerges naturally in the computation graph.
- Absolute Scale Invariance: Introducing the temperature parameter $\tau$ ensures that the magnitude of the model's logits is entirely determined by its parameter matrices, completely decoupling it from model width ($N$).
- Implicit Parameter Sharing: Because PT relies on iterative variational inference, it inherently reuses the same parameters across multiple rounds. This acts as an implicit form of cross-layer parameter sharing, giving PT a higher computational volume (FLOPs) than standard BERT models at an identical parameter count.
Key Results
The authors successfully scaled the Probabilistic Transformer up to 0.4 billion parameters.
To verify that their zero-shot hyperparameter transfer actually worked, they performed a local optimality verification using random search (62 independent runs) on a large model. They proved with 95% confidence that the hyperparameter configuration transferred directly from a tiny 17M parameter model landed squarely within the top 5% optimal region of the large model's hyperparameter space.
In downstream evaluations, the scaled PT consistently outperformed independently tuned BERT models under the same parameter budget. However, it slightly lagged behind the Universal Transformer (UT), which utilizes an explicit, recurrent cross-layer parameter sharing mechanism.
Limitations and Future Work
Despite its success, the Probabilistic Transformer faces two notable limitations:
- Training Speed: Because PT relies on complex probabilistic inference steps rather than standard dot-product attention, it cannot currently leverage hardware-accelerated kernels like FlashAttention. This makes its training significantly slower than standard Transformers.
- The UT Gap: While PT beats BERT due to its implicit weight tying, it still underperforms compared to the Universal Transformer.
Future work will focus on closing the performance gap with the Universal Transformer and optimizing PT's underlying computation graph to make it compatible with modern hardware acceleration techniques.
Summary updated