SAGE: Semantic-Aware Shared Sampling for Efficient Diffusion

Lei Huang (黄雷), Haoran Zhao, Tong Bai, Lei Huang, Xiaoyu LiangarXiv 2025 · DOI

Abstract

Diffusion models have revolutionized high-fidelity image generation but are computationally expensive due to their iterative denoising process. This paper introduces SAGE (Semantic-Aware shared samplinG for Efficient diffusion), a framework designed to reduce sampling costs by sharing the early stages of image generation across semantically similar prompts. By employing a "shared-then-branch" strategy, SAGE achieves a 25.5% reduction in total sampling steps while simultaneously improving image quality (5.0% lower FID) and diversity. A specialized soft-target guided training ensures that the model maintains high fidelity to individual prompts during the branching phase.

Introduction

State-of-the-art diffusion models, such as Stable Diffusion, generate images by iteratively refining random noise over dozens of sequential steps. In standard deployments, every user request is treated as an independent task, requiring a full set of network passes. However, many prompts share significant semantic overlap—for example, requests for different dog breeds in similar environments.

Research into the diffusion process reveals a "coarse-to-fine" progression: early steps establish global structure and layout (low-frequency information), while later steps refine specific textures and details (high-frequency information). SAGE leverages this observation by identifying and merging the redundant early-stage computations for semantically related prompts, significantly improving throughput for high-traffic generation servers.

Methodology

The SAGE framework consists of two primary innovations: a semantic-aware sampling protocol and a tailored training strategy.

Semantic-Aware Shared Sampling

Prompts are first grouped based on the cosine similarity of their CLIP text embeddings. For each group, the generation process begins with a single shared noise map. During the Shared Sampling Phase, the model uses the average of the group's text embeddings to guide the initial denoising steps. At a specific "branch point" ($T^*$), the process enters the Branch Sampling Phase, where the trajectory splits. Each branch then utilizes its specific individual prompt to refine the unique details of the requested image.

Conceptual comparison between (a) Independent sampling and (b) Semantic-aware shared sampling (SAGE).

Soft-Target Guided Training

Naively sharing sampling steps in pre-trained models often leads to a drop in image quality or semantic misalignment. To address this, the authors fine-tuned the model using Low-Rank Adaptation (LoRA) with a specialized loss function ($L_{SAGE}$). This loss aligns the shared prediction with the average of what individual prompts would have predicted independently. This "soft-target alignment" enables the model to learn a coherent intermediate state that can be successfully specialized into distinct, high-quality images during the branching phase.

Experimental Results

The authors evaluated SAGE on a dataset of over 50,000 prompt-image groups derived from MS COCO 2017. The experiments compared SAGE against standard independent sampling and basic fine-tuning methods.

Efficiency and Quality Gains

When sharing 40% of the sampling steps, SAGE achieved a 25.5% reduction in total computational cost. Despite this reduction, the model demonstrated superior performance across key metrics:

  • Fidelity: Improved generation quality with a 5.0% lower FID score.
  • Alignment: Achieved a 5.4% higher CLIP score, indicating better adherence to the specific text prompts.
  • Diversity: Most notably, SAGE showed a 160% increase in diversity (measured by LPIPS) compared to standard shared sampling methods. By starting from a shared semantic "anchor" and then diverging, the resulting images often explored more distinct visual interpretations than those generated from unrelated random noise.
Qualitative comparison of SAGE FT against Standard FT and Pre-trained models across various semantic groups.

Conclusion and Future Work

SAGE demonstrates that semantic redundancy in diffusion tasks can be exploited to gain both efficiency and quality. By intelligently sharing the "coarse" phase of generation, SAGE provides a scalable solution for high-demand image generation environments. Future research directions include developing adaptive branch point selection and extending the SAGE framework to the even more computationally demanding domain of video generation.

Summary updated

BibTeX
@misc{2025sage,
  author = {Lei Huang (黄雷) and Haoran Zhao and Tong Bai and Lei Huang and Xiaoyu Liang},
  title = {{SAGE: Semantic-Aware Shared Sampling for Efficient Diffusion}},
  year = {2025},
  eprint = {2509.15865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.15865},
}
Figure