工作日早上 7 点读 AI,周日早上 8 点读周报订阅邮件

METAL LAB

Energy-Guided Flow Matching

arXiv:2608.058112026-08-06

让图像生成模型先勾勒模糊的整体结构、再逐步补上细节,能用更少训练达到更好效果

在像素空间直接生成图像的模型通常要从噪声一步到位地学出完整清晰的图像,导致整体结构和精细纹理必须同时学习。这篇论文改为让终点本身随时间移动:先从一张用热核滤波模糊过的低频图像出发,逐渐变清晰直到完整图像,并根据每张图片自身缺失的高频能量,用一套按图定制的调度来控制细节释放的快慢。实验显示,在ImageNet类别条件生成任务上,这种由粗到细的路径用更少的训练轮数就取得了比标准方法更低的FID(数值越低越好的图像质量差距指标)。

METAL LAB 解读图

EG-FM:终点会移动的生成路径

证据状态已报告实测结果

  1. 1. 固定终点(标准方法)标准flow matching始终从噪声直线指向同一张完整清晰图像,迫使模型同时学习结构与细节。
  2. 2. 构建低频起始终点用热核滤波把图像模糊化,得到路径起点(t=0)处的目标图像。
  3. 3. 测量每张图片的能量缺口计算模糊图与原图之间缺失的高频能量,以此为每张图片设定专属的细节释放速度(热时间)。
  4. 4. 用统一时钟同步采用基于smootherstep函数的统一释放时钟,确保所有图片在同一路径时刻恢复相同比例的细节。
  5. 5. 用移动终点和重新定义的速度训练由于终点持续变清晰,训练目标速度需加上终点自身移动产生的速度项,与噪声指向当前终点的基础速度相加。
这是 METAL LAB 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 标准的flow matching(一种通过学习从噪声到目标图像的路径来生成图像的方法)始终把终点设为同一张完整清晰的图像,导致模型必须同时学习整体结构和精细纹理,增加了学习难度。
  2. 本文用热核(heat-kernel)滤波后的模糊低频图像作为路径起点的目标,并让这个目标随时间推移逐渐变清晰,最终在终点变为完整清晰图像。
  3. 由于不同图片本身含有的高频细节量不同,研究者测量了每张图片相对于其低频版本缺失的高频能量总量,并据此推导出针对该图片的'热时间'调度,同时用统一的释放时钟保证所有图片在同一路径时刻恢复相同比例的细节。
  4. 由于终点本身在移动,训练所用的目标速度也重新定义为两部分之和:噪声指向当前终点的基础速度,加上终点自身移动所产生的速度项。
  5. 该方法在PixelDiT、DeCo、HyperDiT三种骨干网络上进行了测试,涵盖ImageNet 256x256、512x512的类别条件生成以及文本到图像生成任务。
