TileShare:无需训练的重叠分块ViT解码加速方法
TileShare: Training-Free Acceleration of Overlapping Tiled ViT Decoding
AI总结:
提出TileShare方法,无需训练即可加速重叠分块ViT解码,在多种GPU、视频/图像数据集上实现1.38-1.8倍解码速度提升,且保持与原解码器相当或更优的重建质量。
摘要:
固定窗口的视觉Transformer(ViT)解码器在部署分辨率下以重叠分块方式运行:重叠带中的每个token会被多个完整解码器实例处理。在24亿参数的MiniMax-H3视频解码器中,约一半的每token计算是重复的。移除分块不可行,因为注意力、全局token和坐标与分块绑定。TileShare保留每个释放分块的注意力,且每个token仅计算一次其他操作。释放的计算仅在一类步骤中变化:重叠token的每分块结果会用释放权重混合为一个共享状态。干预实验显示,当注意力读取共享状态时,这种混合会导致质量下降,主要出现在前几层,因此TileShare在这些层保留分块。无需训练的情况下,在两种GPU类型上,每分块保留6层的解码速度比批处理且编译的分块快1.38-1.51倍(使用FP8时最高达1.96倍),在DAVIS视频上的PSNR、LPIPS和DISTS与释放解码器相当。在预先冻结设置的未见过的UVG视频上,其PSNR和DISTS相当,且LPIPS有所提升。TileShare可扩展到另外两个解码器,在未见过的数据上再次得到验证,在MAGI-1上的PSNR和DISTS相当。在2K-4K的ViTok-v2图像自编码器上,其PSNR与重叠分块相当,LPIPS和DISTS有所提升,解码速度快1.5-1.8倍。每模型(解码器无需标签)会测量一次保留在分块中的层数,我们在14个解码器和编码器上报告了该数值。可选地,使用2个GPU小时的自蒸馏可让MiniMax-H3共享所有层且PSNR无损失,同时在网络保持冻结时训练的坐标场可让完全共享的基于CLIP的开放词汇分割在7个基准上与滑动窗口相当。
英文摘要:
Fixed-window Vision Transformer (ViT) decoders run at deployment resolution as overlapping tiles: every token in an overlap band is processed by several full decoder instances. In the 2.4B-parameter MiniMax-H3 video decoder, about half of all per-token computation is duplicated. Removing the tiles fails because attention, global tokens and coordinates are bound to them. TileShare keeps each released tile's attention and computes every other operation once per token. The released computation changes at one kind of step only: an overlap token's per-tile results are blended into one shared state with the released weights. Interventions show that this blend costs quality where attention reads the shared states, mainly in the first few layers, which TileShare therefore keeps per tile. Without training, keeping six layers per tile decodes 1.38-1.51x faster than batched and compiled tiling on two GPU types (up to 1.96x with FP8) and is equivalent to the released decoder in PSNR, LPIPS and DISTS on DAVIS videos. On unseen UVG videos with the setting frozen beforehand, it matches PSNR and DISTS and improves LPIPS. TileShare carries over to two further decoders and is again confirmed on unseen data. It is equivalent in PSNR and DISTS on MAGI-1. On the ViTok-v2 image autoencoder at 2K-4K, it matches overlapping tiling in PSNR, improves LPIPS and DISTS and decodes 1.5-1.8x faster. How many layers stay per tile is measured once per model (for decoders, without labels); we report it for 14 decoders and encoders. Optionally, two GPU-hours of self-distillation let MiniMax-H3 share every layer without a loss in PSNR, and a coordinate field trained while the network stays frozen brings fully shared CLIP-based open-vocabulary segmentation to parity with sliding windows on seven benchmarks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。