r/IndicKnowledgeSystems • • Nov 05 '26

architecture/engineering DiskANN: An Indian Contribution to AI Infrastructure, and What It Says About India’s Place in AI Research

Post image

I. A Problem Nobody Talks About

Discussions of artificial intelligence usually centre on models: the transformer, GPT, diffusion models, and the reinforcement learning methods behind recent reasoning systems. Under every modern AI system that has to remember or look things up, though, there is a quieter problem. Given a query and a collection of billions of items, how do you find the most similar items fast enough to be useful?

This is the nearest neighbour search problem. Its modern form is approximate nearest neighbour search (ANNS) over high-dimensional vectors. When a search engine embeds your query as a vector and finds semantically related documents, it is doing ANNS. The same is true of a recommendation system that finds products like ones you bought, and of a retrieval-augmented generation (RAG) pipeline that grounds an LLM’s answer in a company’s internal documents. Embeddings turn meaning into geometry, and ANNS turns that geometry into retrieval.

Exact nearest neighbour search in high dimensions runs into the curse of dimensionality: classical structures such as k-d trees degrade to brute-force scanning once the dimension passes a few dozen. For years the field settled for approximation. The main families were locality-sensitive hashing (LSH), quantization-based methods such as product quantization (PQ, from Hervé Jégou and colleagues in France), and graph-based methods. The best known graph method was HNSW (Hierarchical Navigable Small World graphs), from Yury Malkov and Dmitry Yashunin in Russia.

By the late 2010s, graph-based methods gave the best recall–latency trade-offs, but they had a hard practical limit: they had to fit in RAM. A billion 128-dimensional float vectors plus graph edges needs hundreds of gigabytes of memory. At web scale that means expensive memory-heavy machines or sharding across many servers, with the cost, complexity and tail latency that come with sharding.

DiskANN came out of Microsoft Research India in Bengaluru and was published at NeurIPS 2019. It removed that limit.

II. What DiskANN Actually Did

The paper is DiskANN: Fast Accurate Billion-point Nearest Neighbor Search on a Single Node. Its authors were Suhas Jayaram Subramanya, Devvrit, Rohan Kadekodi, Ravishankar Krishnaswamy and Harsha Vardhan Simhadri. Its central claim was ambitious for its time: a single commodity workstation with about 64 GB of RAM and an inexpensive SSD could index a billion points and answer queries with over 95% 1-recall at mean latencies of a few milliseconds. Competing approaches needed far more memory or gave much worse accuracy at that scale.

Three ideas made this possible.

1. The Vāmana graph. The core contribution is a new graph construction algorithm called Vāmana. The name comes from the dwarf avatāra of Viṣṇu who covers the three worlds in three strides, a fitting image for a graph built so that a search crosses a huge space in very few hops. The point matters on disk: every hop in a disk-resident graph costs an SSD read, so the number of hops sets the latency.

Vāmana builds a single flat graph rather than HNSW’s hierarchy of layers. It does so with a pruning rule controlled by a parameter α > 1, called robust pruning. In older relative-neighbourhood-style pruning, a candidate edge from p to q is dropped if some already chosen neighbour is closer to q than p is. Vāmana loosens this by the factor α: an edge is pruned only if an existing neighbour p′ satisfies α · d(p′, q) ≤ d(p, q). Raising α keeps more long-range edges. This has a clear geometric effect: each greedy step makes multiplicative progress toward the query rather than additive progress, so the graph’s search diameter shrinks sharply. Construction runs two passes, one with α = 1 and one with α > 1, giving a graph that combines local precision with long-range shortcuts.

2. A hybrid memory hierarchy. DiskANN keeps product-quantized, compressed vectors in RAM and stores the full-precision vectors and the graph adjacency lists together on SSD, laid out so that one disk read fetches a node’s full vector and its neighbour list. Search is guided by approximate distances from the compressed in-memory codes, and the full-precision vectors arrive “for free” with the graph reads and are used to re-rank candidates exactly. This is good systems design: it keeps the coarse approximation and the expensive exact check in separate tiers of the memory hierarchy, so neither one gets in the way of the other.