Figure 1: Comparison of baselines and Energy-Guided Flow Matching (EG-FM). Marker size increases as checkpoints approach the desirable lower-left region, representing fewer training epochs and lower FID. Based on backbones of PixelDiT and DeCo, the EG-FM variants achieve improved FID performance with significant fewer training epochs.
Figure 1: Comparison of baselines and Energy-Guided Flow Matching (EG-FM). Marker size increases as checkpoints approach the desirable lower-left region, representing fewer training epochs and lower FID. Based on backbones of PixelDiT and DeCo, the EG-FM variants achieve improved FID performance with significant fewer training epochs.
Table 1: Class-conditional generation on ImageNet ×256. Each Energy-Guided FM row uses the same backbone and ADM evaluation protocol. PixelDiT additionally expose convergence at multiple budgets. NFE denotes the number of function evaluations, with ×2 accounting for conditional and unconditional CFG evaluations.
MethodEpochs#ParamsNFEFID ↓sFID ↓IS ↑Precision ↑Recall ↑
REPA (35)800675M250×21.424.70305.70.800.65
DDT-XL (34)400675M1.26310.60.790.65
RAE-XL (38)800839M1.13262.60.780.67
PixelFlow-XL (4)320677M120×21.985.83282.10.810.60
PixNerd-XL (33)320700M100×21.93298.00.800.60
JiT-G (20)6002.0B100×21.82292.60.790.62
PixelU-H/16 (10)6001.17B100×21.635.04305.90.790.64
DiP-XL/16 (5)600631M100×21.794.59281.90.800.63
FREPix-XL (21)320674M100×21.914.59295.60.790.62
DeCo-XL/16 (26)600682M100×21.694.59304.00.790.63
+ Energy-Guided FM440682M100×21.634.78300.10.790.62
HyperDiT-H (12)600952M100×21.564.73306.50.800.64
+ Energy-Guided FM220952M100×21.514.31293.40.780.64
PixelDiT-XL (36)80797M100×22.365.11282.30.800.57
PixelDiT-XL (36)320797M100×21.614.68292.70.780.64
PixelDiT-XL (36)800797M100×21.544.49297.00.780.65
+ Energy-Guided FM80797M100×21.995.09280.80.810.61
+ Energy-Guided FM200797M100×21.554.60296.20.790.65
+ Energy-Guided FM600797M100×21.454.41299.60.780.65
Figure 2: Overview of Energy-Guided Flow Matching. Starting from a clean image, we construct a low-frequency endpoint and measure the residual spectral gap 𝒢~x. Based on the global release clock q⁡(t), we derive a sample-adaptive heat time h⁡(x,t) that controls the heat-kernel response R⁡(h,ρ), enabling the progressive recovery of frequency components from low to high. For the training trajectory, the moving spectral endpoints yt​(x) evolve from a easily predicted low-pass manifold toward the full-image manifold, forming a coarse-to-fine curved path zt. The velocity yt​(x0)−ϵ toward the current endpoint and the endpoint-motion term t​∂tyt​(x0) together form the target velocity vt.
Figure 2: Overview of Energy-Guided Flow Matching. Starting from a clean image, we construct a low-frequency endpoint and measure the residual spectral gap 𝒢~x. Based on the global release clock q⁡(t), we derive a sample-adaptive heat time h⁡(x,t) that controls the heat-kernel response R⁡(h,ρ), enabling the progressive recovery of frequency components from low to high. For the training trajectory, the moving spectral endpoints yt​(x) evolve from a easily predicted low-pass manifold toward the full-image manifold, forming a coarse-to-fine curved path zt. The velocity yt​(x0)−ϵ toward the current endpoint and the endpoint-motion term t​∂tyt​(x0) together form the target velocity vt.
Table 2: Quantitative comparison for class-conditional generation on ImageNet ×512. † denotes continued training from a checkpoint on ImageNet ×256.
MethodEpochsParamsFID ↓IS ↑
DiT-XL/2600675M3.04240.8
SiT-XL/2600675M2.62252.2
REPA200675M2.08274.6
PixNerd-XL†320700M2.84245.6
JiT-H600956M1.94309.1
PixelU-H/326001.2B1.92322.1
DiP-XL/32-631M2.31291.7
DeCo-XL/16†340682M2.22290.0
PixelDiT-XL†850797M1.81278.6
+ EG-FM†240797M1.68295.5
HyperDiT-H + EG-FM†260952M1.58285.0
Figure 3: Visualization of sample-adaptive heat-time. Under the same release clock, texture-rich Sample A requires a faster decrease in heat time than Sample B. Lower heat time indicates weaker attenuation and greater frequency release; the dashed curve denotes mean heat-time over ImageNet.
Figure 3: Visualization of sample-adaptive heat-time. Under the same release clock, texture-rich Sample A requires a faster decrease in heat time than Sample B. Lower heat time indicates weaker attenuation and greater frequency release; the dashed curve denotes mean heat-time over ImageNet.
Table 7: Detailed comparison for class-conditional ImageNet generation at ×512. Metrics are computed on 50K generated samples with the ADM evaluation suite. NFE includes conditional and unconditional classifier-free-guidance evaluations; † denotes continued training from a ×256 checkpoint. A dash indicates an unreported item.
MethodEpochs#ParamsNFEFID ↓sFID ↓IS ↑Precision ↑Recall ↑
DiT-XL/2600675M250×23.045.02240.80.840.54
SiT-XL/2600675M250×22.624.18252.20.840.57
REPA200675M250×22.084.19274.60.830.58
PixNerd-XL†320700M100×22.845.95245.60.800.59
JiT-H600956M100×21.94309.1
PixelU-H/326001.2B100×21.925.98322.10.800.58
DiP-XL/32631M100×22.314.48291.70.840.58
DeCo-XL/16†340682M100×22.224.67290.00.800.60
PixelDiT-XL†850797M100×21.815.61278.60.780.67
+ EG-FM†240797M100×21.684.77295.50.790.63
HyperDiT-H + EG-FM†260952M100×21.584.90285.00.790.64
Figure 4: Qualitative results produced by PixelDiT-XL with EG-FM. From left to right, the panels show ImageNet class-conditional samples at ×512 and ×256, followed by text-to-image samples at ×512.
Figure 4: Qualitative results produced by PixelDiT-XL with EG-FM. From left to right, the panels show ImageNet class-conditional samples at ×512 and ×256, followed by text-to-image samples at ×512.
Table 8: Category-wise GenEval results for text-to-image generation at ×512. Overall is the unweighted mean of the six task scores. Bold and underlined values denote the best and second-best results in each column. A dash indicates an unreported item.
Method#ParamsSingle obj.Two obj.CountingColorsPositionColor attr.Overall ↑
PixArt-α0.6B0.980.500.440.800.080.070.48
SD38B0.980.840.660.740.400.430.68
FLUX.1-dev12B0.990.810.790.740.200.470.67
DALL-E 30.960.870.470.830.430.450.67
BLIP3o4B0.81
OmniGen24B1.000.950.640.880.550.760.80
PixelFlow0.9B0.60
PixNerd1.2B0.970.860.440.830.710.530.73
DeCo-XXL/161.1B1.000.920.720.910.800.790.86
PixelDiT-T2I1.3B1.000.940.700.900.530.650.78
EG-FM-T2I1.3B1.000.950.740.920.720.770.85
Figure 9: FID across training checkpoints computed with torch-fidelity and the ADM evaluation suite. The two implementations show closely aligned convergence trends from 80 to 600 epochs.
Figure 9: FID across training checkpoints computed with torch-fidelity and the ADM evaluation suite. The two implementations show closely aligned convergence trends from 80 to 600 epochs.
Table 9: Category-wise DPG-Bench results for text-to-image generation at ×512. Bold and underlined values denote the best and second-best results in each column. A dash indicates an unreported item.
Method#ParamsGlobalEntityAttributeRelationOtherOverall ↑
PixArt-α0.6B81.780.180.481.776.571.6
PixArt-Σ0.6B87.587.186.584.086.179.5
PixelFlow0.9B77.9
PixNerd1.2B80.587.987.291.372.880.9
DeCo-XXL/161.1B81.4
PixelDiT-T2I1.3B88.090.987.689.888.583.7
EG-FM-T2I1.3B89.389.290.290.989.783.9
Energy-Guided Flow Matching figure 5
Table 10: Matched training compute and wall time. GFLOPs and ΔGFLOPs are reported per sample, with ΔGFLOPs measured relative to Standard FM. FLOPs increase and time increase are percentage changes relative to the matched Standard FM configuration; negative time values indicate faster steps. Per-step wall time is in seconds, and epoch time is in hours. All experiments were conducted on 8 × B200 GPU.
BackbonePathRes.BatchGFLOPsΔGFLOPsFLOPs inc.Time/stepTime inc.Epoch time
DeCo-XL/16Standard FM2562256734.810.000.000.100.000.14
DeCo-XL/16EG-FM2562256734.860.06+0.010.10+0.410.14
PixelDiT-B/16Standard FM2562256226.290.000.000.040.000.06
PixelDiT-B/16EG-FM2562256226.340.06+0.030.04+4.810.06
PixelDiT-L/16Standard FM2562256683.300.000.000.090.000.12
PixelDiT-L/16EG-FM2562256683.360.06+0.010.09+0.510.12
PixelDiT-XL/16Standard FM2562256933.580.000.000.110.000.15
PixelDiT-XL/16EG-FM2562256933.640.06+0.010.11+0.990.15
PixelDiT-XL/16Standard FM5122644056.720.000.000.120.000.66
PixelDiT-XL/16EG-FM5122644056.980.26+0.010.12+0.920.66
Figure 10: Additional text-to-image samples generated by EG-FM-T2I at ×512, spanning architectural scenes, weather, interiors, animals, and human-centered compositions.
Figure 10: Additional text-to-image samples generated by EG-FM-T2I at ×512, spanning architectural scenes, weather, interiors, animals, and human-centered compositions.

