AI
Google introduces A2UI Express to slash generative UI latency by up to 3x
A new inference format and support for decision models let developers trade off speed and expressivity when building agent-driven interfaces.
Google Developers Blog (AI)
Google has released an update to A2UI, its agent-optimized protocol for generative UI, that addresses a persistent bottleneck: the time users spend waiting for models to generate each screen. The new release introduces A2UI Express, a swappable inference format that reduces latency by up to 3x, and enables integration of decision models that can achieve up to 80x speedups for templated layouts.
The latency problem with JSON generation#
A2UI works by having an agent describe a user interface composed from a catalog of trusted components, which a client then renders. Previously, agents generated A2UI messages directly as JSON—including every curly brace and nested element. This approach proved slow and error-prone: generating JSON trees constrained by complex schemas is computationally expensive for language models, and the tight coupling between A2UI and text-generating LLMs made it hard to integrate faster, specialized decision models.
Express requires up to 3x fewer tokens to produce equivalent UIs compared to direct JSON generation.
A2UI Express: a new inference format#
The key innovation is separating the format a model generates from the transport protocol that reaches the client. Instead of outputting JSON directly, agents can now generate A2UI Express, an intermediate format optimized for speed and accuracy. Deterministic code in the A2UI Agent SDKs then translates Express into the JSON-based protocol. This decoupling also allows developers to plug in alternative domain-specific languages (DSLs) and compilers for specialized use cases.
Express uses a Python-like syntax with one statement per line. Each line assigns a component to a variable, with positional arguments that map to property names in order:
surface("gallery-notification-permission")
$/description="Get alerts for order status changes"
root=Card(main_column)
main_column=Column([icon, title, description, actions], _, "center")
icon=Icon($/icon)
title=Text($/title)
An inference format consists of two parts—both auto-generated from your catalog's JSON schema. A prompt section teaches the model the syntax, and a compiler validates and transforms the model's reply into A2UI messages. This ensures the format can only describe components and properties your catalog actually contains.

