Command Palette
Search for a command to run...
알키미스트: 메타그래디언트 데이터 선택을 통한 텍스트-이미지 모델 훈련의 효율성 극대화
알키미스트: 메타그래디언트 데이터 선택을 통한 텍스트-이미지 모델 훈련의 효율성 극대화
Kaixin Ding Yang Zhou Xi Chen Miao Yang Jiarong Ou Rui Chen Xin Tao Hengshuang Zhao
초록
최근 Imagen, Stable Diffusion, FLUX 등 텍스트-이미지(Text-to-Image, T2I) 생성 모델의 발전으로 시각 품질 측면에서 놀라운 진보가 이루어졌으나, 이러한 모델의 성능은 본질적으로 훈련 데이터의 품질에 의해 제한된다. 웹 크롤링 및 합성 이미지 데이터셋은 종종 저품질 또는 중복된 샘플을 포함하고 있어, 시각적 정확도 저하, 훈련의 불안정성, 비효율적인 계산을 초래한다. 따라서 데이터 효율성을 높이기 위해 효과적인 데이터 선택이 필수적이다. 기존의 접근 방식은 비용이 큰 수동 정제나 텍스트-이미지 데이터 필터링에 있어 단일 차원의 특징에 기반한 휴리스틱 점수 기반 방법에 의존한다. 비록 메타학습 기반 방법이 대규모 언어 모델(Large Language Model, LLM)에서 탐색된 바 있으나, 이미지 모달리티에 대한 적응은 아직 이루어지지 않았다. 이를 해결하기 위해 우리는 Alchemist를 제안한다. Alchemist는 대규모 텍스트-이미지 쌍 데이터에서 적절한 하위집합을 선택하기 위한 메타-기울기 기반 프레임워크이다. 본 방법은 데이터 중심적 관점에서 모델을 반복적으로 최적화함으로써 각 샘플의 영향력을 자동으로 학습하여 평가한다. Alchemist는 두 가지 핵심 단계로 구성된다: 데이터 평가(data rating)와 데이터 절단(data pruning). 우리는 기울기 정보를 기반으로 각 샘플의 영향력을 추정할 수 있는 경량 평가기(rater)를 훈련하며, 다중 해상도 인지(multi-granularity perception) 기법을 통해 이를 강화한다. 이후 Shift-Gsampling 전략을 활용해 효율적인 모델 훈련을 위한 정보량이 풍부한 하위집합을 선택한다. Alchemist는 텍스트-이미지 모델 훈련을 위한 세계 최초의 자동화되고 확장 가능한 메타-기울기 기반 데이터 선택 프레임워크이다. 합성 및 웹 크롤링 데이터셋을 대상으로 한 실험을 통해, Alchemist가 일관되게 시각 품질과 하류 작업 성능을 향상시킴을 입증하였다. Alchemist가 선택한 데이터의 50%로 훈련하는 경우, 전체 데이터셋을 사용한 훈련보다 더 뛰어난 성능을 달성할 수 있었다.
One-sentence Summary
Researchers from The University of Hong Kong, South China University of Technology, and Kuaishou Technology's Kling Team propose Alchemist, a meta-gradient-based framework for efficient Text-to-Image training that automatically selects high-impact data subsets. Unlike prior heuristic or manual methods, it employs a gradient-informed rater with multi-granularity perception and optimized sampling to identify informative samples, enabling models trained on just 50% of Alchemist-selected data to surpass full-dataset performance in visual fidelity and efficiency.
Key Contributions
- Text-to-Image models like Stable Diffusion face performance bottlenecks due to low-quality or redundant samples in web-crawled training data, which degrade visual fidelity and cause unstable training; existing data selection methods rely on costly manual curation or single-dimensional heuristics that fail to optimize for downstream model performance.
- Alchemist introduces a meta-gradient-based framework that automatically rates data samples using gradient-informed multi-granularity perception and employs a shift-Gaussian sampling strategy to prioritize mid-to-late scored samples, which exhibit more informative gradient dynamics and avoid overfitting from top-ranked plain samples.
- Validated on synthetic and web-crawled datasets, Alchemist-selected subsets (e.g., 50% of data) consistently outperform full-dataset training in visual quality and model performance, with empirical evidence showing optimal data lies in mid-to-late score ranges that balance learnability and diversity.
Introduction
The authors address data selection for text-to-image (T2I) model training, where efficiently identifying high-quality text-image pairs from large datasets is critical for reducing computational costs and improving model performance. Prior approaches typically use Top-K pruning—retaining only the highest-rated samples—but this often causes rapid overfitting due to uninformative, low-gradient samples in the top tier, while ignoring more dynamically valuable mid-to-late range data. The authors demonstrate that top-ranked samples exhibit minimal gradient changes during training, contributing little to learning, whereas mid-to-late range samples drive effective model updates but are discarded by conventional methods. Their key contribution is the pruning-based shift-Gaussian sampling (Shift-Gsample) strategy: it first discards the top n% of samples to avoid overfitting, then applies Gaussian sampling centered in the mid-to-late percentile range to balance data informativeness and diversity. This approach selectively retains detailed yet learnable samples, filters out plain or chaotic data, and achieves superior performance by aligning with human intuition for robust T2I training.
Method
The authors leverage a meta-gradient-based framework called Alchemist to enable data-efficient training of Text-to-Image (T2I) models by automatically selecting high-value subsets from large-scale text-image pairs. The overall pipeline consists of two principal stages: data rating and data pruning, which together form a scalable, model-aware data curation system. Refer to the framework diagram for a high-level overview of the workflow.
In the data rating stage, a lightweight rater network parameterized by μ is trained to assign a continuous weight Wxi(μ)∈[0,1] to each training sample xi. This weight reflects the sample’s influence on the downstream model’s validation performance. The rater is optimized via a bilevel formulation: the inner loop updates the proxy T2I model θ using a weighted loss over the training set, while the outer loop adjusts μ to minimize the validation loss. To avoid the computational burden of full inner-loop optimization, the authors adopt a meta-gradient approximation. During training, a reference proxy model θ^ is warmed up using standard training data, while the primary model θ is updated using a combination of validation gradients and weighted training gradients:
θk+1=θk−βk(gval(θk)+gtrain(θk,μk))where gtrain(θk,μk)=∑xi∈DtrainWxi(μk)∇θL(θk;xi). The rater’s parameters are then updated using an approximate gradient derived from the difference in loss between the primary and reference models:
μk+1=μk−αkL(θk;xi)∇μWxi(μk)To stabilize training, weights are normalized per batch via softmax:
Wxi=∑jexp(W^xj)exp(W^xi)To account for batch-level variability and enhance robustness, the rater incorporates multi-granularity perception. It includes two parallel MLP modules: an Instance MLP that processes individual sample features and a Group MLP that computes a batch-level weight from pooled statistics (mean and variance) of the batch. The final weight for each sample is the product of its instance weight and batch weight, enabling the rater to capture both local distinctiveness and global context.
In the data pruning stage, the authors introduce the Shift-Gsample strategy to select a subset of the rated data. This strategy prioritizes samples from the middle-to-late region of the rating distribution—those that are neither too easy (low gradient impact) nor too hard (outliers or noisy)—but are sufficiently informative and learnable. As shown in the figure below, this approach outperforms random sampling, top-K selection, and block-based methods in terms of both sample count and downstream FID performance.
The selected dataset is then used to train the target T2I model, achieving comparable or superior performance with significantly fewer training samples—often as little as 50% of the original corpus—while accelerating convergence and improving visual fidelity.
Experiment
- Alchemist data selection: 50% subset matched full dataset performance on MJHQ-30K and GenEval benchmarks, surpassing random sampling
- 20% Alchemist-selected data matched 50% random data performance, demonstrating significant data efficiency gains
- Achieved 2.33× faster training at 20% retention and 5× faster at 50% retention while matching random sampling results
- Consistently outperformed baselines across STAR (from-scratch) and FLUX-mini (LoRA fine-tuning) models
- Generalized to HPDv3-2M and Flux-reason-6M datasets, surpassing random selection at 20% and 50% retention rates
The authors use a Shift-Gsample pruning strategy with a Group-MLP to select informative data, achieving the lowest FID and highest CLIP-Score among compared methods on 6M image-text pairs. Results show that incorporating group-level information further improves performance over sample-level selection alone.

The authors use Alchemist to select subsets of HPDv3-2M and Flux-reason-6M datasets, achieving lower FID and higher CLIP-Score than random sampling at both 20% and 50% retention. Results show that even with half the data, Alchemist-selected subsets outperform randomly sampled ones, confirming its effectiveness across diverse data domains.

The authors use Alchemist to select a 50% subset of the LAION dataset, achieving better FID and CLIP-Score than training on the full dataset while matching its training time. Results show that even a smaller 20% subset (Ours-small) trained in less than half the time still outperforms several heuristic-based selection methods on GenEval. Alchemist’s selected data consistently improves efficiency and performance compared to random sampling and other image quality metrics.

The authors use Alchemist to select training data for STAR and FLUX-mini models, showing consistent performance gains over random sampling across model scales and data sizes. Results show that using 6M Alchemist-selected images improves FID and CLIP-Score compared to both smaller and larger random subsets, and similar gains hold for FLUX-mini with 3B parameters. The method demonstrates scalability, as larger models and different architectures benefit from the same selected data without additional rater training.
