Sparse autoencoders (SAEs) crack open SDXL Turbo's black box by revealing how different parts control image generation
Discover how SDXL Turbo's neural blocks collaborate to turn text into stunning images
π https://arxiv.org/abs/2410.22366
π€ Original Problem:
Text-to-image models like SDXL Turbo are black boxes - we don't understand how they work internally. While Sparse Autoencoders (SAEs) help interpret LLMs by breaking down their internal representations, similar analysis tools don't exist for image generation models.
-----
π Solution in this Paper:
β Applied SAEs to analyze 4 key transformer blocks in SDXL Turbo's denoising U-net
β Created SDLens library to capture and manipulate intermediate results during image generation
β Trained SAEs on 1.5M LAION-COCO prompts to decompose feature maps into interpretable components
β Developed visualization techniques: spatial activation heatmaps, feature modulation, empty context activation
β Built automated feature annotation pipeline using GPT-4V
-----
π‘ Key Insights:
β Different transformer blocks have specialized roles:
- down.2.1: Controls overall image composition
- up.0.0: Adds fine-grained local details
- up.0.1: Manages color, illumination and style
- mid.0: Handles spatial relationships
β Features learned are highly interpretable and causally influence generation
β Features show high specificity (0.71 for down.2.1) compared to random baseline (0.50)
β up.0.1 features have strongest texture effects (0.20 score vs 0.18 baseline)
-----
π Results:
β Feature specificity scores significantly higher than random baseline across all blocks
β Causality analysis shows strong feature effects (0.19 CLIP similarity vs 0.21 ground truth)
β Local intervention tests confirm specialized roles of different blocks
β Color sensitivity analysis validates style/color specialization of up.0.1 block










