Instance-Variant Loss with Gaussian RBF Kernel for 3D Cross-modal Retriveal

Zhitao Liu, Zengyu Liu, Jiwei Wei, Guan Wang, Zhenjiang Du, Ning Xie, Heng Tao ShenarXiv 2023

TL;DR

This paper tackles the challenge of 3D cross-modal retrieval by introducing an "Instance-Variant Loss" that dynamically adjusts the penalty for each data point based on its difficulty. This novel approach, combined with a Gaussian RBF kernel-based "Intra-Class Loss," significantly improves the separability of feature spaces and achieves state-of-the-art performance on challenging 3D retrieval tasks.

What Problem Does This Paper Address?

3D cross-modal retrieval aims to find matching 3D models given queries from different modalities, like images or point clouds. The core challenge is learning a shared "embedding space" where data from different sources (images, point clouds, meshes) of the same object are close together, while data from different objects are far apart. Existing methods often treat all data points equally, applying the same learning penalty regardless of how "easy" or "hard" a data point is to classify. This can lead to suboptimal learning, where the model gets stuck in local optima and fails to create a truly separable feature space, especially when dealing with the inherent differences between 3D data and 2D images.

Methods

The paper proposes two key innovations:

  • Instance-Variant Loss (LIV): This is the central contribution. Instead of a uniform penalty, LIV assigns a "penalty strength" to each instance that is positively related to its intra-class distance. This means harder-to-classify instances (those with larger distances to their own class representatives or closer to other classes) receive a stronger penalty, forcing the model to focus on them. This helps to alleviate issues like imbalanced data distribution and multimodal optimization imbalance.
  • Intra-Class Loss (LIC) with Gaussian RBF Kernel: This loss function, inspired by the Gaussian RBF kernel, aims to directly minimize the distance between instances of the same class, regardless of their modality. Unlike methods that rely on calculating class centers, LIC uses the kernel to measure similarity and pull similar samples closer together in the embedding space. This further enhances the separability and modality-invariant nature of the learned features.

These losses are used in conjunction with a standard cross-entropy loss (LCE) for training.

Datasets

The authors evaluate their method on three established 3D cross-modal retrieval datasets:

  • ModelNet40: A widely used benchmark for 3D object recognition, providing image, point cloud, and mesh data.
  • MI3DOR: A dataset containing real images and 3D models, useful for evaluating retrieval from real-world data.
  • Pix3D: Another dataset with real images and corresponding 3D models, used in both its original form (Pix3D-9) and a subset (Pix3D-4) for more focused experiments.

Key Insights and Ideas

  • Instance difficulty matters: The core insight is that not all data points are created equal during training. By dynamically adjusting penalties based on instance difficulty, the model can learn more effectively and avoid common pitfalls like local optima.
  • Shared weight vectors for cross-modal learning: Learning a single weight vector for all modalities within a class is crucial for reducing cross-modal discrepancy and achieving better alignment in the shared embedding space.
  • Gaussian RBF kernel for similarity: Leveraging the Gaussian RBF kernel for the Intra-Class loss provides a principled way to measure sample similarity and encourage tighter intra-class clustering without explicit class center computation.
  • Improved generalization: The proposed method shows strong performance not only on standard benchmarks but also on real-world image data, suggesting good generalization capabilities.

Key Results

The proposed method, combining Instance-Variant Loss and Intra-Class Loss with Cross-Entropy Loss (LCE + LIV + LIC), consistently outperforms the state-of-the-art method CMCL across various retrieval tasks and datasets. For instance, on ModelNet40, the mean Average Precision (mAP) for Image-to-Mesh retrieval reaches 88.64% with the proposed method, compared to 82.26% for CMCL. The method also shows significant improvements when dealing with real images, which are often more challenging. Ablation studies confirm that each component of the proposed loss function contributes to the overall performance, with the full combination yielding the best results.

Limitations and Future Work

The paper acknowledges that while the proposed method shows improved generalization, it still faces challenges with "unseen domain retrieval" – where the test data comes from distributions not encountered during training. The authors suggest that future work will focus on exploring technologies to further improve the robustness and effectiveness of their proposed loss functions and specifically enhance performance in unseen retrieval scenarios.

Summary updated

Abstract

3D cross-modal retrieval is gaining attention in the multimedia community. Central to this topic is learning a joint embedding space to represent data from different modalities, such as images, 3D point clouds, and polygon meshes, to extract modality-invariant and discriminative features. Hence, the performance of cross-modal retrieval methods heavily depends on the representational capacity of this embedding space. Existing methods treat all instances equally, applying the same penalty strength to instances with varying degrees of difficulty, ignoring the differences between instances. This can result in ambiguous convergence or local optima, severely compromising the separability of the feature space. To address this limitation, we propose an Instance-Variant loss to assign different penalty strengths to different instances, improving the space separability. Specifically, we assign different penalty weights to instances positively related to their intra-class distance. Simultaneously, we reduce the cross-modal discrepancy between features by learning a shared weight vector for the same class data from different modalities. By leveraging the Gaussian RBF kernel to evaluate sample similarity, we further propose an Intra-Class loss function that minimizes the intra-class distance among same-class instances. Extensive experiments on three 3D cross-modal datasets show that our proposed method surpasses recent state-of-the-art approaches.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ModelNet40Instance-Variant + Intra-Class + cross-entropymAP86.77+1.3 vs baselinelosses=Instance-Variant + Intra-Class + cross-entropy · image-views=v1 (1 view)
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
MI3DORInstance-Variant + Intra-Class + cross-entropymAP83.14+1.44 vs baselinelosses=Instance-Variant + Intra-Class + cross-entropy
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
Pix3D-9 (original Pix3D)Instance-Variant + Intra-Class + cross-entropymAP85.20+5.97 vs baselinelosses=Instance-Variant + Intra-Class + cross-entropy · subset=original Pix3D
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
ModelNet40CMCL baselinemAP85.47image-views=v1 (1 view)
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
MI3DORCMCL baselinemAP81.70Mean across uni-modal and cross-modal retrieval tasks.
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
Pix3D-9 (original Pix3D)CMCL baselinemAP79.23subset=original Pix3D
Source quote
L233: \multicolumn{2}{c|}{Mean} │ 85.47 │ 86.77 │ 86.97 │ 88.39 │ 88.29 │ 74.59 │ 89.20 │ 81.70 │ 83.14 │ 79.23 │ 85.20 │ 89.31 │ 92.98
BibTeX
@misc{liu2023instance,
  author = {Zhitao Liu and Zengyu Liu and Jiwei Wei and Guan Wang and Zhenjiang Du and Ning Xie and Heng Tao Shen},
  title = {{Instance-Variant Loss with Gaussian RBF Kernel for 3D Cross-modal Retriveal}},
  year = {2023},
  eprint = {2305.04239},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.04239},
}
Figure