Papers
Topics
Authors
Recent
Search
2000 character limit reached

GateFrame: Normative Policy Gating

Updated 5 December 2025
  • GateFrame is a normative framework that formalizes policy gating via entropy-regularized free energy minimization, integrating decision theory, neuroscience, and machine learning.
  • It employs a closed-form softmax solution to optimize mixing weights over a library of primitive policies, ensuring strong convexity and unique optimality.
  • GateFrame underpins the GateMod suite by linking mathematical free-energy decomposition with algorithmic (GateFlow) and biologically-plausible (GateNet) implementations for adaptive control.

GateFrame is a normative framework for policy gating based on minimizing free energy, providing a unifying principle to describe and analyze the selection and composition of policies in decision-making, neuroscience, and machine learning. Central to the GateMod suite, GateFrame formalizes gating as the entropy-regularized minimization of Kullback–Leibler divergence between induced and desired agent-environment dynamics, parameterized by mixing weights over a library of primitive policies. Its convex structure, closed-form softmax gating rule, and principled decomposition extend across diverse domains, from cognitive models to engineering control (Rossi et al., 4 Dec 2025).

1. Mathematical Definition and Optimization Problem

GateFrame targets the policy mixture

πk(uxk1)=α=1nwkα  πα(uxk1),\pi^\star_k(u \mid x_{k-1}) = \sum_{\alpha=1}^n w_k^\alpha\; \pi_\alpha(u \mid x_{k-1}),

where each πα\pi_\alpha is a primitive policy from a finite library, and w=(w1,...,wn)w = (w^1, ..., w^n) are nonnegative mixing weights constrained to the simplex Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}. The optimization seeks wkw^\star_k minimizing the entropy-regularized KL divergence

wk=argminwΔnDKL ⁣[p(xk,ukxk1)q(xk,ukxk1)]εH(w),w_k^\star = \arg\min_{w \in \Delta^n} D_{\mathrm{KL}}\!\left[p(x_k, u_k \mid x_{k-1}) \,\|\, q(x_k, u_k \mid x_{k-1})\right] - \varepsilon H(w),

where pp is the resulting distribution under the mixture, qq is a generative model encoding desired dynamics or task constraints, H(w)H(w) is the Shannon entropy, and ε>0\varepsilon > 0 the temperature. Because the mapping πα\pi_\alpha0 is convex and πα\pi_\alpha1 is strictly concave, GateFrame is a strongly convex program with guaranteed unique solutions.

2. Free-Energy Decomposition and Objective Structure

A standard KL decomposition of GateFrame's objective, given an exponentially tilted πα\pi_\alpha2 with respect to a cost πα\pi_\alpha3 (i.e., πα\pi_\alpha4), yields: πα\pi_\alpha5 where πα\pi_\alpha6 is constant with respect to πα\pi_\alpha7. Thus, the optimization reduces to: πα\pi_\alpha8 with

πα\pi_\alpha9

GateFrame thus realizes an entropy-regularized free energy minimization that simultaneously penalizes expected cost and divergence from a generative prior, connecting frameworks such as active inference, maximum-entropy RL, and KL-control under a common principle.

3. Closed-Form Softmax Gating Solution

GateFrame admits a closed-form solution for the optimal gating, derived via Lagrangian methods on the simplex. Setting the stationarity conditions for w=(w1,...,wn)w = (w^1, ..., w^n)0 and solving leads to: w=(w1,...,wn)w = (w^1, ..., w^n)1 for each primitive w=(w1,...,wn)w = (w^1, ..., w^n)2. The logit scores w=(w1,...,wn)w = (w^1, ..., w^n)3 encode, for each primitive, the marginal gain in free energy from adjusting its weight, rendering the solution interpretable as softmax policy arbitration. As w=(w1,...,wn)w = (w^1, ..., w^n)4, the solution reduces to hard argmax selection; as w=(w1,...,wn)w = (w^1, ..., w^n)5, the weights approach uniform mixing.

4. Influence of Task Structure on Gating

The form of w=(w1,...,wn)w = (w^1, ..., w^n)6 embeds all task-specific structure, determined by:

  • the generative model w=(w1,...,wn)w = (w^1, ..., w^n)7,
  • the cost function w=(w1,...,wn)w = (w^1, ..., w^n)8 or any learned dynamics biases,
  • the environment transition kernel w=(w1,...,wn)w = (w^1, ..., w^n)9.

Practically, the gradient Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}0 involves computing expected log-likelihoods and costs under each primitive: Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}1 These context-dependent terms ensure that gating weights adapt online to both environmental conditions and demands of the given task, producing flexible, interpretable selection of policies according to moment-to-moment utility and generative fit.

5. Normative Properties and Theoretical Guarantees

GateFrame exhibits several notable normative features:

  • Strong convexity and uniqueness: The entropy term ensures a unique optimum for Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}2 on Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}3.
  • Principled optimality: Solutions minimize a well-motivated free-energy functional unifying multiple frameworks in decision theory.
  • Interpretability: Gating logits measure each primitive’s mismatch to the task-driven generative model or expected costs.
  • Continuity: Varying Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}4 interpolates between hard selection and equivocal softmax arbitration.
  • Framework generality: Any policy set Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}5, cost structure, or environment model can be accommodated, making GateFrame broadly applicable across neuroscience, cognition, and engineered controllers.

6. Connections to GateFlow and Neural Realization via GateNet

GateFrame provides the normative foundation for two subsequent realizations in GateMod:

  • GateFlow is a continuous-time proximal-gradient ODE,

Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}6

whose unique, globally exponentially stable equilibrium is the GateFrame solution Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}7. Its vector field keeps trajectories within Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}8 and ensures strict, monotonic decrease of the cost functional at rate Δn={wR0n:α=1nwα=1}\Delta^n = \{w \in \mathbb{R}_{\ge 0}^n : \sum_{\alpha=1}^n w^\alpha = 1\}9.

  • GateNet implements GateFlow as a biologically-plausible recurrent circuit. The network comprises two modules: a fast stage computing wkw^\star_k0 using local, contextual (Sigma-Pi) computations with log/linear activations, and a slow stage performing softmax normalization via exponentiation and normalization. All neurons obey nonnegativity constraints (interpretable as firing rates) and exchange only local information.

This succession—GateFrame (normative), GateFlow (algorithmic), and GateNet (mechanistic)—establishes a rigorous pipeline from free-energy-based gating objectives down to dynamical and neural implementations, supporting both interpretability and cross-domain applicability (Rossi et al., 4 Dec 2025).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to GateFrame.