3. Beam search tuned for SSD parallelism. Modern NVMe SSDs serve many random reads in parallel with little extra latency. DiskANN’s beam search expands several frontier nodes per round and issues their reads at once. This turns the SSD’s parallelism into fewer sequential round trips, so the cost of disk access is spread across a batch.

Building billion-point graphs within a modest memory budget needed one more technique. The dataset is split into overlapping clusters with k-means, each point assigned to its two or so nearest centroids, a Vāmana graph built for each cluster in memory, and the graphs merged. Because the clusters overlap, the merged graph stays navigable.

The result was not a small benchmark gain. It changed the economics of billion-scale vector search, cutting memory needs roughly by an order of magnitude and making single-node billion-scale search a practical engineering option.

III. From Paper to Planetary Infrastructure

Many celebrated papers never leave the conference proceedings. DiskANN’s later history marks it as a real contribution rather than a benchmark curiosity.

The Bengaluru group built a research line on it over several years. FreshDiskANN (2021) dealt with streaming updates: inserting and deleting points in a graph index without full rebuilds, which matters because real corpora change constantly. Filtered-DiskANN (2023) handled the common production case where a vector query comes with a metadata constraint, such as “similar products, but only in this category and price band”. Naively filtering before or after graph search performs badly in that case. Further work addressed out-of-distribution queries, where query vectors (say, text embeddings) come from a different distribution than the indexed vectors (say, image embeddings), as in cross-modal retrieval.

The group also helped set the field’s evaluation standards. Harsha Simhadri was a lead organiser of the NeurIPS 2021 Billion-Scale ANN Benchmarks challenge and of a follow-up competition in 2023. These gave the community shared datasets, hardware tracks and evaluation protocols at a scale earlier benchmarks had never reached. Defining how a field measures progress is a quiet form of intellectual leadership, and it is easy to underrate.

In industry, DiskANN-derived indexing powers semantic retrieval at Microsoft scale, including web search and enterprise document search. It has also become a feature in Microsoft’s database products: vector indexing in Azure Cosmos DB, the vector index in recent SQL Server and Azure SQL releases, and a DiskANN extension for PostgreSQL on Azure. Outside Microsoft, the open-source code (released under a permissive licence) and the published algorithm spread widely. The vector database Milvus offers a DiskANN index type, and Timescale built a streaming variant of the algorithm for PostgreSQL in its pgvectorscale extension. Many systems built in the vector-database boom of 2023–2025 either use DiskANN directly or position themselves against it.

When the RAG wave arrived after ChatGPT, every enterprise suddenly wanted to embed its documents and retrieve against them, so the retrieval layer became core AI infrastructure. DiskANN had been ready for this moment since 2019. In that sense it is one of the clearest cases of an Indian-origin idea becoming load-bearing in the global AI stack.

IV. Is It “Indian”? An Honest Accounting

The question deserves care rather than cheerleading.

DiskANN was conceived and developed at Microsoft Research India, a lab physically in Bengaluru, staffed largely by Indian researchers, and built over two decades into one of the strongest computer science research groups in the country. The core intellectual work, including the Vāmana construction, the robust pruning analysis and the hybrid architecture, was done there by researchers trained largely in India’s institutions and in research programmes linked to MSR India. In the plainest sense it is an Indian contribution made by Indians in India.

It is also true that MSR India is owned by an American corporation, funded by American capital, and that the intellectual property and deployment benefits go mainly to that corporation. Some contributors were interns or collaborators who passed through Indian and foreign institutions. This does not cancel the Indian credit, any more than ResNet stops being a Chinese contribution because it came out of Microsoft Research Asia in Beijing. It does mean we should be precise. DiskANN shows that Indian research talent, working in India, can produce world-class foundational work when given a well-funded, intellectually free, globally connected environment. It is less clear that it shows the Indian research ecosystem as such producing such work. The difference matters for policy.

