Term
Gram matrix
Meaning
A layer-wise matrix whose entries are inner products between the vectorised feature maps of a convolutional network layer. Entry (i, j) is the summed product of the responses of filters i and j over all spatial positions, so the matrix records how filter responses co-occur.
How papers use it 5 papers
A Neural Algorithm of Artistic Style
Use Constructed for each layer to form the style representation. The style loss compares the Gram matrix of the artwork with that of the image being generated, and the paper uses it with a per-layer normalization factor and a weighting across layers.
Rethinking Supervision Scaling in On-Policy Distillation: From Dense Supervision to Stochastic Horizons
Use Used as the stable residual Gram matrix \(G_{stable}(\theta)\), whose \((i,j)\) entry is the inner product \(\langle \delta_i(\theta), \delta_j(\theta)\rangle\) of the population centered residuals. The squared horizon-induced bias satisfies \(\|b_\alpha(\theta)\|^2 = \Delta w_\alpha^\top G_{stable}(\theta)\Delta w_\alpha \le \lambda_{max}(G_{stable}(\theta))\|\Delta w_\alpha\|_2^2\), so its largest eigenvalue controls the size of the bias. The matrix is defined at arbitrary current parameters and can change during optimization.
Meaning A square matrix whose entries are inner products between a family of vectors, so that it summarizes how those vectors align with one another. Its eigenvalues describe the spread of that alignment across the directions it spans.
Distributed Shaping of Robot Swarms Through Spatial Moments of Arbitrary Order
Use Appears in the joint higher-moment controller, where a regularized inverse of this matrix maps the feature errors to agent velocities. Its positive definiteness is tied to full column rank of the sample matrix of polynomials up to degree K−1 at the reference configuration. The joint law requires it to be invertible after regularization.
Meaning A symmetric matrix whose entries are empirical inner products between the projected feature gradients of a set of polynomial features, averaged over the agents. It is positive semidefinite by construction, and it is positive definite when those projected gradients are linearly independent.
Understanding deep learning requires rethinking generalization
Use Used to fit arbitrary label sets in the paper's analysis of linear models. Starting from SGD with zero initialization, the solution lies in the span of the data, so the weights can be written as \(w = X^{T}\alpha\). Interpolating the labels then reduces to solving \(K\alpha = y\) with \(K = XX^{T}\), an \(n \times n\) system that depends only on dot products between the data points.
Meaning A square matrix whose entries are the pairwise inner products of a set of vectors, so entry (i, j) is the dot product of the i-th and j-th data points. It is the kernel matrix of the linear kernel on that data.
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
Use Computed from the activations of a loss network layer and used to represent style in the style reconstruction loss. The style loss is the squared Frobenius norm of the difference between the Gram matrices of the output and the style target, so it does not depend on spatial layout. Because both Gram matrices have the same shape, the loss is defined even when the output and the target have different sizes.
Meaning A matrix of channel-by-channel correlations computed from a feature map. Element \((c, c')\) is the average, over all spatial positions, of the product of feature channels \(c\) and \(c'\), so it records which features tend to activate together.