Skip to main content
QUICK REVIEW

[论文解读] FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Space

Black Forest Labs, Stephen Batifol|ArXiv.org|Jun 17, 2025
Generative Adversarial Networks and Image SynthesisComputer Science被引用 4
一句话总结

FLUX.1 Kontext 是一个基于流的模型,在潜在空间中统一上下文图像生成与编辑,提供快速、多轮、保持角色的编辑以及具竞争力的质量。

ABSTRACT

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.

研究动机与目标

  • 通过单一统一架构来激发并实现对真实感的上下文内图像生成与编辑。
  • 在多轮编辑中保持角色与对象的一致性。
  • 实现交互式、迭代式编辑工作流的快速推理。
  • 引入 KontextBench 以评估真实世界的多轮编辑场景。

提出的方法

  • 使用在上下文与指令标记串联上训练的整流流匹配目标函数。
  • 通过冻结的 FLUX 自编码器将图像编码为潜在标记,并应用 3D Rotary Positional Embeddings 将上下文标记与目标标记分离。
  • 采用双流与单流 Transformer 块的混合结构,配合融合前馈运算以提升效率。
  • 以 FLUX.1 文本到图像检查点进行训练,并通过图像到图像任务进行微调,结合潜在对抗扩散蒸馏(LADD)以加速采样。
  • 加入安全措施(基于分类器的过滤和对抗训练)与效率优化(FSDP、Flash Attention、区域编译)。
  • 使用 KontextBench 进行评估,并在多种上下文内任务上与最先进的文本到图像与图像到图像模型进行对比。

实验结果

研究问题

  • RQ1FLUX.1 Kontext 是否能够在一个模型中同时处理上下文内的图像编辑与基于文本的图像生成?
  • RQ2该模型在多轮编辑中是否比竞争方法更好地保持角色身份与对象细节?
  • RQ3在实际工作流中,FLUX.1 Kontext 相对于最先进的 T2I 与 I2I 系统在速度与质量方面的表现如何?
  • RQ4基于 KontextBench 的评估对理解真实世界编辑能力有何影响?

主要发现

  • FLUX.1 Kontext 在达到与最先进系统相当的质量的同时,显著提升生成速度(1024×1024 时为 3–5 秒)。
  • 在迭代、多轮编辑中,该模型在角色一致性与鲁棒性方面优于竞争方法。
  • 上下文内的输入使单一架构能够在不为每个任务进行微调的情况下实现本地编辑与开放式生成。
  • KontextBench 提供一个真实世界、众包式基准,覆盖局部/全局编辑、角色/风格/参考和文本编辑。
  • 潜在对抗扩散蒸馏(LADD)在提高样本质量的同时减少采样步数。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。