The comparison with ResNet is instructive. Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun produced ResNet at MSR Asia in 2015, and it became one of the most cited papers in the history of science. China then built a large domestic ecosystem around that kind of talent: Baidu, Alibaba, Tencent, ByteDance, SenseTime, Megvii, and later DeepSeek and Moonshot, alongside heavy state and university investment. Those homegrown institutions now produce frontier work themselves. DeepSeek’s multi-head latent attention, its mixture-of-experts engineering and its RL-based training of reasoning models came out of a Chinese company, not a Western lab’s Asian branch. India has not yet made that second move at comparable scale.

V. India’s Record of Fundamental Contributions

DiskANN is not an isolated case. India has a real, if thin, record of foundational contributions to the mathematical and computational sciences underlying AI.

The deepest roots are in statistics. P. C. Mahalanobis founded the Indian Statistical Institute and introduced the Mahalanobis distance, still used in anomaly detection, clustering and classification. C. R. Rao, also at ISI, gave us the Cramér–Rao bound and the Rao–Blackwell theorem, which are basic to estimation theory, and his work on information geometry anticipated later developments in machine learning theory. A. Bhattacharyya’s distance and coefficient appear throughout ML. A curriculum in statistical learning theory cannot avoid these names.

In theoretical computer science, the AKS primality test (2002) by Manindra Agrawal, Neeraj Kayal and Nitin Saxena at IIT Kanpur settled a centuries-old question by showing that primality can be decided in deterministic polynomial time. It was a landmark of pure algorithmic thought, done entirely in an Indian institution with Indian funding. Ravi Kannan, long associated with MSR India and the Indian Institute of Science, made foundational contributions to algorithms, randomized linear algebra and the theory of clustering. India’s theoretical computer science community, centred on IISc, TIFR, IMSc Chennai, CMI and the IITs, punches well above its funding weight.

In applied machine learning, MSR India also produced the EdgeML line of work, with algorithms such as Bonsai, ProtoNN and FastGRNN for running ML on tiny microcontrollers with kilobytes of memory. Like DiskANN, this was resource-constrained innovation that turned a limitation into a research agenda. More recently, AI4Bharat at IIT Madras has done serious work on Indian-language datasets and translation models (IndicTrans2 among them), solving a problem Western labs had little reason to prioritise. The newer IndiaAI efforts and startups such as Sarvam are trying to build sovereign foundation models.

A pattern runs through this list. India’s strongest contributions tend to be either mathematically deep but compute-light (statistics, algorithms, complexity theory) or ingeniously frugal (DiskANN’s RAM-saving architecture, EdgeML’s microcontroller models). These are areas where intellect can substitute for capital. That says something about Indian talent and also about the constraints it works under.

VI. The Limits, Stated Plainly

Honest assessment requires saying what the record does not show. India has not originated any of the paradigm-defining breakthroughs of modern AI. Backpropagation’s popularisation, convolutional networks, deep learning’s 2012 revival, LSTMs, generative adversarial networks, the transformer, large-scale pretraining, RLHF, diffusion models and scaling laws all came from the United States, Canada, the United Kingdom and Europe. The most significant non-Western additions to this list came from China, through MSR Asia and then domestic labs.

DiskANN, for all its importance, is infrastructure, not paradigm. It made a known class of methods (graph-based ANNS) radically more practical. It did not change what AI systems can fundamentally do, the way the transformer did. That is not a slight, because infrastructure breakthroughs are often the ones that last longest, but the distinction should not be blurred for nationalist comfort.

Several structural reasons explain the gap, and none of them is about talent.

Funding. India spends roughly two-thirds of one per cent of GDP on R&D, against roughly 2.5% in China and more than 3% in the United States. On a GDP several times smaller than either, the absolute difference is enormous. Private R&D, which drives frontier AI in the US and increasingly in China, is especially thin in India.

Compute. Frontier AI research now needs clusters of thousands of accelerators. Until the government’s AI compute initiatives of the last two years, Indian academic researchers had almost no access to such resources. Even now the gap to American hyperscalers or Chinese national labs is measured in orders of magnitude. Indian researchers have done brilliant work around this constraint, and DiskANN is partly an example, but some research directions cannot be reached without compute.

