Home · Blog · Research

Max Entropy Principle Predicts Neural Network Structure Better Than Training

Why do neural networks form the connections they do? A new study from Ludwig Hruza and Srdjan Ostojic at the École Normale Supérieure in Paris offers a surprising answer: it's not just learning—it's a fundamental balance between task demands and randomness.

The Research

The researchers applied the maximum entropy principle, a concept from statistical mechanics, to model neural connectivity. Instead of training networks with gradient descent, they described connectivity as a probability distribution over single-neuron weights, subject to task constraints. The unique distribution maximizing Shannon entropy under those constraints was solved analytically.

Focusing on context-dependent input-selection tasks in 2-layer feed-forward networks, they mapped nonlinear networks onto gain-modulated linear models. Starting from a homogeneous distribution, entropy maximization naturally produced populations of neurons with distinct contextual gain modulation patterns. Increasing the number of contexts drove a transition from specialized to random populations, while increasing the weight scale shifted from structured to random stimulus selectivity. Strikingly, the maximum entropy connectivity matched both qualitatively and quantitatively the structure of networks trained with gradient descent across different learning regimes (arXiv:2605.25607).

Why It Matters

This finding changes how we think about brain organization. It suggests that neural circuits are not solely shaped by learning algorithms but by a deeper principle: balancing structure (task constraints) with randomness (entropy). For human cognition, this implies that our brains are inherently optimized to handle a wide range of contexts, not overfitting to any single environment. The weight scale parameter—which controls this balance—offers a new lens to understand why some people are more adaptable or have more specialized cognitive skills.

What You Can Do

To nurture cognitive flexibility, engage in varied tasks that challenge you in different contexts. Learning a new language, playing strategy games, or even switching between creative and analytical work can mimic the 'contexts' that drive balanced neural connectivity. Consistency matters: aim for 15-20 minutes daily of varied mental activity, like alternating between puzzles and reading.

Source: arXiv q-bio.NC

Curious about your own brain? Take our free adaptive IQ test or try 306 brain training levels.

Curious about your own IQ?

Take our free, scientifically designed adaptive test across 7 cognitive domains. No signup required.

Take the free test