Sagnik Anupam

Sagnik Anupam

University of Pennsylvania
6 previous affiliations
6Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Sagnik Anupam focuses on enhancing the reasoning and execution capabilities of large language models through program synthesis, reinforcement learning, and agentic web navigation. His trajectory spans the development of domain-specific languages for mathematical problem-solving to the evaluation of autonomous agents in open-web environments. Currently, his work addresses program optimization and the refinement of reinforcement learning algorithms for language model reasoning.

Research Trajectory

In 2024, Anupam introduced MathDSL: A Domain-Specific Language for Concise Mathematical Solutions Via Program Synthesis, a domain-specific language designed to improve mathematical equation solving. By integrating this language with the DreamCoder program synthesis system, he demonstrated how automated reasoning systems can generate human-interpretable, step-by-step solutions with greater accuracy and conciseness than existing methods. This work contributes to the broader research direction of The Symbolic Bottleneck in Mathematical Reasoning, highlighting how structured symbolic representations can aid automated problem-solving and pave the way for more effective educational tools.

Expanding into the optimization of language models for complex tasks, Anupam collaborated on Effective Reinforcement Learning for Reasoning in Language Models in 2025. This research analyzes reinforcement learning algorithm design specifically tailored for language model reasoning in mathematics and coding, contrasting it with traditional robotics applications. The study investigates the computational efficiency and accuracy of on-policy reinforcement learning compared to supervised fine-tuning, as well as the effects of PPO-based off-policy updates on smaller models constrained by computational limits.

Shifting toward interactive and agentic systems, he developed BrowserArena: Evaluating LLM Agents on Real-World Web Navigation Tasks. Moving beyond sandboxed environments, this platform facilitates the evaluation of large language model agents on the live, open web. By collecting user-submitted tasks and step-level human feedback, the work systematically identifies consistent failure modes in web agents, such as captcha resolution, pop-up banner removal, and direct URL navigation. The project introduces targeted datasets to analyze how different models handle these specific navigational challenges.

Returning to the intersection of language models and programming languages, Anupam proposed LLM Program Optimization via Retrieval Augmented Search. This blackbox adaptation method applies beam search over candidate code optimizations. A critical finding of this work is that retrieving in-context examples based on language-model-generated natural language descriptions significantly outperforms traditional source-code-based retrieval, offering a novel approach to translating slow code into faster implementations.

Current Directions

The most recent papers in the evidence address the practical deployment and optimization of large language models in complex, interactive environments. Recent work investigates how to better align reinforcement learning algorithms with the specific demands of language model reasoning, moving away from paradigms originally designed for continuous control or robotics. Concurrently, there is a strong focus on building robust evaluation frameworks for autonomous web agents operating in unconstrained, real-world settings, emphasizing the need to systematically categorize and overcome live-web failure modes. Finally, ongoing efforts explore advanced retrieval mechanisms to guide language models in specialized tasks like program optimization, highlighting the utility of natural language abstractions over raw code representations when searching for algorithmic improvements.

Profile updated

See something wrong? Report a mistake