Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Diffusion-Based LLMs: A New Era in Language Modeling

2 min read

Diffusion LLMs, or diffusion-based models, are a new direction for large language models, moving away from the autoregressive architecture used by almost every model so far. The first big example comes from Inception Labs, which has unveiled Mercury, the first commercial-scale diffusion LLM. Unlike traditional Transformer-based models, Mercury utilizes diffusion to generate text, leading to significantly faster token generation and parallel processing.

The Need for a New Approach

Most existing LLMs, including OpenAI’s GPT-4o and Google’s Gemini models, rely on an autoregressive framework. This means they generate text sequentially, predicting one token at a time from left to right. While this approach has been successful, it imposes inherent speed limitations and computational inefficiencies. Diffusion-based models, on the other hand, take a completely different approach. They start with noise and iteratively refine it into coherent text, much like how image-generation models (e.g., DALL·E, Stable Diffusion) work.

How Diffusion LLMs Work

Rather than sequentially generating tokens, a diffusion LLM like Mercury processes text holistically, denoising an initial noisy representation into a meaningful sequence. This process runs in parallel, allowing for substantial speed improvements. According to Inception Labs, Mercury can generate up to 1,000 tokens per second on existing Nvidia hardware, which makes it up to 10x faster than frontier autoregressive models.

AI Bootcamp 2.0 for traders and investors

AI FOR TRADERS

AI Bootcamp 2.0 for traders and investors

Use ChatGPT, Claude and AI agents for research, coding and automation in your trading workflow.

  • Prompting and agent workflows for markets
  • Build tools without being a full-time coder
  • 6 courses in one bootcamp
See the bootcamp →by Marketcalls

Andrej Karpathy, a leading AI researcher, has also noted the uniqueness of this approach. Historically, diffusion models have worked well for images and videos, while text and audio have remained resistant. Inception Labs getting diffusion to work for text is a significant breakthrough and could change how LLMs are built.

Benchmark Performance and Comparisons

Mercury comes in two variants: Mercury Coder Mini and Mercury Coder Small. These models have been benchmarked against industry leaders, including:

  • Gemini 2.0 Flashlight
  • GPT-4o Mini
  • Claude 3.5 sonnet
  • Qwen 2.0 Coder
  • Deepseek Coder V2 Light

The results indicate that while Mercury models match the performance of these models in terms of output quality, they far surpass them in speed.

Practical Demonstrations

Several real-world tests have showcased Mercury’s capabilities in coding-related tasks. A user-generated example involved creating a simple webpage with a button that, upon clicking, selects a random joke, changes the background color, and adds an animation. While early diffusion-based models struggled with such interactive tasks, Mercury managed to generate functional code on its first attempt.

Another test involved generating an animation of falling letters in JavaScript with realistic physics, collision detection, and adaptive screen size. Mercury efficiently produced the required output, demonstrating its effectiveness in handling complex coding tasks. The model refined its outputs iteratively in real time while generating the code.

Limitations and Future Prospects

Despite its impressive speed and efficiency, Mercury still faces limitations:

  • Rate Limits: Currently, users are limited to 10 requests per hour, likely due to resource constraints.
  • Early Stage Development: As a new approach, diffusion-based LLMs will require further fine-tuning to match the reasoning capabilities of mature autoregressive models.
  • Limited Variants: Currently, only coding-focused models are available, but future versions will likely extend to general text generation and multimodal capabilities (text + image + video).

The Bigger Picture: The Future of AI Architectures

The introduction of diffusion-based LLMs is part of a broader trend of exploring alternative architectures. Another notable effort comes from Liquid AI, which has introduced Liquid Foundation Models (LFM), an alternative to Transformers. However, real-world performance tests of LFMs have not been as promising as diffusion-based LLMs like Mercury.

As Inception Labs moves towards API releases, Mercury could open the way for ultra-fast, parallelized language models. If successful, diffusion-based LLMs may change how AI interacts with humans, with near-instant responses, improved multi-modal capabilities, and new agentic workflows.

Conclusion

Mercury shows that text can be generated through diffusion, making models significantly faster while keeping performance competitive. Challenges remain, mainly rate limits, reasoning ability and the narrow set of coding-only variants.

For those eager to experiment, Mercury is currently available for testing at chat.inceptionlabs.ai. You can also read more about the official announcement on Inception Labs’ website. Additionally, for those looking for an open-source alternative, Large Language Diffusion Models are worth exploring.

Diffusion-based LLMs are worth watching closely over the coming months.

Python Elite membership

MEMBERSHIP

Python Elite membership

15 Python, AI and algo trading programs in one plan, including QuantFlow and AI Bootcamp live mentorship.

  • Python from fundamentals to trading apps
  • Backtesting, broker APIs and OpenAlgo
  • Live QuantFlow and AI Bootcamp sessions
View Python Elite →by Marketcalls

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More