# Szybkie generowanie w kilku krokach

EN: **Fast and few-step diffusion sampling** · id `fewstepdiffusion` · aliases: few-step generation, fast sampling, diffusion acceleration, przyspieszanie dyfuzji, one-step diffusion, diffusion distillation

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Sieci i modele generatywne](https://aiatlasgraph.com/t/neural.md) › [Rodziny modeli generatywnych](https://aiatlasgraph.com/t/generative.md) › [Modele dyfuzyjne](https://aiatlasgraph.com/t/diffusion.md) › Szybkie generowanie w kilku krokach

## Description

- PL: Metody skracania próbkowania modeli dyfuzyjnych: lepsze solvery bez ponownego treningu oraz destylacja do modeli kilku- i jednokrokowych.
- EN: Methods for shortening diffusion sampling: better solvers without retraining and distillation into few-step and one-step models.

## In one sentence

- PL: Zestaw sposobów, by modele tworzące obrazy z szumu dały wynik w kilku krokach zamiast w kilkuset.
- EN: A set of ways to make models that create images from noise deliver a result in a few steps instead of hundreds.

## Problem it solves

- PL: Dobre generatory obrazów odszumiają wynik dziesiątki lub setki razy, więc są wolne, drogie i nie nadają się do pracy na żywo.
- EN: Good image generators denoise their output tens or hundreds of times, so they are slow, costly and unfit for live use.

## What it does

- PL: Albo sprytniej przechodzi się po tej samej drodze, albo wolny model-nauczyciel uczy ucznia robić kilka kroków naraz.
- EN: Either the same path is walked more cleverly, or a slow teacher model trains a student to take several steps at once.

## Everyday example

- PL: Rysujesz kształt w programie graficznym, a obok niemal od razu pojawia się jego realistyczna wersja, zmieniająca się razem z kreską.
- EN: You sketch a shape in a graphics app and a realistic version appears beside it almost instantly, changing as you draw.

## This concerns you if you…

- PL: płacisz za każdy wygenerowany obraz lub klatkę
- PL: chcesz generować obrazy na telefonie lub na żywo
- EN: pay for every generated image or frame
- EN: want to generate images on a phone or live

## Keywords

DDIM · DPM-Solver · progressive distillation · consistency models · adversarial diffusion distillation · rectified flow · NFE

## How it works

- PL: Pierwsza grupa traktuje odszumianie jako równanie różniczkowe i rozwiązuje je większymi, dokładniejszymi krokami. Druga trenuje nowy model na wynikach wolnego nauczyciela: przez stopniowe połowienie liczby kroków, wymuszanie spójności punktów na tej samej trajektorii albo dodanie dyskryminatora oceniającego realizm.
- EN: One group treats denoising as a differential equation and solves it with larger, more accurate steps. The other trains a new model on a slow teacher's outputs: by repeatedly halving the step count, enforcing consistency of points on one trajectory, or adding a discriminator that judges realism.

## Limits

- PL: Mniejsza liczba wywołań sieci zwiększa błąd przybliżenia trajektorii odszumiania albo wymaga dodatkowego treningu ucznia. Metody bez treningu, destylacja i modele spójności mają różne koszty i nie są wymienne dla każdego modelu.
- EN: Fewer network evaluations increase approximation error along the denoising trajectory or require additional student training. Training-free methods, distillation and consistency models have different costs and are not interchangeable for every model.

## Key terms

- PL: **solver ODE**: Algorytm przechodzący krokami wzdłuż równania różniczkowego.
- PL: **destylacja dyfuzji**: Trenowanie szybkiego ucznia na wynikach wolnego modelu dyfuzyjnego.
- PL: **NFE**: Liczba wywołań sieci na jeden wynik; główna miara kosztu próbkowania.
- EN: **ODE solver**: An algorithm stepping along a differential equation.
- EN: **diffusion distillation**: Training a fast student on a slow diffusion model's outputs.
- EN: **NFE**: Network calls per sample; the main measure of sampling cost.

## Know first

- [Destylacja (Knowledge distillation)](https://aiatlasgraph.com/t/distillation.md)

## Subtopics (4 direct, 4 in total)

- [Modele spójności (generowanie jednym krokiem) (Consistency models)](https://aiatlasgraph.com/t/consistencymodels.md): Models trained to map any point on a denoising trajectory to its endpoint, enabling one- and few-step sampling; trained by distillation or standalone.
- [Przeciwstawna destylacja dyfuzji (generowanie w 1–4 krokach) (Adversarial diffusion distillation)](https://aiatlasgraph.com/t/advdistill.md): Distilling large diffusion models to 1–4 steps by combining a score-based teacher signal with an adversarial loss.
- [Stopniowa destylacja kroków (Progressive distillation of diffusion samplers)](https://aiatlasgraph.com/t/progdistill.md): Iterative distillation where a student learns to reproduce two steps of the teacher's deterministic sampler in one, halving the step count each round.
- [Szybsze samplery bez ponownego treningu (DDIM, solvery ODE) (Fast training-free samplers (DDIM, ODE solvers))](https://aiatlasgraph.com/t/ddim.md): Deterministic or less stochastic sampling procedures for trained diffusion models, based on non-Markovian processes and probability-flow ODE solvers.

## Related topics

Untyped, symmetric "see also" links.

- [Prostowanie przepływu (rectified flow) (Rectified flow)](https://aiatlasgraph.com/t/rectifiedflow.md)

## Sources

- [Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow](<https://arxiv.org/abs/2209.03003>) `liu-rectifiedflow-2022` · by Xingchao Liu, Chengyue Gong, Qiang Liu
- [Denoising Diffusion Implicit Models](<https://arxiv.org/abs/2010.02502>) `song-ddim-2020` · by Jiaming Song, Chenlin Meng, Stefano Ermon
- [Progressive Distillation for Fast Sampling of Diffusion Models](<https://arxiv.org/abs/2202.00512>) `salimans-progdistill-2022` · by Tim Salimans, Jonathan Ho
- [Consistency Models](<https://arxiv.org/abs/2303.01469>) `song-consistency-2023` · by Yang Song, Prafulla Dhariwal, Mark Chen, Ilya Sutskever
- [Adversarial Diffusion Distillation](<https://arxiv.org/abs/2311.17042>) `sauer-add-2023` · by Axel Sauer, Dominik Lorenz, Andreas Blattmann, Robin Rombach
- [DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps](<https://arxiv.org/abs/2206.00927>) `lu-dpmsolver-2022` · by Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan Li, Jun Zhu

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/fewstepdiffusion · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
