NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Policy Composition from Free Energy Minimization

Francesca Rossi, Veronica Centorrino, Francesco Bullo, Giovanni RussoarXiv 2025 · DOI

Introduction

Natural intelligence excels at "compositionality"—the ability to combine previously learned skills (primitives) to solve complex new tasks. While modern AI uses architectures like Mixture-of-Experts (MoE) to mimic this, the "gating rules" that decide which expert to use are usually chosen heuristically. There is a significant gap in our understanding of why specific gating rules should be used and how biological neural circuits implement these mathematical operations.

GateMod aims to bridge this gap by providing a unifying framework that links high-level task objectives to low-level dynamical neural computations. By casting policy composition as an optimization problem, the authors demonstrate that the ubiquitous "softmax" gating rule is an emergent optimal solution that can be implemented by robust, biologically plausible neural circuits.

Methods: The GateMod Framework

The GateMod framework is structured into three hierarchical components that bridge theory and implementation:

  1. GateFrame (The "What"): A normative optimization framework. It defines optimal gating weights by minimizing a cost functional that balances statistical complexity (deviation from a prior) and entropy (exploration).
  2. GateFlow (The "Dynamics"): A continuous-time dynamical system designed to solve the GateFrame optimization. This system is mathematically proven to be contractive, ensuring global and exponential convergence to the optimal solution.
  3. GateNet (The "Circuit"): A recurrent neural circuit implementation of GateFlow. It utilizes a "fast unit" for gradient computation via local dendritic-like motifs and a "slow unit" for the softmax operation.
High-level architecture of the GateMod agent and its internal gating mechanism.

Key Insights: Softmax and Circuit Robustness

A primary insight of this work is the proof that the softmax gating rule is the natural result of minimizing free energy under entropy regularization. It is not merely a design choice but the mathematically optimal way to compose policies under these constraints.

Furthermore, because the underlying dynamics (GateFlow) are contractive, the system is highly robust to noise and initial conditions. The GateNet architecture also provides a functional explanation for complex dendritic branching, suggesting that contextual gating requires non-linear interactions at the dendritic level.

The GateMod optimization problem (A), its convergence on the probability simplex (B), and the corresponding neural circuit implementation (C).

Results and Evaluation

The model was evaluated across two distinct domains to demonstrate its versatility:

  • Collective Behavior (Flocking): GateMod successfully recovered classic group dynamics like polarization and milling in "boid" simulations. It enabled "soft-control," where a small fraction of informed leaders could steer a flock without disrupting its cohesive structure.
  • Human Decision-Making: When applied to human performance data on two-armed bandit tasks, GateMod achieved higher Protected Exceedance Probabilities (PXP) than existing hybrid models. It revealed that humans alternate between sampling and consolidating information in a highly structured, periodic way.

Discussion and Future Work

GateMod provides a theoretically grounded bridge between normative theories of behavior and mechanistic neural implementations. While the current model assumes known primitives and environment models, future work will explore integrating Active Inference to allow agents to learn these components from scratch. Additionally, exploring alternative regularizers may lead to a broader taxonomy of neural composition rules beyond the softmax operation.

Summary updated

BibTeX
@misc{rossi2025neural,
  author = {Francesca Rossi and Veronica Centorrino and Francesco Bullo and Giovanni Russo},
  title = {{Neural Policy Composition from Free Energy Minimization}},
  year = {2025},
  eprint = {2512.04745},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.04745},
}

Loading related content...

Figure