In last year's technical report 《Muon is Scalable for LLM Training》, in order to compare the differences between models trained with Muon and Adam, we introduced the concept of "singular value entropy". We observed that the singular value entropy of matrix parameters trained by Muon was generally higher than that of matrices trained by Adam, and we took this as empirical evidence that "Muon makes fuller use of model parameters".
However, is a higher singular value entropy really always better? Does an optimal singular value entropy exist? Or, turning the question around: if we must restrict the singular value entropy of matrix parameters in advance, what value should we choose?
First, let us review some concepts. We know that the singular values of a matrix are all non-negative, so we can apply some normalization to them, such as direct normalization or squared normalization:
We then obtain an -element probability distribution . Once we have a probability distribution, we can compute related quantities, such as the entropy:
This is the concept of "singular value entropy". We know that maximum entropy corresponds to a uniform distribution, so singular value entropy also measures how uniform the singular values are. However, entropy is not a single concept; the aforementioned logarithmic expectation form is called "Shannon entropy", and there are also other entropies, such as Rényi entropy
. Shannon entropy is actually a special case of it, corresponding to . For other values, it also reaches its maximum value of at the uniform distribution, and reaches its minimum value of at a one-hot distribution. The singular value entropy of a matrix is essentially equivalent to the effective rank of a matrix, and another interpretation of it is the sparsity of the matrix singular values (see "How to Measure Data Sparsity?").
The question now is: how do we turn the doubt "is a higher singular value entropy really always better?" into a computable proposition, thereby providing a reference answer?
Intuitively, because current models are generally over-parameterized, there are many redundant degrees of freedom. This allows us to impose certain constraints on model parameters—such as constraining their norm or singular value entropy—without significantly sacrificing performance. After imposing constraints on the parameters, their degrees of freedom are naturally compressed. We can empirically posit that the greater the remaining degrees of freedom, the stronger the capacity of the model. This is the rationale behind our search for the "optimal singular value entropy".
So, given the singular value entropy, how many degrees of freedom does the matrix have left? Let us first look at two extreme cases: the first is the minimum entropy, where only a single singular value is non-zero; in this case, the matrix is a rank-1 matrix, and its degrees of freedom do not exceed ; the second is the maximum entropy, corresponding to non-zero and identical singular values; here, the matrix is (a scalar multiple of) an orthogonal matrix, with roughly degrees of freedom. Seen this way, the maximum entropy is indeed better than the minimum entropy, but does an even better intermediate value exist?
We can also set aside the matrix context and directly look at the "entropy density" of the singular value distribution. The maximum entropy of an -element distribution is , which is satisfied only by the uniform distribution; the minimum entropy is , corresponding to a one-hot distribution, for which there are different choices. Clearly, the "density" at both of these boundaries does not appear very high, as they can represent only a small fraction of distributions. Therefore, we can speculate that the optimal value indeed lies somewhere in between.
Framed this way, our problem becomes: if we uniformly sample an -element distribution and then compute its entropy, what does the distribution of entropy look like? Where is the probability density maximized? The point of maximum probability density means that the largest number of distributions cluster in its vicinity, and we regard this as the entropy value with the greatest expressive capacity.
Some readers may not quite understand what it means to "uniformly sample an -element distribution"—normally, given a probability distribution, we sample a number from it, but here we want to sample the probability distribution itself. However, as long as we temporarily set aside the probabilistic meaning of , we can obtain a very clear geometric understanding.
Specifically, an -element probability distribution actually refers to an -dimensional vector satisfying the following constraints:
The first constraint describes a unit hypercube in an -dimensional space, while the second constraint describes a hyperplane in an -dimensional space. Their intersection yields a bounded subplane, which is called the "-simplex," denoted as . What is referred to as "uniformly sampling an -element distribution" is in fact uniformly sampling a point on this subplane; understanding it this way is much more intuitive.
I wonder if the reader is curious why the triangle symbol is used to denote a simplex? In fact, when , this subplane is precisely an equilateral triangle with , , and as its vertices; it is not hard to imagine that when , it forms a regular tetrahedron in three-dimensional space. By extension, one can see that from a geometric perspective, a simplex is really the generalization of an equilateral triangle to higher-dimensional spaces, which is why the triangle is used to represent it.
Returning to the main topic. Now let us consider computing the probability density of the entropy, which can be formally written as
where is the Dirac delta function. The physical meaning of this expression is actually quite intuitive: it simply "counts" the distributions where , and then divides by the total count. However, this is purely a formal solution, and computing it analytically in practice is virtually impossible.
Considering that in practical scenarios, is usually relatively large (hundreds or even thousands), we can assume, based on the "Central Limit Theorem", that is approximately a normal distribution. A normal distribution has only two parameters, the mean and variance, so we only need to compute the mean and variance (second moment) of the entropy, namely and . If we only want to find the point of maximum probability, we only need to compute the mean, because the point of maximum probability for a normal distribution is its mean.
The difficulty in computing the mean lies in how to implement ; while this sampling is conceptually intuitive, how to carry it out computationally is not obvious. If readers have some background knowledge of the Dirichlet distribution, they can make use of existing results to accelerate their understanding; however, here we deliberately avoid introducing the Dirichlet distribution to lower the barrier to entry for general readers.
Fortunately, uniform sampling on the simplex can be transformed into sampling from the exponential distribution independently and repeatedly:
That is to say, from the exponential distribution , independently and repeatedly sampling numbers and then normalizing them is equivalent to uniform sampling on the simplex. How should we understand this? A rigorous proof is certainly possible, but here I would rather introduce a perspective analogous to isotropy to understand it.
First, let us switch to another problem: uniformly sampling an -dimensional unit vector. This is not difficult to achieve: we only need to draw from the standard normal distribution a total of numbers , and then return . Why can we do this? Because the probability density of is proportional to , and sampling times yields , which depends only on the norm of and not on its direction, so sampling from is uniform with respect to direction.
A unit vector is a vector whose "sum of squares equals 1", whereas the probability distribution we now want to sample is a vector whose "sum equals 1". Viewed this way, a probability distribution is just a unit vector with the "sum" as its norm. And as we know, the probability density of the exponential distribution is , and sampling times gives , which depends only on the "sum" norm; therefore, it is uniform with respect to this new kind of "direction vector".
Having prepared all this, we can now formally proceed to the calculation. Under the new parameterization, the entropy can be rewritten as
Taking expectations on both sides then yields a rather complicated integral problem. Interestingly, although this integral is complex, it can be solved analytically using certain techniques. However, we will not delve into those details here, and will instead quickly obtain an approximate solution via the mean-field technique:
where is Euler's constant. Here, is obvious, while the slightly more difficult part is , but this result is also classical and relates to the derivative of the Gamma function; if you do not know this result, you can also calculate it directly using Mathematica.
We know that the maximum entropy of a distribution with elements is , and now there is an extra term , which is precisely what we want: it shows that the point of maximum entropy density is roughly below the maximum entropy. For matrices, those with singular value entropy near this value have greater expressive power, rather than higher always being better. If we need to fix the singular value entropy, we can choose this value.
Using the same reasoning, we can compute the expectation of the general Rényi entropy:
If , then the corresponding limit is precisely , which matches the result from the previous section. If is an integer greater than 1, we can directly write
If we set , the result is the extremely simple . We know that is the maximum entropy of a distribution with elements, so an intuitive understanding of this result is: the singular value entropy only needs to "saturate" half of the dimensions; there is no need to saturate all dimensions, otherwise diversity would actually be lost.
In the previous two sections, we focused our efforts on estimating the mean, which of course was sufficient for our original goal. However, for completeness of the analysis, in this section we supplement the estimation of the variance and further discuss why asymptotic normality holds for .
First, we rewrite identically as
When , are two different statistics. The central limit theorem tells us that when , asymptotically follows a bivariate normal distribution. From , we can determine that has mean and variance and ; in turn has mean and variance and .
From this, we can see that when is not large and is large, both are concentrated around their respective means. This allows us to perform a Taylor expansion around the means, such as a first-order approximation:
Taking the expectation on both sides yields Eq. . If needed, we can also expand to higher orders to find remainder terms. Since is now linear with respect to , we can also calculate the variance using the following formula:
Note here that are usually not independent, so the covariance term cannot be ignored:
The first equality follows from the definition of and the bilinearity of ; the second equality is because when , are mutually independent and have zero covariance. Next, calculating gives . Substituting these results, we obtain
When , the result is ; when , the result is .
Overall, the central limit theorem does not actually directly give the asymptotic normality of the entropy ; we can only obtain the asymptotic normality of the intermediate variables , and from them estimate the mean and variance of , showing that the variance of is also , which indicates that the variance shrinks as increases; therefore, finding the point of maximum probability density via the mean is sound.
This article transforms the question "is higher singular value entropy always better?" into a quantitatively analyzable mathematical proposition. The core hypothesis is: after fixing the singular value entropy, the remaining degrees of freedom of the matrix parameters represent their expressive capacity. Subsequently, we interpret the point of maximum degrees of freedom as the point of maximum entropy density, and through a series of transformations and approximations, we obtain an optimal entropy value.
Of course, this result itself is not particularly important; the main significance of this article is to provide a reference framework for analyzing related problems.