SSD: Spatial-Semantic Head Decoupling for Efficient Autoregressive Image Generation
Siyong Jian, Huan Wang
TL;DR
SSD tackles the memory bottleneck in native autoregressive image generation by exploiting a spatial-semantic head dichotomy in visual attention and applying asymmetric KV-cache compression. The method distinguishes spatial-locality heads from semantic-sink heads and uses a sliding window for the former and a top-attended-token retention for the latter, anchored by semantic margin columns. Empirical results show a fivefold memory reduction and a sixfold throughput improvement with negligible quality loss on GenEval and DPG-Bench benchmarks, enabling efficient high-resolution generation on resource-constrained hardware. This work broadens the practicality of unified decoder-only autoregressive architectures for vision by delivering substantial efficiency gains without sacrificing fidelity.
Abstract
Autoregressive image generation models like Janus-Pro produce high-quality images, but at the significant cost of high memory and ever-growing computational demands due to the large number of visual tokens. While KV cache compression has been extensively studied in language modeling, it still remains largely unexplored for the image generation domain. In this work, we begin by identifying a distinct and prominent attention phenomenon, which we term spatial locality and emergent semantic sink. To leverage this key insight, we introduce a novel KV cache compression framework. Specifically, we compress the KV cache for all visual tokens by adaptively decoupling attention heads into two separate types: for spatial-locality heads, our method maintains a short recent token window; for semantic-sink heads, it strategically preserves a compact set of highly-attended tokens. Our extensive experiments demonstrate that the proposed method achieves a 5$\times$ reduction in memory usage and a notable 6.6$\times$ speedup in overall throughput with only minimal visual quality loss, thereby enabling highly efficient native autoregressive image generation on resource-constrained hardware.
