AttriCtrl: A Generalizable Framework for Controlling Semantic Attribute Intensity in Diffusion Models

Die Chen, Zhongjie Duan, Zhiwen Li, Cen Chen, Daoyuan Chen, Yaliang Li, Yinda ChenICLR 2026

Introduction

While modern diffusion models (like Stable Diffusion or FLUX) can generate stunning images from text, they are notoriously bad at following "gradable" instructions. If you ask a model to make an image "slightly darker" or "20% more realistic," it often fails. This limitation arises because current text encoders are designed to process discrete words (tokens), not continuous numerical scales.

Existing solutions usually try to align models with a "global" human preference (e.g., making everything look "better"), but they lack the granularity to disentangle specific attributes. You cannot easily turn a "realism" knob without accidentally changing the "detail" or the "lighting."

To address this, researchers introduce AttriCtrl, a lightweight, plug-and-play adapter that brings precise, numeric control to diffusion models. By mapping continuous scalar values (like "0.7 brightness") into model-interpretable token sequences, it allows users to fine-tune aesthetic attributes—such as realism, detail, and safety—without retraining the base generative model.

Visual comparison of AttriCtrl against baseline prompting methods, demonstrating smooth, continuous control over attributes like brightness, detail, realism, and safety.

Methods: Quantification and Encoding

The authors decompose the problem of continuous control into two main stages: Quantification and Encoding.

1. Aesthetic Attribute Quantification

To train the system, the authors first needed a way to "measure" aesthetics in a dataset. They used a hybrid strategy:

  • Concrete Attributes: Brightness is measured via mean pixel intensity in the HSV color space. "Detail" is quantified using the Shannon entropy of grayscale histograms, which captures textural richness.
  • Abstract Attributes: Realism and Safety are measured using CLIP-based similarity. For realism, they compare image embeddings against contrasting prompt pairs (e.g., "real photograph" vs. "cartoon image").
  • Value Mapping: All raw measurements are normalized to a unified $[0, 1]$ scale using rank-based normalization to ensure a uniform distribution for training.
Extracted figure from page 4 of AttriCtrl: A Generalizable Framework for Controlling Semantic Attribute Intensity in Diffusion Models

2. The Value Encoder

This is the core technical innovation of the paper. Instead of feeding a number directly into the model, AttriCtrl uses a dedicated "Value Encoder." It takes a scalar value, passes it through a sinusoidal embedding (similar to how time-steps are handled in diffusion), and then through an MLP to produce a sequence of 32 learnable tokens. These tokens are concatenated with the standard text prompt embeddings, providing the model with a "continuous" signal it can actually interpret.

Key Insights

  • The Bottleneck is the Encoder: The primary breakthrough is identifying that the limitation isn't the diffusion backbone's generative capacity, but the text encoder's inability to represent scalars. By bypassing the text encoder for numerical values, AttriCtrl unlocks fine-grained control.
  • Distributed Representation: Expanding a single scalar into a sequence of 32 tokens is crucial. It allows the model’s self-attention layers to process the intensity value in a relational way across the entire image generation process.
  • Modular Composition: Because each attribute is trained as an independent value encoder, they can be stacked at inference time like a "mixing console." Users can adjust multiple sliders simultaneously with minimal mutual interference.

Datasets and Key Results

The framework was trained primarily on EliGen (155K image-text pairs) and evaluated using GenEval, I2P (for safety), and COCO-10K (to ensure general concept generation doesn't degrade).

  • Superior Accuracy: AttriCtrl achieved significantly lower AvgDiff (the error between the target intensity and the actual intensity in the generated image) compared to baselines like "Add to Prompt" or attention-based interpolation.
  • Safety Powerhouse: In safety tests on the I2P dataset, AttriCtrl achieved a 57.7% removal rate for inappropriate content, outperforming established methods like ESD (53.9%) and SLD (32.6%).
  • Architecture Agnostic: The framework proved highly generalizable, working effectively across different model backbones including Stable Diffusion v1.4, SDXL, SD v3.5, and FLUX.
  • User Preference: In a double-blind user study, participants preferred AttriCtrl's results over 80% of the time, citing smoother transitions and higher visual quality.

Limitations and Future Work

The authors acknowledge a slight "coupling" between certain attributes. For example, increasing "realism" often naturally increases "detail" because the training data for photorealistic images is inherently more detailed than stylized art.

Future work aims to expand this scalar-conditioned control beyond aesthetics to structural attributes like object count, size ratios, and even physical parameters like simulated temperature or motion blur. The ultimate goal is a truly modular, comprehensive "mixing-console" for AI image generation.

Summary updated

BibTeX
@inproceedings{chen2026attrictrl,
  author = {Die Chen and Zhongjie Duan and Zhiwen Li and Cen Chen and Daoyuan Chen and Yaliang Li and Yinda Chen},
  title = {{AttriCtrl: A Generalizable Framework for Controlling Semantic Attribute Intensity in Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=oyDe8cNXt6},
}
Figure