The Conical Structure of Cross-Entropy Loss in the Final Layer: Why It Disappears in ReLU Backbones

The paper proves that cross-entropy loss exhibits a polyhedral cone plus exponential decay in the affine final layer, while ReLU backbone creases are dissolved by sample switching.
This paper analyzes the geometric structure of the softmax cross-entropy loss surface at the classifier's final layer from two perspectives: the affine final layer and the ReLU backbone. In the final-layer weight space, the loss equals a polyhedral cone plus a monotonically exponentially decaying offset term, with the core radius equal to mean surprisal divided by wall slope, directly linking geometric scale to data statistics. In the ReLU backbone parameter space, kinks along straight lines arise from sample activation-pattern switching; semi-algebraic set dimension theory shows that, under coprimality conditions, each kink carries only a single sample's contribution and cannot form creases comparable to the slope. Experiments on ResNet-18 and ResNet-56 with CIFAR-10 validate these predictions and propose a test for estimating the size of hidden creases.

In deep learning interpretability research, visualizations of the loss surface in parameter space are often used to understand network training dynamics. Intuitively, along straight-line or planar slices of parameter space, loss curves often present a single basin with nearly vertical walls. This raises a core question: is this loss simply a smooth cone with a rounded vertex, or is it a lower envelope formed by multiple cones intersecting along creases? A recent paper provides a rigorous analysis of the softmax cross-entropy loss at the classifier's final layer, at two levels: the affine final layer and the ReLU backbone.
Affine Final Layer: Polyhedral Cone and Monotone Exponential Decay
The paper first examines the loss structure when only the affine final-layer weights are optimized. The conclusion is that, in the final-layer weight space, the cross-entropy loss equals a polyhedral cone plus an offset term. Along any ray, this offset term decays monotonically and exponentially, approaching a closed-form limit. This means the loss over the final-layer weights is not a simple smooth cone, but possesses an intricate algebraic structure.
A key concept is the "core radius," defined as the distance at which the asymptotic wall reaches the height of the starting point. The paper proves that this radius equals the mean surprisal of the class preferred by the direction, divided by the wall slope. In other words, the geometric scale of the loss surface is directly determined by the class uncertainty in the data distribution. This result connects geometric quantities of the loss landscape with statistical quantities, providing a theoretical explanation for the straight-wall phenomenon observed in visualizations.
Polyhedral cone is a fundamental object in convex geometry, referring to a set spanned by a finite number of rays through the origin, equivalently expressible as the solution set of finitely many linear inequalities. In machine learning, the logits of softmax output are linear functions of the final-layer weights, and cross-entropy loss depends on the relative magnitudes of the logits. Therefore, when only the final-layer weights are optimized, the piecewise-linear structure of the loss with respect to the weights naturally induces conical geometry. The "cone" here is not a physical cone but refers to the homogeneous scaling behavior of the loss as weights are scaled along a direction—the loss along a ray decomposes into a wall term that grows linearly with distance and an offset term that decays exponentially with distance, the latter approaching a closed-form limit. The exponential decay of the offset term stems from the saturation property of softmax: as weights increase along the direction of the preferred class, the probability of the correct class approaches 1, and cross-entropy approaches 0, but the rate of convergence is determined by the mean surprisal of that class in the data.
Mean surprisal borrows the information-theoretic concept of "surprisal," i.e., negative log-probability $-\log p$. For a classification problem, if the model's predicted distribution for a sample is $p$, then the surprisal of that sample is $-\log p_{y}$ (where $y$ is the true class). Mean surprisal is the average surprisal over all samples in the dataset, measuring how much uncertainty in the data remains unexplained under the current model. The core radius equals mean surprisal divided by the wall slope, a relationship indicating that the "harder" the data (the higher the mean surprisal), the larger the core region of the loss surface—that is, the longer the distance required for the loss to transition from offset-dominated to linear-wall-dominated. Conversely, if the model already fits the data well, mean surprisal is low, the core radius is small, and the loss curve enters the straight-wall regime sooner. This provides a computable criterion for where the straight wall observed in loss visualizations begins.
ReLU Backbone: Dissolution of Creases and Sample Switching
When ReLU backbone parameters are considered, the situation changes. Along a straight line, the loss function exhibits kinks at points where sample activation patterns change. Using dimension theory of semi-algebraic sets, the paper proves that, on almost every straight line, samples switching at the same point share an irreducible factor of their pre-activation polynomial. Under coprimality conditions, each kink carries the share of only one of the n samples, and thus no crease comparable to the slope forms.
This finding explains why, in ReLU networks, creases along the loss are often invisible or very weak. Unlike the polyhedral cone structure in the affine final-layer weights, the nonlinear activation-pattern switching of the ReLU backbone "scatters" the creases across individual sample contributions, thereby presenting a smoother landscape at the macroscopic level.
Semi-algebraic set is a set defined by finitely many polynomial equalities and inequalities, a fundamental object in real algebraic geometry. The output of a ReLU network, as a function of inputs and parameters, corresponds to a polynomial for each activation pattern (since ReLU is linear within a fixed activation-pattern region, and compositions remain piecewise polynomial). All possible activation patterns partition the parameter space into finitely many semi-algebraic sets; the loss is smooth within each semi-algebraic set, and kinks occur precisely at the boundaries of these sets. Dimension theory of semi-algebraic sets provides the key tool: if the intersection of two semi-algebraic sets has dimension lower than the ambient dimension, then their intersection in general position is low-dimensional. This means that, along a random straight line, samples whose activation switches at the same point must satisfy additional algebraic constraints (sharing an irreducible factor of the pre-activation polynomial), so that under coprimality conditions each switch involves only a single sample and cannot accumulate into macroscopic creases.
Experimental Validation: Measurements on ResNet
The paper conducts measurements on ResNet-18 and ResNet-56 trained on CIFAR-10, and the results corroborate the theoretical predictions at both levels. Loss curves along final-layer weight directions exhibit the expected exponential decay and core-radius scale, while crease strength along backbone parameter directions is far below the slope magnitude. The authors also propose a test method to bound the size of creases that sampled loss values might hide, enhancing the reliability of the conclusions.
CIFAR-10 is a commonly used image classification benchmark dataset in deep learning, containing 60,000 32×32 color images across 10 classes (airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck), with 50,000 for training and 10,000 for testing. ResNet-18 and ResNet-56 are two classic depth configurations of Residual Networks, containing 18 and 56 weighted layers, respectively. Residual networks alleviate the vanishing gradient problem in deep networks through skip connections; their backbone consists of stacked convolutional layers and ReLU activations, with a fully connected affine layer plus softmax at the end. These two models were chosen because they have standard architectures, train stably, and their difference in depth is sufficient to test whether theoretical predictions vary with depth. Measuring loss curves along random directions on these models allows direct comparison between final-layer directions (which should exhibit polyhedral cone plus exponential decay) and backbone directions (where creases should be far weaker than the slope magnitude).
Implications for Loss Landscape Visualization
The significance of this work lies in clarifying the mechanism behind the "single basin with straight walls" appearance in loss visualizations. The polyhedral cone structure of the final layer determines the macroscopic conical appearance, while the activation-pattern switching of the ReLU backbone suppresses the formation of significant creases. For readers working on training dynamics, loss surface geometry, or interpretability, this distinction helps avoid mistakenly generalizing final-layer geometry to the entire network. Meanwhile, the connection between core radius and mean surprisal provides a statistical perspective for understanding loss scale.
Although the paper focuses on the final layer and ReLU backbone of classifiers, its methodology—combining convex geometry, semi-algebraic set dimension theory, and empirical measurement—provides a template for analyzing the loss structure of more complex architectures. Future work could explore the effects of other activation functions or normalization layers on crease formation.
One-line Summary
The paper proves that cross-entropy loss exhibits a polyhedral cone plus exponential decay in the affine final layer, while ReLU backbone creases are dissolved by sample switching.
Paragraph Summary
This paper analyzes the geometric structure of the softmax cross-entropy loss surface at the classifier's final layer from two perspectives: the affine final layer and the ReLU backbone. In the final-layer weight space, the loss equals a polyhedral cone plus a monotonically exponentially decaying offset term, with the core radius equal to mean surprisal divided by wall slope, directly linking geometric scale to data statistics. In the ReLU backbone parameter space, kinks along straight lines arise from sample activation-pattern switching; semi-algebraic set dimension theory shows that, under coprimality conditions, each kink carries only a single sample's contribution and cannot form creases comparable to the slope. Experiments on ResNet-18 and ResNet-56 with CIFAR-10 validate these predictions and propose a test for estimating the size of hidden creases.
Related articles

From 0 to 1: Vibe Coding an AI Knowledge Base — A Practical Retrospective and Tech Stack Breakdown
A retrospective on building the AI knowledge base OilBook from scratch with Vibe Coding: Next.js+Neon stack, Oil Dev Skill workflow, Stripe paywall security, interview-style writing, AI-flavor control, and Vercel deployment.

GLM-5.4 Hands-On: Native Vision Meets a New Vibe Coding Workflow
Hands-on with Zhipu GLM-5.4: native vision tested across a 3D product demo, pure-code video generation, and remote-control Vibe Coding, compared with GPT-6.2 and Gemini Neon.

AI and Humans Claim to Prove the Riemann Hypothesis: Machine-Verified, Yet Nobody Can Understand It
Anthropic mathematician and AI Claude claim to prove the Riemann Hypothesis with 17 million lines of Lean code, machine-verified but unreadable by humans. This article analyzes the event, the zero proportion record from 41.6% to 67.2%, and the gap between machine verification and human understanding.