[논문 리뷰] FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space
FLUX.1 Kontext is a flow-based model that unifies in-context image generation and editing in latent space, delivering fast, multi-turn, character-preserving edits and competitive quality.
We present evaluation results for FLUX.1 Kontext, a generative flow matching model that unifies image generation and editing. The model generates novel output views by incorporating semantic context from text and image inputs. Using a simple sequence concatenation approach, FLUX.1 Kontext handles both local editing and generative in-context tasks within a single unified architecture. Compared to current editing models that exhibit degradation in character consistency and stability across multiple turns, we observe that FLUX.1 Kontext improved preservation of objects and characters, leading to greater robustness in iterative workflows. The model achieves competitive performance with current state-of-the-art systems while delivering significantly faster generation times, enabling interactive applications and rapid prototyping workflows. To validate these improvements, we introduce KontextBench, a comprehensive benchmark with 1026 image-prompt pairs covering five task categories: local editing, global editing, character reference, style reference and text editing. Detailed evaluations show the superior performance of FLUX.1 Kontext in terms of both single-turn quality and multi-turn consistency, setting new standards for unified image processing models.
연구 동기 및 목표
- Motivate and enable faithful in-context image generation and editing using a single unified architecture.
- Preserve character and object consistency across multiple edit turns.
- Achieve fast inference for interactive, iterative editing workflows.
- Introduce KontextBench to evaluate real-world, multi-turn editing scenarios.
제안 방법
- Use a rectified flow-matching objective trained on a concatenation of context and instruction tokens.
- Encode images into latent tokens via a frozen FLUX auto-encoder and apply 3D Rotary Positional Embeddings to separate context from target tokens.
- Employ a mix of double-stream and single-stream Transformer blocks with fused feed-forward operations for efficiency.
- Train from a FLUX.1 text-to-image checkpoint and fine-tune with image-to-image tasks, incorporating latent adversarial diffusion distillation (LADD) to speed up sampling.
- Incorporate safety measures (classifier-based filtering and adversarial training) and efficiency optimizations (FSDP, Flash Attention, regional compilation).
- Evaluate using KontextBench and compare against state-of-the-art text-to-image and image-to-image models across multiple in-context tasks.
실험 결과
연구 질문
- RQ1Can FLUX.1 Kontext jointly handle in-context image edits and text-driven image generation in a single model?
- RQ2Does the model preserve character identity and object details across multi-turn edits better than competing methods?
- RQ3How does FLUX.1 Kontext perform in speed and quality relative to state-of-the-art T2I and I2I systems in practical workflows?
- RQ4What is the impact of KontextBench-based evaluation on understanding real-world editing capabilities?
주요 결과
- FLUX.1 Kontext achieves competitive quality with state-of-the-art systems while enabling significantly faster generation times (3–5 seconds at 1024×1024).
- The model shows superior character consistency and robustness in iterative, multi-turn editing compared with competing methods.
- Contextual in-context inputs enable both local edits and open-ended generation within a single architecture without finetuning for each task.
- KontextBench provides a real-world, crowd-sourced benchmark covering local/global editing, character/style/reference, and text editing.
- Latent adversarial diffusion distillation (LADD) reduces sampling steps while improving sample quality.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.