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 metric | Express | Direct JSON |
|---|---|---|
| Samples | 51 | 51 |
| Median code tokens | 307 | 958 |
| Median input tokens | 5,940 | 12,522 |
| Median reasoning tokens | 0 | 0 |
| Median latency_seconds | 9.301 | 5.542 |
| schema_acc | 96.08% | 96.08% |
| quality_acc | 89.22% | 92.16% |
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
| Fixture | First usable render criterion | Comparison focus |
|---|---|---|
| Notification permission card | Explanation and both functioning choices visible | Small response |
| Product results | First complete product, price and working selection action | Useful subset before the full list finishes |
| Settings page | First correctly labeled, bound and functioning control | Progressive interaction |
| Multi-field form | Required fields, validation and submit action all operational | Dependencies that may delay usability |
| Large dashboard | First complete, correctly labeled actionable panel | Large output and progressive rendering |
| Existing-screen update | Requested value visibly updated and action state correct | Small updates rather than initial generation |
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.