Papers
Topics
Authors
Recent
Search
2000 character limit reached

Mean-Expansion Layer: Theory & Applications

Updated 5 July 2026
  • Mean-expansion layers are explicit transformations that expose the mean component in network representations, enabling parameter-free reparameterizations and improved modularity.
  • They are applied across domains—from Q-learning and convolutional kernels to low-bit LLM training—facilitating shared baselines and enhanced distributional modeling.
  • Advanced variants use generalized-mean and nonlinear statistics to achieve operations like soft XOR and exact arithmetic while controlling optimization geometry.

A mean-expansion layer is a technical construction in which mean structure is made explicit rather than treated as an incidental summary statistic. In the most direct current usage, it denotes a parameter-free linear reparameterization of action-values in Q-learning, mapping residual outputs to full QQ-values through q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1} (Nagarajan et al., 29 Jun 2026). Closely related usages appear in generalized-mean neural networks, where a layer outputs several generalized means of the same weighted inputs (Frick, 2020); in convolutional architectures, where a mean map layer embeds distributions of local features through kernel mean embeddings (Oliva et al., 2015); in low-bit LLM training, where mean-residual splitting isolates a rank-one mean component before quantized GeMMs (Cao et al., 11 Mar 2026); and in statistical physics, where an MM-layer construction expands around a Bethe mean-field reference solution (Altieri et al., 2017). This suggests a broader family of methods in which mean information is elevated into a structured computational object rather than collapsed into a single scalar.

1. Definition and terminological scope

In the narrow architectural sense, a mean-expansion layer is a fixed transformation that augments a representation by exposing its mean component as a separate degree of freedom. The clearest formal instance is the reinforcement-learning layer Mk=I+knJM_k = I + \frac{k}{n}J, where JJ is the all-ones matrix and n=An=|\mathcal A|; this layer leaves the component orthogonal to 1\mathbf{1} unchanged while scaling the mean component by k+1k+1 (Nagarajan et al., 29 Jun 2026). In that setting, the layer is linear, invertible, parameter-free, and appended as the final map of a Q-network.

A broader but still architectural usage appears in generalized-mean networks. There, one replaces a single dot-product neuron by a multiplet of neurons sharing the same weighted inputs but differing in their mean parameters, so that the layer outputs a vector of mean-based statistics rather than a scalar (Frick, 2020). A still broader interpretation occurs in deep mean maps, where local features are first expanded into random Fourier features and then averaged, so that the layer represents a distribution of features rather than a pooled vector (Oliva et al., 2015). In low-bit LLM training, the operative move is different again: the feature-wise mean over tokens is explicitly extracted, quantized separately, and recombined with a centered residual path, turning the dominant mean direction into a controllable computational channel (Cao et al., 11 Mar 2026).

A frequent source of confusion is that the same phrase also appears in non-neural contexts. In Bethe MM-layer methods, the “layer” is a family of replicated and rewired models indexed by MM, with q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}0 organizing corrections around a Bethe mean-field solution rather than around a feedforward operator (Altieri et al., 2017). In geometric analysis, “mean-expansion” concerns foliations constrained by q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}1, q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}2, and null expansions, not neural averaging (Metzger et al., 2022). The common denominator is explicit manipulation of mean structure, but the mathematical objects differ substantially.

2. Generalized-mean multiplets and nonlinear mean statistics

In multiplet neural networks, the basic scalar neuron replaces the affine form q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}3 by a weighted Lehmer mean,

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}4

and a multiplet layer outputs several such means with shared q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}5 and q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}6 but distinct q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}7, optionally with distinct q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}8 (Frick, 2020). The two-parameter extension replaces the denominator exponent q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}9 by MM0,

MM1

so a layer computes a vector MM2. In this construction, the mean parameter controls the regime: MM3 approaches MM4, MM5 gives the harmonic mean, MM6 the arithmetic mean, MM7 the contraharmonic mean, and MM8 approaches MM9.

The paper provides derivatives with respect to the weights and the mean parameters Mk=I+knJM_k = I + \frac{k}{n}J0, so the layer is backpropagatable. For the Gini-style form Mk=I+knJM_k = I + \frac{k}{n}J1 with Mk=I+knJM_k = I + \frac{k}{n}J2 and Mk=I+knJM_k = I + \frac{k}{n}J3, the weight derivative is

Mk=I+knJM_k = I + \frac{k}{n}J4

and analogous formulas are given for Mk=I+knJM_k = I + \frac{k}{n}J5 and Mk=I+knJM_k = I + \frac{k}{n}J6 (Frick, 2020). A practical limitation is that the derivative with respect to Mk=I+knJM_k = I + \frac{k}{n}J7 becomes very small for large Mk=I+knJM_k = I + \frac{k}{n}J8, so hard min/max behavior can induce vanishing gradients.

