In the standard evolution of a Convolutional Neural Network (CNN), spatial information is treated as a disposable commodity. As an image travels through the network, it is transformed from a rich 2D grid of pixels into a series of feature maps, only to be eventually crushed into a single, one-dimensional vector. This "spatial collapse" usually happens at the very end of the network, through either a series of Fully Connected (FC) layers or Global Average Pooling (GAP).
While this collapse is efficient for simple classification, it creates a significant information bottleneck. By flattening the grid, the model forgets where features were located and how they were arranged relative to one another. A growing body of research suggests that the "treasure" of neural networks actually lies beneath these final layers, within the spatial grids they otherwise discard.
The Spatial Bottleneck
Traditional architectures like VGG or ResNet are designed to be translation-invariant—they want to know if a feature (like a bird's beak) exists, regardless of its location. However, as Lingqiao Liu, Chunhua Shen, and Anton van den Hengel argue in The treasure beneath convolutional layers: Cross-convolutional-layer pooling for image classification, this comes at a cost. When we collapse the spatial grid into a single vector, we lose the ability to perform precise part detection or fine-grained recognition.
This bottleneck is particularly damaging in tasks where the arrangement of parts is as important as the parts themselves. For example, in Supervised Spatially Contrastive Learning, Hirokatsu Kataoka and colleagues point out that Global Average Pooling prevents a model from learning the boundaries and textures necessary for downstream tasks like semantic segmentation. If the pre-training phase discards spatial coordinates, the model must "re-learn" how to locate objects from scratch during fine-tuning.
Cross-Layer Guidance
One way to bypass this bottleneck is to use the hierarchy of the network against itself. In their work on cross-convolutional-layer pooling, Liu et al. propose using deeper layers to act as "soft masks" for earlier layers.
The intuition is simple: earlier layers contain high-resolution, low-level textures, while deeper layers contain low-resolution, high-level semantic "parts." By using a deeper layer's activation to guide the pooling of an earlier layer, the network can effectively say, "Look for fine-grained textures, but only in the region where I've already detected a 'wing' or a 'wheel'." This preserves spatial context without requiring the heavy computational overhead of fully connected layers.
Learning with Coordinates
Recent advances in self-supervised learning have also run into the spatial collapse problem. When a model compares two different crops of the same image, it often struggles if those crops don't overlap. Lingxi Xie and Hao Li addressed this in Heterogeneous Contrastive Learning by adding a temporary spatial-encoding branch. By forcing the model to account for the relative positions of different image patches during training, they created more compact and efficient representations that outperform standard global-vector methods.
Similarly, Chunshi Wang and Bin Zhao introduced SCANet, which uses "coordinate-aware" spatial pooling. Instead of averaging everything into one point, they pool features along the X and Y axes separately. This allows the network to capture long-range interactions across the image while maintaining a clear sense of where objects are located.
Explainability and Robustness
Preserving spatial structure isn't just about performance; it's about understanding why a model makes a decision. In Explainable Deep One-Class Classification, Philipp Liznerski and Lukas Ruff demonstrate that "Fully Convolutional" architectures are inherently more explainable. Because these models never flatten the spatial grid, they produce heatmaps where high-value pixels directly correspond to anomalous regions in the input image.
This spatial consistency is also vital for robustness. Hai Thanh Phan showed in DeepFace-EMD that when faces are partially obscured by masks or sunglasses, global vectors fail because the "average" representation is corrupted. By comparing images patch-by-patch—preserving the spatial relationship between the eyes, nose, and mouth—the system can focus on the visible parts and ignore the occlusions.
Beyond the Global Vector
The shift away from global pooling and fully connected layers represents a fundamental change in how we view neural representations. Rather than seeing an image as a single point in a high-dimensional space, these researchers treat it as a structured landscape. Whether through feedback mechanisms that "think twice" about spatial locations or multi-level aggregation that aligns textures with objects, the goal remains the same: to stop the "spatial collapse" and keep the rich, 2D structure of the visual world intact.