skills/skillxiv-v0.0.2-claude-opus-4.6/few-step-distillation-t2i/SKILL.md
Systematically adapt state-of-the-art distillation methods for T2I generation. Compare sCM (stabilized Consistency Models), MeanFlow, and IMM within unified framework. sCM excels at extreme few-step regimes (52.81% GenEval at 2 steps), MeanFlow achieves superior fidelity at 4 NFEs.
npx skillsauth add ADu2021/skillXiv few-step-distillation-t2iInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This work presents a systematic study adapting existing distillation techniques for text-to-image generation within a unified framework. It compares three primary methods—sCM (stabilized Consistency Models), MeanFlow, and IMM (Inductive Moment Matching)—applied to FLUX.1-lite. Theoretical insights establish relationships between methods, practical adaptations address T2I-specific challenges, and empirical results guide method selection based on step requirements.
Three primary distillation methods compared within unified framework:
1. Stabilized Consistency Models (sCM) Excels at extreme few-step regimes, achieving 52.81% GenEval score at 2 steps. Practical T2I adaptations include timestep normalization for sCM to handle the different scale ranges between vision and language domains.
2. MeanFlow Requires more steps but achieves superior fidelity at 4 NFEs (Network Function Evaluations). Employs dual-timestep mechanisms for T2I generation and maintains better quality with additional steps. Can be understood as a synchronization limit of sCM.
3. Inductive Moment Matching (IMM) Provides a third approach with distinct theoretical properties. Theoretical framework shows Flow Matching is precisely recovered when the reference time equals the current time.
4. Practical Adaptations
Cast your distillation problem within the unified sCM/MeanFlow/IMM framework. Choose sCM for extreme 2-step regimes, MeanFlow for 4+ step quality, or IMM for balanced approaches. Implement T2I-specific adaptations: timestep normalization, dual-timestep mechanisms, and guidance tuning. Use modular code structure enabling easy comparison between methods.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.