BuildRiot
Sign in

Article · AI

A2UI Express uses fewer tokens but records higher latency in paired baselines

Paired A2UI baseline records show lower token counts but higher median latency for Express than Direct JSON. The comparison contextualizes Google's performance claims and documented SDK streaming behavior, and proposes measuring time to a usable interface separately.

A sunlit miniature workbench contrasts a compact blue booklet assembling an unfinished interface with a thick paper stack behind a completed interface, each beside a stopwatch.
Illustration: BuildRiot (AI-generated)

Key takeaway

A shorter model response does not necessarily deliver a working interface sooner. Developers choosing a format should measure when users can act, how long completion takes and what failures cost alongside token usage.

Fewer tokens do not settle interface speed

A2UI Express uses fewer tokens than Direct JSON in paired baseline records, yet records higher median latency. Google introduced interchangeable inference formats on October 27, 2026. It claims up to a threefold latency improvement and up to a threefold reduction in tokens with Express. Google's announcement says its Python and TypeScript SDKs stream Direct JSON incrementally but compile Express after receiving the complete reply. Sources: Google Developers Blog, A2UI project

According to Google, the formats change what the model writes and compile to the existing A2UI JSON transport. That design separates model output from the representation delivered to the renderer. The documented SDK behavior suggests a tradeoff: Express could finish a shorter response sooner, while Direct JSON could expose useful content before generation ends. For product results, that useful subset might be one complete product with a price and a working selection action. Sources: Google Developers Blog

The baselines record token savings and higher latency

Google says its evaluation compared Direct JSON, Express, Atom and Elemental on 51 tasks using gemini-3.5-flash, with thinking enabled and disabled. The paired baseline records below are pinned to commit f064af3e1921b5097b2b9b018ed2305dceb97e3d. Both specify google/gemini-3.5-flash and the core_v1_0 dataset. They use a thinking budget of zero, temperature zero and one epoch. The table shows lower token counts alongside higher recorded latency for Express. Sources: Google Developers Blog, A2UI project

Table

Pinned baseline results, in tokens, seconds and percent

Recorded metricExpressDirect JSON
Samples5151
Median code tokens307958
Median input tokens5,94012,522
Median reasoning tokens00
Median latency_seconds9.3015.542
schema_acc96.08%96.08%
quality_acc89.22%92.16%
Both records use 51 samples, a thinking budget of zero, temperature zero and one epoch.Sources: A2UI project

Calculated from the aggregate medians, Express's code-token count is approximately 68% smaller and its input-token count approximately 53% smaller. Its recorded median latency is approximately 68% higher. These calculations compare aggregate medians; they do not measure the median improvement across paired tasks. The results challenge a universal Express latency advantage without ruling out Google's claimed improvement under other conditions. Sources: A2UI project

The baseline records do not establish browser usability timing or variability across runs. Their metadata also leaves concurrency, service load, caching, timing boundaries and retry handling unspecified. The quality_acc metric needs an evaluator definition before it can be read as a task-success percentage. Google separately reports initial components in 92–298 ms for a constrained decision-model layout pipeline. That is a different comparison from switching inference formats. A browser experiment would need to establish which format delivers a working interaction sooner. Sources: Google Developers Blog, A2UI project

Parser behavior determines when streaming helps

The Python package description says parse_chunk repairs incomplete JSON and emits messages when ready. That provides a way to deliver content before generation ends, although one message may not contain a complete interaction. The Express specification describes streaming compatibility. Google's announcement describes complete-response compilation in its Python and TypeScript integrations. Syntax suited to streaming still needs an incremental parser to deliver that benefit. Sources: Google Developers Blog, PyPI, A2UI

PyPI lists Python SDK 0.9.0, released October 17, 2026, with a requirement for Python 3.10 or later. The pinned changelog places open_stream, feed and close under Unreleased. It also lists validation changes and linear rather than quadratic parser work there. That section describes incremental emission of growing updateComponents and updateDataModel messages. createSurface waits for its object to close. Comparisons should pin the SDK package, protocol, catalog and renderer separately. This keeps development changes from being mistaken for installed behavior. Sources: PyPI, A2UI project

