Abstract
We present semantic attribute matching networks (SAM-Net) for jointly establishing correspondences and transferring attributes across semantically similar images, which intelligently weaves the advantages of the two tasks while overcoming their limitations. SAM-Net accomplishes this through an iterative process of establishing reliable correspondences by reducing the attribute discrepancy between the images and synthesizing attribute transferred images using the learned correspondences. To learn the networks using weak supervisions in the form of image pairs, we present a semantic attribute matching loss based on the matching similarity between an attribute transferred source feature and a warped target feature. With SAM-Net, the state-of-the-art performance is attained on several benchmarks for semantic matching and attribute transfer.
Introduction
In computer vision, finding pixel-level correspondences between different objects of the same category—such as two different people's faces or two different models of cars—is known as semantic matching. This task is significantly more difficult than standard stereo matching because objects differ in both geometry (shape) and attributes (color, texture, lighting).
Existing methods often assume that deep features are robust enough to ignore these attribute differences. However, in practice, a red car and a blue car look different enough to confuse matching algorithms. Conversely, attribute transfer—the process of making the red car look blue—requires highly accurate pixel matches to avoid "ghosting" or artifacts. SAM-Net addresses these challenges by treating these two tasks as mutually complementary: better matches lead to better style transfer, and a stylized image that looks more like the target is easier to match.
Methodology
SAM-Net utilizes a recurrent convolutional neural network architecture consisting of three main components:
- Feature Extraction: A pre-trained VGG-19 network extracts deep descriptors from the source ($I^s$) and target ($I^t$) images.
- Semantic Matching Networks: These estimate a dense affine transformation field ($T^l$). Unlike previous methods that estimate a single global transformation, SAM-Net estimates locally-varying fields to handle complex deformations.
- Attribute Transfer Networks: These use the estimated matches to blend the appearance of the target onto the source, producing a stylized source ($I^{s \leftarrow t}$).
The Iterative Boosting Loop
The core innovation of SAM-Net is its iterative process. The network starts with a rough match, creates a stylized source, and then re-matches that stylized source to the target. Because the stylized source now shares the target's colors and textures, the photometric discrepancy is reduced, making the geometric matching significantly more accurate in subsequent iterations.
Weak Supervision and Loss Functions
SAM-Net does not require manually-labeled pixel-level matches for training. Instead, it uses a semantic attribute matching loss ($\mathcal{L}_{AM}$). This loss allows the network to learn from image pairs by minimizing the difference between the stylized source feature and the warped target feature. Additionally, a "droplink" layer—a stochastic skip connection—is introduced in the attribute transfer network to prevent overfitting to low-level features and ensure photorealistic results.
Experimental Results
The model was evaluated on several standard benchmarks, including TSS (Taniai et al.), PF-PASCAL, and CUB-200-2011. SAM-Net achieved state-of-the-art (SOTA) performance across multiple metrics:
- TSS Benchmark: Achieved an average flow accuracy of 0.818, outperforming the previous best (RTNs at 0.772).
- PF-PASCAL: Reached a Percentage of Correct Keypoints (PCK at $\alpha=0.05$) of 0.601, a significant improvement over the previous SOTA of 0.552.
- Qualitative Performance: Visual comparisons demonstrate that SAM-Net produces cleaner attribute transfers for complex tasks like changing a car's color or a bird's species, effectively handling background clutter where non-parametric methods often fail.
Conclusion and Future Work
SAM-Net successfully demonstrates that joint learning of semantic matching and attribute transfer creates a "boosting" effect that improves both tasks. While highly effective for semantically similar images, the current framework is not intended for artistic style transfer between unrelated content. Future work may explore reducing the computational cost associated with the recurrent iterations and improving the model's ability to generalize to entirely unseen object categories without additional fine-tuning.
Summary updated