NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

T$^3$-S2S: Training-free Triplet Tuning for Sketch to Scene Generation

Zhenhong Sun, Yifu Wang, Yonhon Ng, Yunfei Duan, Daoyi Dong, Hongdong Li, Pan Ji · Submission to ICLR 2025 · Withdrawn

TL;DR

Generating complex, multi-object scenes from simple user sketches often leads to missing small details, attribute bleeding, or neglected objects. $T^3$-S2S introduces a training-free tuning strategy for diffusion models (specifically SDXL + ControlNet) that repairs cross-attention imbalances across tokens, feature channels, and spatial contours, ensuring that every sketched element actually appears in the final image.

What Problem Does This Paper Address?

Tools like ControlNet have made sketch-to-image synthesis accessible, but they degrade when pushed beyond simple, single-subject generation. In complex scenes (such as game environments or concept art featuring rivers, multiple bridges, distant houses, and diverse terrain), off-the-shelf models consistently drop smaller or less common instances.

Existing solutions usually require training new layout adapters or rely heavily on bounding boxes, which discard fine contour shapes. Meanwhile, existing training-free attention-guidance methods focus strictly on attention map manipulation, ignoring how attention maps interact with text embedding magnitudes and value matrices.

Methods

$T^3$-S2S operates as a training-free plugin across the cross-attention pipeline of a frozen SDXL and ControlNet setup. It diagnoses two hidden failure modes—prompt energy imbalance and value matrix homogeneity—and fixes them via a three-part ("triplet") approach:

[Global Prompt] 
       │
       ▼
 [Prompt Balance] ──────► Rescales keyword token energy to match <end of text>
       │
       ▼
[Cross-Attention] ─────► [Dense Tuning] Applied to ControlNet branch to sharpen contours
       │
       ▼
 [Characteristics] ────► Identifies Top-K tokens per channel in V,
   [Prominence]          masking & boosting corresponding features in F
  1. Prompt Balance (PB): In full sentences, rare or small-instance keywords have lower embedding norms ($L_2$ energy) than common words or the special <end of text> token. PB extracts instance keywords using NLP (spaCy), replaces their token embeddings with independent single-word embeddings, and scales their norms up to match the maximum energy ceiling set by the <end of text> token.
  2. Characteristics Prominence (CP): To prevent instances from washing out due to value matrix homogeneity, CP inspects the cross-attention value matrix $V_m$. For each channel, it identifies the Top-$K$ (set to $K=2$) token indices. If a top token belongs to an instance keyword, its corresponding sketch region is used as a spatial mask to scale up that channel's feature map $F_m$ by a factor $\beta$ ($\beta=1$).
  3. Dense Tuning (DT): Adapted from Dense Diffusion, DT is injected into the ControlNet down- and mid-blocks ("down blocks 2" and "mid blocks 0") to sharpen spatial attention contours for instance regions.

Datasets

  • Training Data: None (the framework is completely training-free).
  • Evaluation Benchmark: Because standard benchmarks lack sketch-specific layouts, the authors designed a benchmark of 20 complex sketch scenes. Each scene contains more than four sub-prompts across diverse environments (tundra, volcanic terrain, medieval villages, urban parks) with overlapping and small instances (bridges, cabins, rivers, castles).

Key Insights and Ideas

  • Embedding Dilution in Sentences: Embedding an entire descriptive prompt dampens the energy of individual object tokens. Encoding keywords in isolation restores their natural representation strength, making them competitive against dominant background tokens.
  • Feature Boosting Beats Direct Value Manipulation: While boosting values directly inside the $V$ matrix forces small objects to generate, it also injects heavy visual noise and clutter into the scene. Instead, using the Top-$K$ values in $V$ merely as a selector to mask and scale the resulting feature map $F$ gives clean object prominence without artifact bloat.
  • Sketches as Semantic Separators: The colors in the input sketches are arbitrary; experiments show that feeding identical grayscale sketches produces virtually the same scene layout and quality. The sketch functions purely as a geometric coordinate mask rather than a color prompt.

Key Results

  • CLIP-Score & Quality Improvements: Evaluated across global scenes, cropped instance regions, and backgrounds:
  • Global CLIP-Score: Increased from 0.3440 (vanilla ControlNet) to 0.3497 ($T^3$-S2S).
  • Instance CLIP-Score: Jumped from 0.2423 to 0.2563, confirming that small/rare objects match text descriptions much better.
  • User Study (1–5 scale): ControlNet scored 2.34, while the full $T^3$-S2S achieved 3.88 across 23 evaluators.
  • Generalizability: The authors demonstrated that individual modules transfer well: Prompt Balance improved spatial separation in Attend-and-Excite, and the overall framework adapted smoothly to T2I-Adapter.
  • Downstream 3D Generation: 2D isometric scenes generated with $T^3$-S2S were plugged directly into depth estimators (Depth-Anything-V2) and Poisson mesh reconstruction to yield high-fidelity, coherent 3D game terrains.

Limitations and Future Work

  • Text Encoder Bottlenecks: Fine textures and detailed descriptive adjectives can still be overlooked because CLIP struggles to comprehend highly complex multi-clause descriptions.
  • Extreme Canvas Scales: The method struggles with ultra-large resolutions (>4096 × 4096 pixels) typical of expansive open-world game maps where instances overlap extensively.
  • Unusual Attribute Binding: Counter-intuitive combinations (e.g., generating a "red cat") still fail occasionally due to strong inductive biases within the underlying SDXL base model.

Summary updated

BibTeX
@article{sun2025t,
  author = {Zhenhong Sun and Yifu Wang and Yonhon Ng and Yunfei Duan and Daoyi Dong and Hongdong Li and Pan Ji},
  title = {{T$^3$-S2S: Training-free Triplet Tuning for Sketch to Scene Generation}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=lyn2BgKQ8F},
}
Figure