TL;DR
LEMoN (Label Error detection using Multimodal Neighbors) is a novel method for identifying mislabeled instances in large-scale image-caption datasets. By leveraging "neighborhood consensus" in a joint image-text latent space, LEMoN significantly outperforms standard similarity-based filtering, leading to better downstream model performance and more reliable vision-language training.
What Problem Does This Paper Address?
Modern vision-language models (VLMs) like CLIP or Stable Diffusion rely on massive datasets scraped from the web. These datasets are notoriously noisy; for instance, an image of a train might be incorrectly captioned as "This is a plane from the front view."
While researchers often use simple image-caption embedding similarity (e.g., CLIP score) to filter these datasets, this approach is limited because it only evaluates a single pair in isolation. Existing advanced label-error detection methods are typically unimodal (only looking at images) or require training expensive, task-specific models. There is a critical need for a training-free, multimodal approach that can scale to millions of samples and accurately flag "discordant" pairs where the image and text simply do not belong together.
Methods
The core idea behind LEMoN is that if an image-caption pair $(x, y)$ is correct, then image $x$ should be similar to other images that have captions similar to $y$, and caption $y$ should be similar to other captions paired with images similar to $x$.
LEMoN calculates a mislabel score $s$ using a linear combination of three terms:
- Direct Multimodal Distance ($d_{mm}$): The standard cosine distance between the image $x$ and its own caption $y$ in a joint embedding space (like CLIP).
- Image-to-Text Neighborhood Score ($s_n$): It finds the $k$-nearest image neighbors of $x$ and calculates how far their corresponding captions are from the original caption $y$.
- Text-to-Image Neighborhood Score ($s_m$): It finds the $k$-nearest text neighbors of $y$ and calculates how far their corresponding images are from the original image $x$.
The method includes sophisticated weighting terms to downweight neighbors that are too far away or are themselves likely to be mislabeled, making the "consensus" more robust.
Datasets
The authors evaluated LEMoN across eight diverse datasets:
- Classification: CIFAR-10, CIFAR-100, miniImageNet, and stanfordCars (using both synthetic and real-world human-annotated noise).
- Captioning: MSCOCO, Flickr30k, MMIMDB (movie posters/plots), and MIMIC-CXR (medical chest X-rays).
For evaluation, they used standard splits and injected various types of synthetic noise (random swaps, category-based swaps, and noun-based swaps) to simulate realistic errors.
Key Insights and Ideas
- Neighborhood Consensus is Key: Looking at neighbors provides a "second opinion." If an image's neighbors all have captions about "dogs" but the original caption is "cat," it is a strong signal for an error that simple pairwise similarity might miss.
- Training-Free and Scalable: Unlike many state-of-the-art error detectors, LEMoN does not require training a new model on the noisy data. It can use off-the-shelf pretrained models like CLIP.
- Self-Correction Capability: Surprisingly, the authors found that you can even pretrain a CLIP model from scratch on the noisy data itself and then use that same noisy model with LEMoN to successfully filter the dataset.
- Robustness: The method is relatively insensitive to hyperparameter choices. A fixed set of "reasonable" values performs nearly as well as values optimized on a labeled validation set.
Key Results
- Detection Performance: LEMoN outperformed twelve baselines, including Deep k-NN and CLIP similarity, by over 3% AUROC on average across classification tasks and up to 6.3% AUROC on captioning tasks.
- Downstream Gains: Training a captioning model (GIT) on data filtered by LEMoN improved performance by more than 2 BLEU points compared to training on the full noisy dataset.
- Real-World Impact: In a manual audit of 200 "top-ranked" errors in real-world datasets, LEMoN's flags were correct significantly more often than the standard CLIP similarity baseline (e.g., 41% vs 32.5% on Flickr30k).
Limitations and Future Work
- Potential for Bias: The authors acknowledge that automated detectors might flag "atypical" but correct examples (e.g., rare concepts or minority groups) as errors. They suggest using LEMoN to surface candidates for expert review rather than as a purely unsupervised pruning tool.
- Oracle Assumption: The theoretical framework assumes a binary "correct/incorrect" label, but real-world captions often contain varying degrees of ambiguity or partial correctness.
- Dependency on Embeddings: The performance is tied to the quality of the underlying multimodal embedding space. Future work could explore how newer, more powerful foundation models impact detection accuracy.
Summary updated