Positional Information Leakage in Convolutional Networks

36 concepts26 papers3 proposals

Convolutional Neural Networks (CNNs) are theoretically designed to be translation-invariant. In a perfectly invariant system, shifting an input image by ten pixels should simply shift the resulting feature map by ten pixels without changing its values. However, a growing body of research reveals that standard CNNs are not truly spatially agnostic. Instead, they implicitly learn to "triangulate" their absolute position within an image, a phenomenon primarily driven by the ubiquitous use of zero-padding at image boundaries.

Zero Padding as a Spatial Anchor

The core mechanism behind this spatial bias is surprisingly simple. When a convolutional kernel slides over the edge of an image, it encounters the artificial zeros added by padding. As Islam et al. demonstrate, these zero-padded boundaries act as "spatial anchors." Because the distribution of zeros is unique to the edges and corners, the network can use these boundary effects to calculate how far a specific feature is from the frame's limit.

This isn't just a minor artifact; it creates a hidden coordinate system. Kayhan et al. show that convolutional layers actively exploit these boundary effects to learn absolute spatial locations, which can lead to non-uniform processing where pixels near the center are treated differently than those at the periphery. Lin further quantifies this "Position-information Pattern from Padding" (PPP), revealing that networks develop a reliance on these anchors regardless of the specific padding scheme used.

The Breakdown of Translation Invariance

While this implicit coordinate system can sometimes help—such as in medical imaging where Guerrero et al. found models might associate pathologies with specific patch locations—it often degrades performance in tasks requiring strict spatial consistency.

In visual tracking, for instance, Siamese networks are supposed to compare a target to a search region based purely on similarity. However, Li et al. and Zhang et al. identify that zero-padding introduces a "central bias." The network learns to expect targets near the center of the search window because the feature representations degrade as they approach the padded edges. When an object moves toward the boundary, the "spatial anchor" signal changes, causing the tracker to fail.

Similarly, in generative modeling, Karras et al. describe "texture sticking," where fine details in a generated video appear glued to the screen coordinates rather than moving naturally with the object. This occurs because the generator anchors features to the fixed pixel grid defined by the boundary leakage rather than maintaining relative relationships.

Blind Spots and Asymmetric Kernels

The impact of padding extends to the very weights of the network. Alsallakh et al. demonstrate that convolutional kernels can develop asymmetric weights as a learned response to uneven padding. This can result in "blind spots"—localized regions where the model's ability to recognize objects drops significantly.

This bias is also sensitive to input resolution. Alsallakh et al. show that fixed downsampling and padding strategies cause networks to overfit to specific input sizes. If the boundary arithmetic changes slightly, the learned spatial anchors shift, leading to periodic dips in accuracy. Yung et al. confirm this by showing that standard CNNs struggle with objects at the periphery compared to architectures like Vision Transformers, which do not rely on the same convolutional padding mechanisms.

Engineering Around the Bias

Recognizing that zero-padding is an accidental "positional encoding," researchers have proposed several ways to either embrace or eliminate it:

  • Explicit Encoding: Xu argues that since GANs already use padding as a crude positional signal, replacing it with explicit positional encodings allows for more consistent global structure and multi-resolution generation.
  • Architectural Fixes: Zhang et al. introduced Cropping-Inside Residual (CIR) units to strip away padding-affected features, while Chu et al. proposed Position Encoding Generators (PEG) to maintain translation equivariance in Transformers.
  • Mathematical Reformulation: Thiyagalingam et al. suggest moving away from padding entirely by reframing convolution as a local differential operator, thereby preserving the differential characteristics of kernels without artificial boundary pixels.

Ultimately, the "translation invariance" of CNNs is often a theoretical ideal rather than a practical reality. By understanding how padding leaks positional information, researchers can build models that are either truly invariant or more intentionally aware of their spatial context.

Key Foundational Work

Deeper and Wider Siamese Networks for Real-Time Visual Tracking (2019) — contributed 3 concept elements to this direction.
SiamRPN++: Evolution of Siamese Visual Tracking With Very Deep Networks (2019) — contributed 3 concept elements to this direction.
Texture and art with deep neural networks (2017) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_padding_induced_spatial_bias_7d3498d3,
  title = {padding-induced spatial bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/padding-induced-spatial-bias/rdr_7d3498d3af7e431982daf4179dbcf453},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_padding_induced_spatial_bias_7d3498d3_v1,
  title = {padding-induced spatial bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/padding-induced-spatial-bias/rdr_7d3498d3af7e431982daf4179dbcf453/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake