프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation

Classifier-Free Guidance의 원리 풀기

  • 연구 문제 자기회귀 이미지 생성에서 CFG가 왜 품질을 높이는지 설명되지 않았습니다. 조건부와 무조건부 두 번 계산해야 해서 추론 비용도 약 두 배로 늘어납니다.
  • 연구 방법 AttnReuse는 조건부 분기의 어텐션 가중치에서 텍스트 토큰을 지우고 남은 시각 토큰 기준으로 다시 정규화해, 무조건부 계산에 재사용합니다.
  • 주요 결과 AttnReuse는 어텐션 계산을 약 25% 줄이면서, 여러 모델에서 성능 저하가 적었습니다.

CFG는 왜 AR 이미지 생성에서 필요한가

Classifier-free guidance(CFG)는 확산 모델에서 먼저 쓰이던 디코딩 기법인데, 자기회귀(AR) 이미지 생성에서도 생성 품질을 크게 높이는 것으로 알려져 있습니다. 하지만 이 효과가 AR 모델 안에서 왜 나타나는지는 그동안 잘 설명되지 않았습니다. 기존 해석은 확산 모델의 역방향 확산 과정에 기대고 있어서, 시각 토큰을 하나씩 예측하는 AR 모델에는 그대로 옮겨지지 않습니다. 또한 CFG는 추론 시 조건부와 무조건부 두 번의 순전파가 필요해 계산량을 약 두 배로 늘립니다. 저자들은 이 두 문제를 함께 풀고자 세 가지 질문을 세웠습니다. CFG가 왜 효과적인지, AR pre-training의 한계 때문에 CFG가 필요한 것인지, 그리고 추가 계산이 정말 필요한지입니다.

조건부와 무조건부 로짓의 역할 분해

저자들은 CFG의 조건부 로짓과 무조건부 로짓의 차이를 따로 떼어 실험했습니다. 텍스트 조건 아래의 조건부 로짓만으로 탐욕 디코딩을 하면 거의 단색에 가까운 이미지가 나왔습니다. 반면 조건부 로짓에서 무조건부 로짓을 뺀 차이로 디코딩하면 텍스처가 훨씬 복잡한 이미지가 나왔습니다. 저자들은 텍스처 복잡도를 픽셀 엔트로피, 전체 변동, 방향 엔트로피라는 세 지표로 쟀고, 세 지표 모두에서 로짓 차이의 이미지가 가장 복잡하고 조건부 로짓의 이미지가 가장 단순했습니다. 이 결과로 저자들은 텍스처 정보가 주로 두 로짓의 차이에 담겨 있다고 해석합니다. 그렇다면 조건부 로짓의 최상위 의미가 단색 이미지로 치우치는 이유를 따져야 합니다.

Figure 1: Generated images from conditional logits logitcond, CFG-guided logits logitλ, and logitdiff =
logitcond −logit uncond, shown from left to right in ea…

Figure 1 : Generated images from conditional logits logitcond, CFG-guided logits logitλ, and logitdiff = logitcond −logit uncond, shown from left to right in each grid. All images are generated by greedy decoding (τ = 0). Prompts:Left:A glass bowl filled with oranges on a table.Right:An orange-reddish rose in a vase filled with water on top of a table. Images generated fromlogitcond collapse to nearly pure-color outputs, whereas images generated fromlogitdiff exhibit excessively complex textures.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Figure 2: Texture complexity of images generated fromlogitcond, logitλ, and logitdiff = logitcond −logit uncond
across multiple metrics. Pixel Entropy, Total V…

Figure 2 : Texture complexity of images generated fromlogitcond, logitλ, and logitdiff = logitcond −logit uncond across multiple metrics. Pixel Entropy, Total Variation, and Orientation Entropy measure pixel-intensity diversity, local intensity variation, and edge-orientation diversity, respectively. Images generated fromlogitdiff consistently exhibit the highest texture complexity, whereas those generated fromlogitcond exhibit the lowest.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Figure 9: Generated images fromlogitcond, logitλ, and logitdiff = logitcond −logit uncond, shown from left to
right in each grid. All images are generated by g…

Figure 9 : Generated images fromlogitcond, logitλ, and logitdiff = logitcond −logit uncond, shown from left to right in each grid. All images are generated by greedy decoding (τ = 0). Prompts:Left:A street at night is lit up by streetlights.Right:An old man is wearing an odd hat. Images generated fromlogitcond are nearly pure-color, whereas those fromlogitdiff show richer textures.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