研究结果

  • 在ImageNet 256x256上,PixelDiT-XL搭配EG-FM训练80轮时将FID从2.36降到1.99,训练200轮时达到1.55,已超过标准方法训练320轮的1.61,继续训练到600轮时进一步提升到1.45。
  • 同样设置下,DeCo-XL/16训练440轮达到FID 1.63,优于标准方法训练600轮的1.69;HyperDiT-H训练220轮达到FID 1.51,优于标准方法训练600轮的1.56。
  • 在ImageNet 512x512上,从256x256的检查点出发仅继续训练40轮,搭配EG-FM的PixelDiT取得FID 1.68、Inception Score 295.5(而标准方法多训练530轮才达到FID 1.81、IS 278.6),搭配EG-FM的HyperDiT取得FID 1.58,为对比方法中最优。
  • 在文本到图像生成任务中,相比PixelDiT-T2I基线,EG-FM-T2I将GenEval分数从0.78提升到0.85,DPG-Bench分数提升0.2达到83.9,在DPG-Bench上取得对比方法中的最佳成绩,在GenEval上位列第二,仅比DeCo-XXL/16低0.01分。
  • 训练与推理成本的实测增加很小:每样本计算量最多增加0.0256%,每步训练耗时增幅大多在1%以内(仅PixelDiT-B/16为4.81%),推理阶段无需额外计算,速度和计算量与标准方法相同。

可应用场景

  • 用于提升不依赖有损潜空间压缩、直接在像素空间生成高分辨率图像的模型的训练效率和最终质量
  • 将已训练好的低分辨率(256x256)生成模型以较少的额外训练扩展到高分辨率(512x512)
  • 希望同时改善物体构图准确性和密集文本提示响应能力的文本到图像生成系统

局限与待验证事项

  • 尚未在异构或含时间维度的信号上验证,例如文本与图像联合建模、视频生成或需要协调动作的具身决策任务。
  • 尚未在Flux、Qwen-Image级别的大型基础模型骨干上进行测试。
  • 在直接预测清晰图像的x-prediction方式(如JiT)上效果增益较小,FID仅从2.37降到2.33,可能是因为早期预测不稳定导致按图定制的调度不够可靠。
  • 报告的FID数值基于ADM评测工具,使用torch-fidelity等其他评测工具会得到略有不同(低0.02至0.06)的绝对值,但趋势一致。
  • 实验仅限于ImageNet类别条件生成和特定的文本到图像数据集(BLIP3o),在其他数据领域的泛化能力尚未验证。

为什么重要

这种方法只改变生成路径和训练目标,不改变骨干网络结构或训练数据,因此有可能让追求保留精细细节而不使用有损潜空间压缩的像素级生成模型,以几乎不增加成本的方式提升训练效率和生成质量。这对希望在不重新设计骨干网络的前提下提高高分辨率图像生成效率的研究者和工程团队具有直接参考价值。

本文术语

  • Flow Matching(流匹配) · 一种通过学习从随机噪声到目标图像的路径来生成图像的方法
  • FID · 衡量生成图像分布与真实图像分布差异的指标,数值越低越好
  • 热核(heat-kernel) · 源自热扩散方程的一种滤波方式,这里用来把图像模糊、去除高频细节
  • 低频/高频成分 · 图像中的低频部分对应整体结构,高频部分对应精细纹理和细节
  • CFG(无分类器引导)强度 · 生成时控制类别或文本条件影响强弱的参数设置

论文原文摘要(英文)

Pixel-space generative models bypass lossy latent compression, yet necessitate joint learning of global structure and fine-grained details in a high-dimensional space. Standard flow matching interpolates noise toward a fixed clean-image endpoint, leaving the spectral evolution to be learned implicitly. In this paper, we introduce Energy-Guided Flow Matching(EG-FM) that explicitly models a coarse-to-fine generative trajectory by moving endpoint. Specifically, EG-FM replaces the fixed endpoint with a heat-kernel-filtered endpoint that evolves smoothly from low-frequency image to clean image. The fraction of high-frequency signal in moving endpoint is released by an image-specific energy-guided scheduling, leading to the re-targeting of velocity in flow matching. Our framework requires no adaptation of the backbone and training data, bringing negligible cost on the training and inference stages. In our experiment, EG-FM consistently achieves lower FID on the ImageNet class-conditional image generation task at 256 times 256 with fewer epochs, reaching an FID of 1.55 at 200 epochs and 1.45 at 600 epochs. We continue training the generation task on the setting of 512 times 512 resolution, yielding a FID of 1.58 after only 40 high-resolution adaptation epochs. Furthermore, we transfer EG-FM on text-to-image generation and achieve 0.85 on GenEval score and 83.9 on DPG-Bench. Code is available at https://github.com/ysng123/EG-FM.

作者 · Haoyang Tong

在 arXiv 阅读

最新论文

全部论文 →

METAL LAB 最新报道

图片来源: Haoyang Tong et al., arXiv:2608.05811, arxiv-nonexclusive