CoChat

Understanding Image Representations by Measuring Their Equivariance and Equivalence

Open access
Lenc, Karel, Vedaldi, Andrea · 2019 · International Journal of Computer Vision

The DOI matches its Crossref record, with a small difference in title or year; 73 of the 73 references it cites were found in a registry or an index.

Abstract

Despite the importance of image representations such as histograms of oriented gradients and deep Convolutional Neural Networks (CNN), our theoretical understanding of them remains limited. Aimed at filling this gap, we investigate two key mathematical properties of representations: equivariance and equivalence. Equivariance studies how transformations of the input image are encoded by the representation, invariance being a special case where a transformation has no effect. Equivalence studies whether two representations, for example two different parameterizations of a CNN, two different layers, or two different CNN architectures, share the same visual information or not. A number of methods to establish these properties empirically are proposed, including introducing transformation and stitching layers in CNNs. These methods are then applied to popular representations to reveal insightful aspects of their structure, including clarifying at which layers in a CNN certain geometric invariances are achieved and how various CNN architectures differ. We identify several predictors of geometric and architectural compatibility, including the spatial resolution of the representation and the complexity and depth of the models. While the focus of the paper is theoretical, direct applications to structured-output regression are demonstrated too.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1007/s11263-018-1098-y

Cites

73 of 73 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Equivariant transformation of CNN features. First column: features of a convolutional neural network (representation after four convolutional layers, C4) visualized with the method of Mahendran and Vedaldi (2016). Second column: Visualizing the features after transforming the image. Third column: Visualizing the features after the naive geometric transformation of the representation (spatial permutation only). Last column: Visualized transformed features using an equivariant transformation which additionally re-projects network feature channels learned using the method of Sect. 5
Fig. 1 Equivariant transformation of CNN features. First column: features of a convolutional neural network (representation after four convolutional layers, C4) visualized with the method of Mahendran and Vedaldi (2016). Second column: Visualizing the features after transforming the image. Third column: Visualizing the features after the naive geometric transformation of the representation (spatial permutation only). Last column: Visualized transformed features using an equivariant transformation which additionally re-projects network feature channels learned using the method of Sect. 5CC BY · PubMed Central
Fig. 2 Simplified structure of the investigated convolutional neural networks. Each row of the table corresponds to a single block visualized above the table (without non-linearities, pooling and normalization layers). AlexNet (Krizhevsky et al. 2012) and its variants (Zhou et al. 2014), consist of simple convolutional layers C□ or fully connected layers F□. A block in VGG-19 network (Simonyan and Zisserman 2014) is a set of r3×3 convolutions C□1⋯r which operate on same spatial resolution u=v. A block of a ResN50 (He et al. 2016) networks is a set of r residual modules R□1⋯r, which consist of down-sampling, 3×3 and up-sampling convolution (for a simplicity only a single residual module visualized). All residual modules perform on the same spatial resolution with exception of the first of a block which performs down-sampling. To keep the figure compact, we do not visualize the residual connection
Fig. 2 Simplified structure of the investigated convolutional neural networks. Each row of the table corresponds to a single block visualized above the table (without non-linearities, pooling and normalization layers). AlexNet (Krizhevsky et al. 2012) and its variants (Zhou et al. 2014), consist of simple convolutional layers C□ or fully connected layers F□. A block in VGG-19 network (Simonyan and Zisserman 2014) is a set of r3×3 convolutions C□1⋯r which operate on same spatial resolution u=v. A block of a ResN50 (He et al. 2016) networks is a set of r residual modules R□1⋯r, which consist of down-sampling, 3×3 and up-sampling convolution (for a simplicity only a single residual module visualized). All residual modules perform on the same spatial resolution with exception of the first of a block which performs down-sampling. To keep the figure compact, we do not visualize the residual connectionCC BY · PubMed Central
Fig. 3 Structured sparsity. Predicting equivariant features at location (u, v) uses a corresponding small neighborhood of features Ωg,m(u,v)
Fig. 3 Structured sparsity. Predicting equivariant features at location (u, v) uses a corresponding small neighborhood of features Ωg,m(u,v)CC BY · PubMed Central
Fig. 4 Siamese architecture for training a CNN Equivariance map. The equivariance map Mg⁻¹ aims to transform the features to minimize l² loss in the feature space. All parameters of the network are kept unchanged
Fig. 4 Siamese architecture for training a CNN Equivariance map. The equivariance map Mg⁻¹ aims to transform the features to minimize l² loss in the feature space. All parameters of the network are kept unchangedCC BY · PubMed Central
Fig. 5 Finding equivariance map for a CNN representation using target-oriented loss. The original network (first row) is divided into the ϕ (feature representation) and ψ (a classifier). The aim of the equivariance map Mg⁻¹ is to remove the nuisance transformation g in the feature space by minimizing the classification loss on the ILSVRC12 train dataset while keeping the network weights fixed
Fig. 5 Finding equivariance map for a CNN representation using target-oriented loss. The original network (first row) is divided into the ϕ (feature representation) and ψ (a classifier). The aim of the equivariance map Mg⁻¹ is to remove the nuisance transformation g in the feature space by minimizing the classification loss on the ILSVRC12 train dataset while keeping the network weights fixedCC BY · PubMed Central
Fig. 6 Regression methods. The figure reports the HOG feature reconstruction error (average per-cell Hellinger distance) achieved by the learned equivariant mapping Mg by setting g to different image rotations (left) and scalings (center) for different learning strategies (see text). No other constraint is imposed on Ag. In the right panel the experiment is repeated for the 45^(∘) rotation, but this time imposing structured sparsity on Ag for different values of the neighborhood size m
Fig. 6 Regression methods. The figure reports the HOG feature reconstruction error (average per-cell Hellinger distance) achieved by the learned equivariant mapping Mg by setting g to different image rotations (left) and scalings (center) for different learning strategies (see text). No other constraint is imposed on Ag. In the right panel the experiment is repeated for the 45^(∘) rotation, but this time imposing structured sparsity on Ag for different values of the neighborhood size mCC BY · PubMed Central
Fig. 7 Equivariant classification using HOG features. Classification performance of a HOG-based classifier trained to discriminate dog and cat heads as the test images are gradually rotated and scaled and the effect compensated by equivariant maps learned using LS, RR, and FS
Fig. 7 Equivariant classification using HOG features. Classification performance of a HOG-based classifier trained to discriminate dog and cat heads as the test images are gradually rotated and scaled and the effect compensated by equivariant maps learned using LS, RR, and FSCC BY · PubMed Central
Fig. 8 Qualitative evaluation of equivariant HOG. Visualization of the features ϕ(x), ϕ(gx) and Mgϕ(x) using the ϕ⁻¹ HOGgle (Vondrick et al. 2013) HOG inverse. Mg is learned using FS with k=5 and m=3 and g is set to a rotation by 45^(∘) and up/down-scaling by √2 respectively. The dashed boxes show the support of the reconstructed features
Fig. 8 Qualitative evaluation of equivariant HOG. Visualization of the features ϕ(x), ϕ(gx) and Mgϕ(x) using the ϕ⁻¹ HOGgle (Vondrick et al. 2013) HOG inverse. Mg is learned using FS with k=5 and m=3 and g is set to a rotation by 45^(∘) and up/down-scaling by √2 respectively. The dashed boxes show the support of the reconstructed featuresCC BY · PubMed Central
Fig. 9 Comparison of regression methods for a CNN. Regression error of an equivariant map Mg learned for vertical image flips for different layers of a CNN. FS (gray and brown lines) and the task-oriented objective (purple) are evaluated against the number of training samples. Both the task loss (top) and the feature reconstruction error (bottom) are reported. In the task loss, the green dashed line is the performance of the original classifier on the original images (best possible performance) and the red dashed line the performance of this classifier on the transformed images (worst case). In the second row, the l² reconstruction error per cell is visualized together with the baseline—average l² distance of the representation to zero vector (Color figure online)
Fig. 9 Comparison of regression methods for a CNN. Regression error of an equivariant map Mg learned for vertical image flips for different layers of a CNN. FS (gray and brown lines) and the task-oriented objective (purple) are evaluated against the number of training samples. Both the task loss (top) and the feature reconstruction error (bottom) are reported. In the task loss, the green dashed line is the performance of the original classifier on the original images (best possible performance) and the red dashed line the performance of this classifier on the transformed images (worst case). In the second row, the l² reconstruction error per cell is visualized together with the baseline—average l² distance of the representation to zero vector (Color figure online)CC BY · PubMed Central
Fig. 10 Equivariance of various networks to selected transformations. Equivariance of selected network feature representations (rows) under selected transformations (columns). The green dashed line is the initial error rate of the selected network on the ILSVRC12 validation dataset. The red dashed line represents error rate for transformed images. The gray solid line visualizes the initial performance by only spatially rearranging the features and the orange solid line shows the performance of the learn equivariant map Mg. For all networks, the representation used is the last block of the specified module
Fig. 10 Equivariance of various networks to selected transformations. Equivariance of selected network feature representations (rows) under selected transformations (columns). The green dashed line is the initial error rate of the selected network on the ILSVRC12 validation dataset. The red dashed line represents error rate for transformed images. The gray solid line visualizes the initial performance by only spatially rearranging the features and the orange solid line shows the performance of the learn equivariant map Mg. For all networks, the representation used is the last block of the specified moduleCC BY · PubMed Central
Fig. 11 Learning equivariant CNN mappings for image rotations. The setting is similar to Fig. 9, extended to several rotations g but limited to the task-oriented regression method for the ANet. The solid and dashed lines report the top1 and top5 errors on the ILSVRC12 validation set respectively
Fig. 11 Learning equivariant CNN mappings for image rotations. The setting is similar to Fig. 9, extended to several rotations g but limited to the task-oriented regression method for the ANet. The solid and dashed lines report the top1 and top5 errors on the ILSVRC12 validation set respectivelyCC BY · PubMed Central
Fig. 12 Qualitative evaluation of Mg. Visualization of the features ϕ(x), ϕ(gx) and Mgϕ(x) of C1, C2 and C3 representations of ANet using the ϕ⁻¹ Deep Goggle (Mahendran and Vedaldi 2016) for feature inverse. Inverse of the input image and of transformed image are in the first two columns. Third column is inverse of the features with only spatially re-arranged representation with a permutation matrix Pg. Mg is learned using the joint optimization (see quantitative results in Fig. 10) and should be ideally equal to the second column
Fig. 12 Qualitative evaluation of Mg. Visualization of the features ϕ(x), ϕ(gx) and Mgϕ(x) of C1, C2 and C3 representations of ANet using the ϕ⁻¹ Deep Goggle (Mahendran and Vedaldi 2016) for feature inverse. Inverse of the input image and of transformed image are in the first two columns. Third column is inverse of the features with only spatially re-arranged representation with a permutation matrix Pg. Mg is learned using the joint optimization (see quantitative results in Fig. 10) and should be ideally equal to the second columnCC BY · PubMed Central
Fig. 13 Equivariant regression errors. Cumulative error curves for the rotation and affine pose regressors of Table 4
Fig. 13 Equivariant regression errors. Cumulative error curves for the rotation and affine pose regressors of Table 4CC BY · PubMed Central
Fig. 14 Equivariant regression examples. Rotation (top) and affine pose (bottom) prediction for cat faces in the VOC07 parts data. The estimated affine pose is represented by eyes and nose location. The first four columns contain examples of successful regressions and the last column shows a failure case. Regression uses CNN C5 features computed within the green dashed box region
Fig. 14 Equivariant regression examples. Rotation (top) and affine pose (bottom) prediction for cat faces in the VOC07 parts data. The estimated affine pose is represented by eyes and nose location. The first four columns contain examples of successful regressions and the last column shows a failure case. Regression uses CNN C5 features computed within the green dashed box regionCC BY · PubMed Central
Fig. 15 CNN architecture for learning a covering map. In order to learn the covering map Eϕ→ϕ^(′) we stitch the shallower layers of network Net-A (forming representation ϕ) to the deeper layers of network Net-B (forming an image classifier ψ^(′)). The stitching map Eϕ→ϕ^(′) is to optimized to minimize the classification loss on the training set
Fig. 15 CNN architecture for learning a covering map. In order to learn the covering map Eϕ→ϕ^(′) we stitch the shallower layers of network Net-A (forming representation ϕ) to the deeper layers of network Net-B (forming an image classifier ψ^(′)). The stitching map Eϕ→ϕ^(′) is to optimized to minimize the classification loss on the training setCC BY · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Show all 73 references

