[Paper Review] ASSET: Autoregressive Semantic Scene Editing with Transformers at High Resolutions
ASSET introduces a transformer-based architecture with Sparsified Guided Attention (SGA) to enable high-resolution (up to 1024×1024) semantic image editing by efficiently capturing long-range dependencies through a coarse-to-fine attention mechanism. It achieves realistic, diverse, and consistent edits at a fraction of the computational cost of full self-attention, outperforming prior CNN and transformer methods in both quality and efficiency.
We present ASSET, a neural architecture for automatically modifying an input high-resolution image according to a user's edits on its semantic segmentation map. Our architecture is based on a transformer with a novel attention mechanism. Our key idea is to sparsify the transformer's attention matrix at high resolutions, guided by dense attention extracted at lower image resolutions. While previous attention mechanisms are computationally too expensive for handling high-resolution images or are overly constrained within specific image regions hampering long-range interactions, our novel attention mechanism is both computationally efficient and effective. Our sparsified attention mechanism is able to capture long-range interactions and context, leading to synthesizing interesting phenomena in scenes, such as reflections of landscapes onto water or flora consistent with the rest of the landscape, that were not possible to generate reliably with previous convnets and transformer approaches. We present qualitative and quantitative results, along with user studies, demonstrating the effectiveness of our method.
Motivation & Objective
- To address the challenge of modeling long-range dependencies in high-resolution image editing while maintaining computational feasibility.
- To overcome the limitations of local attention mechanisms that restrict context to nearby regions, leading to inconsistent edits.
- To enable diverse, realistic, and consistent image edits at 1024×1024 resolution using an autoregressive transformer-based framework.
- To reduce computational cost in transformers for high-res images by sparsifying attention using guidance from a low-resolution self-attention map.
- To prevent feature leakage from masked regions to unmasked regions in the VQGAN-based image encoder.
Proposed method
- The model uses a modified VQGAN encoder to obtain quantized image and segmentation representations, with masked regions replaced by [MASK] tokens.
- A high-resolution transformer performs autoregressive generation of image tokens conditioned on the masked image and edited segmentation map.
- Sparsified Guided Attention (SGA) computes a sparse attention matrix by using a guiding transformer at 256×256 resolution to rank relevant image regions for each high-res token.
- The guiding transformer computes full self-attention at low resolution, and its attention map is used to select the top-K most relevant locations for high-res attention, enabling efficient long-range modeling.
- The final image is decoded from the generated tokens using a VQGAN decoder, preserving high-fidelity output.
- Partial convolutions and region normalization are applied in the encoder to prevent information leakage from masked areas to unmasked regions.
Experimental results
Research questions
- RQ1Can a transformer-based architecture effectively model long-range dependencies in high-resolution semantic image editing without prohibitive computational cost?
- RQ2Can a sparse attention mechanism guided by low-resolution self-attention achieve better consistency and realism than local or dense attention in high-res editing?
- RQ3How does the proposed Sparsified Guided Attention (SGA) mechanism compare to full self-attention and other sparse attention variants in terms of quality and efficiency at 1024×1024 resolution?
- RQ4To what extent does the model preserve global scene consistency, such as reflections or coherent flora, across distant image regions?
- RQ5Can the model generate diverse, high-quality edits while maintaining computational feasibility at high resolutions?
Key findings
- ASSET achieves high-quality, diverse, and consistent edits at 1024×1024 resolution, enabling realistic phenomena such as water reflections and coherent landscape elements.
- The model reduces computational cost significantly: training with SGA requires only 37GB VRAM on an A100, compared to exceeding 40GB with full attention.
- Inference with SGA is about 20 times faster than full attention at 1024×1024 resolution, while maintaining high output quality.
- The guiding transformer at 256×256 resolution accounts for only 3.4% of total inference time, demonstrating that the high-resolution SGA mechanism is the primary performance accelerator.
- ASSET achieves similar inference speed to TT (a prior method) but produces significantly higher-quality results, as validated by user studies and quantitative metrics.
- The modified VQGAN encoder successfully prevents feature leakage from masked to unmasked regions, as shown in visualizations of latent feature differences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.