Locality-aware Parallel Decoding for Efficient Autoregressive Image Generation
Zhuoyang Zhang, Luke Huang (Undergraduate · MIT), Chengyue Wu, Shang Yang, Kelly Peng, Yao Lu, Song Han (Professor · MIT)
International Conference on Learning Representations 2026 · Oral
Overview
This talk introduces Locality-aware Parallel Decoding (LPD), a novel approach designed to significantly accelerate autoregressive image generation while maintaining or even improving output quality and ensuring compatibility with modern multimodal vision encoders. Presented by Luke Huang from Professor Song Han's lab at MIT, this work tackles a critical bottleneck in the burgeoning field of unified multimodal AI systems, where autoregressive models like GPT-4o and Llama-3-V are becoming the dominant paradigm for combining vision and language.

Key moments
- 0:00 Introduction to autoregressive image generation challenges
- 2:20 Introducing Locality-aware Parallel Decoding (LPD) methods
- 3:40 Flexible Parallelized Autoregressive Modeling (FPAM) architecture
- 5:45 FPAM training and fused inference with attention masks
- 7:00 Locality-aware Generation Ordering (LAGO) principles
- 9:20 Achieving significant speedup and quality improvements
- 11:40 Q&A: Understanding failure modes of parallel decoding
- 12:50 Q&A: Comparing LPD strategies with diffusion models
Locality-aware Parallel Decoding for Efficient Autoregressive Image Generation
Speakers: Zhuoyang Zhang; Luke Huang (Undergraduate, MIT); Chengyue Wu; Shang Yang; Kelly Peng; Yao Lu; Song Han (Professor, MIT)
Conference: ICLR 2026
YouTube: https://slideslive.com/39062192
Overview
This talk introduces Locality-aware Parallel Decoding (LPD), a novel approach designed to significantly accelerate autoregressive image generation while maintaining or even improving output quality and ensuring compatibility with modern multimodal vision encoders. Presented by Luke Huang from Professor Song Han's lab at MIT, this work tackles a critical bottleneck in the burgeoning field of unified multimodal AI systems, where autoregressive models like GPT-4o and Llama-3-V are becoming the dominant paradigm for combining vision and language.
The core challenge LPD addresses is the inherent slowness of traditional autoregressive image generation, which processes tokens sequentially, leading to high latency for high-resolution images. LPD achieves its efficiency through two primary innovations: Flexible Parallelized Autoregressive Modeling (FPAM), a new architecture that enables parallel prediction of any set of tokens in any order while preserving KV caching, and a Locality-aware Generation Ordering strategy that optimizes the token generation sequence to maintain image coherence and quality.
This research is particularly timely given the widespread adoption of autoregressive models in multimodal contexts. By offering substantial speedups—up to 61x faster inference compared to conventional methods—LPD promises to unlock new possibilities for interactive and high-throughput image generation applications, from creative editing to complex visual reasoning, without compromising on the quality or the architectural flexibility that makes autoregressive models so powerful.
Background
▶ Watch: Introduction to autoregressive image generation challenges (0:00)
The landscape of artificial intelligence has seen a dramatic shift towards autoregressive models, particularly in natural language processing (NLP), where large language models (LLMs) now scale to trillions of parameters and tokens. This success has naturally extended to other modalities, with autoregressive approaches gaining significant traction in image generation. The release of models like GPT-4o, which demonstrated impressive image generation capabilities, marked a turning point, proving that autoregressive methods could rival or even surpass diffusion models in certain aspects of image synthesis. Today, unified multimodal systems such as Chameleon, VLO-U, Emu3, Janus-Pro, and Llama-3-V universally adopt a unified autoregressive approach, leveraging its inherent compatibility with the next-token prediction paradigm that underpins language modeling.
However, applying autoregressive principles to images presents unique challenges, particularly concerning efficiency. Two main paradigms have emerged, each with its own trade-offs. The first is a flat token representation, directly analogous to language modeling. Images are tokenized into a sequence, typically in raster order (left-to-right, top-to-bottom), and the model predicts the next image token. While straightforward and compatible with existing transformer architectures, this approach is severely memory-bound. The latency of generating a single image scales proportionally with the number of tokens, which can be exceptionally high for high-resolution outputs, making it impractical for real-time or high-throughput applications.
The second paradigm, exemplified by works like VAR (Vector Autoregressive), attempts to sidestep this latency by predicting all tokens of an entire scale or resolution in parallel. While faster, this approach often comes with a significant drawback: it is generally incompatible with widely used vision encoders such as CLIP and DINO, which are crucial for multimodal understanding and conditioning. This incompatibility limits their utility in the broader ecosystem of unified multimodal models.
Consequently, a critical gap exists: how can one develop an autoregressive image generation system that is both fast and compatible with the powerful vision encoders prevalent in multimodal AI? The problem lies in breaking the sequential dependency of traditional autoregressive decoding while preserving the rich contextual understanding that transformers provide, especially when dealing with the strong spatial dependencies inherent in visual data. Addressing this dual challenge is precisely where Locality-aware Parallel Decoding makes its significant contribution, aiming to provide a solution that offers the best of both worlds—speed and multimodal compatibility—without sacrificing generation quality.
Key Findings
▶ Watch: Flexible Parallelized Autoregressive Modeling (FPAM) architecture (3:40)
The research introduces Locality-aware Parallel Decoding (LPD) as a comprehensive solution to the efficiency and compatibility challenges in autoregressive image generation. LPD's core strength lies in its ability to enable parallel token prediction without compromising the strong conditioning and coherence typically associated with sequential autoregressive models. The key findings and contributions are encapsulated in its two main methodological pillars:
- Flexible Parallelized Autoregressive Modeling (FPAM): This novel architectural paradigm fundamentally redefines how autoregressive models handle token prediction. Unlike traditional methods constrained by a fixed input-output structure (one input token, one output token), FPAM allows for the parallel prediction of any arbitrary set of tokens in any order. This flexibility is achieved by decoupling the roles of context encoding and token generation. Input tokens continue to serve as context, but a new concept of position query tokens is introduced to delegate the generation role. These are shared learnable embeddings added to the positional embeddings of target positions, allowing the model to query and predict multiple future tokens simultaneously. Crucially, FPAM maintains the ability to leverage KV caching, a vital optimization for transformer inference, ensuring that parallelization doesn't incur excessive recomputation.
- Locality-aware Generation Ordering: Recognizing that naive parallel sampling of adjacent tokens can lead to incoherent image features due to their strong dependencies, LPD introduces a sophisticated scheduling strategy. This ordering is informed by an analysis of attention maps in existing autoregressive models, which reveals strong spatial locality—tokens heavily depend on their immediate neighbors. The Locality-aware Generation Ordering is guided by two principles:
- High proximity to previously generated tokens: This ensures strong conditioning, leveraging the autoregressive model's ability to build context.
- Low proximity among concurrently generated tokens: This minimizes the risk of generating inconsistent features by ensuring that tokens sampled in parallel are sufficiently distant from each other, thus reducing their direct sampling dependencies.
The synergy of FPAM and Locality-aware Generation Ordering yields impressive performance gains. Experimental results demonstrate significant inference speedups:
- On ImageNet at 256x256 resolution, LPD achieves 13x faster inference with equivalent generation quality, or 11x faster inference with demonstrably better quality.
- At a higher 512x512 resolution, the speedup further increases to 21x faster inference while maintaining quality.
- When compared against previous parallel autoregressive models, LPD is 34x faster with better quality and 42x faster with the same quality.
- For text-to-image generation benchmarks like GenEval, LPD delivers an astounding 61x faster inference compared to regular raster order next-token prediction.
These findings highlight LPD's ability to drastically reduce inference latency for autoregressive image generation, making it a highly practical and scalable solution for future multimodal AI systems without sacrificing the critical aspects of image quality and architectural compatibility.
Technical Deep Dive
▶ Watch: Locality-aware Generation Ordering (LAGO) principles (7:00)
The technical innovation of Locality-aware Parallel Decoding (LPD) lies in its two meticulously designed components: Flexible Parallelized Autoregressive Modeling (FPAM) and Locality-aware Generation Ordering.
Flexible Parallelized Autoregressive Modeling (FPAM)
Traditional autoregressive generation operates in a strictly sequential manner. For each step, a single input token is passed through the model, and logits for the next token are produced. This single token then becomes part of the context for predicting the subsequent token. This process implies two roles for each token: it serves as context for future tokens through attention, and it drives generation by being used to sample the next output. This fixed input-output structure inherently limits parallelization.
FPAM breaks this limitation by decoupling these roles. Input tokens continue to serve as context, being encoded and stored in the KV cache. However, the role of generation is delegated to position query tokens. These are shared, learnable embeddings that are added to the positional embedding of the target position(s) the model is intended to predict. For instance, to predict token P4, a position query token for P4 is introduced. After a forward pass, the model outputs logits for P4. The key insight is that multiple position query tokens can be introduced simultaneously, allowing the model to predict an arbitrary set of tokens (e.g., P3 and P5) in parallel. This enables a flexible input-output structure with arbitrary order and parallelization.
FPAM Training
FPAM training adopts a teacher forcing strategy. During training, ground truth tokens are interleaved with the position query tokens that the model is learning to transform into these ground truth tokens. The attention mechanism during training is carefully designed to enable both contextual understanding and parallel coherence:
- Context Attention: Each position query token, similar to standard autoregressive models, must attend to all previously generated ground truth tokens. This ensures the model learns to condition its predictions on the established context.
- Parallel Attention: A crucial design aspect is that position query tokens being predicted in parallel should also be able to attend to each other. This mutual attention allows them to share information, promoting coherence among concurrently sampled tokens. Without this, independently sampled parallel tokens are more prone to generating inconsistent features.
These two attention mechanisms are encoded within a single, specialized attention mask. The mask delineates query attention between parallel position query tokens and context attention between ground truth tokens and future query tokens, ensuring proper information flow during training.
FPAM Inference
Naively, FPAM inference might involve two separate forward passes: one to encode the newly generated tokens into the KV cache (encoding step) and another to decode future tokens using position query tokens (decoding step). This would effectively double the inference time, making it 2x slower and negating much of the parallelization benefit, especially since it's memory-bound.
LPD overcomes this by introducing a fused forward pass. A specialized attention mask combines both the encoding and decoding attention into a single inference step. The encoding attention processes the previously generated tokens to update the KV cache, while the decoding attention simultaneously processes the position query tokens to predict the next set of tokens. This fusion is critical for achieving the high inference speeds observed.
Locality-aware Generation Ordering
Even with FPAM's architectural flexibility, the order and grouping of parallel token generation are paramount for maintaining image quality. LPD's Locality-aware Generation Ordering is predicated on a key observation from analyzing attention maps of existing autoregressive models: attention is strongly local. Tokens predominantly attend to their immediate neighbors (main diagonal, lower diagonals for rows above), indicating strong spatial dependencies.
This observation highlights the shortcomings of previous parallel generation orders:
- Raster Order (Parallel): While simple, generating adjacent tokens (e.g., left-to-right in a row) in parallel is problematic. These tokens are highly dependent, and independent sampling leads to incoherent or inconsistent features.
- Random Order: Designed to avoid the adjacent-token problem by spreading out concurrently generated tokens. However, this often means parallel tokens are far from previously generated tokens. This weakens the conditioning, as autoregressive models derive strength from strong local context, leading to worse overall generation quality.
LPD's generation ordering strategy synthesizes these insights into two guiding principles:
- High Proximity to Previously Generated Tokens: To ensure strong conditioning and leverage the full power of autoregressive context, tokens chosen for generation should be close to tokens that have already been definitively generated.
- Low Proximity Among Concurrently Generated Tokens: To mitigate the risk of incoherent features, tokens that are sampled in parallel should be spatially separated as much as possible, minimizing their direct sampling dependencies.
The talk mentions a cosine schedule for parallelization, meaning fewer tokens are decoded initially, and more tokens are decoded towards the end of the generation process. This schedule likely works in conjunction with the locality-aware ordering to gradually increase parallelization as more global context becomes available, while still carefully managing local dependencies. The precise algorithms for determining the "locality-aware" order (e.g., how to select non-adjacent tokens that are close to generated ones) are key to LPD's success, though the specific algorithmic details of this scheduling are not fully elaborated in the transcript beyond these two principles.
In essence, LPD's technical brilliance lies in its dual approach: an architectural modification (FPAM) to enable parallelization, combined with a sophisticated scheduling strategy (Locality-aware Generation Ordering) that respects the inherent spatial dependencies of images, ensuring both speed and quality.
Experimental Setup & Results
▶ Watch: Achieving significant speedup and quality improvements (9:20)
To validate the effectiveness of Locality-aware Parallel Decoding (LPD), a series of rigorous experiments were conducted, focusing on both efficiency and generation quality across various benchmarks. The core comparative baseline for evaluation was a standard raster order next-token prediction model, which was equipped with the same architectural components as LPD (excluding the parallel decoding mechanisms) and trained for the same number of epochs, ensuring a fair comparison.
Datasets and Resolutions:
Experiments were primarily conducted on:
- ImageNet: A large-scale image dataset, used for class-conditional image generation. Evaluations were performed at two resolutions: 256x256 and 512x512.
- GenEval: A text-to-image benchmark, used to assess performance in text-conditioned generation tasks.
Metrics:
The primary metrics for evaluation were:
- Inference Speed: Measured as "X times faster" compared to baselines.
- Generation Quality: Assessed qualitatively (visual coherence, fidelity) and implicitly quantitatively (e.g., maintaining "same quality" or achieving "better quality" compared to baselines, suggesting FID or similar metrics, though not explicitly named in the transcript).
Headline Results:
The results consistently demonstrated LPD's superior efficiency without compromising generation quality:
- ImageNet (256x256 resolution):
- LPD achieved 13x faster inference while maintaining the same generation quality as the baseline raster order model.
- Alternatively, LPD could achieve 11x faster inference with better generation quality, indicating that the improved sampling strategy can sometimes lead to superior outputs.
- ImageNet (512x512 resolution):
- For higher-resolution image generation, LPD's benefits were even more pronounced, demonstrating 21x faster inference at the same quality level. This highlights the scalability of LPD's approach to more demanding tasks.
- Comparison to Previous Parallel Autoregressive Models:
- Beyond the raster order baseline, LPD was also benchmarked against other existing parallel autoregressive methods. Here, it showed remarkable improvements, being 34x faster with better quality and 42x faster with the same quality. This establishes LPD as a significant advancement over prior attempts at parallelizing autoregressive image generation.
- GenEval (Text-to-Image Benchmark):
- In the domain of text-to-image synthesis, LPD delivered an impressive 61x faster inference compared to regular raster order next-token prediction. This substantial speedup is critical for interactive text-to-image applications.
Visualizations and Demonstrations:
The talk included various visualizations to illustrate LPD's capabilities, such as:
- Class-conditional image generation.
- Image editing tasks like inpainting and outpainting.
- Text-to-image generation examples.
A live demo illustrated the practical impact, showing that LPD could generate over 60 images in the time it took a model like LlamaGen-XL (a representative normal autoregressive model) to generate just two, underscoring its real-world efficiency gains.
Discussion on Failure Modes and Trade-offs (from Q&A):
During the Q&A, the speaker addressed potential failure modes of parallel inference. The primary challenge identified is the generation of incoherent or distorted features because tokens are still sampled independently. This is precisely what LPD's Locality-aware Generation Ordering is designed to mitigate by carefully selecting which tokens are sampled in parallel.
A comparison was also drawn with diffusion models (e.g., MAR). While diffusion models can technically perform autoregressive-like generation, they are often compute-bound and exhibit lower throughput at high batch sizes. The speaker noted that models like MAR are typically slower than pure autoregressive approaches, mainly due to the overhead of the diffusion head, with the autoregressive component itself contributing less to the latency. This reinforces the value of LPD's optimization for pure autoregressive frameworks.
Overall, the experimental results unequivocally demonstrate that LPD provides state-of-the-art efficiency for autoregressive image generation, making it a highly practical and impactful contribution to the field.
Practical Implications
▶ Watch: Q&A: Comparing LPD strategies with diffusion models (12:50)
The development of Locality-aware Parallel Decoding (LPD) carries profound practical implications for a wide spectrum of AI practitioners, infrastructure teams, model builders, and deployers. Its ability to drastically reduce the inference latency of autoregressive image generation while maintaining or enhancing quality addresses a critical bottleneck that has hindered the widespread adoption of these powerful models in real-time and high-throughput scenarios.
For Practitioners and Infra Teams:
LPD offers a pathway to deploy autoregressive image generation models with significantly lower operational costs and improved user experience. The reported speedups (13x to 61x) mean that applications requiring rapid image synthesis—such as interactive creative tools, real-time content generation for gaming or virtual environments, or even rapid prototyping in design workflows—become far more feasible. Infrastructure teams can achieve higher throughput with existing hardware, potentially delaying costly hardware upgrades or enabling the processing of larger volumes of requests. This efficiency translates directly into lower inference costs per image, making advanced AI capabilities more accessible and economically viable.
For Model Builders and Deployers:
Model builders are provided with a robust architectural component (Flexible Parallelized Autoregressive Modeling - FPAM) and a principled strategy (Locality-aware Generation Ordering) for designing next-generation autoregressive image models. This allows them to leverage the inherent strengths of autoregressive transformers—like their compatibility with multimodal encoders (CLIP, DINO) and their strong conditioning capabilities—without the traditional latency penalty. Deployers can integrate these faster models into existing multimodal systems (e.g., those built on Llama-3-V or Chameleon) without requiring a fundamental architectural shift, ensuring a smoother transition and compatibility with established workflows. The ability to achieve better quality at faster speeds also gives model builders more flexibility in balancing performance and fidelity.
Tradeoffs and Limitations:
While LPD offers substantial advantages, it's important to consider potential tradeoffs:
- Increased Architectural Complexity: Implementing FPAM requires careful management of position query tokens and specialized attention masks during both training and inference. This adds a layer of complexity compared to a purely sequential autoregressive setup.
- Dependency on Spatial Locality: The effectiveness of Locality-aware Generation Ordering is heavily reliant on the assumption of strong spatial locality in image attention. While this holds true for many natural images, its performance on highly abstract or non-local visual data might warrant further investigation.
- Independent Sampling: Despite the locality-aware ordering and parallel attention, the fundamental challenge of independent sampling for concurrently generated tokens remains. As noted by the speaker, this can still lead to "distorted features" if not perfectly managed. LPD mitigates this, but it's an inherent limitation of parallel sampling in autoregressive models that don't perform joint probability distribution sampling over multiple tokens (which is computationally prohibitive).
- Hardware and Framework Specifics: The talk doesn't delve into specific hardware (e.g., GPU types, memory bandwidth requirements) or framework optimizations beyond the fused forward pass. While the principles are general, optimal implementation would likely require careful engineering specific to the deployment environment.
In summary, LPD represents a significant step forward in making autoregressive image generation practical and scalable. It empowers developers to build more responsive and efficient multimodal AI applications, bridging the gap between cutting-edge research and real-world deployment challenges in the age of unified AI systems.
Key Takeaways
- Autoregressive image generation, while powerful and compatible with multimodal models, traditionally suffers from high latency due to sequential token prediction.
- Locality-aware Parallel Decoding (LPD) addresses this by enabling highly efficient parallel image token generation without sacrificing quality or multimodal compatibility.
- LPD introduces Flexible Parallelized Autoregressive Modeling (FPAM), a novel architecture that uses position query tokens to allow parallel prediction of any token set in any order while maintaining KV caching.
- Crucially, FPAM utilizes a fused forward pass during inference, combining encoding and decoding attention into a single step to achieve significant speedups.
- The Locality-aware Generation Ordering strategy is vital for maintaining image coherence, ensuring high proximity to previously generated tokens for strong conditioning and low proximity among concurrently generated tokens to prevent inconsistent features.
- LPD delivers substantial inference speedups: 13-21x faster on ImageNet (256x/512x) with same or better quality, 34-42x faster than previous parallel AR models, and an impressive 61x faster on text-to-image benchmarks like GenEval.
- This work makes autoregressive image generation practical for real-time, high-throughput applications, bridging the gap between research and deployment in unified multimodal AI systems.
About the Speaker(s)
The primary presenter for this talk was Luke Huang, an undergraduate student at MIT. He is actively involved in research within Professor Song Han's lab at MIT, where this work was conducted. His co-first author, Zhuoyang Zhang, was unfortunately unable to attend the conference due to visa issues. The research was conducted under the guidance of Professor Song Han, a distinguished faculty member at MIT, known for his work in efficient deep learning and AI systems. The team also included Chengyue Wu, Shang Yang, Kelly Peng, and Yao Lu.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026