Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 14 min read Case study hardMaster

SilverTorch: Index as Model — A New Retrieval Paradigm for Recommendation Systems

SilverTorch replaces Meta's microservice-based recommendation retrieval with "Index as Model": the item index, eligibility filter, ANN search, neural reranker and multi-task scorer all become tensors or nn.Modules inside a single PyTorch model served on GPUs in one forward pass. Folding everything into one model removes network hops and version skew between user tower and index, and lets the stages be co-designed. Two examples are a Bloom-signature filter that replaces GPU-unfriendly inverted indexes, and a fused Int8 ANN kernel that supports top-k in the hundreds of thousands. On an 80M-item production replay, SilverTorch delivered 23.7x the throughput of a multi-service baseline and 20.9x the cost efficiency of FAISS-CPU (13.35x with reranking), with no measured recall loss, and it cut the time to ship retrieval changes from weeks to days.

Assumes: two-tower retrieval modelsapproximate nearest neighbor searchPyTorch nn.ModuleGPU execution basics

Related posts

  • Evolving Pinterest’s Embedding Retrieval Platform

    Pinterest Engineering hardMaster

    Pinterest is evolving Manas, its in-house distributed search platform serving billions of embeddings across 80+ clusters, along three fronts: quantization, SSD-based ANN serving, and multi-embedding retrieval. Benchmarks on 100M embeddings showed PQ shrinks indices by 74–93% with 70–80% recall, while SQ cuts 59–75% with over 90% recall. Rolling both out per use case after A/B tests yielded 20–30% serving cost savings, and SIMD-based Linear Scaling SQ trimmed per-query compute by 10–15%. For SSD serving, SPANN with PQ-compressed posting lists and full-precision centroids beat DiskANN by 3x QPS at 1/3 the latency, and saved over 40% CPU versus HNSW on a 5B-embedding index with under 5% recall loss. Manas now also supports ColBERT-style late-interaction queries scored with Sum of MaxSim.

  • Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design

    Meta Engineering hardMaster

    Meta's next-generation Andromeda ads retrieval engine co-designs model, system and GPU hardware to score every eligible ad with near ranking-level quality at over one billion ads per second per GPU server, a 100x lift over the 2024 system. A retrieval mixture-of-experts architecture (ensemble of user-tower experts plus an ad-aware attention gating router) cuts inference FLOPs ~300x. A single fused kernel keeps per user-ad intermediates in registers and shared memory to avoid HBM traffic, reaching over 10B ads/sec on one GH200. Co-locating index matching, scoring and top-K on the same GPU cuts network traffic ~100x. NVIDIA-optimized kernels hit ~85% of peak HBM bandwidth, and INT8 adds up to 2x throughput at FP16-equivalent accuracy.

  • Training 100x Cheaper Retrieval models Neon and Castform

    Neon easyNovice

    Castform uses data stored in Neon Postgres, exposed through Lakebase Search's BM25 and vector functions, to RL post-train a 4B open-source model for agentic retrieval. The post claims the model matches GPT-5.6 Sol's accuracy at about 100x lower cost; a frontier multi-turn search request takes over 10s and costs around $0.03. The pipeline generates synthetic question/answer tasks from the existing corpus. Training uses a hybrid search tool with RRF merging and a reward function that scores retrieval, citation and answer correctness. Neon's autoscaling absorbs the bursty search load from parallel rollouts, and branching is positioned as a way to give stateful agents isolated environments.

  • Scaling the Instagram Explore recommendations system

    Meta Engineering mediumAdept

    Instagram Explore uses a four-stage funnel of retrieval, first-stage ranking, second-stage ranking and final reranking, built around caching and pre-computation so heavier models can be used at every stage. Two Tower neural networks with cached user and item embeddings and ANN search handle retrieval, and they also serve as a lightweight first-stage ranker distilled from the heavy second stage. The second stage is a multi-task multi-label model whose engagement probabilities are combined by a tunable weighted value model, with some recommendations precomputed off-peak. Final reranking applies integrity filters and diversity rules, and the system's hundreds of parameters are tuned by online Bayesian optimization or by faster offline tuning that maps offline metrics to online ones.

  • CPU Optimized Embeddings with 🤗 Optimum Intel and fastRAG

    Hugging Face mediumAdept

    Post-training static int8 quantization of BGE embedding models (small, base, large) with Optimum Intel, Intel Neural Compressor and IPEX gives up to 4.5x lower latency and up to 4x higher throughput on 4th-gen Xeon CPUs compared with a bf16 PyTorch baseline. Accuracy loss stays small: under 0.3% on MTEB reranking and up to 1.55% on retrieval. The guide covers calibration with a qasper subset, loading the model with IPEXModel, and the benchmark setup (ipexrun, TCMalloc, single socket). It also shows how to plug the quantized models into fastRAG's QuantizedBiEncoderRetriever and QuantizedBiEncoderRanker for RAG indexing and reranking.

The quest for software engineering knowledge.

Look:
Layout: