BudgetPix:面向像素空间图像扩散的计算自适应分词
研究论文 · 2026/10/13
大多数图像生成模型采用均匀分词,对相同大小的图像块分配完全相同的计算预算。这种静态范式无法在推理时适应不同的资源约束,并且对简单背景和复杂细节投入相同努力,导致质量与成本的次优权衡。我们提出 BudgetPix,一种自适应分词框架,根据视觉复杂度和空间布局动态分配计算,从而在推理时实现灵活的计算预算。BudgetPix 包含三个关键组件:(1)自适应编码器,使用熵引导四叉树和多尺度块嵌入器将固定尺寸图像映射为可变长度 token 序列;(2)尺度感知解码器,从多尺度 token 集合重建固定分辨率图像;(3)灵活的训练和采样调度,使像素空间去噪器能够在可变 token 数量下运行。BudgetPix 可无缝集成现有像素空间扩散架构,使单个检查点能在广泛的计算预算下运行。在文本到图像生成上评估,BudgetPix 在 512^2 分辨率下以仅 25% 的原始计算预算达到 MiniT2I-L 的保真度,在 1024^2 下达到 PixelDiT 的保真度。在使用 MeanFlow 骨干的类别条件生成中,BudgetPix 仅需 60% 的完整计算预算即可产生质量几乎无退化的图像,FID 仅增加 0.8 点。人类和 VLM 评判者的综合评估确认,BudgetPix 相比先前预算自适应基线显著改善了质量-效率权衡。更多细节见项目页面:https://karaozgur.com/BudgetPix
该工作提出了一种计算自适应的分词方法,能在推理时灵活调整计算预算,并在显著降低计算成本的同时保持高质量图像生成,对资源受限场景下的图像生成具有重要实用价值。
Most image generation models rely on uniform tokenization, allocating the exact same computational budget to equally-sized image patches. This static paradigm cannot adapt to different resource constraints at inference time, and yields suboptimal quality-cost tradeoff by devoting the same effort to both plain backgrounds and intricate details. We propose BudgetPix, an adaptive tokenization framework that dynamically allocates compute based on visual complexity and spatial layout, enabling flexible computational budgeting at inference time. BudgetPix comprises three key components: (1) an adaptive encoder that maps a fixed-size image to a variable-length token sequence using an entropy-guided quadtree alongside a multi-scale patch embedder; (2) a scale-aware decoder reconstructs fixed-resolution images from multi-scale token sets; and (3) a flexible training and sampling schedule that enables pixel-space denoisers to operate across variable token counts. BudgetPix seamlessly integrates with existing pixel-space diffusion architectures, enabling a single checkpoint to be operated at a wide range of compute budgets. Evaluated on text-to-image generation, BudgetPix matches the fidelity of MiniT2I-L at 512^2 and PixelDiT at 1024^2 using just 25% of the original compute budget. In class-conditional generation using a MeanFlow backbone, BudgetPix requires merely 60% of the full compute budget to produce images with near-zero quality degradation, observing a marginal 0.8-point increase in FID. Comprehensive assessments by human and VLM judges confirm that BudgetPix establishes a significantly improved quality-efficiency tradeoff over prior budget-adaptive baselines. More details are available at our project page: https://karaozgur.com/BudgetPix