[Paper Review] Fill-Up: Balancing Long-Tailed Data with Generative Models
This paper proposes Fill-Up, a novel method for mitigating long-tailed data distribution in image recognition by leveraging Textual Inversion to generate class-specific synthetic images that align closely with real data. By optimizing random text tokens per class in a pre-trained text-to-image diffusion model (Stable Diffusion), the approach generates diverse, domain-aligned images that effectively balance underrepresented classes, achieving state-of-the-art performance on ImageNet-LT, iNaturalist2018, and Places-LT when training from scratch.
Modern text-to-image synthesis models have achieved an exceptional level of photorealism, generating high-quality images from arbitrary text descriptions. In light of the impressive synthesis ability, several studies have exhibited promising results in exploiting generated data for image recognition. However, directly supplementing data-hungry situations in the real-world (e.g. few-shot or long-tailed scenarios) with existing approaches result in marginal performance gains, as they suffer to thoroughly reflect the distribution of the real data. Through extensive experiments, this paper proposes a new image synthesis pipeline for long-tailed situations using Textual Inversion. The study demonstrates that generated images from textual-inverted text tokens effectively aligns with the real domain, significantly enhancing the recognition ability of a standard ResNet50 backbone. We also show that real-world data imbalance scenarios can be successfully mitigated by filling up the imbalanced data with synthetic images. In conjunction with techniques in the area of long-tailed recognition, our method achieves state-of-the-art results on standard long-tailed benchmarks when trained from scratch.
Motivation & Objective
- To address the challenge of long-tailed data distributions in real-world image recognition, where rare classes suffer from insufficient training samples.
- To overcome the limitations of existing data augmentation and generative methods that fail to align synthetic data with real-world domain distributions.
- To develop a lightweight, efficient method for generating high-quality, class-specific synthetic images without requiring class-specific text prompts.
- To demonstrate that synthetic data generated via Textual Inversion can significantly improve recognition performance on long-tailed benchmarks when used to augment real data.
- To achieve state-of-the-art performance on standard long-tailed benchmarks using a simple two-stage training procedure and Balanced Softmax loss.
Proposed method
- The method employs Textual Inversion to optimize randomly initialized text tokens per class, enabling the generation of class-specific images without requiring class names or descriptions.
- A two-stage training procedure is introduced: first, synthetic images are generated using optimized text tokens; second, the classifier is fine-tuned on a combined dataset of real and synthetic images.
- The approach leverages a pre-trained Stable Diffusion v1.5 model, performing optimization in the latent space to reduce computational cost.
- Textual Inversion is applied per class using only real images from that class, enabling the model to learn class-specific visual concepts from image data alone.
- The method uses Balanced Softmax loss during training to further mitigate class imbalance and improve generalization on rare classes.
- Synthetic images are generated using a scale hyperparameter (e.g., 1.0 or 7.5) to control diversity and quality, with inference taking ~3 seconds per image on a single GPU.
Experimental results
Research questions
- RQ1Can Textual Inversion be effectively used to generate synthetic images that align with real-world data distributions without class-specific text prompts?
- RQ2Does generating synthetic data via optimized text tokens improve recognition performance on long-tailed benchmarks when training from scratch?
- RQ3How does the proposed method compare to existing data augmentation and generative approaches in terms of performance and domain alignment?
- RQ4Can the method significantly improve accuracy on rare classes with fewer than 20 training samples?
- RQ5What is the impact of the two-stage training procedure and Balanced Softmax loss on model generalization in long-tailed settings?
Key findings
- The proposed method achieves state-of-the-art accuracy on ImageNet-LT, iNaturalist2018, and Places-LT when training from scratch, outperforming existing methods.
- On ImageNet-LT, the method achieves a top-1 accuracy of 78.4% using 2.6 million filled-up images, significantly improving over baseline models.
- The method shows particularly strong gains in few-shot scenarios, with rare classes (e.g., ptarmigan with 5 samples) achieving substantially higher accuracy than baseline methods.
- Textual Inversion-based generation outperforms other image-to-image and transmodal generation methods in both qualitative and quantitative evaluations across all benchmarks.
- The two-stage training procedure and Balanced Softmax loss jointly contribute to improved performance, especially on long-tailed distributions.
- The method is computationally efficient: generating one image takes ~3 seconds, and optimizing one class takes ~30 minutes on a single RTX 3090.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.