두 로짓이 공유하는 이전 토큰 반복

조건부 로짓의 최상위 의미가 단색으로 치우치는 이유를 찾기 위해 저자들은 두 로짓이 공통으로 무엇을 선호하는지 살펴봤습니다. 저자들은 이전 토큰을 그대로 반복하는 경향이 두 로짓 모두에서 강하다고 보고했습니다. 실험은 한 시각 토큰을 앞부분 접두사로 고정한 뒤 이어서 생성하는 방식으로 진행했습니다. 그 결과 Lumina-mGPT에서 무조건부 로짓의 평균 반복 비율 rrep은 0.6804였고, 조건부 로짓은 0.7333이었습니다. 두 값 모두 절반을 넘어, 저자들은 이전 토큰 반복이 두 로짓의 공통 의미라고 해석합니다. 이 공통 반복 편향이 CFG가 차이로 보정해야 할 대상이 됩니다.

Table 1: Averagerepetitionratio rrep: thefraction
of generated tokens that match the prescribed
prefix token

Table1 : Averagerepetitionratio rrep: thefraction of generated tokens that match the prescribed prefix token.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

텍스처 희소성에서 반복 편향이 생기는 이유

저자들은 반복 편향이 학습이 덜 된 결과가 아니라 이미지 자체의 성질에서 나온다는 점을 얕은 트랜스포머로 분석했습니다. 모델은 텍스트 토큰, 특징 토큰, 배경 토큰을 나누어 쓰는 단순화된 데이터 모델을 따릅니다. 핵심 가정은 텍스처 희소성입니다. 특징 블록의 길이 L이 Θ(log T_vis)로 증가하여 텍스처가 이미지의 작은 부분만 차지한다고 가정합니다. 저자들은 ImageNet 검증 세트에서 웨이블릿으로 텍스처 영역을 추출해 텍스처 면적 비율이 작다는 것을 확인했다고 보고합니다. 이 가정 아래에서 두 단계 학습을 거친 모델은 학습 손실이 작은 상태에서도 조건부와 무조건부 로짓이 같은 최댓값 토큰을 고르고, 조건부 생성은 배경 토큰을 반복하며 무너진다고 저자들은 증명합니다.

Figure 5: Left:Image Ik,j for k =Orange,
j =Blue with τk = 8, L = 10, and Tvis = 25.
Right:The invalid image generated by only a
conditional model, which will…

Figure 5 :Left:Image Ik,j for k =Orange, j =Blue with τk = 8, L = 10, and Tvis = 25. Right:The invalid image generated by only a conditional model, which will simply repeat the background.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.
Figure 6: Visualization of texture regions in natural images.Left:Texture regions are highlighted in white.
Right:Texture and non-texture area ratios averaged…

Figure 6 : Visualization of texture regions in natural images.Left:Texture regions are highlighted in white. Right:Texture and non-texture area ratios averaged over the ImageNet validation set. The results show that texture regions occupy only a small fraction of the whole image.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Figure 7: Overview of the proof.(1)Training WV makes text and background tokens favor background
repetition, while feature tokens favor feature repetition.(2)T…

Figure 7 : Overview of the proof.(1)Training WV makes text and background tokens favor background repetition, while feature tokens favor feature repetition.(2)TrainingWQK makes the conditional branch attend to text when predicting the first feature token. Inside the block, both branches attend to earlier feature tokens.(3)CFG uses the logit difference to generate the first feature token. Repetition then completes the feature block; without CFG, generation repeats the background.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

무조건부 어텐션을 재사용하는 AttnReuse

저자들은 CFG의 추가 계산을 줄이기 위해 Attention Weight Reuse(AttnReuse)를 제안합니다. 조건부 분기의 어텐션에서 텍스트 토큰 항목을 마스킹으로 제거하고, 남은 시각 토큰 키에 대해 행마다 다시 정규화합니다. 이렇게 얻은 가중치를 조건부 값 벡터에 곱해 무조건부 어텐션 출력을 근사합니다. 저자들은 이 방식이 앞서 본 공통 반복 의미를 그대로 활용한다고 설명합니다. 저자들은 이 정도의 품질 감소를 작은 성능 저하로 보고합니다.

