Skip to main content
QUICK REVIEW

[Paper Review] CATs: Cost Aggregation Transformers for Visual Correspondence

Seokju Cho, Sunghwan Hong|arXiv (Cornell University)|Jun 4, 2021
Advanced Neural Network ApplicationsComputer Science56 references6 citations
TL;DR

CATs proposes a Transformer-based cost aggregation network for visual correspondence that leverages global self-attention to refine noisy initial correlation maps, incorporating appearance affinity modeling, multi-level feature aggregation, swapping self-attention, and residual connections. It achieves state-of-the-art performance on semantic correspondence benchmarks with faster inference and improved robustness to deformations and appearance variations.

ABSTRACT

We propose a novel cost aggregation network, called Cost Aggregation Transformers (CATs), to find dense correspondences between semantically similar images with additional challenges posed by large intra-class appearance and geometric variations. Cost aggregation is a highly important process in matching tasks, which the matching accuracy depends on the quality of its output. Compared to hand-crafted or CNN-based methods addressing the cost aggregation, in that either lacks robustness to severe deformations or inherit the limitation of CNNs that fail to discriminate incorrect matches due to limited receptive fields, CATs explore global consensus among initial correlation map with the help of some architectural designs that allow us to fully leverage self-attention mechanism. Specifically, we include appearance affinity modeling to aid the cost aggregation process in order to disambiguate the noisy initial correlation maps and propose multi-level aggregation to efficiently capture different semantics from hierarchical feature representations. We then combine with swapping self-attention technique and residual connections not only to enforce consistent matching but also to ease the learning process, which we find that these result in an apparent performance boost. We conduct experiments to demonstrate the effectiveness of the proposed model over the latest methods and provide extensive ablation studies. Project page is available at : https://sunghwanhong.github.io/CATs/.

Motivation & Objective

  • Address the limitations of CNN-based cost aggregation in handling large intra-class appearance and geometric variations in semantic correspondence.
  • Overcome the restricted receptive fields and inability to resolve ambiguous matches in existing CNN-based methods.
  • Leverage the global context of Transformers to improve matching accuracy through consensus across all matching scores.
  • Integrate appearance affinity and multi-level feature representations to enhance robustness and disambiguation in noisy correlation maps.
  • Design a learnable, efficient, and effective cost aggregation module that outperforms hand-crafted and CNN-based alternatives.

Proposed method

  • Introduce a Transformer-based cost aggregation module that applies self-attention over the entire correlation map to capture global consensus among matching scores.
  • Concatenate appearance embeddings with the correlation map to guide attention and improve disambiguation of noisy or ambiguous matches.
  • Implement multi-level aggregation by stacking correlation maps from hierarchical feature representations to capture diverse semantic levels.
  • Apply swapping self-attention by reversing the source and target dimensions in a serial manner to enforce bidirectional consistency and reduce inconsistent predictions.
  • Integrate residual connections around the attention blocks to stabilize training and improve learning dynamics.
  • Use standard multi-head self-attention with learnable queries, keys, and values, and optimize the full architecture end-to-end.

Experimental results

Research questions

  • RQ1Can a Transformer-based cost aggregation network outperform CNN-based and hand-crafted methods in handling large appearance and geometric variations in semantic correspondence?
  • RQ2How does incorporating appearance affinity modeling affect the disambiguation of noisy initial correlation maps?
  • RQ3To what extent does multi-level aggregation improve feature representation and matching accuracy across different semantic levels?
  • RQ4Does serial swapping of correlation maps enhance bidirectional consistency and reduce inconsistent predictions compared to parallel processing?
  • RQ5How does the proposed architecture compare in efficiency and performance to prior methods in terms of memory, inference time, and accuracy?

Key findings

  • CATs achieves state-of-the-art performance on SPair-71k, LSPair-300K, and other benchmarks, with a PCK of 42.4 on SPair-71k using $α_{\mathrm{bbox}} = 0.1$, outperforming prior methods.
  • The model demonstrates superior efficiency, with an inference time of 7.4ms for the aggregator on a single RTX 2080 Ti GPU, significantly faster than 4D/6D convolutions and optimal transport baselines.
  • Ablation studies confirm that each component—appearance affinity, multi-level aggregation, swapping self-attention, and residual connections—contributes to performance gains.
  • Serial swapping of the correlation map yields higher PCK (42.4) than parallel processing (40.8), indicating better consistency learning through sequential refinement.
  • The method shows robustness to data scarcity and benefits from data augmentation, suggesting potential for self-supervised learning extensions.
  • Despite strong performance, CATs still predicts correspondences for non-corresponding images, indicating a need for confidence-aware modules in future work.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.