CHARM:用于图像生成的可压缩希尔伯特阶自回归模型
CHARM: Compressible Hilbert Order Autoregressive Model for Image Generation
AI总结:
本文提出CHARM模型,采用希尔伯特顺序与4的幂划分,结合摘要标记压缩KV缓存,在ImageNet生成任务中兼顾质量与效率,吞吐量最高提升19.75倍。
摘要:
本文提出了CHARM,即一种可压缩希尔伯特阶自回归模型,该模型在生成顺序设计中同时考虑空间局部性和推理效率。CHARM采用希尔伯特顺序,这是一种递归构造的遍历方式,可使生成序列中的连续区间在空间上保持集中。通过引入β-赫尔德局部性的概念,我们证明希尔伯特顺序达到了最优指数β=1/2,进而保证了较高的局部上下文覆盖率。相比之下,光栅顺序和对角锯齿顺序仅能达到平凡指数β=0,其最坏情况下的局部上下文覆盖率无任何非平凡保证。我们进一步表明,希尔伯特顺序自然地诱导出用于压缩的有意义空间块。为此,我们引入了适用于任意序列的4的幂划分,在希尔伯特顺序下,该划分的区间始终对应于多尺度的方形区域。利用学习到的摘要标记以单个KV缓存条目表示每个此类区域,CHARM将注意力计算量降低至O(n²log n),并将KV缓存空间降低至O(log n)。在类条件ImageNet生成任务中,我们的递归压缩15亿参数模型在256分辨率下达到1.64的FID,在512分辨率下达到1.87的FID。在不同模型规模和分辨率下,CHARM相较于匹配的未压缩基线将吞吐量提升了最高19.75倍,在生成质量与效率之间取得了良好的平衡。额外实验表明,该相同设计可扩展至连续隐空间自回归。
英文摘要:
In this paper, we present CHARM, a Compressible Hilbert Order AutoRegressive Model that jointly considers spatial locality and inference efficiency in generation-order design. CHARM adopts the Hilbert order, a recursively constructed traversal that keeps contiguous intervals in the generation sequence spatially concentrated. By introducing the notion of $β$-Hölder locality, we prove that the Hilbert order achieves the optimal exponent $β=1/2$, which in turn guarantees high local-context coverage. In contrast, raster and diagonal zigzag orders admit only the trivial exponent $β=0$, leaving their worst-case local-context coverage without any non-trivial guarantee. We further show that the Hilbert order naturally induces meaningful spatial blocks for compression. To show this, we introduce a power-of-four partition for any sequence whose intervals always correspond to square regions at multiple scales under Hilbert order. Using learned summary tokens to represent each such region with a single KV cache entry, CHARM reduces the attention computation to $\mathcal{O}(n^2\log n)$ and KV cache space to $\mathcal{O}(\log n)$. On class-conditional ImageNet generation, our recursively compressed 1.5B model achieves 1.64 FID at 256 resolution and 1.87 FID at 512 resolution. Across model scales and resolutions, CHARM improves throughput by up to $19.75\times$ over matched uncompressed baselines, achieving a favorable balance between generation quality and efficiency. Additional experiments show that the same design extends to continuous-latent autoregression.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。