Skip to main content
QUICK REVIEW

[논문 리뷰] Mosaic: Unlocking Long-Context Inference for Diffusion LLMs via Global Memory Planning and Dynamic Peak Taming

Liang Zheng, Bowen Shi|arXiv (Cornell University)|2026. 01. 10.
Parallel Computing and Optimization TechniquesComputer Science인용 수 0
한 줄 요약

Mosaic은 메모리 피크를 줄이고, 맥락 길이를 극적으로 확장하며, 정확도나 속도에 해를 주지 않으면서 마스크 전용 logits, 글로벌 메모리 계획, 그리고 지연 청크화를 사용합니다.

ABSTRACT

Diffusion-based large language models (dLLMs) have emerged as a promising paradigm, utilizing simultaneous denoising to enable global planning and iterative refinement. While these capabilities are particularly advantageous for long-context generation, deploying such models faces a prohibitive memory capacity barrier stemming from severe system inefficiencies. We identify that existing inference systems are ill-suited for this paradigm: unlike autoregressive models constrained by the cumulative KV-cache, dLLMs are bottlenecked by transient activations recomputed at every step. Furthermore, general-purpose memory reuse mechanisms lack the global visibility to adapt to dLLMs' dynamic memory peaks, which toggle between logits and FFNs. To address these mismatches, we propose Mosaic, a memory-efficient inference system that shifts from local, static management to a global, dynamic paradigm. Mosaic integrates a mask-only logits kernel to eliminate redundancy, a lazy chunking optimizer driven by an online heuristic search to adaptively mitigate dynamic peaks, and a global memory manager to resolve fragmentation via virtual addressing. Extensive evaluations demonstrate that Mosaic achieves an average 2.71$ imes$ reduction in the memory peak-to-average ratio and increases the maximum inference sequence length supportable on identical hardware by 15.89-32.98$ imes$. This scalability is achieved without compromising accuracy and speed, and in fact reducing latency by 4.12%-23.26%.

연구 동기 및 목표

  • 장기 컨텍스트 확산 dLLMs에서 메모리가 병목 현상인 이유와 이것이 자기회귀 LLM들과 어떻게 다른지 식별한다.
  • dLLMs에 맞춘 메모리 효율적인 추론 시스템을 설계하여 동적 메모리 피크와 조각화를 완화한다.
  • 마스크된 토큰에 대해서만 logits를 계산하고 계산 그래프 전체에서 메모리를 글로벌하게 관리하는 기술을 제안한다.
  • 여러 dLLMs에서 메모리 사용량, 최대 지원 컨텍스트 길이, 대기 시간 및 정확도에 대한 Mosaic의 영향을 평가한다.

제안 방법

  • 마스크 전용 logits 커널을 통해 마스크된 토큰에 대해서만 logits를 계산한다. 이를 위해 gather-GEMM 융합 커널을 사용한다.
  • 전역 가시성을 위한 기호 차원(symbolic dimensions)을 가진 매개변수화된 계산 그래프를 정의하는 그래프 레지스트라를 사용한다.
  • 온라인 병목 기반 탐색으로 적응적으로 메모리 집약적 연산을 청크화하는 지연 청크화 최적화기.
  • 단일 글로벌 재사용 계획과 VMM 기반 할당자를 갖춘 글로벌 메모리 관리자가 조각화를 제거한다.
  • 오프라인 그래프 구성과 온라인 런타임 메모리 계획을 통해 최소한의 충분한 메모리 구성을 실현한다.
  • 대표적인 dLLMs에서 메모리, 대기 시간, 컨텍스트 길이 증가를 측정하는 평가를 수행한다.

실험 결과

연구 질문

  • RQ1장기 컨텍스트 시나리오에서 메모리 병목 현상이 자기회귀 LLM과 확산 기반 LLM 사이에서 어떻게 다른가?
  • RQ2마스크 전용 logits와 글로벌 메모리 계획이 dLLMs의 메모리 피크와 조각화를 감소시키면서 대기 시간이나 정확도에 해를 주지할 수 있는가?
  • RQ3동적 메모리 피크가 최대 지원 가능한 컨텍스트 길이에 미치는 영향은 무엇이며, 적응형 청크화가 이를 어떻게 해결할 수 있는가?
  • RQ4같은 하드웨어에서 Mosaic로 컨텍스트 길이를 얼마나 확장할 수 있으며, 그에 따른 대기 시간 영향은 무엇인가?

주요 결과

  • 메모리 피크-대-평균 비율의 평균 2.71× 감소.
  • 동일 하드웨어에서 지원되는 최대 추론 시퀀스 길이가 15.89–32.98× 증가합니다.
  • 기준 대비 평균적으로 대기 시간이 4.12%–23.26% 감소합니다.
  • 원래 학습 한계치를 넘어서는 컨텍스트를 세 가지 주류 dLLMs(LLaDA-8B, Dream-7B, LLaDA-MoE)에서 지원할 수 있습니다.
  • 마스크 전용 logits와 글로벌 메모리 관리가 기존 접근법에 비해 메모리 증가와 조각화를 크게 줄입니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.