Skip to content

Condition Injection: The Roles of Attention, DiT, and Q-Former | CMU 10-423 Topic Guide

Sep 30, 20261 min
TL;DRCross-attention reads another representation, DiT is a diffusion-backbone choice, and Q-Former uses learned queries to extract or bridge information. They can coexist rather than being three competing products. The Lecture 14 lesson handles Prompt-to-Prompt and classifier-free guidance in detail.

Look up & save

Loading dictionary…

🌏 中文版

Video status: recordings require login or course authorization. Recording source

Cross-attention reads another representation, DiT is a diffusion-backbone choice, and Q-Former uses learned queries to extract or bridge information. They can coexist rather than being three competing products. The Lecture 14 lesson handles Prompt-to-Prompt and classifier-free guidance in detail.

Choose a lesson

The course map lists the core path. This page is a topic guide, not an additional lecture. Choose the question you need to answer and follow its lesson.

A worked comparison

Teaching shapes: four image-latent positions, three text tokens, hidden width two. With image Q and text K/V, QKᵀ has shape 4×3; multiplying normalized weights by V of shape 3×2 produces 4×2. A Q-Former with two learned queries reading four image features instead uses a 2×4 attention map and produces 2×2. Query count determines output positions. BLIP-2 image-to-LLM flow and HW4 text-to-DiT flow are separate designs, not one concatenated pipeline.

Check your understanding

If text length grows from three to five, do output positions grow from four to five?

Answer and criterion

No. The map becomes 4×5 and V becomes 5×2; output remains 4×2 because Q still has four positions.

How to use this map

Before reading the answer, identify the inputs, what changes, and the outputs. Then complete the linked lesson’s variation. If two mechanisms seem identical, trace where their conditions or data paths diverge. This page checks relationships and boundaries; it does not replace the derivations, implementations, or evaluations in the individual lessons.

The source edition is Spring 2026. Teaching examples are not official assessments or reconstructed classroom speech. Recordings remain subject to course authorization.

Course video sources

The official Spring 2026 course site directs recordings to SCS Panopto. On 2026-10-12, the anonymous reader returned an unloaded folder and a sign-in prompt; it did not provide playable lecture content. This establishes an access limit, not the absence of recordings. This guide uses public written materials and provides no reconstructed classroom speech or original-audio transcript.

Update Log

  • 2026-10-11: Rebuilt the teaching scope, worked example, and self-check; retained the original URL and publication date.

  • 2026-10-10: Added explicit video status and checked recording sources and access notes.

  • 2026-10-10: Rechecked video status. The login wall is confirmed (anonymous Panopto folder lists no videos and prompts sign-in); the official pages link no public YouTube version, so the status is unchanged.

References