Mean-Expansion Layer: Theory & Applications
- 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 -values through (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 -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 , where is the all-ones matrix and ; this layer leaves the component orthogonal to unchanged while scaling the mean component by (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 -layer methods, the “layer” is a family of replicated and rewired models indexed by , with 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 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 3 by a weighted Lehmer mean,
4
and a multiplet layer outputs several such means with shared 5 and 6 but distinct 7, optionally with distinct 8 (Frick, 2020). The two-parameter extension replaces the denominator exponent 9 by 0,
1
so a layer computes a vector 2. In this construction, the mean parameter controls the regime: 3 approaches 4, 5 gives the harmonic mean, 6 the arithmetic mean, 7 the contraharmonic mean, and 8 approaches 9.
The paper provides derivatives with respect to the weights and the mean parameters 0, so the layer is backpropagatable. For the Gini-style form 1 with 2 and 3, the weight derivative is
4
and analogous formulas are given for 5 and 6 (Frick, 2020). A practical limitation is that the derivative with respect to 7 becomes very small for large 8, 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 9, exact inverse-product for 0, and multi-layer realizations of division, truncated power series, and Padé-like rational approximants (Frick, 2020). The same work introduces a case slope score
1
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 2th 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 3. Instead of predicting 4 directly, the network predicts a residual vector 5, and a fixed final layer computes
6
where 7 (Nagarajan et al., 29 Jun 2026). The implied baseline is
8
so each action-value is 9. The mean component is scaled by 0, while directions orthogonal to 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 2. In tabular implicit-baseline Q-learning, a TD update at 3 yields
4
and for all 5,
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 7, where 8, is
9
and the paper shows that for suitable 0 the residual representation has strictly smaller norm than the direct 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 2 and 3, with DQN recovered at 4 (Nagarajan et al., 29 Jun 2026). The reported effects are broad: in a 5 stochastic gridworld, implicit-baseline Q-learning completed more than 6 more episodes than standard Q-learning within the first 1k timesteps across several 7; on Atari 57, 8 achieved higher aggregate performance than DQN and reached DQN’s best IQM score by about 20M environment steps, while 9 reached IQN’s best IQM score at about 33.75M steps (Nagarajan et al., 29 Jun 2026). The same study reports that 0 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 1 is 2, so the condition number of 3 is 4; very large 5 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 6, the feature-wise mean is
7
and the activations are decomposed as 8 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 9, 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: 0 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 1 for Averis versus 2 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 3, the spatial vectors 4 are treated as samples from a feature distribution, mapped through random Fourier features
5
and then averaged: 6 The corresponding mean map layer is implemented with a 7 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 8 random features and reports improvements over baseline CNNs on Flickr Style, Wikipaintings, and Places-205, including about 9 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
0
with admissibility requiring that the measures 1 share the same marginal on 2; 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 3 can be learned efficiently by an overparameterized 3-layer mean-field network with widths 4 and 5, 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 6-layer construction extends the idea from architectures to model families. One replicates the lattice 7 times, rewires each copied edge through a random permutation, and studies the resulting graph as 8, where short loops occur with probability 9 and the graph becomes locally tree-like (Altieri et al., 2017). The 00 limit is exactly solvable by Bethe/cavity methods, and corrections organize as a 01 loop expansion in terms of fat-diagrams and non-backtracking paths. For the ferromagnetic Ising model, the one-loop 02-layer calculation recovers the continuum 03 theory with explicit parameters
04
and yields the usual upper critical dimension 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 06, local foliations by hypersurfaces satisfying either
07
are treated as local “mean-expansion layers” around a point 08, with existence and uniqueness governed by the vanishing of specific local 09-forms such as 10 and 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,
12
the solution is decomposed into an 13-mean 14 and a zero-mean fluctuation 15 (Lin et al., 2017). The leading-order solution is the sum of the mean part and a composite boundary-layer fluctuation, and the 16-th order composite approximation has error 17 in 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 19 admits near the diagonal the expansion
20
and the characteristic function
21
governs the second-order term via 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.