中
◀ Back to feed
AWS

Exa 在 AWS AI 芯片上把嵌入吞吐提高 50%,用于索引数十亿文档(11 月 19 日)

Published 2026-11-19 Collected 2026-11-19 20:00 AI news #ai
Full text

Exa boosts embedding throughput by 50% to index billions of documents on AWS AI chips | Artificial Intelligence

Exa boosts embedding throughput by 50% to index billions of documents on AWS AI chips

by Summer Devlin, Venu Geddam, Jim Burtoft, and Pinak Panigrahi on 18 NOV 2026 in Advanced (300), AWS Inferentia, AWS Trainium, Customer Solutions Permalink Share

At Exa, we are building one of the few true web indexes by aggregating and serving knowledge from across the web, along with private and synthetic sources. We optimize the index for semantic search, grounding agents and humans in true, high-quality data. We use multi-tower semantic machine learning (ML) models to embed web data and query data into the same vector space, so users can express complex queries in natural language alongside traditional keyword search. The keystone technology behind this is an in-house vector database. It must ingest as much high-quality web data as possible and embed all of it. The unit economics of embedding therefore underlie everything we do. At the scale of tens or hundreds of billions of documents, finding the hardware that delivers the best performance per dollar isn’t a tuning detail. Any per-document cost improvement compounds into a significant number.

This post details how we optimized our embedding infrastructure for cheaper, more flexible inference workloads on AWS Neuron hardware (AWS Inferentia2 and AWS Trainium2), and how an agentic development workflow drove the optimization.

Inference runs on an asynchronous pipeline, but it must be high-volume and fast to serve recent data quickly and shrink the time between discovery and serving.

Figure 1: A simplified view of the Exa stack

Every structured web document we rank as high enough quality must be embedded before it can be served. This figure shows how raw web data moves from Crawlers into an asynchronous pipeline of Parse, Moderate and filter, then Embed, with the result served from a vector database.

Embedding documents at scale

Our experience with the Neuron hardware family began with a backfill. Moving to a superior document model meant re-embedding our existing corpus. We selected 30 billion high-priority documents for re-embedding. A migration like this temporarily doubles the embedding load, which made it exactly the right moment to re-evaluate our hardware choices.

Figure 2: The doubled inference load from the backfill

The preceding figure shows two parallel pipelines sharing the crawl and parse stages, one embedding with the live model into the live index and one re-embedding priority documents with the new model into the new index, which is what doubles the load. This doubling was a clear trigger to reconsider our hardware and optimization choices.

Optimization journey

AWS Inferentia2 figures refer to performance on the smallest instance type, an Inferentia2 xlarge instance (inf2.xlarge), with one chip and two NeuronCores. Our workload runs on a single NeuronCore, so we run Kubernetes pods that pack onto larger instances without leaving any cores idle, giving us container homogeneity across the embedding fleet. The same process runs on a Trainium2 NeuronCore and scales the same way through data parallelism. Our initial Inferentia2 implementation was a straightforward data-parallel, FP16 representation of the model. From that baseline, it became a march to push throughput (docs/sec) as high as possible, using the Neuron SDK and support from the AWS Trainium team. The following chart shows the throughput gains at each milestone.

Figure 3: Throughput improvement across optimization milestones

Starting from the naive compile, a progressive series of optimizations ultimately delivered roughly a 1.5× throughput improvement. The first was weight layout optimization, which eliminates unnecessary transposes by aligning the weight layout with the scheduling and layout of the broader model. We also enabled autocast, letting the compiler downcast matrix multiplications to lower precision while preserving dynamic range. The downcast outputs met our correctness gate of 0.999 cosine similarity against the reference (see Agentic methodology), so the accuracy impact was within our acceptance threshold.

NKI kernels

The Neuron Kernel Interface (NKI) library provides optimized kernels for common model layers and operations. These pre-built kernels deliver immediate gains on common features, and we used them to quickly remove the most straightforward sources of inefficiency. A drop-in attention kernel gave us the next bump in performance.

Memory layout optimization: A fused SwiGLU MLP kernel

