Mosaic: Unlocking Over 30$\times$ Context Length for Diffusion LLMs Inference via Global Memory Planning and Dynamic Peak Taming
Abstract
Lay Summary
Diffusion-based Large Language Models (dLLMs) are a powerful new type of AI that can generate text by repeatedly refining the entire document, making them excellent for handling very long documents. However, they require massive amounts of computer memory to run, which makes them expensive and difficult to deploy. We found that current systems manage memory inefficiently because they were designed for older, word-by-word AI models. To solve this, we created Mosaic, a new software system specifically designed to handle the unique, unpredictable memory demands of dLLMs. Mosaic intelligently plans and recycles computer memory in real-time. As a result, it allows computers to generate texts that are over 30 times longer using the exact same hardware, speeds up the generation process, and maintains the exact same output quality.