Enhancing Text-Image Alignment in Low-Bit Diffusion Models through Lookup Table-Based Cross-Attention Quantization

Text-to-image diffusion models experience degradation in image quality and text-image alignment under low-bit quantization, particularly with sub-8-bit activation precision. Existing quantization approaches, including Distribution-aware Group Quantization (DGQ), rely on a fixed logarithmic bin spacing that does not adapt to the empirical distribution of cross-attention scores, leading to suboptimal quantization error and poor text-image correspondence. This study addresses this problem by designing, implementing, and evaluating a Lookup Table (LUT)-based cross-attention quantization module that replaces DGQ’s fixed logarithmic quantizer with data-adaptive bin placement derived from Lloyd’s optimal quantization algorithm. The scope encompasses Stable Diffusion v1.4 and SDXL Turbo models evaluated across four bit-width configurations (W8A8, W8A6, W4A8, W4A6) on the MS-COCO 2014 benchmark using 1,000 evaluation captions. The methodology employs a three-phase pipeline: offline attention score profiling, per-layer LUT construction via Lloyd’s algorithm, and inference-time quantization using efficient binary search lookup. Experimental results show that the LUT method achieves performance parity or slightly better than the DGQ baseline, with lower FID at W8A6 on SD v1.4 (52.10 vs 52.83) and at W8A8 on SDXL Turbo (54.85 vs 55.21), higher Inception Score at W8A8 on both architectures (SD v1.4: 23.80 vs 23.63; SDXL Turbo: 26.90 vs 26.34), CLIP alignment within 0.001 of the baselines in all configurations, and only 1.02× latency overhead. These findings confirm that data-adaptive quantization of cross-attention scores yields measurable improvements over fixed-function quantizers, establishing LUT-based quantization as a viable enhancement for resource-constrained deployment of diffusion models.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-30
DOI
https://doi.org/10.21203/rs.3.rs-9588559/v1
Primary Topic
Advanced Neural Network Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Enhancing Text-Image Alignment in Low-Bit Diffusion Models through Lookup Table-Based Cross-Attention Quantization

Prince Clement Addo, Fan Wu, Samuel Kofi Akpatsa, Lin Bin et al.
Research Square
Advanced Neural Network Applications
preprint

Enhancing Text-Image Alignment in Low-Bit Diffusion Models through Lookup Table-Based Cross-Attention Quantization

Prince Clement Addo, Fan Wu, Samuel Kofi Akpatsa, Lin Bin, Maxwell Dorgbefu Jnr, Martin Konadu Boamah
preprint en

Abstract

Text-to-image diffusion models experience degradation in image quality and text-image alignment under low-bit quantization, particularly with sub-8-bit activation precision. Existing quantization approaches, including Distribution-aware Group Quantization (DGQ), rely on a fixed logarithmic bin spacing that does not adapt to the empirical distribution of cross-attention scores, leading to suboptimal quantization error and poor text-image correspondence. This study addresses this problem by designing, implementing, and evaluating a Lookup Table (LUT)-based cross-attention quantization module that replaces DGQ’s fixed logarithmic quantizer with data-adaptive bin placement derived from Lloyd’s optimal quantization algorithm. The scope encompasses Stable Diffusion v1.4 and SDXL Turbo models evaluated across four bit-width configurations (W8A8, W8A6, W4A8, W4A6) on the MS-COCO 2014 benchmark using 1,000 evaluation captions. The methodology employs a three-phase pipeline: offline attention score profiling, per-layer LUT construction via Lloyd’s algorithm, and inference-time quantization using efficient binary search lookup. Experimental results show that the LUT method achieves performance parity or slightly better than the DGQ baseline, with lower FID at W8A6 on SD v1.4 (52.10 vs 52.83) and at W8A8 on SDXL Turbo (54.85 vs 55.21), higher Inception Score at W8A8 on both architectures (SD v1.4: 23.80 vs 23.63; SDXL Turbo: 26.90 vs 26.34), CLIP alignment within 0.001 of the baselines in all configurations, and only 1.02× latency overhead. These findings confirm that data-adaptive quantization of cross-attention scores yields measurable improvements over fixed-function quantizers, establishing LUT-based quantization as a viable enhancement for resource-constrained deployment of diffusion models.

Research Square
Southwest University of Science and Technology (CN), University of Electronic Science and Technology of China (CN), Akenten Appiah-Menka University of Skills Training and Entrepreneurial Development (GH)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon