Abstract
As Large Language Models (LLMs) evolve, establishing clean evaluation protocols has become essential for reporting genuine performance, especially given the risk of data contamination. However, clean evaluation for Visual Language Models (VLMs) remains under-studied. We propose a novel approach using visual data augmentation to detect and mitigate the effects of contamination. Through extensive experiments, we demonstrate that while traditional geometric augmentations are useful, they are vulnerable to being incorporated into training as a workaround. We introduce BGR color channel swapping as a simple, effective, and robust method for clean evaluation. Crucially, BGR augmentation is harmful when used during training, making it difficult for malicious actors to "game" the evaluation. We also introduce a new benchmark dataset with thousands of instances to validate our approach.
The Challenge of VLM Contamination
In machine learning, "data contamination" occurs when benchmark datasets are inadvertently or intentionally included in a model's training set. This leads to inflated performance scores that reflect memorization rather than true reasoning or generalization. While well-documented in text-only models, the extent to which VLMs rely on memorized image-text pairs is less understood. As these models are deployed in critical applications, we need reliable methods to verify that their "vision" is truly functional and not just a sophisticated lookup table.
Methodology: Visual Stress Testing
To address this, we developed a "stress test" framework for VLMs. We created two versions of representative models (Bunny-4B and InternVL2.0-2B): a clean baseline ($M_1$) and a contaminated version ($M_2$) intentionally trained on test samples.
We then applied various visual transformations during the evaluation phase only:
- Geometric Transforms: Multi-angle rotations (30° to 180°) and horizontal/vertical flips.
- BGR Channel Swapping: A novel proposal where the Red and Blue color channels of input images are swapped.
The underlying hypothesis is that a model with genuine scene understanding should remain relatively robust to these changes. Conversely, a model relying on memorization will see its performance crater because the visual "key" it uses for retrieval has been altered.
The Gamersky Benchmark
To ensure a truly clean starting point for our evaluation, we introduced the Gamersky Dataset. This benchmark consists of 1,000 high-quality images sourced from the gaming guide website Gamersky.
To prevent pre-training leakage, we specifically selected images published between June 20 and June 25, 2024—dates that post-date the release of the models under test. Using GPT-4o, we generated 2,561 question-answer rounds based on these images, followed by rigorous manual human review. The dataset spans several popular genres, including Elden Ring, anime-style games, and shooters.
Experimental Results
Our experiments revealed that memorization in VLMs is remarkably fragile. Contaminated models show a massive performance boost on original test images, but this "intelligence" evaporates under stress.
Key findings include:
- Performance Inflation: For the Bunny-4B model (5 epochs), contamination inflated the BLEU score from 0.0816 to 0.1366, a ~67% artificial jump.
- The Reveal: Applying a 150-degree rotation to the contaminated Bunny model caused the BLEU score to plummet to 0.0796, effectively returning it to the baseline "clean" performance level.
- BGR Robustness: In the InternVL model, BGR swapping brought the contaminated model's performance (BLEU 0.1368) much closer to the target performance of the original clean model (0.1047) than the un-augmented contaminated score (0.1499).
The "Poison Pill" Advantage
One of the most significant insights is the unique utility of BGR channel swapping. While traditional augmentations like flipping are standard training techniques, BGR swapping is actually harmful to model performance if included in the training set. Our tests showed that training InternVL with "Mixed BGR Data" resulted in a BLEU score of 0.1041—nearly identical to the original 0.1047. This suggests that BGR swapping is a robust evaluation tool that cannot be easily bypassed by trainers attempting to "game" the benchmark.
Conclusion
Clean evaluation is vital for the honest advancement of VLM research. By utilizing visual transformations—particularly BGR channel swapping—researchers can strip away the performance inflation caused by memorization and reveal a model's true generalization capabilities. Future work will look to extend these methodologies to other modalities, such as audio and video, to ensure comprehensive integrity in multi-modal AI systems.
Summary updated