Table 2: DPG-Bench results.Comparison of model backbones with and without AttnReuse (gray rows).
Attention FLOPs are normalized to the standard CFG baseline (1…

Table 2 :DPG-Bench results.Comparison of model backbones with and without AttnReuse (gray rows). Attention FLOPs are normalized to the standard CFG baseline (100%), encompassing both conditional and unconditional computations. To balance efficiency and fidelity, AttnReuse is applied to middle layers (e.g., 16/32 for AR models), preserving early layers for low-level representations and late layers for final predictions. For SD3-Medium, reuse is further restricted to the final90%of denoising timesteps to maintain global layout. This strategy reduces relative attention FLOPs to75%for AR models and87%for SD3-Medium while maintaining competitive performance.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.
Figure 8: Illustration of the proposed AttnReuse method. In selected layers, we reuse conditional attention
weights by masking out text-token entries and renor…

Figure 8 : Illustration of the proposed AttnReuse method. In selected layers, we reuse conditional attention weights by masking out text-token entries and renormalizing over image tokens. We then apply these weights to the conditional value vectors to approximate the unconditional attention output.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.
Figure 14: Qualitative comparison betweenBaseandAttnReuseacross different models. AttnReuse
preserves structural and semantic fidelity under both greedy (τ = 0…

Figure 14 : Qualitative comparison betweenBaseandAttnReuseacross different models. AttnReuse preserves structural and semantic fidelity under both greedy (τ = 0) and stochastic (τ = 1) decoding, while reducing attention computation.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 62쪽에서 그림 영역을 추출했습니다.

한계

저자들이 밝힌 한계는 연구가 이미지 생성에 초점을 맞췄다는 점입니다. 오디오와 비디오 생성으로의 확장은 향후 과제로 남겨 두었습니다. 또한 이론 분석은 얕은 트랜스포머와 텍스처 희소성 가정 아래에서 이루어졌으므로, 실제 대형 AR 모델 전체의 학습 과정으로 그대로 확장된 것은 아닙니다. AttnReuse도 일부 레이어에만 적용했고 품질이 일부 과제에서 낮아졌으므로, 모든 설정에서 동일한 품질을 보장하지는 않습니다.

Table 3: Evaluation settings across models. ForAR models, AttnReuse is applied to a subset of attention
layers (Layers 8–23). For diffusion models, it is appli…

Table 3 : Evaluation settings across models. ForAR models, AttnReuse is applied to a subset of attention layers (Layers 8–23). For diffusion models, it is applied to selected layers (Layers 9–17) and across the last 90%of timesteps.

원문 · CC BY 4.0 · Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang · Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang
학회·저널
arXiv · 프리프린트
최초 공개일
2026년 11월 21일
등록일
2026년 11월 24일
수정일
2026년 11월 21일
버전
v1
arXiv
2611.29002
분류
cs.CV · cs.AI · cs.LG
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Classifier-free guidance (CFG) has been widely adopted in autoregressive (AR) models for high-quality image generation. Despite its strong empirical performance, its mechanism in AR models remains unclear. This paper demystifies the mechanism of CFG through both empirical and theoretical studies. By examining the top-ranked semantics of different components in CFG, we show that texture information is primarily encoded in the difference between the conditional and unconditional logits, whereas both logits share previous-token repetition as their leading semantics. This strong repetition semantics obscures the desired texture information, causing greedy decoding from the conditional logits alone to produce nearly pure-color images. Through a training-dynamics analysis of shallow transformers, we prove that this shared repetition semantics does not arise from limitations or failures of pretraining, but instead originates from the texture sparsity of images. We further show that CFG improves generation quality by rectifying this repetition bias during inference. Motivated by the shared semantics between conditional and unconditional logits, we propose Attention Weight Reuse (AttnReuse), which reuses intermediate attention computations from the conditional-logit forward pass to accelerate the unconditional-logit computation. AttnReuse reduces about $25\%$ of attention computation with little performance degradation across different models.

원문 인용

Zhiling Zhou, Jiachun Pan, Fengzhuo Zhang, Dirk Bergemann, Zhuoran Yang (2026). Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation. arXiv:2611.29002v1. https://arxiv.org/abs/2611.29002v1

BibTeX
@misc{zhou2026demystifying,
  title = {{Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation}},
  author = {Zhiling Zhou and Jiachun Pan and Fengzhuo Zhang and Dirk Bergemann and Zhuoran Yang},
  year = {2026},
  eprint = {2611.29002},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29002v1}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입