The expressive consequences are unusually explicit. The construction yields a soft XOR in two layers without an external activation function, exact multiplication for two inputs via the choice Mk=I+knJM_k = I + \frac{k}{n}J9, exact inverse-product for JJ0, and multi-layer realizations of division, truncated power series, and Padé-like rational approximants (Frick, 2020). The same work introduces a case slope score

JJ1

used to modulate learning rates according to homogeneity of the selected elements, and reports that on Iris a 2-layer multiplet network with 12 parameters converged in about JJ2th of the time of a 4-layer standard network with two 8-unit hidden layers while achieving comparable classification (Frick, 2020). In this sense, mean-expansion is not merely pooling; it is a structured nonlinear basis over soft-min, soft-max, harmonic, arithmetic, and power-like aggregates.

3. Action-value mean-expansion in reinforcement learning

The explicitly named mean-expansion layer in deep RL is a reparameterization of the action-value vector JJ3. Instead of predicting JJ4 directly, the network predicts a residual vector JJ5, and a fixed final layer computes

JJ6

where JJ7 (Nagarajan et al., 29 Jun 2026). The implied baseline is

JJ8

so each action-value is JJ9. The mean component is scaled by n=An=|\mathcal A|0, while directions orthogonal to n=An=|\mathcal A|1 are unchanged.

This reparameterization serves two purposes. First, it shares value across actions within a state: any update to one residual changes the shared baseline and hence all n=An=|\mathcal A|2. In tabular implicit-baseline Q-learning, a TD update at n=An=|\mathcal A|3 yields

n=An=|\mathcal A|4

and for all n=An=|\mathcal A|5,

n=An=|\mathcal A|6

so the TD error spreads across actions (Nagarajan et al., 29 Jun 2026). Second, it lowers the norm of the learned representation. The optimal explicit baseline for minimizing n=An=|\mathcal A|7, where n=An=|\mathcal A|8, is

n=An=|\mathcal A|9

and the paper shows that for suitable 1\mathbf{1}0 the residual representation has strictly smaller norm than the direct 1\mathbf{1}1-vector (Nagarajan et al., 29 Jun 2026).

Architecturally, the layer is appended to standard DQN or IQN heads without altering replay, target networks, or the underlying Bellman objective. The resulting methods are denoted 1\mathbf{1}2 and 1\mathbf{1}3, with DQN recovered at 1\mathbf{1}4 (Nagarajan et al., 29 Jun 2026). The reported effects are broad: in a 1\mathbf{1}5 stochastic gridworld, implicit-baseline Q-learning completed more than 1\mathbf{1}6 more episodes than standard Q-learning within the first 1k timesteps across several 1\mathbf{1}7; on Atari 57, 1\mathbf{1}8 achieved higher aggregate performance than DQN and reached DQN’s best IQM score by about 20M environment steps, while 1\mathbf{1}9 reached IQN’s best IQM score at about 33.75M steps (Nagarajan et al., 29 Jun 2026). The same study reports that k+1k+10 reduced overestimation in every Atari 57 game, increased relative action gaps in the vast majority of games, and did so with a parameter-free final layer.

A limitation is conditioning. The eigenvalue along k+1k+11 is k+1k+12, so the condition number of k+1k+13 is k+1k+14; very large k+1k+15 degrades performance, especially with fixed learning rates (Nagarajan et al., 29 Jun 2026). The layer therefore changes optimization geometry rather than function class in isolation, and its empirical gains are tied to that geometry.

4. Mean-centered and distributional variants in deep networks

In FP4-quantized LLM training, the mean component appears not as a baseline over actions but as the dominant anisotropic direction of token representations. For an activation matrix k+1k+16, the feature-wise mean is

k+1k+17

and the activations are decomposed as k+1k+18 with mutually orthogonal Frobenius components (Cao et al., 11 Mar 2026). The paper reports that the mean vector is almost perfectly aligned with the top right singular vector, with cosine similarity about k+1k+19, and argues that this coherent rank-one mean bias is the principal driver of dynamic-range inflation under blockwise FP4 quantization. Averis, the proposed remedy, performs dynamic per-GeMM mean-residual splitting: MM0 with an analogous decomposition in the backward pass (Cao et al., 11 Mar 2026). The method uses two reductions and two subtractions per GeMM, retains standard quantized kernels, and on Qwen3-0.6B trained for 100B tokens in W4A4G4 narrows the loss gap to BF16; at 10B tokens it reports average benchmark performance MM1 for Averis versus MM2 for BF16 across ARC-C, ARC-E, BoolQ, HellaSwag, LAMBADA, PIQA, and RACE (Cao et al., 11 Mar 2026). Here the “mean-expansion” effect is a controlled splitting of mean and residual pathways, not a generalized-mean aggregator.