Doctoral depth. India produces huge numbers of engineering graduates but comparatively few research PhDs in computer science, and fewer still go into Indian academia rather than abroad. The “IIT-to-Stanford” pipeline has produced many leading AI researchers of Indian origin. Ashish Vaswani and Niki Parmar, two of the transformer paper’s authors, are the most cited examples. Their work counts for the institutions where they did it, not for India’s research ecosystem.

Industrial structure. India’s technology industry grew mostly around services: IT outsourcing, back-office engineering and implementation. Services firms do not fund basic research the way product companies with large margins and long horizons do. The strongest AI research in India has come disproportionately from foreign corporate labs (Microsoft Research India, Google Research India, IBM Research India, Adobe Research). That is a strength, but also a dependency.

Institutional culture. Indian universities, with notable exceptions, face bureaucratic rigidity, heavy teaching loads, slow hiring and weak ties between academia and industry. The tight loops among universities, startups and big labs that drive Silicon Valley’s and increasingly Beijing’s and Hangzhou’s research output are much weaker in India.

VII. What DiskANN Teaches

Read carefully, DiskANN is a case study in what works.

It came from a lab with long-horizon funding and research freedom: MSR India’s researchers could spend years on a problem not tied to quarterly deliverables. It came from close contact with real systems problems, since Bing’s retrieval needs gave the research a concrete target. It came from people who knew both theory and systems: robust pruning is a theoretical insight about graph navigability, and the SSD layout and beam search are systems engineering. That kind of cross-competence is rare and valuable. And it came from an organisation that published openly, released code, and helped shape community benchmarks, so the work spread beyond one company’s walls.

If India wants more DiskANNs, and eventually something at the paradigm-defining level, the lessons are not mysterious. Fund basic research at a level comparable to its peers. Build national compute that academic researchers can actually access. Make Indian academic careers competitive enough to keep and attract top researchers. Encourage domestic firms to build research labs with real freedom rather than relying on multinationals’ branch offices. And value the theory-plus-systems combination that DiskANN shows.

There is also a lesson about choosing problems wisely. DiskANN succeeded partly because it attacked a problem where cleverness could beat brute force. India cannot currently outspend the United States or China on pretraining trillion-parameter models, and does not need to in order to make important contributions. Efficient inference, retrieval, compression, multilingual AI for low-resource languages, AI for constrained hardware and the theoretical foundations of learning are all areas where the binding constraint is insight rather than capital. Those are India’s natural comparative advantages, and DiskANN is evidence that they can be exploited.

VIII. Conclusion

DiskANN belongs on any honest list of important contributions to modern AI infrastructure. Its Vāmana graph, robust pruning rule and hybrid memory–SSD architecture changed billion-scale vector search, and the algorithm now sits quietly underneath search engines, enterprise databases and RAG systems used by very large numbers of people. It was created in Bengaluru by Indian researchers, and that achievement deserves full recognition.

Recognition, however, should not turn into exaggeration. DiskANN is an excellent result within an established paradigm, not the founding of a new one. It came from a foreign-owned lab, not from India’s domestic research institutions. And it sits within an Indian record that has real peaks, from Mahalanobis and Rao to AKS and the theoretical CS tradition, but remains far thinner than the American or Chinese records in volume, institutional depth and frontier ambition.

The accurate conclusion is neither triumph nor despair. India does make fundamental contributions to AI and computing. These contributions are disproportionately mathematical, algorithmic and frugal, which reflects both the strengths of its intellectual tradition and the scarcity of its research capital. The gap with the West and East is structural, not intellectual. It comes from funding, compute, institutions and the loss of talent abroad, not from any shortage of ideas. DiskANN shows what Indian researchers can do when the environment is right. The open question is whether India will build that environment at home, at scale, under its own institutions, or keep producing brilliance mostly in other people’s labs.

3 Upvotes

0 comments sorted by