Loading…

Global technology leader developing innovative software, cloud services, and AI solutions across mobile, web, and enterprise platforms
- 110 posts summarised
- latest
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
From their blog
Latest articles
Benchmarking MoE Training on Ironwood, Part 1: Scaling to 8K Chips
The authors benchmarked DeepSeek-V3 671B pre-training on Ironwood (TPU7x) to evaluate how the seventh-generation TPU handles large Mixture-of-Experts workloads. Using a MaxText recipe with FSDP and expert parallelism, they trained the model in 1.70 minutes on 8,192 chips, with all communication inside one ICI domain. At 2,048 chips, the final result reached an effective model FLOPs utilization of 56%, and scaling from 512 to 2,048 chips was nearly 100% efficient. In one week of optimization, the FSDP + EP track raised throughput per chip by 1.56–1.82× at all three scales while keeping the model, dataset, global batch size, and target loss unchanged. The EP reduce-scatter remained exposed at 8,192 chips, which the batch-split schedule described in Part 2 hides nearly entirely.
From Files to Cited Answers in One API Call: Managed Ingestion and SearchDocuments in Agent Retrieval
Agent Retrieval’s managed ingestion and SearchDocuments features automate the pipeline for searching PDFs, Office files, and videos without custom parsing, chunking, or embedding code. Users create a data store, point it at files in Cloud Storage, and call SearchDocuments with a text query to get cited results. For documents, results include page numbers; for videos, results include start and end timestamps. Audio mode enables searching spoken content in videos without transcripts. In tests, 18 investor PDFs became searchable in about 9 minutes, and 19 minutes of video returned results in 0.3 to 0.5 seconds per query.
Did the user ask for this? Securing AI agents against intent hijacking with Semantic governance policies
AI agents act on user requests but also process untrusted content from tools, creating an attack surface for indirect prompt injection that hijacks user intent. Semantic governance policies intercept each proposed tool call before execution and check it against the user’s original request and natural-language policies. In the AgentDojo benchmark, this user intent matching alone reduced the attack success rate from 48.7% to 0.9% across six runs, with a utility cost of 2.6 percentage points on benign tasks. The policy engine treats tool results and messages as data, not instructions, so it denies actions triggered by injected commands even when the agent reads them. No tool-call-based attack succeeded in any of the 929 attacked runs that required a tool call.
Check what your AI agents do before they do it, with Semantic governance policies
Google Cloud introduced Semantic governance policies in preview for the Gemini platform, enabling enterprises to govern AI agent tool calls before they execute. The policies check each proposed tool call against user-written plain-language rules and the original user intent, preventing actions that violate business rules or result from prompt injection. The enforcement sits outside the agent code via a policy enforcement point such as Agent Gateway, which intercepts model responses containing tool calls. An LLM judge evaluates each call against the conversation, agent instructions, and policies, either allowing it or replacing it with a denial message. The feature supports models from Gemini, Anthropic, and OpenAI-compatible APIs, and logs every verdict and rationale to Cloud Logging for auditability.
How to handle user, connector, and agent auth in Gemini Enterprise with a custom UI
Enterprises building a custom UI to embed Gemini Enterprise must handle three authentication flows that the built-in web app automates. For StreamAssist authentication, three patterns are available: Google Identity for Google Workspace users, Workforce Identity Federation for external IdP users, and Workload Identity Federation for backend bots. Federated Connectors require a two-phase 3LO flow where Customer BE checks the Keystore for tokens and triggers a consent popup when needed. Custom ADK agents use on-demand 3LO by wrapping protected sub-agent tools with GcpAuthProvider and deploying with Agent Identity. The guide provides runnable code for all three layers in a GitHub repository.
How to securely connect internal Cloud Run MCP servers to Gemini Enterprise
Enterprise teams using Gemini Enterprise build custom MCP servers on Cloud Run to connect AI agents to internal APIs, databases, and workflows. Three challenges arise: internal-only ingress blocks public calls, Cloud Run IAM and user OAuth 2.0 must both be verified, and Shared VPCs cannot use wildcard *.run.app DNS zones without breaking other services. The solution uses an Egress Agent Gateway with Private Service Connect to route traffic privately into the VPC, then to Cloud Run via Private Google Access or a global PSC endpoint. FQDN-scoped Private Cloud DNS resolves only the MCP server hostname to a private VIP, avoiding DNS collisions. Gemini Enterprise sends two authorization headers: an OIDC ID token for Cloud Run IAM and the user’s OAuth 2.0 access token for application-level validation. A companion GitHub repository provides a runnable Python MCP server with OAuth 2.0 middleware and step-by-step setup scripts.
Agent Anomaly Detection: Safeguarding agents across other clouds
Agent Anomaly Detection, now in Private Preview, can monitor agents running outside Google Cloud by reading their traces and logs. Agents on AWS Lambda, Microsoft Foundry, or on-premises send telemetry to a Google Cloud project via the Telemetry API and OpenTelemetry conventions. ADK for Python 2.12.0+ Google Cloud exporters and Workload Identity Federation enable this without a service account key. In tests, it flagged an AWS Lambda inventory agent for systematic scraping and resource exhaustion, and a Foundry customer-service agent for unverified refunds coerced by override instructions. The analysis runs separately and does not slow the agent.
Distributed LLM Training Across Metros: Streaming DiLoCo in MaxText
Training large language models across geographically distributed datacenters is difficult because standard data-parallel training stalls on low-bandwidth wide-area networks. DiLoCo, developed by Google DeepMind and Google Research, addresses this by partitioning training into independent groups, or learners, that perform many local optimization steps before synchronizing globally. Streaming DiLoCo further improves efficiency by dividing the model parameters into multiple fragments and synchronizing one fragment per training step, spreading communication evenly instead of causing periodic spikes. In MaxText, Google’s JAX-based LLM training framework, host-CPU syncer workers perform distributed all-reduce of fragment deltas in the background while TPUs continue local training. Evaluations on models like Qwen3-32B show that Streaming DiLoCo achieves comparable or slightly better convergence than synchronous data parallel while requiring only a fraction of the network bandwidth, enabling training across congested inter-datacenter links.
Multi-Turn Agentic Reinforcement Learning with Tunix and Gemma 4 on Google TPUs
Training real-world AI agents requires reasoning over multiple turns with tool use and environment feedback in a multi-step loop. This post presents a method to train a multi-turn tool-using LLM agent on Cloud TPU v6e-8 using Tunix’s agentic reinforcement learning pipeline. The agent plays the Plane Strike board game on a 6x6 grid with a hidden eight-cell plane in one of four orientations, using Gemma 4 E2B in thinking mode. The pipeline includes a custom environment, Gemma 4 native tool calling via tool declarations and in-turn tool responses, a conversation agent for observation-to-message translation, and GRPO with multi-turn rollouts using vllm-tpu and prefix caching. After 100 training steps, the win rate on held-out boards jumps from 9.4% to 95% while average game length drops from 22.44 to about 16 strikes.
Build full-stack Android apps with Gemini in Google AI Studio
Google AI Studio now enables building full-stack Android applications with Gemini 4 Carbon and Hydrogen, shipping them to the Play Store in minutes. The Build agent automatically provisions a Cloud Firestore database with Security Rules and Google Sign-In for persistent, cross-device data. It also configures Firebase AI Logic and App Check to protect Gemini API credentials server-side. New emulator features include faster startup, 1200p HD streaming, real-time audio output, and one-click screenshot capture for visual UI edits. The agent uses the official Android CLI for project scaffolding and builds, and publishes signed Android App Bundles directly to a personal Google Play library.
Gemini 4 Hydrogen: a faster model for general purpose robotics
Google introduced Gemini 4 Hydrogen, a faster and more efficient model for general-purpose robotics that preserves the ability to directly control robot arms from camera images and plain-language goals. On the Artificial Analysis Robotics 0.1 benchmark, Hydrogen scores 58 on eight everyday tabletop tasks, similar to Argon at a lower cost per token. The model outperforms Gemini Robotics ER 2 on the public ERQA benchmark for spatial reasoning tasks such as multi-view correspondence and 3D trajectory reasoning. Google also launched the Robotics plugin for Google Antigravity, which packages robot bring-up, MuJoCo simulation, perception, and application building into skills Gemini can use. A developer can go from a robot in a box to a working application in about an afternoon, such as building a snack-sorting conveyor in an hour.
Accelerating development for massive Git repositories
Android’s source code is massive, with the Android 17 release containing 1,084 Git repositories and 1.62 million files, making traditional checkouts and builds slow. Google built Another Build File Service (ABFS) to address these bottlenecks using a content-addressable filesystem and two-phase build caching. ABFS reduced checkout times from roughly 36 minutes to under 8 seconds and full build times from about 80 minutes to just over 2 minutes for the Cuttlefish emulator target, which executes 192,249 Ninja actions. The system lazy-loads source code and build files on demand, and its shared cache can reuse up to 100% of build actions across CI and developer workspaces, even when typical changes touch only 1-10 Git projects. ABFS is open source and designed to scale to other massive Git-based projects beyond Android.
TPU Model Design Considerations and Optimization Guide
Google’s TPU codesign guide provides hardware-grounded rules for maximizing performance on TPUs, which trade general-purpose scheduling for wide systolic arrays and custom interconnects. Shape rules require aligning every reduction and output dimension to 256 and using static shapes with bucketing and masking to avoid recompilation. Architecture choices include LatentMoE to compress routed token traffic, shared experts to reduce HBM reads, and block-scaled FP8 for memory-bound layers. Parallelism strategies map DP, TP, EP, CP, and PP axes directly to physical ICI links, with EP placed on a short 1D torus axis. Measured benchmarks show pure systems tuning lifted an open 30B MoE from 12% to 23% MFU before any model change, and 256-aligned MoEs run at roughly 2x the throughput of unaligned models.
Securing Your Agents: A Hands-On Guide to Agent Anomaly Detection
Agent Anomaly Detection on the Gemini Platform monitors agent traces and logs to flag sessions where an agent acts outside its intended purpose, catching issues that produce no system crashes or logging errors. This guide walks through deploying a deliberately over-permissive customer support agent whose fetch_records tool accepts any table name without an allowlist. After enabling telemetry and setting up Agent Anomaly Detection, the guide sends one normal refund conversation and one out-of-scope session where a user extracts payroll data. The detection system flags the anomalous session with a Tool misuse finding at High severity and 95% probability, providing a recommended fix to restrict the tool’s table access. Alerting can be configured through Cloud Monitoring metrics and Security Command Center findings, and the setup takes about 30 minutes with automatic monitoring of new agents.
Unlocking Stable On-Policy RL on TPU with Bitwise-Zero Train
Reinforcement learning for large language models suffers from numerical instability when the sampler and trainer assign different logprobs to the same action, creating a hidden off-policy gap. This mismatch arises because floating-point addition is non-associative, and differing execution paths use different reduction orders and intermediate precision, especially in bfloat16. The authors’ Zero-TIM implementation closes this gap by locking within-shard kernel accumulation, ordering cross-shard reductions, standardising the logprob scoring tail, and wrapping serving kernels with custom differentiation rules. Verified across 64 TPU v5p chips, the approach records zero mean absolute sampler–trainer logprob difference at every logged step in a 200-step test. The implementation is open-source in Google’s Tunix library and provides a modular blueprint for bit-exact on-policy RL on TPU.
Agents are sessions, not requests: size GKE node pools for AI agent sessions
Coding agent sessions on GKE stay open all day but work only part of it; a study of GitHub Copilot traces found agents wait for the user about 80% of the time. Traditional approaches like one Pod per session or scale-to-zero waste compute or lose process state. Agent Substrate and AX separate the stateful session from the compute sandbox, enabling idle sandboxes to be snapshotted to object storage and restored on any warm worker. With a 2-minute idle timeout and 2 prompts per hour, parking saves about 40% of the node bill compared to one Pod per session. The savings diminish as prompt frequency rises, and around 4.5 prompts per hour one Pod per session becomes the cheaper option.
How Agent Anomaly Detection scores on benchmarks we didn't write
Agent Anomaly Detection, a new security feature on Gemini Enterprise Agent Platform, flags sessions where an AI agent acts outside its intended boundaries by reading traces and logs asynchronously. Google tested it against five public, non-Google-written benchmarks for agent goal hijack, the top OWASP risk for agentic applications. The system flagged 87% of harmful instructions that the agent carried out, with false alarms on 2% to 16% of benign sessions depending on the agent’s tools. It performed weakest on poisoned memory attacks, catching only 4 of 18 such sessions. The study used one agent model and simulated apps, so production false-alarm rates may differ.
Catch Go bugs that fuzzing misses with Gemini and a constraint solver
The author built a pipeline that compiles Go functions to RISC-V assembly, feeds the source and disassembly to Gemini 4 Argon, and has the model write Z3 constraint-solver scripts targeting surviving bounds-check traps. Z3 returns a concrete crashing input when satisfiable, and go test replays that input against the real function. The workflow caught all three planted bugs in test parsers and three latent bugs in the skill-lint CLI. Fuzzing missed two of the planted crashes because spare slice capacity or multi-step precondition checks hid the crash. The approach trades away a full correctness proof for practical bug-finding value, with the LLM translation dominating the runtime at about a minute per function while Z3 finishes in milliseconds.
A2UI 1.0: Build delightful, fast, reliable, agentic experiences
A2UI 1.0 is the first stable release of an open protocol for generative UI, enabling AI agents to respond with interactive screens instead of text. The protocol includes bidirectional function calls, accessibility support, and extensions for metadata. Developers can use open-source renderer SDKs for web, Android, and iOS, along with agent SDKs for Python, TypeScript, and Dart. Companies such as Atlassian, Alation, Bloomberg, and ByteDance are already building with A2UI. The protocol supports fast, reliable UI generation through A2UI Express and system-one decision models, with server-side data binding to keep sensitive values secure.
On-Device Speech Recognition and Text-to-Speech in Google AI Edge Gallery
Google AI Edge Gallery now includes on-device Automatic Speech Recognition (ASR) and Text-to-Speech (TTS), enabling offline voice interactions on phones and wearables. ML Kit for Android delivers multilingual ASR across 100+ languages at 10x real-time speed with 8-9% Word Error Rate on FLEURS, and a diffusion TTS that begins speaking in ~100 ms, synthesizes 24 kHz audio at up to 50x real-time speed, and cuts power by over 50%. For cross-platform apps, MediaPipe Tasks and LiteRT support open-weight models like Parakeet-TDT 0.6B, PocketTTS 100M, Kokoro-82M, and Phonon 31M, packaged as single .litertlm files. These models run alongside on-device small language models like Gemini Nano and Gemma 4, powering the XR Language Teacher showcase with bilingual TTS code-switching and voice-enabled AI Chat with sentence-synchronized playback. All building blocks, including ML Kit APIs, MediaPipe Tasks, and LiteRT model bundles, are available today for developers to integrate into their own apps.
Topics they write about
All topics →Weekly digest
The best engineering reads, once a week.