Adi Ganesh
Adi Ganesh is a technologist and researcher who was selected as a Thiel Fellow in 2014 and writes technical articles on mathematics and machine learning on his personal website.
Contents9 sections
Key facts
Early Life: Math Competitions
Adi Ganesh took part in math competitions when he was younger; in a 2025 blog post he wrote that he first encountered an inequality he really likes “in a past life when I used to do math competitions.”[1]
Education: Mathematics and Computer Science at Stanford University
He studied mathematics and computer science at Stanford UniversityStanford UniversityStanford University is a research university in California founded by Leland and Jane Stanford in 1885 and opened in 1891.Open the full entry.[2][3]
He recalled that in college he used a local LaTeX workflow to typeset lecture notes live in class.[4]
2014Selected as a Thiel Fellow
In 2014, under the name Adithya Ganesh, he was among the new class of 20 Thiel FellowshipThiel FellowshipThe Thiel Fellowship is a two-year grant program started by investor Peter Thiel and run by the Thiel Foundation that funds young people who skip or stop out of college to build new things instead. The program has been criticized by figures in education for encouraging young people to leave college.Open the full entry fellows announced by Peter ThielPeter ThielPeter Thiel is an American entrepreneur and investor, a co-founder of PayPal and Palantir Technologies, and the first outside investor in Facebook. He is a partner at the venture capital firm Founders Fund and founded the Thiel Fellowship, which funds young people to leave college and build new things; his public skepticism of higher education, his support for Trump in 2016, and his funding of litigation against Gawker Media have drawn controversy.Open the full entry. Each fellow received $100,000 from the Thiel Foundation, mentorship from the foundation’s network of tech entrepreneurs, investors, scientists and other innovators, and support in bringing scientific and technical projects to life and learning entrepreneurship.[3][5]
A June 2014 article introducing the class gave his age as 17 and his hometown as Plano, TexasTexasTexas is a U.S. state in the south-central United States, with its capital at Austin and its largest city Houston. It was admitted to the Union on December 29, 1845, as the 28th state, and the 2020 census (April 1, 2020) counted 29,145,505 residents.Open the full entry; he was then a computer science student on leave from Stanford University.[3][5]
He was a co-inventor of IntentSense, an intelligent bionic glove for partial hand amputees, and was interested in using machine learning and predictive analytics to personalize bionics and health care in general.[3]
Spring 2018Taking CS168
In spring 2018 he took CS168, “The Modern Algorithmic Toolbox,” taught by Greg Valiant at Stanford University. He wrote that it was his favorite technical class at Stanford, describing it as a versatile grab-bag of ideas.[6]
Winter 2020Co-teaching CS43
As of November 2026: Research at OpenAI
As of November 2026, he described himself as a technologist based in the San Francisco Bay Area who works on research at OpenAIOpenAIOpenAI is an artificial intelligence research and product organization founded in 2015 that develops the GPT model series, ChatGPT, Codex and a developer API, and conducts research on image, speech, video and intelligent agents. After its 2025 restructuring, the nonprofit OpenAI Foundation continues to control the for-profit OpenAI Group PBC. Its growth has involved large-scale fundraising and compute partnerships, and has also been accompanied by controversies over governance, copyright, privacy and AI safety.Open the full entry, listing machine learning, systems and entrepreneurship among his interests.[2]
By his own account, before joining OpenAI he worked on transformer models at MetaMetaMeta (Meta Platforms, Inc.) is a publicly listed American technology company, renamed from Facebook in 2021, that operates social communication, digital advertising, virtual reality, smart glasses and artificial intelligence businesses.Open the full entry, and before that on perception at Nuro.[2]
Technical Writing
He publishes technical articles on mathematics and machine learning on his personal website. On December 23, 2016, he published “The Meissel-Lehmer algorithm,” which explains how the Meissel-Lehmer algorithm computes the prime-counting function π(x) more efficiently than sieving or Legendre’s formula and includes a Python implementation; he wrote that he took it up while working on Project Euler’s Problem 543, whose efficient solution requires a fast algorithm.[10][11]
On December 15, 2018, he published “Pólya-Burnside enumeration in combinatorics,” which explains how Burnside’s lemma and cycle index polynomials from group theory count objects regarded as equivalent under symmetry, with examples such as flag colorings and bracelets. On January 1, 2019, he published “The principle of maximum entropy,” which introduces Shannon entropy, relative entropy (KL divergence) and the principle of maximum entropy, shows that the maximum-entropy distribution is uniform, Gaussian or exponential under different constraints, and applies the idea to dice and the Wallis experiment.[12][13]
On July 13, 2019, he published “The modern algorithmic toolbox,” his notes based on the CS168 course, covering topics including consistent hashing, the Johnson-Lindenstrauss transform, singular value decomposition, tensor rank, spectral graph theory, reservoir sampling, sparse recovery and differential privacy.[6]
On August 20, 2023, he published “GPT in words and code,” which walks through the components of the GPT-2 architecture: byte-pair encoding tokenization, word and positional embeddings, and the transformer block with attention, multi-head attention, the feed-forward network and LayerNorm. He argued that rewriting a model’s forward pass and matching a pre-trained model’s outputs is an effective way to learn how it works, recommended reimplementing picoGPT’s gpt2 function as an exercise, and published his own implementation on GitHub.[14]
On November 4, 2023, he published “My local LaTeX workflow,” describing how he composes LaTeX documents on macOS: live auto-compilation with latexmk, vim-latex macros for faster typing, the Skim PDF viewer, tmux to run the editor and compiler side by side, and inkscape-figures to import vector graphics; he wrote that he is a longtime user of vim.[4]
On November 7, 2023, he published “Speculative decoding for LLM inference,” which explains speculative decoding, in which a small draft model proposes tokens that a larger target model verifies to speed up large language model inference; it notes that at small batch sizes inference is limited by memory bandwidth, so checking several draft tokens costs about the same as generating one, and it closes with a proof that the method reproduces the target model’s output distribution.[15]
On August 20, 2025, he published “Using geometry to prove an inequality,” which discusses an inequality for positive numbers a, b and c and presents an algebraic proof produced by GPT-5, a geometric proof that applies the triangle inequality to a quadrilateral, and a link to an interactive visualization that he asked GPT-5 to build.[1]
Related Organizations, Websites, and Public Accounts
Personal website: https://adiganesh.com/ (opens in a new window).[11]
GitHub: Public profile: https://github.com/acganesh (opens in a new window).[14][9]
Thiel Fellowship: Official website: https://thielfellowship.org/ (opens in a new window).[16]
OpenAI: Official website: https://openai.com/ (opens in a new window).[17]
Sources17 sources
- Using geometry to prove an inequality (opens in a new window)adiganesh.com↑
- Adi Ganesh's Blog (opens in a new window)adiganesh.com↑
- Meet The 20 Young Entrepreneurs Who Will Receive $100,000 From Peter Thiel (opens in a new window)inc42.com↑
- My local LaTeX workflow (opens in a new window)adiganesh.com↑
- Thiel 20 Under 20: 4 Indians Make The Cut (opens in a new window)homegrown.co.in↑
- The modern algorithmic toolbox (opens in a new window)adiganesh.com↑
- CS43 - Class Information (opens in a new window)stanford-lambda.gitlab.io↑
- acganesh/compendium: Stanford course notes in math / CS (opens in a new window)github.com↑
- acganesh (Adi Ganesh) (opens in a new window)github.com↑
- The Meissel-Lehmer algorithm (opens in a new window)adiganesh.com↑
- Adi Ganesh (opens in a new window)adiganesh.com↑
- Pólya-Burnside enumeration in combinatorics (opens in a new window)adiganesh.com↑
- The principle of maximum entropy (opens in a new window)adiganesh.com↑
- GPT in words and code (opens in a new window)adiganesh.com↑
- Speculative decoding for LLM inference (opens in a new window)adiganesh.com↑
- Thiel Fellowship (opens in a new window)thielfellowship.org↑
- OpenAI (opens in a new window)openai.com↑