확산 트랜스포머의 맥락 토큰 읽는 법 배우기
Learning to Read the Contextual Tokens in Diffusion Transformers
멀티모달 확산 트랜스포머(MM-DiT)에서 생성 과정 중 계속 갱신되는 텍스트 토큰, 즉 맥락 토큰이 무엇을 담는지 자연어 질문으로 읽어내는 방법을 제안한다. 이 토큰에는 생성 중인 이미지의 전반적 의미가 일찍부터 담겨 있었고, 읽기 쉬운 생성일수록 사람 선호 점수가 높은 경향이 있었다. 이를 바탕으로 맥락 토큰을 강화하는 학습법 Contextual Alignment를 제안해 생성 품질과 분포 포괄성을 개선했다고 한다.
논문 초록을 바탕으로 정리했습니다. 논문 전체의 실험 조건과 한계까지 검토한 심층 리뷰는 아닙니다.
논문 원문 읽기 ↗연구 문제
MM-DiT는 이미지와 텍스트 표현을 생성 내내 함께 처리한다. 이 과정에서 텍스트 토큰은 멀티모달 어텐션을 거치며 반복적으로 갱신되어 '맥락 토큰'이 된다. 그러나 이 토큰이 어떤 기능을 하는지는 잘 알려져 있지 않았다. 이 연구는 그 내부를 들여다볼 방법을 마련하는 것에서 출발한다.
방법: 자연어 질문으로 읽기
연구진은 가벼운 병목(bottleneck) 네트워크를 학습시켰다. 이 네트워크는 생성 중간 단계의 맥락 토큰을 고정된 대규모 언어 모델(LLM)의 입력 공간으로 옮겨 준다. 그러면 LLM이 숨겨진 표현만 보고 생성 중인 이미지에 대한 질문에 답할 수 있다. 연구진은 이 '리더'로 맥락 토큰에 담긴 정보를 조사했다.
결과: 맥락 토큰에 담긴 정보
리더를 통해 맥락 토큰이 생성 중인 장면의 풍부하고 전역적인 표현을 담고 있음이 드러났다. 프롬프트가 정하지 않은 속성을 포함한 생성 고유의 의미가 디노이징 초기부터 읽혔고, 시간이 지날수록 더 세밀한 정보도 읽혔다. 빈 프롬프트를 입력해도 이 정보가 해독되어, 맥락 토큰이 변화하는 시각 표현에서 이미지 정보를 스스로 쌓는다는 점도 보였다. 또한 맥락 표현이 더 잘 읽히는 생성물일수록 사람 선호 점수가 높은 경향이 있었다. 구체적인 수치나 성능 비교는 초록에 나와 있지 않다.
활용: Contextual Alignment
이 관찰을 토대로 연구진은 맥락 토큰에 담긴 시각-의미 정보를 명시적으로 강화하는 학습 기법인 Contextual Alignment를 제안했다. 초록에 따르면 이 기법은 생성 품질과 분포 포괄성을 개선한다. 연구진은 맥락 토큰이 MM-DiT 내부 동작을 해석하는 창이자 생성 모델을 개선하는 효과적인 목표가 될 수 있다고 결론짓는다.
근거로 읽은 영문 초록
Multimodal Diffusion Transformers (MM-DiTs) jointly process visual and textual representations throughout generation. These models repeatedly update the text tokens through multimodal attention, forming dynamic contextual tokens whose function is not well understood. In this work, we introduce a framework for reading this contextual space through natural-language interrogation. We train a lightweight bottleneck network that maps intermediate contextual tokens into the input space of a frozen Large Language Model (LLM), allowing the LLM to answer questions about the emerging image directly from these hidden representations. Our reader reveals that contextual tokens encode a rich, global representation of the emerging scene: generation-specific semantics, including attributes left underspecified by the prompt, are accessible surprisingly early in denoising, while increasingly fine-grained details become readable over time. Remarkably, this information remains decodable even when the MM-DiT receives an empty prompt, showing that contextual tokens accumulate substantial image-specific information from the evolving visual representation itself. We further find that generations with more readable contextual representations tend to receive higher human-preference scores. Building on these observations, we introduce Contextual Alignment, a training technique that explicitly reinforces the visual-semantic information encoded in the contextual tokens, improving generation quality and distributional coverage. Together, our results establish contextual tokens as both an interpretable view into the internal dynamics of MM-DiTs and an effective target for improving generative models.