Papers › Enhance Image Classification via Inter-Class Image Mixup with Diffusion Model

Enhance Image Classification via Inter-Class Image Mixup with Diffusion Model

28 Mar 2024CVPR 2024 1arXiv:2403.19600archive 2025-07-28

Zhicai Wang, Longhui Wei, Tan Wang, Heyu Chen, Yanbin Hao, Xiang Wang, Xiangnan He, Qi Tian

Text-to-image (T2I) generative models have recently emerged as a powerful tool, enabling the creation of photo-realistic images and giving rise to a multitude of applications. However, the effective integration of T2I models into fundamental image classification tasks remains an open question. A prevalent strategy to bolster image classification performance is through augmenting the training set with synthetic images generated by T2I models. In this study, we scrutinize the shortcomings of both current generative and conventional data augmentation techniques. Our analysis reveals that these methods struggle to produce images that are both faithful (in terms of foreground objects) and diverse (in terms of background contexts) for domain-specific concepts. To tackle this challenge, we introduce an innovative inter-class data augmentation method known as Diff-Mix (https://github.com/Zhicaiwww/Diff-Mix), which enriches the dataset by performing image translations between classes. Our empirical results demonstrate that Diff-Mix achieves a better balance between faithfulness and diversity, leading to a marked improvement in performance across diverse image classification scenarios, including few-shot, conventional, and long-tail classifications for domain-specific datasets.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.19600")

Code

Syntology Ran 13 of 15 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 11 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zhicaiwww/diff-mix officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 13 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
11ran
2unverified

Licence: 0 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from zhicaiwww/diff-mix. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calculate_accuracy zhicaiwww/diff-mix/downstream_tasks/mixup.py official repository ran MIT (permissive) · e2b3a579a11aa8cc · report
calculate_confusion_matrix zhicaiwww/diff-mix/downstream_tasks/mixup.py official repository ran MIT (permissive) · cd1bc928867e1ef4 · report
collate_fn zhicaiwww/diff-mix/downstream_tasks/train_hub.py official repository ran MIT (permissive) · 34f989ddd489b2eb · report
collate_fn zhicaiwww/diff-mix/downstream_tasks/train_hub_imb.py official repository ran MIT (permissive) · 8853171aa7d6b800 · report
count_parameters zhicaiwww/diff-mix/utils/network.py official repository ran MIT (permissive) · 0272b56a01148eb6 · report
focal_loss zhicaiwww/diff-mix/downstream_tasks/losses.py official repository ran fingerprinted MIT (permissive) · 8770a72903df63a4 · report
format_name zhicaiwww/diff-mix/augmentation/diff_mix.py official repository ran fingerprinted MIT (permissive) · 4f5c62de73d1d6ea · report
formate_note zhicaiwww/diff-mix/downstream_tasks/train_hub.py official repository ran MIT (permissive) · 217a2cf4c5e18cfc · report
hms_string zhicaiwww/diff-mix/downstream_tasks/train_hub_imb.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a0e3d9c713be829a · report
is_vector_label zhicaiwww/diff-mix/downstream_tasks/mixup.py official repository ran fingerprinted MIT (permissive) · 3484f5524b78673a · report
onehot zhicaiwww/diff-mix/dataset/base.py official repository ran · honoured contract MIT (permissive) · a2847ea5f23c1e07 · report
to_tensor zhicaiwww/diff-mix/downstream_tasks/train_hub.py official repository ran fingerprinted MIT (permissive) · 41fa9c7ce4f26829 · report
to_tensor zhicaiwww/diff-mix/downstream_tasks/train_hub_imb.py official repository ran MIT (permissive) · 55c21c47550d96fa · report
load_diffmix_embeddings zhicaiwww/diff-mix/augmentation/diff_mix.py official repository unverified MIT (permissive) · 68aa47fe761d6dbf · report
load_embeddings zhicaiwww/diff-mix/augmentation/ti_mix.py official repository unverified MIT (permissive) · 1826c47b14d934be · report

Tasks

Data AugmentationDiversityImage Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections