Shreyas Kapur

University of California, Berkeley · International Computer Science Institute
5 previous affiliations
4Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shreyas Kapur focuses on developing algorithms that enable artificial intelligence to construct rich, interpretable models of the world with the efficiency and robustness of human cognition. His work spans program synthesis, generative models for planning, and mechanistic interpretability, with a particular emphasis on how neural architectures represent internal reasoning and structured data. Currently a doctoral student at Berkeley AI, Kapur’s research investigates the transition from standard autoregressive generation toward iterative, search-augmented methods that preserve syntactic and logical constraints.

Research Trajectory

Kapur’s early research, conducted at the MIT Media Lab’s Fluid Interfaces Group, centered on human-computer interaction and the development of novel wearable interfaces. This period was defined by the creation of systems that bridge the gap between internal human thought and digital input. A primary output of this phase was the development of a wearable silent speech interface that captured neuromuscular signals from internal speech articulators. This work demonstrated that intention-to-speak could be reconstructed into natural language without audible sound or discernible physical movement, enabling a discreet, bidirectional interface between users and computing devices.

Following his transition to Berkeley AI, Kapur’s focus shifted toward the internal mechanisms of large-scale neural networks and the fundamental limitations of current generative paradigms. This shift marked a move from external interface design to the study of "internal" computational processes within AI agents. One significant line of inquiry involved mechanistic interpretability, where he participated in research investigating whether high-level performance in neural networks arises from surface-level heuristics or deeper internal simulations. By analyzing chess-playing neural networks, this work provided evidence that such models represent future states—effectively "looking ahead"—within their hidden layers, and that this internal representation is causally linked to their decision-making performance.

More recently, Kapur has addressed the limitations of autoregressive generation in Large Language Models (LLMs), particularly in the domain of code generation and program synthesis. Recognizing that token-by-token generation often lacks the feedback necessary for complex reasoning, he has proposed new generative frameworks based on diffusion processes. This approach treats program synthesis as an iterative denoising task performed on syntax trees rather than a sequential prediction task. By operating on the underlying grammar of a language, these models can maintain syntactic validity while allowing for global edits and integration with search algorithms.

Kapur’s most recent work evaluates the reasoning and self-correction capabilities of LLMs. This research examines whether models can be trained to recognize and fix their own errors through supervised fine-tuning on synthetic data. The findings suggest a significant gap between a model's ability to correct artificially injected errors and its ability to generalize that correction to its own natural reasoning failures. This trajectory reflects an ongoing interest in the boundaries of current learning paradigms and the search for more robust methods of achieving reliable, multi-step reasoning in AI systems.

Representative Work

In AlterEgo: A Personalized Wearable Silent Speech Interface, Kapur contributed to the design and implementation of a peripheral neural interface. The system utilizes surface electromyography (sEMG) to capture signals from the internal speech articulators when a user "thinks" words. The research focused on the reconstruction of these signals into a natural language interface, allowing for silent communication with AI assistants and other users. This work highlighted the potential for seamless, concealed human-machine interaction by leveraging the neuromuscular pathways associated with internal speech.

In the domain of mechanistic interpretability, Kapur participated in the study Evidence of Learned Look-Ahead in a Chess-Playing Neural Network. The research utilized the Leela Chess Zero engine to explore how deep neural networks process strategic information. By applying interpretability tools to the network's hidden layers, the study demonstrated that the model internally simulates moves several turns into the future. This finding was significant for the field as it provided empirical evidence that grandmaster-level performance in neural networks can be underpinned by structured, internal search-like processes rather than purely reactive pattern matching.

As a primary contributor to Diffusion On Syntax Trees For Program Synthesis, Kapur proposed a departure from the standard autoregressive generation model used in code synthesis. The paper introduces neural diffusion models that operate directly on the syntax trees of context-free grammars. Unlike sequential models that generate code one token at a time without observing the program's output, this method iteratively edits and "denoises" the syntax tree. This approach ensures that the generated code remains syntactically valid at each step and allows the model to effectively "debug" its way toward a target specification, facilitating a more effective combination of neural generation and symbolic search.

In Synthetic Error Injection Fails to Elicit Self-Correction In Language Models, Kapur investigated the efficacy of teaching LLMs to self-correct through supervised fine-tuning (SFT). The study explored whether injecting artificial mistakes into reasoning chains and supervising their correction could improve model performance. The research found that while models could learn to fix these "fake" errors, the skill did not generalize to the models' own natural errors during inference. This work provides a critical perspective on the limitations of synthetic data for teaching complex reasoning behaviors, suggesting that on-policy reinforcement learning remains a necessary, if more computationally expensive, alternative for developing reliable self-correction.

Profile updated

See something wrong? Report a mistake