AlloyDB's ScaNN index has been expanded from three tiers to four, compressing search complexity from O(N^1/3) down to O(N^1/4). Google claims 95% recall at 10 billion vectors with p95 latency ≤51ms. These numbers come from Google's internal tests—no third party has replicated them yet—so don't take them at face value until independent benchmarks land.
Approaching 1 Billion Vectors, the Old Tree Structure Buckles
On August 20, 2026, Google AlloyDB scaled its ScaNN index to 10 billion vectors, claiming p95 (95th-percentile latency) ≤51ms and 95% recall. Park the numbers for a moment—this section explains why it had to rewrite the tree structure in the first place.
The driving force is enterprise-grade agentic AI (a paradigm where AI autonomously calls tools to complete multi-step tasks), which is pushing vector databases into the multi-billion and hundred-billion record range. AlloyDB's previous ScaNN index only supported two- or three-tier trees, and scaling further hit two concrete obstacles: the larger the tree, the steeper the compute cost for index construction and query traversal; and sampling 1 billion vectors to build the index (randomly selecting a subset of vectors to train the tree structure) blew out memory. A two-tier tree has search complexity O(N1/2) (as the number of vectors N grows, the scan volume grows as the square root of N), three tiers is O(N1/3), and four tiers compresses it to O(N1/4)—when data grows 10×, scan volume grows less than 2×. That's the math behind Google's decision to stack the tree from three tiers to four.
A four-tier tree isn't just "slap another layer on." Google packed four additional mechanisms into the new structure: Top-K branch, SOAR, centroid adjustment (fine-tuning cluster centers), and balanced tree shape. Combined with a hierarchically compressed sampling set, the goal is to reconstruct high-fidelity tree partitions from a smaller training sample. Google emphasized in its blog post that these numbers come from internal tests and provided no third-party replication data—so the 95% recall and 51ms p95 figures should only be treated as vendor-stated for now.
Four-Tier Tree: Each Level Down Cuts the Candidate Set by Its Root
Pushing ten-billion-scale vector search into sub-100ms latency isn't about scanning every record—it's about letting the query descend the tree structure level by level, with the candidate set getting trimmed at each step.
Vector search can't escape a fundamental cost: to find the K results most similar to the query (the user's input vector, used to find the most similar entries in the database), the naive approach is to compare against every vector in the store.
The larger N gets, the more you scan, and the more latency becomes unbearable. AlloyDB ScaNN uses a tree-based index: first partition the entire vector space into coarse-grained clusters, then subdivide at the second tier, again at the third and fourth, until each leaf node contains only a small batch of vectors. The query enters at the top and only moves toward child nodes closer to the query at each level—the number of vectors scanned contracts exponentially with each tier descended.
Google's complexity comparison is straightforward: two-tier tree O(N1/2), three-tier tree O(N1/3), four-tier tree compressed to O(N1/4). At N=10 billion, N1/2 is on the order of 100,000, while N1/4 is around 562. Each additional tier takes a square root of the square root, compressing the candidate set by roughly two orders of magnitude.
The tree tiers aren't rigidly fixed in advance. ScaNN deploys four supporting mechanisms to safeguard recall (the proportion of true nearest neighbors successfully retrieved—95% means 95 out of 100 true matches are found): Top-K branch (retain the top K branches at each level instead of committing to one, to avoid prematurely discarding viable paths), SOAR (a re-ranking mechanism that compensates for precision loss caused by tree partitioning), centroid adjustment (fine-tune cluster centers during training to sharpen partition boundaries), and balanced tree shape (enforce tree balance to prevent any single branch from growing so fat it can't be fully scanned). Training at the ten-billion scale requires sampling massive amounts of data, which blows out memory—so you need a smaller sampling set combined with a balanced structure to reconstruct high-quality partitions.
The complexity formulas come directly from the Google Cloud blog post (published August 20, 2026). The ≤51ms p95 latency and 95% recall at N=10 billion are reported from Google's internal testing—no third-party replication has appeared yet. That uncertainty should be flagged.
One More Tree Tier Makes It More Likely to Prune the Correct Answer
The intent of going from three to four tiers is to compress search volume from N's cube root to its fourth root. The reality runs the other way: the finer the partitioning, the fewer branch options remain at each level, and the higher the risk of prematurely cutting off the correct answer. ScaNN relies on four patches to push recall back up to 95%.
A multi-tier tree works by coarse-to-fine filtering: at each level, only a few candidate branches are examined and the rest are cut away to save compute. The more tiers, the narrower the search space O(N to the 1/4 power) and the faster it runs—but the pruning is also more aggressive, and the probability of mistakenly killing the correct answer rises accordingly.
Google's engineers didn't explicitly say in the blog that each additional tier introduces precision loss, but the very existence of the "Top-K branch, SOAR, centroid adjustment, balanced tree shape" quartet puts that assumption on the table.
The first patch is Top-K branch. The standard approach picks only the single most similar branch at each level to continue; Top-K instead retains K candidate branches and traverses them all, trading a bit more search volume for fewer misses.
The second is SOAR, described in the original as "a fallback mechanism for redistributing vectors across multiple centroids": when a vector sits right on the boundary between two cluster centers, assigning it hard to either side will lose it—so it gets considered by both branches simultaneously, acting as a safety net.
The third is centroid adjustment, which iteratively refines cluster center positions after initial creation, nudging misassigned boundaries in the right direction. The last is balanced tree shape, which prevents any tier from becoming too fat or too thin—fat tiers are slow to scan, thin tiers prune too aggressively, and balancing them keeps overall latency stable.
This also explains why Google shipped the four patches bundled with the four-tier tree: the four-tier tree alone is just an engineering optimization, but paired with the four patches it becomes a complete precision-recovery solution. The 95% recall and p95 51ms come from Google's internal tests, and no third-party replication exists yet—whether this level of precision holds up on someone else's data is a separate question.
After the Four-Tier Tree, New Challenges Hit the Table
Google used the four-tier tree to simultaneously reduce memory consumption during the sampling phase and compute load during search. Once the index is built, operations, third-party validation, and comparative benchmarks become the new test.
Two verifiable conclusions both stem from Google's stated numbers. The premise is that the "four-tier tree + balanced structure + compressed sampling set" trio must work together—none can be missing.
When can we say this path has proven itself? When independent benchmark replications appear and produce numbers in the same order of magnitude as Google's. Conversely, if replication tests show recall dropping noticeably below Google's claim or latency rising significantly, it means the cost of the four-tier tree was underestimated.
Another observation point is how often the "compressed sampling set" gets triggered. The source only says the system generates this compressed version when memory is under pressure—threshold, compression ratio, and post-compression precision loss are all undisclosed. If Google later provides specific trigger conditions and error margins in an update, it means the mechanism has stabilized in production. If the topic stays unaddressed long-term, it remains a fallback rather than a default guarantee.
On the ecosystem side, two things are worth watching. ScaNN is now packaged into AlloyDB, effectively binding Google's in-house vector search algorithm to managed PostgreSQL. First: will the ScaNN index be offered in standalone form to BigQuery or other non-AlloyDB customers? Second: will AWS Aurora or Azure Database launch competing multi-tier tree solutions? If either happens, "four-tier tree" is becoming an industry default design; if neither does, it remains a single-product-line choice internal to Google for now.
Costs remain undisclosed. Running an index at this scale in the cloud will balloon memory, CPU, and storage costs. Google's closing only steers readers toward a 30-day free trial and quickstart documentation. Until Google puts the price of a corresponding-scale AlloyDB instance on the table or provides per-thousand-query billing breakdowns, we can't judge whether this architecture is a luxury or a staple in enterprise budgets.
Do the Math First, Then Decide Whether to Try It
Google's numbers are self-reported. The steps below help you wait for replication and squeeze out the spin.
The three official figures are bound together: 10 billion vectors, 95% recall, and p95 51ms appear in the same sentence. That means Google reported latency at the 95% recall threshold, not at 100%. This is standard practice in vector search, but it's easy to conflate the two. These are vendor self-tests — no third party has run the same metrics on equivalent hardware with equivalent datasets — so trusting them outright carries risk right now.
If you're already on AlloyDB, follow the official quickstart documentation to confirm how to enable the four-tier tree index. Then wait for independent third-party benchmarks. Compare whether the order of magnitude matches — a few tens of milliseconds means it holds up; a few hundred milliseconds means your scenario may need adjustment.
New users can start with the 30-day free trial and shouldn't commit to production yet. The original article doesn't provide a specific quickstart URL, trial terms details, or pricing — you'll need to look those up on the official page yourself.
One more thing to watch: the four-tier tree is labeled as preview, meaning it's still early and behavior and pricing may change. Watch AlloyDB's release notes and changelog, then wait for the preview label to come off and GA to land before making production decisions. Separately, ScaNN is an approximate nearest neighbor index (a structure that tolerates small errors for speed). It is also in preview — API changes, parameter adjustments, and performance fluctuations are all expected at this stage.
The final call: if your business has only a few million to a few tens of millions of vectors, a three-tier tree is already sufficient. The latency improvement from a four-tier tree will likely be imperceptible — at that point, migration cost will sting more than the benefit. The 10-billion scale is for those who've truly hit the ceiling.
Watch release notes and quickstart documentation to confirm how to enable the four-tier tree index.
Wait for independent third-party benchmarks and compare whether the order of magnitude matches.
Check the AlloyDB changelog to confirm the four-level tree is still in preview, and wait for the GA signal.
Estimate your own vector scale: below 100 million, don't move yet; only at the 10-billion scale should you weigh migration cost against benefit.
Record the binding relationship of the three official figures—10 billion vectors, 95% recall, p95 51ms—they are not independent of each other.
Source: Google Cloud Blog (article authored by AlloyDB team Software Engineer Bin Song and Engineering Manager Itai Rosenblatt). Source note: All figures in this article—10 billion vectors, 95% recall, p95 ≤51ms—are results from Google's internal testing, published on August 20, 2026. The four-tier tree architecture is currently in preview, and no independent third-party replication has been seen.