Paint Outside the Box: Synthesizing and Selecting Training Data for Visual Grounding
Organizations: Nanyang Technological University Singapore · Nanjing University of Science and Technology China
Abstract
Visual grounding aims to localize the image regions based on a textual query. Given the difficulty of large-scale data curation, we investigate how to effectively learn visual grounding under data-scarce settings in this paper. To address the data scarcity, we propose a novel framework, POBF (Paint Outside the Box and Filter). POBF synthesizes images by inpainting outside the box, tackling a label misalignment issue encountered in previous works. Furthermore, POBF leverages an innovative filtering scheme to select the most effective training data. This scheme combines a hardness score and an overfitting score, balanced by a penalty term. Extensive experiments across four benchmark datasets demonstrate that POBF consistently improves performance, achieving an average gain of 5.83% over the real-data-only method and outperforming leading baselines by 2.29%-3.85% in accuracy. Additionally, we validate the robustness and generalizability of POBF across various generative models, training data sizes, and model architectures.
Figures & tables
| Dataset | Images | Texts | Objects |
|---|---|---|---|
| RefCOCO Yu et al. (2016) | 19,994 | 142,210 | 50,000 |
| RefCOCO+ Yu et al. (2016) | 19,992 | 141,564 | 49,856 |
| RefCOCOg Mao et al. (2016) ; Nagaraja et al. (2016) | 25,799 | 95,010 | 49,822 |
| ReferItGame Kazemzadeh et al. (2014) | 19,894 | 130,525 | 96,654 |
| Method | Dataset | RefCOCO | RefCOCO+ | RefCOCOg | ReferIt | Avg | |||
| Real | Syn | TestA | TestB | TestA | TestB | Test | Test | ||
| Results on One Sampled Dataset | |||||||||
| Real | ✓ | 44.26 | 34.34 | 23.58 | 17.70 | 24.87 | 21.87 | 27.78 | |
| GeoDiffusion Chen et al. (2024c) | ✓ | ✓ | 47.22 | 34.90 | 28.01 | 18.83 | 25.39 | 24.20 | 29.76 +1.98 |
| Gen2Det Suri et al. (2024) | ✓ | ✓ | 46.61 | 35.19 | 28.85 | 20.65 | 26.10 | 25.00 | 30.40 +2.62 |
| X-Paste Zhao et al. (2023) | ✓ | ✓ | 47.85 | 39.01 | 27.59 | 21.25 | 27.08 | 25.16 | 31.32 +3.54 |
| Training Data | Filtering | RefCOCO | RefCOCO+ | RefCOCOg | ReferIt | Avg | ||||||
| Real | TestA | TestB | TestA | TestB | Test | Test | ||||||
| the Effectiveness of the Synthetic Data | ||||||||||||
| ✓ | 44.26 | 34.34 | 23.58 | 17.70 | 24.87 | 21.87 | 27.78 | |||||
| ✓ | ✓ | 49.97 | 39.16 | 29.01 | 20.56 | 26.67 | 22.49 | 31.31 +3.53 | ||||
| ✓ | ✓ | 47.00 | 36.19 | 25.36 | 18.74 | 26.33 | 22.13 | 29.29 +1.51 | ||||
| the Effectiveness of the Filtering Scheme | ||||||||||||
| Filter | RefCOCO | RefCOCO+ | Avg | ||
| TestA | TestB | TestA | TestB | ||
| Random teacher | 48.52 | 38.84 | 27.47 | 20.27 | 33.76 |
| No teacher | 48.45 | 38.68 | 28.40 | 20.29 | 33.96 +0.20 |
| CLIP teacher Chen et al. (2024a) | 48.84 | 39.75 | 28.07 | 20.35 | 34.25 +0.49 |
| Moderate-Loss Xia et al. (2022) | 48.86 | 39.17 | 27.01 | 21.17 | 34.05 +0.29 |
| Moderate-DS Xia et al. (2022) | 49.61 | 40.47 | 28.21 | 19.84 | 34.31 +0.55 |
| RefCOCO+ | RefCOCOg | Avg | ||
|---|---|---|---|---|
| Method | TestA | TestB | Test | |
| Real | 23.6% | 17.7% | 24.9% | 22.1% |
| Ours-top1 | 31.4% | 21.3% | 30.0% | 27.6% |
| Ours-top3 | 30.9% | 21.1% | 28.9% | 27.0% |
| Ours-top5 | 29.8% | 20.4% | 28.3% | 26.2% |
| RefCOCO+ | RefCOCOg | Avg | ||
| Method | TestA | TestB | Test | |
| Real | 23.58 | 17.70 | 24.87 | 22.05 |
| POBF (Ours) | 31.37 | 21.25 | 29.98 | 27.53 +5.48 |
| Replace the Image Captioner with | ||||
| LLAVA Liu et al. (2024) | 31.09 | 21.54 | 28.57 | 27.07 +5.02 |
| ViT-GPT2 2 | 29.95 | 21.22 | 29.90 | 27.02 +4.97 |
| RefCOCO+ | RefCOCOg | Avg | ||
| Method | TestA | TestB | Test | |
| 0.5% Training Data | ||||
| Real | 16.42 | 10.07 | 15.43 | 13.97 |
| POBF (Ours) | 21.41 | 15.87 | 20.28 | 19.18 +5.22 |
| 2.0% Training Data | ||||
| Real | 33.04 | 25.03 | 33.28 | 30.45 |
| RefCOCO+ | RefCOCOg | Avg | ||
| Method | TestA | TestB | Test | |
| TransVG Deng et al. (2021) (#Paras = 149M) | ||||
| Real | 23.58 | 17.70 | 24.87 | 22.05 |
| POBF (Ours) | 31.37 | 21.25 | 29.98 | 27.53 +5.48 |
| Dynamic-MDTRE Shi et al. (2023) (#Paras = 160M) | ||||
| Real | 23.82 | 18.55 | 29.07 | 23.81 |
| RefCOCO+ | RefCOCOg | Avg | ||
|---|---|---|---|---|
| Teacher | TestA | TestB | Test | |
| No | 29.10 | 20.10 | 28.31 | 25.83 |
| TransVG | 31.37 | 21.25 | 29.98 | 27.53 |
| QRNet | 31.65 | 21.18 | 30.42 | 27.75 |
| Dynamic-MDTRE | 32.17 | 22.08 | 30.97 | 28.41 |
| Method | RefCOCO TestA | RefCOCO TestB | RefCOCOg | ||||||
|---|---|---|---|---|---|---|---|---|---|
| SMALL | MEDIUM | LARGE | SMALL | MEDIUM | LARGE | SMALL | MEDIUM | LARGE | |
| Real-only | 40.23 | 44.57 | 47.98 | 30.57 | 34.61 | 37.84 | 21.71 | 24.82 | 28.08 |
| POBF | 46.52 | 53.89 | 57.90 | 34.08 | 41.13 | 47.67 | 25.30 | 29.97 | 34.67 |
| Gain | +6.29 | +9.32 | +9.92 | +3.51 | +6.52 | +9.83 | +3.59 | +5.15 | +6.59 |
| Method | RefCOCO | RefCOCO+ | RefCOCOg | ReferIt | Avg | ||
|---|---|---|---|---|---|---|---|
| TestA | TestB | TestA | TestB | Test | Test | ||
| Real | 44.26 | 34.34 | 23.58 | 17.70 | 24.87 | 21.87 | 27.78 |
| Color Jitter | 45.12 | 34.71 | 24.75 | 18.03 | 25.11 | 22.36 | 28.35 +0.57 |
| Random Erasing | 44.82 | 34.13 | 24.22 | 17.96 | 24.94 | 22.13 | 28.03 +0.25 |
| POBF (Ours) | 52.77 | 40.96 | 31.37 | 21.25 | 29.98 | 25.28 | 33.61 +5.83 |
Vision-Language Grounding
Vision-Language Grounding links words and phrases to the objects, regions, actions, or moments they describe in images, video, and scenes.
See all 418 papers