TL;DR
TileShare is a novel method that accelerates Vision Transformer (ViT) decoders by up to 1.5x without any loss in visual quality. It achieves this by identifying and eliminating redundant computations in overlapping tiles—a common practice for high-resolution generation—all without requiring any retraining.
What Problem Does This Paper Address?
When you use a high-end AI to generate a high-resolution image or video, the model often doesn't process the whole frame at once. Instead, it breaks the image into "tiles." To prevent ugly seams where these tiles meet, the tiles overlap, and their outputs are blended together.
The catch? This creates a massive amount of redundant work. Tokens in the overlapping regions are processed multiple times by different decoder instances. In some state-of-the-art models like the 2.4B-parameter MiniMax-H3, nearly half of all computation is just repeating the same math on the same pixels. Simply removing the overlap or using bigger tiles isn't an option because the model’s internal "compass" (coordinates and global tokens) is calibrated specifically to those smaller tile windows.
Methods
The authors introduce TileShare, a clever way to "share" the heavy lifting across tiles while keeping the model's spatial context intact.
- Sharing the Heavy Lifting: In a standard Transformer block, the MLP (Multi-Layer Perceptron) and linear projections take up the vast majority of the processing time. TileShare computes these operations only once per unique token, regardless of how many tiles that token belongs to.
- Keeping Tile-Specific Attention: The "secret sauce" of tiled decoding is the attention mechanism, which uses tile-specific global tokens and coordinates. TileShare keeps this part per-tile. It gathers the shared token states into tile-specific batches, runs the original attention, and then blends the results back together.
- The "k" Factor (TileShare-k): The researchers discovered that the first few layers of a model are the most sensitive to this sharing. They propose keeping the first $k$ layers fully independent (per-tile) and sharing the rest. This "TileShare-k" approach allows for a perfect balance between speed and quality.
Datasets
The team put TileShare through a rigorous battery of tests:
- Video Decoding: Evaluated on DAVIS-2017 and the UVG dataset (4K/1080p sequences), as well as generated videos from the FastH3 pipeline.
- Image Autoencoding: Tested using the DIV8K high-resolution dataset and a new benchmark of 40 high-quality images from Wikimedia Commons.
- Open-Vocabulary Segmentation: Used ADE20K, PASCAL VOC, and COCO-Stuff to show that TileShare also works for encoders like CLIP.
Key Insights and Ideas
- MLPs are the Bottleneck: While attention is the "brain" of the Transformer, the MLP is the "muscle." In many models, attention only accounts for ~10% of the time. By sharing the MLP, TileShare targets the 90% of computation that is actually redundant.
- Early Layers are Context-Hungry: The "aha moment" was realizing that the approximation error from sharing states is concentrated in the first few layers. In these early stages, tokens are still "learning" about their neighbors. By the time they reach the middle or end of the network, they are robust enough to handle shared, blended states.
- Training-Free but Training-Ready: While TileShare works out of the box, the authors showed that just two hours of "self-distillation" (letting the model teach itself how to share) can allow even the most sensitive models to share every single layer without any quality drop.
Key Results
- Significant Speedups: TileShare-6 achieved a 1.38–1.51x speedup on the MiniMax-H3 video decoder. For image models like ViTok-v2, the speedup reached 1.5–1.8x.
- Zero Quality Loss: Across PSNR, LPIPS, and DISTS metrics, TileShare remained equivalent to the original, slow, redundant tiled decoder. In some cases, it even slightly improved perceptual quality (LPIPS).
- Hardware Efficiency: The method doesn't require custom CUDA kernels; it works with standard
torch.compileand scales well on both RTX 6000 and H100 GPUs. It even composes with other optimizations like FP8 precision to reach nearly 2x total speedup.
Limitations and Future Work
- Model-Specific Tuning: The number of unshared layers ($k$) needs to be measured once per model. While the authors provide a tool to do this without needing ground-truth labels, it's still an extra step for deployment.
- Memory Usage: For video models, keeping all token states in memory at once can increase peak GPU memory usage (e.g., an extra 5-9 GB for some configurations).
- Future Directions: The authors suggest that future ViTs could be trained with "sharing-awareness" from day one, potentially leading to even more efficient high-resolution models that don't need tiling tricks at all.
Summary updated