Thank you for your time and valuable feedback. We are happy to note that you appreciated the simplicity of our method, supported by promising results. We provide clarifications to your questions below:
### **Accuracy as the only metric**
Sorry for not being precise about this, but we follow the standard evaluation metrics as used in the DataComp benchmark (https://github.com/mlfoundations/datacomp/blob/main/tasklist.yml). For example, on retrieval tasks (MSCOCO and Flickr) the metric is mean_recall@1 and on the WinoGAViL dataset it is jaccard_score. Further, we have updated Table 2 in the paper with an additional column of average performance across all the datasets in DataComp, which involves F1 score as the metric for some of the class imbalanced datasets like wilds-iWILDCam and worst region accuracy as the metric for wilds-FMoW.
### **Distribution of scores before and after masking**
Thank you for the suggestion. Recall our 500-example pilot study where we hand-labeled examples into various categories, like those with only visual features or those with only text features. We calculated the CLIP similarity score of these image-caption pairs, before and after masking the text in the respective images. **A histogram of this distribution of scores (before and after masking) is now uploaded in Appendix F**. Our observations indicate that after masking, the CLIP score of images with just text features (OCR) drops significantly (indicating they will be filtered out by T-MARS). At the same time, CLIP scores of images with only visual features stay nearly the same. This demonstrates the efficacy of the filtering method for removing samples with only text features.
### **Data augmentation after filtering**
We do not perform any additional data augmentation after filtering out the bad data to ensure a fair comparison with the baselines. We follow the standard and widely used CLIP training implementation given here[https://github.com/mlfoundations/open_clip]. Indeed, data augmentation may provide additional improvements in visual representation, but our work aims to improve representations by intervening on the data, not the training process.
### **Does inpainting alter original data?**
If the text overlays a patch with significant visual features, inpainting might create some aberrations. However, in general, we observe that the text detection algorithm (FAST[3]) gives very tight bounding boxes around the text, leading to no major aberrations of visual features when inpainting the text area, serving our main purpose in this work well. In Appendix E, we have added some pairs of original and masked images to highlight the same.
Additionally, the histogram of CLIP score distribution in Appendix F (which you suggested) provides evidence that the method works well at masking out text features, thereby, lowering CLIP scores of only the images with just text features. However, we agree with you that exploring more nuanced ways to remove the text from the image is an interesting direction for future work.
### **Impact of percent of Masking**
To decide the threshold of image-caption pairs to be removed post-masking, we use a CLIP-similarity threshold of 0.281, which is the same as that used in prior work, such as LAION filtering. Fine-tuning the threshold may indeed bring further gains, but running such parameter searches is beyond our compute scope.
### **New Discussion: Appendix G (Other ways to resolve text overlap with caption)**
We have added a discussion section on other ways to circumvent text feature learning in Appendix G (Page 26 and Page 27), as requested by you. We give a brief summary here:
- One can remove all inputs with any text features matching the caption. However, this is suboptimal as it removes datapoints with both visual and text features [1].
- Alternatively, one can consider a much more expensive process of modifying the input captions of the dataset. One way for the same would be to remove identified text OCR from the input captions. Another way would be to generate new captions altogether, as recently explored in [2].
- Finally, one could also consider modifying the input images to in-paint the OCR region. Note here that in T-MARS, we chose to use the masked images just to calculate new CLIP scores for filtering. A more elaborate discussion is provided in the appendix.
---
We again thank you for raising these interesting questions and hope that the clarification helps you assess the work more positively. We are happy to provide any further clarifications if requested.
[1] https://arxiv.org/abs/2301.02280.
[2] https://arxiv.org/abs/2307.10350.
[3] https://github.com/czczup/FAST.