Compare equivalent interactions across three paths

A useful experiment starts with one renderer and application backend, then varies the generation path. Give both formats the same catalog, content, required components, bindings and action contracts. Judge equivalence by working behavior rather than identical serialized output. Use deterministic fixture data and actual event handlers. A visible but ineffective button cannot count as success.

Table

Proposed fixtures and first usable render criteria

FixtureFirst usable render criterionComparison focus
Notification permission cardExplanation and both functioning choices visibleSmall response
Product resultsFirst complete product, price and working selection actionUseful subset before the full list finishes
Settings pageFirst correctly labeled, bound and functioning controlProgressive interaction
Multi-field formRequired fields, validation and submit action all operationalDependencies that may delay usability
Large dashboardFirst complete, correctly labeled actionable panelLarge output and progressive rendering
Existing-screen updateRequested value visibly updated and action state correctSmall updates rather than initial generation
Each proposed criterion requires working behavior as well as visible content.

The proposed fixtures in the table cover progressively useful screens and interactions that depend on several components. Test Express with complete-response compilation, Direct JSON with incremental delivery and Direct JSON buffered until completion. The buffered condition helps isolate streaming's contribution from format differences. A prebuilt A2UI response can provide a separate control for transport and renderer overhead.

Start timing at the user's request and record browser and server events. First model output, first accepted message and first visible content help explain delays. Count first usable render only when the fixture's functional criterion passes. Track model completion, full screen completion and recovery completion separately, alongside parsing or compilation time. A server transmission timestamp cannot show that a control is visible and operable.

Count failures and repairs as part of latency

Both baselines report 96.08% schema accuracy, but their failures differ. Express records schema failures for triviaQuiz and profileEditor. Direct JSON records them for restaurantFinder and rizzCharts. The Express simpleCalculator entry passes schema checking but receives zero quality accuracy. Schema acceptance alone is therefore an insufficient usability criterion. Sources: A2UI project

The Python package describes payload correction utilities and validation against renderer catalogs. A comparison should distinguish raw model errors, repairs and final rejected outputs. A repair may rescue a response while adding time, and a partial stream may deliver useful content before failing later. Track the following outcomes separately to keep those differences visible. Sources: PyPI

  • Syntax or compilation failure
  • Catalog or schema rejection
  • Broken references or bindings
  • Incorrect data or missing requirements
  • Nonfunctional actions
  • Partial interface followed by stream failure
  • SDK repair or model retry

Keep failed runs in the results and report first-attempt success alongside time to success after retries. Retain separate counts for input, cached input where available, generated output and reasoning tokens. Measure compiled JSON bytes delivered to the renderer as well. These measurements distinguish savings in model output from changes in browser delivery costs.

Choose the format against the interaction deadline

Run paired trials in randomized order with the same model configuration and concurrency. Repeat trials for each fixture and condition, then assess variability before drawing conclusions about the slowest responses. Keep thinking-disabled and thinking-enabled results separate. Google recommends thinking off. The Express proposal suggests reasoning budgets for different interface complexities. Treat those recommendations as configuration guidance to investigate, rather than rules that apply across models. Sources: Google Developers Blog, A2UI

Report distributions, paired differences, uncertainty and failure rates instead of selecting a favorable median. For a permission card, full completion may be the useful deadline. For product results, the first working selection may matter more. Choose Express when its measured savings and completion behavior fit the application. Choose incremental Direct JSON when earlier functional content improves the experience. When a published SDK changes parsing behavior, repeat the comparison using the same interaction criteria.

Attribution

Sources

  1. 1Google Developers BlogFast, reliable A2UI, with swappable inference formatsSource published (UTC)
  2. 2A2UI projectExpress baseline evaluation metadata
  3. 3A2UI projectDirect JSON baseline evaluation metadata
  4. 4PyPIa2ui-agent-sdk
  5. 5A2UI projectPython A2UI agent changelog
  6. 6A2UIA2UI Express technical specification

Read the original source for full details and context.

Report a problem

Links, dates or what you expected. Do not include passwords or private data.

More on AI

All AI stories