ContextDiff: Context-aware controllable generation with text-to-image diffusion models

Recent advancements in image generation have explored in-context learning by presenting a query image alongside context examples and text prompts. Despite these efforts, the generated images often exhibit diminished quality and fidelity when text prompts are omitted, highlighting a significant limitation in the models’ ability to fully exploit visual context. To address this, we introduce Context-Aware Controllable Generation (ContextDiff), a pioneering task designed to generate semantically precise and contextually rich images within specified categories. Our approach establishes a context space and develops a mapping network that aligns this space with the powerful Contrastive Language-Image Pre-training (CLIP) framework, thereby providing a concrete representation of abstract context. To ensure semantic diversity and contextual fidelity, we propose three novel loss functions. Extensive experiments and user studies demonstrate that our model significantly outperforms existing models, resulting in marked improvements in image quality and fidelity.

Authors

Institutions

Publication Details

Journal
Journal of Intelligent & Fuzzy Systems
Published
2026-07-25
DOI
https://doi.org/10.1177/18758967261469967
Primary Topic
Generative Adversarial Networks and Image Synthesis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ContextDiff: Context-aware controllable generation with text-to-image diffusion models

Asma Belhadi, Gautam Srivastava, Youcef Djenouri, Ahmed Nabil Belbachir
Journal of Intelligent & Fuzzy Systems
Generative Adversarial Networks and Image Synthesis
article

ContextDiff: Context-aware controllable generation with text-to-image diffusion models

Asma Belhadi, Gautam Srivastava, Youcef Djenouri, Ahmed Nabil Belbachir
article en

Abstract

Recent advancements in image generation have explored in-context learning by presenting a query image alongside context examples and text prompts. Despite these efforts, the generated images often exhibit diminished quality and fidelity when text prompts are omitted, highlighting a significant limitation in the models’ ability to fully exploit visual context. To address this, we introduce Context-Aware Controllable Generation (ContextDiff), a pioneering task designed to generate semantically precise and contextually rich images within specified categories. Our approach establishes a context space and develops a mapping network that aligns this space with the powerful Contrastive Language-Image Pre-training (CLIP) framework, thereby providing a concrete representation of abstract context. To ensure semantic diversity and contextual fidelity, we propose three novel loss functions. Extensive experiments and user studies demonstrate that our model significantly outperforms existing models, resulting in marked improvements in image quality and fidelity.

Journal of Intelligent & Fuzzy Systems
Sogang University (KR), China Medical University (TW), University of Oslo (NO), University of South-Eastern Norway (NO), NORCE Research AS (NO), Brandon University (CA), Chitkara University (IN)
Openalex Percentile: Top 8%
Generative Adversarial Networks and Image Synthesis
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.