Exploring perceptual straightness in learned visual representations

Anne Harrington, Vasha DuTell, Ayush Tewari, Mark Hamilton, Simon Stent, Ruth Rosenholtz, William T. Freeman

Introduction

When we watch a video, the raw pixel values change in highly non-linear, complex ways. However, neuroscience suggests that the human visual hierarchy—from the retina to the cortex—transforms these "curved" pixel trajectories into "straighter" paths in our mental representation. This "straightening" is thought to be a hallmark of a robust visual system, making it easier to predict the future state of the world.

Conceptual diagram of perceptual straightening from video frames to perception.

Most deep neural networks, despite their high accuracy on static images, fail to replicate this property. Their internal representations often become more curved and convoluted than the input pixels. This paper explores which architectural choices, training schemes, or biological inspirations actually encourage a model to "straighten" its view of the world, revealing that adversarial training is a key driver for achieving this human-like "perceptual straightness."

Measuring Straightness

To quantify this phenomenon, the researchers employ a specific metric for Curvature ($c_t$), defined as the angle between successive "difference vectors" in a representation space over time. If a representation moves in a perfectly straight line as a video progresses, the curvature is zero.

The authors evaluated a massive library of models to observe how curvature changes across layers:

  • Architectures: Standard CNNs (ResNet, AlexNet, VGG) and Vision Transformers (ViT, CrossViT).
  • Training Regimes: Standard supervised learning, Adversarial Training (using $l_2$ and $l_\infty$ PGD attacks), and Self-supervised learning (DINO).
  • Biological Inspiration: Models like VOneNet (which mimics the primary visual cortex) and PeriphNet.
  • Tasks: Image classification, semantic segmentation, and next-frame prediction.

Models were tested on a set of 12 natural videos (e.g., rippling water, people walking) previously used in human psychophysics studies to ensure a fair comparison between AI and human vision.

Key Insights

Adversarial Training as a "Straightener"

The most striking finding is that training a model to be robust against adversarial noise naturally forces its internal representations to become straighter. This suggests that "perceptual alignment" with humans and "adversarial robustness" are deeply linked through the geometry of the latent space.

Straightness Equals Stability

Models with straighter representations exhibit much higher temporal stability. Their class predictions don't "flicker" as much when processing a video, even for data that is out-of-distribution (tested on the VGGSound dataset).

The Task Dictates the Geometry

Straightening is not a universal "good." Models trained for segmentation or frame prediction actually show increased curvature. This makes sense: these tasks require the model to track fine-grained, non-linear pixel changes, whereas classification requires abstracting away that motion into a stable concept.

Biology is Only the Beginning

Incorporating biologically-inspired "V1" front-ends (like VOneNet) helps straighten representations in the early layers, but this effect often disappears in deeper layers. Hard-coding the start of the pipeline isn't enough; the training objective (the loss function) is what ultimately shapes the deep representations.

Detailed Results

Bar chart showing output curvature change across various models and training regimes.
  • Adversarial vs. Standard: In ResNet50, standard training results in an increase in curvature relative to pixels (+10 to +30 degrees). In contrast, adversarially trained models show a decrease in curvature (-10 to -30 degrees), indicating significant straightening.
  • Attack Strength: There is a direct correlation between the strength of adversarial training ($\epsilon$) and the degree of straightening. Furthermore, $l_2$-norm adversarial training generally produced straighter paths than $l_\infty$ training.
  • Transformers: Standard Vision Transformers (ViTs) are naturally very "curved." While self-supervised DINO training reduces this curvature compared to standard ViTs, they still do not achieve the absolute straightening seen in adversarially trained CNNs.

Limitations and Future Work

The authors acknowledge that their evaluation relies on a relatively small set of 12 natural videos. While these are "gold standard" stimuli in psychophysics, testing on larger, more diverse video datasets would be a logical next step.

Additionally, the paper highlights a "missing link": while we know that adversarial training straightens representations, we don't fully understand the mathematical necessity of this connection. Future work could explore how to explicitly supervise "straightness" during training without the heavy computational cost of adversarial PGD loops, potentially creating more stable and human-like computer vision systems by design.

Summary updated

BibTeX
@inproceedings{harrington2023exploring,
  author = {Anne Harrington and Vasha DuTell and Ayush Tewari and Mark Hamilton and Simon Stent and Ruth Rosenholtz and William T. Freeman},
  title = {{Exploring perceptual straightness in learned visual representations}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=4cOfD2qL6T},
}
Figure