Mo Tiwari
· 6 previous affiliations
- Stanford UniversityCurrent
- Current
- PhD student · 2017–2023
- OpenAI (United States)2024–2025
- Member of Technical Staff · 2024–2025
- Meta (United States)2015–2017
- Software Engineer · 2015–2017
- Expanse2014–2015
- Security Research Scientist · 2014–2015
- DRW Trading Group2013
- Researcher · 2013
- California Institute of Technology2009–2013
- Bachelor of Science (B.Sc.) with Honors, Mathematics and Physics · 2010–2013
- Undergrad student · 2009–2013
Research Overview
Mo Tiwari focuses on accelerating core machine learning algorithms through adaptive sampling, optimizing decision tree structures, and evaluating the security and reasoning capabilities of large language models. His trajectory spans foundational improvements to clustering and tree-building using multi-armed bandits, while his recent work investigates formal verification and vulnerabilities in multi-agent systems.
Research Trajectory
Tiwari’s early research spans applied data science and foundational algorithmic improvements. In 2020, he contributed to analyzing macro-level educational trends in Using Google Search Trends to Estimate Global Patterns in Learning. Concurrently, he began a major line of work on accelerating combinatorial optimization using multi-armed bandits. He introduced BanditPAM: Almost Linear Time k-Medoids Clustering via Multi-Armed Bandits, which reduces the complexity of Partitioning Around Medoids (PAM) iterations from quadratic to $O(n \log n)$. This adaptive sampling approach was subsequently extended to ensemble learning in MABSplit: Faster Forest Training Using Multi-Armed Bandits (2022), which improves the sample complexity of node-splitting in random forests. During this period, he also explored quantum machine learning, contributing to Image Compression and Classification Using Qubits and Quantum Deep Learning, a framework for embedding larger, realistic images into quantum states. This work aligns with the broader research direction of Symmetry Aware Quantum Circuit Architectures.
In 2023, Tiwari formalized his adaptive sampling methodologies in his dissertation, Accelerating Machine Learning Algorithms with Adaptive Sampling, demonstrating how randomized subroutines can yield massive speedups without sacrificing model quality. He further advanced clustering efficiency with BanditPAM++: Faster $k$-medoids Clustering, achieving an $O(k)$ theoretical speedup over the original BanditPAM by reusing distance computations.
Simultaneously, his focus expanded to the global optimization and probabilistic modeling of decision trees. He guided the development of a generalized Top-$k$ splitting algorithm in Harnessing the power of choices in decision tree learning, bridging the gap between greedy heuristics and exact solvers. To address the slow convergence of traditional MCMC methods in tree sampling, he developed Bayesian Decision Trees via Tractable Priors and Probabilistic Context-Free Grammars, mapping tree topologies to PCFGs for exact, polynomial-time posterior inference.
Tiwari also participated in foundational work on generative modeling and language model evaluation. He collaborated on GFlowNet Foundations (2023), which established rigorous mathematical objectives for Generative Flow Networks. In the domain of natural language processing, he contributed to the massive collaborative benchmark Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models. This work intersects with the research direction of Understanding Emergence in Large Language Models and the area of Benchmark Distillation for Efficient Model Evaluation.
Returning to algorithmic efficiency in 2024, he introduced Faster Maximum Inner Product Search in High Dimensions, framing MIPS as a multi-armed bandit problem to achieve $O(1)$ complexity with respect to vector dimension. He also continued his work on optimal tree structures with MAPTree: Beating "Optimal" Decision Trees with Bayesian Decision Trees, which identifies the Maximum A Posteriori tree through efficient graph search, advancing the research direction of AND/OR Search Decomposition for Graphical Models.
More recently, Tiwari's research has pivoted toward the security and reasoning capabilities of autonomous agents. He identified critical vulnerabilities in multi-agent networks in Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems, demonstrating how malicious instructions can self-replicate across agents. This highlights challenges in the research direction of The Inverse Scaling of Model Capability and Security and touches upon the broader area of Decentralized Identity Verification without Central Authorities. Extending his focus to rigorous reasoning, he contributed to LeanAgent: Lifelong Learning for Formal Theorem Proving (2025), exploring how agents can continuously improve at formal mathematics. This culminated in his participation in VeriBench: An End-to-End Formal Verification Benchmark for AI Coding Agents in Lean 4 (2026), which evaluates the capacity of modern models to translate Python code into fully verified Lean 4 artifacts, exposing a significant gap in automated specification generation.
Current Directions
Based on his most recent papers, Tiwari’s current research focuses on the intersection of large language models, formal verification, and multi-agent security. Recent work investigates how AI agents can be leveraged for rigorous mathematical reasoning and end-to-end formal verification, particularly using environments like Lean 4. This involves addressing the "specification gap," where modern models struggle to define correct theorems that accurately cover intended program behaviors. Concurrently, he is exploring the security implications of deploying these models in multi-agent systems, focusing on how vulnerabilities like self-replicating prompt injections can compromise networked LLMs and coordinate system-wide disruptions.
Profile updated
Loading new papers…
Other researchers whose papers cluster into the same research directions — a proxy for overlapping technical interests and shared intellectual neighborhoods.
See something wrong? Report a mistake