Research works printed but not linked: 6

  1. Cohen, T. S., & Welling, M. (2017). Steerable CNNS. In International conference on learning representations.
  2. Girshick, R.B., Donahue, J., Darrell, T., & Malik, J. (2014b). Rich feature hierarchies for accurate object detection and semantic segmentation. In Proceedings of the CVPR. · DOI · Paper page
  3. Li, Y., Yosinski, J., Clune, J., Lipson, H., & Hopcroft, J. (2015). Convergent learning: Do different neural networks learn the same representations? In Feature extraction: modern questions and challenges (pp. 196–212).
  4. Schmidt, U., & Roth, S. (2012b). Learning rotation-aware features: From invariant priors to equivariant descriptors. In IEEE conference on computer vision and pattern recognition (CVPR) (pp. 2050–2057). IEEE. · DOI · Paper page
  5. Simonyan, K., & Zisserman, A. (2015). Very deep convolutional networks for large-scale image recognition. In International conference on learning representations.
  6. Yosinski, J., Clune, J., Bengio, Y., & Lipson, H. (2014). How transferable are features in deep neural networks? In Advances in neural information processing systems (pp. 3320–3328).

Cited by

Metadata

Authors
Lenc, K., & Vedaldi, A.
Affiliations
University of Oxford (GB)
Corresponding author
Lenc, Karel
Venue
International Journal of Computer Vision
Published
2018-05-18
Volume
127
Issue
5
Pages
456-476
ISSN
  • 0920-5691 (ISSN-L)
  • 1573-1405
OpenAlex
W2949074271
Cited by
98
References
70
Citations by year
2026: 7 · 2025: 6 · 2024: 9 · 2023: 10 · 2022: 10 · 2021: 17 · 2020: 17 · 2019: 6 · 2018: 3
FWCI
5.38
Type
journal article
Language
en
Open access
Licence
  • cc-by
  • creativecommons.org/licenses/by/4.0 (tdm)
Locations
  • International Journal of Computer Vision (publishedVersion, cc-by)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
European Research Council (677195-IDIU)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Image and Video Retrieval Techniques
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Image Retrieval and Classification Techniques
Keywords
image representation, equivariance, equivalence, geometric invariance, convolutional neural networks, histogram of oriented gradients, CNN architecture comparison, spatial resolution

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.