The next bottleneck was memory spill. Profiles from the Neuron Explorer consistently showed large amounts of spill and reload from high-bandwidth memory (HBM), which kept the Tensor Engine from being fully utilized through the forward pass. Using a drop-in MLP kernel as a steppingstone to profile the shortcomings of the pre-built implementation, we wrote a custom weight-stationary fused SwiGLU MLP kernel that eliminated the HBM stalls.

We used the higher-level NKI language for layout operations, loops, and memory operations, and only dropped into the lower-level NKI ISA for specific tensor operations. Keeping most of the kernel in the higher-level language makes it more understandable for engineers, and easier to debug.

FLOPS reduction

At this point we hit a wall. Per-accelerator throughput measured with the other on-chip core idle was significantly higher than what we saw with both cores running simultaneously. That gap meant our theoretical data-parallel throughput should have been well above our realized aggregate performance, which pointed to contention between the cores.

Profiling and experimentation showed that our workload wasn’t yet saturating the Tensor Engine. The remaining headroom was ours to claim by making the computation leaner. The clearest path left was to reduce the overall FLOPS needed to produce our results by eliminating waste. We rewrote the attention kernel around the exact shapes in our model to cut FLOPS spent on padding. This is where kernel customization really paid off. Generic kernels are built to handle any shape, so they can’t take advantage of the specific shapes in a given architecture. We wrung more performance out of attention by tailoring the implementation to the real shape of our model’s head architecture. We also folded attention operations into single matmuls where the generic kernel used multiple instruction steps. That cut the inner-loop operations needed to compute the same values, which reduced HBM round trips and produced the final significant speedup.

In total, our final version was a 47% improvement in performance and cost per 1 million documents embedded, against our initial baseline.

Agentic methodology

Agents developed all of these optimizations inside a simple three part harness that lets them verify correctness, measure performance and profile the workload to find the next direction. Using Flyte, an ML ops workflow platform, each agent runs its own workflow. The workflow compiles a NEFF Neuron executable and checks a forward pass against a baseline dataset, which must reach 0.999 cosine similarity to the canonical model. It then profiles one forward pass and runs a 30 minute saturation benchmark on real hardware.

The harness supports agents at different costs. Lightweight models handle tedious work like grid searching compiler parameters, and correctness checks prevent drift. Reasoning agents test complex hypotheses and find bottlenecks, while the strongest code generators write custom kernels to fix them. Matching each agent to its task keeps costs in check, and validation keeps capable agents from drifting. Because many agents don’t know the latest features and syntax, neuron agentic development skills also helped.

The benefits of flexible compute

So far, we have optimized Inferentia2 for the US West (Oregon) Region (us-west-2), but tuning one hardware family in one Region has hard limits. Spot and on demand availability vary by Region, and organizations with many consumers compete with themselves. Locking into one Region or instance type almost guarantees a compute shortage, and possibly degraded service.

Exa schedules compute across multiple Regions from one Kubernetes control plane. Our scheduler compares performance per dollar across instance types and packs pods onto the cheapest nodes, rescheduling as embedding demand shifts. Each hardware type we optimize for brings us closer to the global optimum. This is why our Inferentia2 work carried over directly to Trainium2. Shifting hardware profiles lets us free up nodes other teams need or absorb their unused reserved compute. For a long lived model, optimizing across hardware pays off enormously.

Conclusion

At the scale Exa operates, extracting maximum cost-performance from a flexible pool of hardware is what matters. Adding Neuron hardware to that pool and optimizing it with NKI has proven to be a major source of long-term cost savings.

Source
Title
Exa 在 AWS AI 芯片上把嵌入吞吐提高 50%,用于索引数十亿文档(11 月 19 日)
Author
—
Site
AWS
Published
2026-11-19
Collected
2026-11-19 20:00 · 2026-11-19-20-ai.json
Link
https://aws.amazon.com/blogs/machine-learning/exa-boosts-embedding-throughput-by-50-to-index-billions-of-documents-on-aws-ai-chips/
Open original ↗

Reposted. Will be removed on request. All rights belong to the original author.

More from this batch

20:00batch · 2026-11-1912 items
>

Anthropic prices initial public offering

