Accelerating Gemini Nano models on Pixel with frozen Multi-Token Prediction
Google retrofits a Multi-Token Prediction (MTP) head onto frozen, already-deployed Gemini Nano v3 models to speed up on-device speculative decoding on Pixel 9 and 10 phones. A lightweight transformer head attached to the final layers drafts future tokens from the backbone's hidden states and cross-attends directly to the main model's KV cache. This removes drafter prefill latency and saves about 130MB per instance compared with a standalone drafter. Because the backbone stays frozen and drafts are verified, output is bit-for-bit identical to the base model, and no per-task drafter fine-tuning is needed. Reported gains are 50%+ speedups over comparable standalone drafters, up to 55% better token acceptance on structured tasks like smart replies, and nearly two extra accepted tokens per pass in production features like Notification Summaries and Proofread.
Related posts
- Accelerating Qwen3-8B Agent on Intel® Core™ Ultra with Depth-Pruned Draft Models
Hugging Face mediumAdeptSpeculative decoding with a Qwen3-0.6B draft model speeds up 4-bit Qwen3-8B on an Intel Lunar Lake integrated GPU by about 1.3× using OpenVINO.GenAI. Depth-pruning the draft raises that to about 1.4×: 6 of its 28 layers are removed by picking low-contribution blocks via angular distance, then the draft is fine-tuned on Qwen3-8B outputs for 500k Infinity-Instruct prompts. The gain matches the speedup formula, since lower draft latency improves overall throughput. The accelerated pair is demonstrated as a local smolagents agent that uses web search and python-pptx to build a slide deck.
- Universal Assisted Generation: Faster Decoding with Any Assistant Model
Hugging Face hardMasterUniversal Assisted Generation (UAG) extends speculative decoding so the assistant model no longer needs the target's tokenizer. Draft tokens are translated in both directions through text, re-encoded with a window of preceding tokens, and aligned to the target sequence, and mismatched tokens are evicted from the assistant's KV cache. Benchmarks pair models such as gemma-2-9b, Mixtral-8x22B and Llama-3.1-70B with tiny cross-family assistants like vicuna-68m and Qwen2-0.5B and report 1.5x–1.9x speedups. UAG ships in Transformers 4.46 via the tokenizer/assistant_tokenizer arguments to generate(), and with sampling it currently supports only multinomial sampling, not speculative sampling.
- Small models, big results: Achieving superior intent extraction through decomposition
Google Research hardMasterSplitting UI-trajectory intent extraction into two stages lets small on-device multimodal LLMs match much larger models. First, each screen interaction is summarized from a sliding window of three screens, covering screen context, user actions and a speculation about the goal. Second, a fine-tuned small model turns the sequence of summaries into a single intent sentence. Three training choices drive the gains: dropping the speculations in stage two, and cleaning training labels with an LLM so they contain no details missing from the summaries, which reduces hallucination. Evaluated with Bi-Fact atomic-fact precision/recall F1, the method beats chain-of-thought prompting and end-to-end fine-tuning on Android and web data for Gemini and Qwen2, with Gemini 1.5 Flash 8B approaching Gemini 1.5 Pro.
- Transformers Model Integration Contracts
Hugging Face mediumAdeptModel Integration Contracts (MICs) package fast CPU integration tests for Transformers: a shrunk fixture model built from a real checkpoint's config (keeping every layer kind, tokenizer files and weight format), a runnable Markdown usage path, and human-reviewed baseline outputs. Replaying frozen MICs over five months of commits, a 66 MB UMT5 fixture caught an SDPA regression that let the decoder attend to future tokens, a bug that sat in main for two months. The check took 13.4 seconds on CPU, and it caught the bug only because the contract ran through the default SDPA path rather than eager attention. Overfitting fixture weights on a few examples raised Whisper's injected-fault detection from 18/24 to 24/24, though the tradeoffs are unsettled and the CI job is currently non-blocking.
- Assisted Generation: a new direction toward low-latency text generation
Hugging Face mediumAdeptAssisted generation cuts autoregressive LLM latency by letting a much smaller assistant model with the same tokenizer greedily draft candidate tokens, then verifying them all in a single forward pass of the large model. The large model keeps matching tokens plus the first divergent one. The draft length adapts: it grows by 2 when every candidate matches and shrinks by 1 otherwise. The approach exploits the fact that forward passes are memory-bandwidth bound. In 🤗 Transformers it is exposed through an `assistant_model` argument to `generate` (batch size 1 only) and yields up to 2x speedups, 3x with INT8, and up to 10x when the model relies on memory offloading. It works best on input-grounded tasks like ASR and summarization, and with sampling only at low temperatures.