Multi-Modal Representation Learning with Self-Adaptive Thresholds for Commodity Verification

Chenchen Han, Heng JiaarXiv 2022 · DOI

Introduction

In the rapidly evolving landscape of e-commerce, commodity verification—the task of determining if two listings represent the exact same product—remains a critical challenge. Traditional approaches often rely on fixed similarity thresholds, which struggle with inter-dataset shifts and varying product categories. Researchers from Zhejiang University have introduced a novel framework: Multi-Modal Representation Learning with Self-Adaptive Thresholds (SAT). By learning both commodity and threshold embeddings simultaneously, the model adaptively determines the "strictness" required for verification, significantly enhancing performance in complex digital commerce scenarios.

Methodology

The SAT framework employs an end-to-end dual-stream architecture to process multi-modal data.

The SAT dual-stream architecture showing the commodity stream (f) and threshold stream (g).

The model consists of two primary components:

  1. Commodity Stream ($f$): Extracts a multi-modal embedding ($p$) representing the product's identity.
  2. Threshold Stream ($g$): Extracts a separate embedding ($q$) representing the specific threshold criteria for that product.

For both streams, the model utilizes a Swin Transformer for image processing and RoBERTa for textual data (titles and attributes). These features are fused and projected into a common embedding space. The final verification score is calculated as: $$\text{Score} = (p_1 \cdot p_2) - (q_1 \cdot q_2)$$ A positive score indicates a match. This approach effectively shifts the decision boundary to zero, allowing for more robust optimization and easier training compared to standard binary cross-entropy approaches.

Experimental Setup

The model was evaluated using the CCKS-2022 Knowledge Graph Evaluation for Digital Commerce dataset, comprising approximately 70,000 commodity pairs. The dataset is particularly challenging due to "hard" negative pairs—items that appear visually similar but differ in critical attributes like brand, model, or capacity.

Results and Discussion

The SAT method achieved an F1-score of 0.8936, securing third place in the CCKS-2022 competition. A key advantage of SAT is its ability to center the score distribution and improve separability between positive and negative pairs.

Comparison of score distributions: (a) Learnable Threshold (LT) vs. (b) Self-Adaptive Threshold (SAT).

As shown in Figure 4, while a standard Learnable Threshold (LT) results in a crowded distribution where matches and non-matches are difficult to separate, SAT produces a smoother distribution with a clear separation at the zero-threshold. This bidirectional optimization allows the network to adjust the threshold for similar-looking but distinct items rather than forcing them apart in the identity embedding space. Ablation studies further confirmed that the SAT approach outperformed a single global learnable threshold by +0.0620 in F1-score, and that combining visual and textual modalities yields the best results.

Conclusion

While SAT demonstrates significant improvements, future work could explore the integration of specialized object detectors to further refine feature extraction. Additionally, testing the SAT concept on other multi-modal tasks like cross-modal retrieval could reveal broader applications for adaptive thresholding. Despite the increased computational overhead of a dual-stream architecture, its robustness and ability to handle fine-grained differences make it a compelling solution for high-stakes e-commerce verification.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Validation setSAT (text + image)F1-score0.8824+0.06 vs baselinesplit: val · modality=text+image
Source quote
L152: \ding{51} │ \ding{51} │ 0.8824 │ 0.8795 │ 0.8853 │ 0.8759
Validation setSAT (text-only)F1-score0.7888split: val · modality=text-only
Source quote
L150: \ding{51} │ ~ │ 0.7888 │ 0.7555 │ 0.8251 │ 0.7676
Validation setSAT (image-only)F1-score0.8500+0.03 vs baselinesplit: val · modality=image-only
Source quote
L151: ~ │ \ding{51} │ 0.8500 │ 0.8599 │ 0.8403 │ 0.8440
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
Validation setLearnable Threshold (LT) baselineF1-score0.8204split: val
Source quote
L137: LT │ 0.8204 │ 0.8139 │ 0.8270 │ 0.8096
BibTeX
@misc{han2022multi,
  author = {Chenchen Han and Heng Jia},
  title = {{Multi-Modal Representation Learning with Self-Adaptive Thresholds for Commodity Verification}},
  year = {2022},
  eprint = {2208.11064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11064},
}
Figure