Deep Mean Maps take a different route. Given a top convolutional feature map MM3, the spatial vectors MM4 are treated as samples from a feature distribution, mapped through random Fourier features

MM5

and then averaged: MM6 The corresponding mean map layer is implemented with a MM7 convolution, cosine nonlinearity, and global average pooling (Oliva et al., 2015). This produces a finite-dimensional approximation to a kernel mean embedding, so the layer encodes a distribution of high-level local features rather than a globally pooled vector. The paper uses MM8 random features and reports improvements over baseline CNNs on Flickr Style, Wikipaintings, and Places-205, including about MM9 absolute top-1 for GoogLeNet on Places-205 in the best forked DMM variants (Oliva et al., 2015). In contrast to RL mean-expansion, the emphasis is not baseline sharing but nonparametric distributional representation.

5. Mean-field and Bethe expansions as layered mean structures

A different use of mean-expansion arises in mean-field theory. In multilayer mean-field networks, a layer is represented by probability measures over neuron parameters rather than by a finite matrix. For a vector-valued layer, each output component has the form

MM0

with admissibility requiring that the measures MM1 share the same marginal on MM2; multilayer networks are then compositions of such measure-valued layers (Ren et al., 2023). The paper specializes to a 3-layer architecture and proves an algorithmic depth-separation result: the radial target MM3 can be learned efficiently by an overparameterized 3-layer mean-field network with widths MM4 and MM5, whereas a 2-layer network of polynomial width cannot approximate it to comparable accuracy under the chosen distribution (Ren et al., 2023). In this usage, a mean-expansion layer is an integral operator over a distribution of neurons.

The Bethe MM6-layer construction extends the idea from architectures to model families. One replicates the lattice MM7 times, rewires each copied edge through a random permutation, and studies the resulting graph as MM8, where short loops occur with probability MM9 and the graph becomes locally tree-like (Altieri et al., 2017). The q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}00 limit is exactly solvable by Bethe/cavity methods, and corrections organize as a q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}01 loop expansion in terms of fat-diagrams and non-backtracking paths. For the ferromagnetic Ising model, the one-loop q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}02-layer calculation recovers the continuum q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}03 theory with explicit parameters

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}04

and yields the usual upper critical dimension q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}05 (Angelini et al., 2024). The contribution of a diagram has the same symmetry factors as in standard field theory, but its lines are not Gaussian propagators ab initio; they arise from one-dimensional chains with attached Bethe trees and then reduce to continuum propagators in the scaling limit (Altieri et al., 2017). The “layer” here is therefore a mean-field reference system around which fluctuations are added systematically.

6. Geometric, asymptotic, and analytic extensions

Outside machine learning and statistical physics, the phrase attaches to yet other structures. In geometric analysis of initial data sets q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}06, local foliations by hypersurfaces satisfying either

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}07

are treated as local “mean-expansion layers” around a point q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}08, with existence and uniqueness governed by the vanishing of specific local q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}09-forms such as q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}10 and q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}11 and by invertibility conditions on their derivatives (Metzger et al., 2022). In this context, “mean” refers to mean curvature and “expansion” to null expansions, not to averaging in a neural representation.

For strongly anisotropic elliptic equations,

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}12

the solution is decomposed into an q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}13-mean q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}14 and a zero-mean fluctuation q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}15 (Lin et al., 2017). The leading-order solution is the sum of the mean part and a composite boundary-layer fluctuation, and the q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}16-th order composite approximation has error q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}17 in q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}18 (Lin et al., 2017). Here the mean-expansion structure is an asymptotic decomposition into bulk mean and boundary-layer corrections.

In the analytic theory of bivariate means, a smooth symmetric mean q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}19 admits near the diagonal the expansion

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}20

and the characteristic function

q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}21

governs the second-order term via q=z+kμz1\mathbf{q} = \mathbf{z} + k\,\mu_{\mathbf{z}}\mathbf{1}22 (Farhi, 9 Jun 2025). Inequalities between characteristic functions imply local inequalities between the corresponding means, and for homogeneous means they imply global inequalities; the paper develops this systematically for normal means, additive means, and several integral classes (Farhi, 9 Jun 2025). This is again a mean-expansion theory, but now in the literal sense of Taylor expansion of means near the first bisector.

The resulting conceptual boundary is sharp. “Mean-expansion layer” does not designate a single canonical operator across fields. In some papers it is a final linear layer on action-values; in others it is a vector of generalized means, a kernel-mean embedding, a rank-one mean-conditioning module, an expansion around a Bethe solution, a curvature foliation, or a mean-fluctuation asymptotic decomposition. The unifying theme is not implementation detail but the decision to expose mean structure explicitly, and then to build learning, approximation, or perturbation theory around that exposure.

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 Mean-Expansion Layer.