官方宣布 Class A 普通股发行价为 83.00 美元,高于此前 70–78 美元的指导区间。本次发行 9.80 亿股,其中公司出售 9.56351354 亿股,现有股东出售 2364.8646 万股;另向承销商提供 30 天内加售 1.47 亿股的选择权。股票预计 11 月…

Anthropic
>

Palo Alto Networks to Acquire Applied Compute, Bringing Secure Open-Weight AI to the Enterprise

这家 2025 年由前 OpenAI 研究人员创办的公司,做的是让企业在自有数据上训练和运行可定制的开权模型。交易尚待监管批准,预计在 Palo Alto 2027 财年第三季度完成;完成后,Applied Compute CEO Yash Patil 将出任联合首席 AI 官。

Palo Alto Networks
>

Felicis leads $7.5M bet on Unsiloed AI to make enterprise documents usable by AI agents

这家 YC 公司把复杂 PDF、表格和扫描件转成带溯源的 Markdown 或 JSON,供企业智能体使用。对要在杂乱文档上落地 Agent 的团队,这是一条专门做「可计算文档层」的新融资。

TechCrunch
>

The MisAnthropic Statement

声明称 Anthropic「不是一家安全的 AI 公司」,批评其一边强调风险、一边推动递归自我改进,并指其松动了安全承诺。签名人包括 Steven Pinker、Judea Pearl、Max Tegmark 等。这是对上市叙事的公开反驳,事实仍以各方原文为准。

Center for AI Safety
>

The nation’s largest school districts consider ditching Google Search

The Verge 援引《纽约时报》称,谷歌计划从明年起不再允许学校关闭搜索里的 Gemini 功能;若学区选择退出,可能连搜索一起失去。三大学区正在评估替代方案,教育场景的 AI 默认开关成了采购问题。

The Verge
>

Google’s AI feature in Search gets its own incognito mode

类似隐身模式:临时线程不会进入搜索历史,也不会影响后续推荐。对要在工作电脑上试用 AI 搜索、又不想留下记录的人,这是一个新的官方开关。

TechCrunch
>

Microsoft CEO Satya Nadella explains why he asked 60K employees to quit

TechCrunch 引述他在 Ignite 期间的说明:与其再来一轮大规模裁员,微软在 10 月向约 6 万名员工提供买断。他将原因指向 AI 带来的组织调整,但并不等于「AI 直接取代了这些人」。

TechCrunch
>

Research acceleration: The jagged frontier

官方写道,编码智能体完成两到四小时研究任务的成功率从 2026 年 3 月的 23% 升至 10 月的 46%,使用量继续上升,但选题、判断结果和把关仍要人来做。这是少有的、来自实验室内部的工作方式数据,不是对外产品发布。

OpenAI
>

Introducing Gemini 4 Neon

谷歌官方把 Neon 定位为面向复杂软件工程、知识工作和科学流程的中档模型,1M 上下文,思考档为 low / medium / high(默认)/ xhigh。在 xhigh 档,Artificial Analysis Intelligence Index 为 61、总榜第 3…

Google Blog
>

Genie 4 is now available

官方称 Genie 4 能实时模拟可探索的世界,而不是只生成一段静态视频;支持会话中途改提示、同步音频、互动对话,并加入 Project Genie 智能体和社区作品库。面向符合条件的 Google AI Ultra 订阅用户,模型选择器里更新后的 Genie 3 会话最长约 3…

Google Blog
>

Advancing chip design with OpenAI models

官方说,他们的模型在 AMD 工程师已多年优化的旗舰 GPU IP 上,用不到五个月重写 SystemVerilog RTL,经 Synopsys EDA 工具验证,功耗-性能-面积最高改进约 14%;部分改动已进入一款送去流片的设计。同一方法也用在 OpenAI 自研推理芯片 …

OpenAI
>

An updated Clairic and Clairic-flash are now open-weight, from the new Workers AI Superintelligence team

这是 Workers AI Superintelligence 团队的文档抽取模型:Clairic 约 270 亿参数,Clairic-flash 约 90 亿参数。权重已放上 Hugging Face,也可在 Workers AI 上调用。Clairic-flash 为 Apa…

Cloudflare Blog