Exa says custom optimizations for AWS Inferentia2 and Trainium2 improved embedding performance and cost per million documents by 47% against its initial baseline.
Exa said on November 18, 2026, that it improved the performance and cost of embedding documents by 47% against its initial baseline after optimizing workloads for AWS Inferentia2 and Trainium2. The company uses embeddings to populate its in-house vector database, which supports semantic search across web, private, and synthetic data.
The work began as Exa prepared to re-embed 30 billion high-priority documents using an updated document model. Running that backfill alongside its existing pipeline temporarily doubled embedding demand, prompting the company to reassess its compute choices. Its initial Inferentia2 setup used data-parallel processing and an FP16 model representation.
Exa describes a sequence of changes rather than a single switch. It adjusted weight layouts and enabled compiler downcasting, with outputs meeting a correctness threshold of 0.999 cosine similarity against the reference model. The team then used AWS Neuron Kernel Interface tools, including an attention kernel, before developing a custom fused SwiGLU multilayer perceptron kernel to address memory spill and reload overhead.
Further changes tailored attention computation to the model’s specific dimensions, reducing padding work and combining operations that had previously required multiple steps. Exa also used an automated workflow to compile, validate, profile, and benchmark proposed changes; its real-hardware saturation benchmark ran for 30 minutes. The company said optimization agents were assigned different tasks, with correctness checks used to guard against output drift.
Exa initially tuned Inferentia2 in AWS’s US West (Oregon) Region and said the work carried over to Trainium2. It schedules compute across multiple Regions through one Kubernetes control plane, choosing instance types according to performance per dollar and changing placement as demand shifts. The results are Exa’s reported outcome for its workload and baseline, not a general benchmark for other models or deployments.

