Introduction
Image-text retrieval is a fundamental task in computer vision and natural language processing, serving as the backbone for applications ranging from search engines to automated captioning. Traditionally, this task has been framed as a binary classification problem: a given caption either matches an image (True) or it does not (False). However, this "all-or-nothing" approach fails to capture the nuanced spectrum of human relevance. This paper introduces BCLS (Binary and Continuous Label Supervision), a framework designed to bridge this gap by incorporating continuous pseudo-labels and a novel ranking loss.
The Limitation of Instance-Based Retrieval
Most existing retrieval models rely on instance-based retrieval using binary indicators from datasets like MS-COCO or Flickr30K. Under this paradigm, if a query is "People standing outside a building," only the specific ground-truth image is marked as a match. Other images—even those depicting people outside different buildings—are treated as equally irrelevant as an image of a cat or a car.
This binary approach creates an incoherent visual-semantic embedding space. In reality, relevance is a gradient. Humans expect retrieval systems to return multiple related results and rank them by their degree of fit. The primary challenge lies in the fact that manually annotating these degrees of relevance for millions of image-text pairs is prohibitively expensive.
The BCLS Framework
The proposed BCLS framework addresses these limitations by splitting the learning process into two complementary branches:
- The Binary Branch: This branch utilizes standard ground-truth labels. To improve upon the common Triplet ranking loss, which often suffers from convergence issues, the authors introduce Triplet-SN (Soft Negative mining). This method uses a Log-Sum-Exp function to aggregate multiple hard negatives, resulting in smoother and more stable optimization.
- The Continuous Branch: To provide the model with a sense of relative relevance, the authors use Sentence-BERT (S-BERT) to calculate text similarity between captions, generating "continuous pseudo-labels."
- Kendall Ranking Loss: To teach the model these degrees of relevance, a loss function inspired by the Kendall rank correlation coefficient (τ) was developed. This loss penalizes the model if its predicted similarity rankings disagree with the pseudo-label rankings.
- Efficiency (SW-HS): To manage the computational complexity of calculating Kendall τ ($O(N^3)$), the authors developed Sliding Window sampling and Hard Sample mining (SW-HS), reducing complexity to $O(N^2)$ and making it practical for large-scale training.
Experimental Results
The BCLS framework was evaluated on industry-standard benchmarks, including Flickr30K and MS-COCO, as well as specialized datasets like the ECCV Caption Dataset and CxC (Crisscrossed Captions).
Key findings include:
- Performance Gains: On Flickr30K, the BCLS-enhanced model improved the RSUM (sum of recall metrics) by 11.9% compared to the baseline SGRAF model.
- Semantic Accuracy: On the ECCV Caption benchmark, BCLS consistently outperformed existing semantic-based methods (such as CVSE++ and SAM) across metrics like mAP@R and R-Precision.
- Qualitative Improvements: Visualizations demonstrate that when the model misses the exact ground truth, its top-10 results remain semantically relevant. For example, a query about "skateboarding" yields other skateboarding images rather than random non-matching samples.
Conclusion
By combining binary anchors with continuous pseudo-labels, the BCLS framework prevents models from treating all non-matches as equally incorrect. This dual-supervision approach creates a more nuanced embedding space that better reflects human perception. Future work may extend this methodology to other multi-modal tasks, such as video-text retrieval or cross-modal generation, where continuous relevance is equally vital.
Summary updated