Shivanshu Gupta

Shivanshu Gupta

Adobe Systems (United States)
6 previous affiliations
11Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Shivanshu Gupta focuses on natural language processing, in-context learning, and the development of large language model agents. His early work addressed systematic generalization and task decomposition for complex reasoning. More recently, his research investigates dynamic example retrieval and the application of influence functions to optimize sequential decision-making in language agents.

Research Trajectory

Shivanshu Gupta’s research trajectory began with a focus on semantic parsing and compositional generalization during his doctoral studies at the University of California, Irvine. His early work sought to address the brittleness of natural language processing models when faced with out-of-distribution structural patterns. As first author of Structurally Diverse Sampling Reduces Spurious Correlations in Semantic Parsing Datasets (2022), he proposed a model-agnostic algorithm for subsampling training instances to ensure structural diversity, demonstrating that this approach mitigates spurious correlations and improves generalization across multiple semantic parsing datasets.

Around the same time, Gupta began exploring how large language models (LLMs) handle complex, multi-step queries. He contributed to the research direction of Finding the Optimal Granularity for Task Decomposition as a co-author on Successive Prompting for Decomposing Complex Questions (2022). This work introduced an iterative method to break down complex tasks into simpler sub-tasks, solving them sequentially rather than in a single pass. This approach aligned with the broader area of Iterative Refinement for Reliable Language Model Reasoning, decoupling the supervision required for task decomposition from the supervision needed for answering the underlying simple questions.

By 2023, Gupta’s primary focus shifted toward optimizing in-context learning (ICL). Recognizing that static prompts often fail to capture the specific reasoning patterns required for diverse queries, he investigated the theme of Dynamic Retrieval for In-Context Learning. In Coverage-based Example Selection for In-Context Learning (2023), he and his collaborators demonstrated that independently ranking examples by similarity often yields redundant prompts. As first author, he introduced set-level metrics based on BERTScore-Recall to ensure that selected demonstrations collectively cover the salient aspects of a test input, advancing the area of Collective Optimization of In-Context Demonstrations.

Continuing this trajectory during an internship at ASAPP Inc., Gupta developed more efficient methods for retrieving ICL examples. He led the development of GistScore: Learning Better Representations for In-Context Example Selection with Gist Bottlenecks (2023), which won a Best Paper Award at NAACL-SRW 2024. The paper introduced a novel metric that trains example retrievers using an attention bottleneck, effectively compressing task instructions to improve retrieval quality without the computational expense of relying on feedback from massive LLMs. This work contributed significantly to the area of Aligning Retrieval with Language Model Utility.

In 2024 and 2025, including time spent researching with the Aristo team at the Allen Institute for AI, Gupta expanded his ICL research into the domain of sequential decision-making. As first author of Leveraging In-Context Learning for Language Model Agents (2025), he addressed the unique challenges of applying ICL to agentic tasks, proposing an algorithm that automatically annotates long trajectories and dynamically selects demonstrations to guide language model agents through complex environments.

Simultaneously, he has explored the internal mechanics of language models to better understand their training quality. As a contributing author on LayerIF: Estimating Layer Quality for Large Language Models using Influence Functions (2025), Gupta helped develop a data-driven framework that moves beyond simple architectural heuristics, using influence functions to map the quality and utility of individual Transformer layers for specific downstream applications.

Current Directions

Recent work investigates the application of influence functions to understand and improve both large language models and in-context learning mechanisms. The most recent papers in the evidence address how data-driven metrics can estimate the training quality of individual transformer layers, providing a more nuanced view of model architecture than traditional monolithic evaluations.

Additionally, Gupta is actively exploring "indirect" in-context learning, utilizing influence functions to better capture the informativeness of demonstration examples in noisy or multi-task environments. This represents a synthesis of his prior work on dynamic example retrieval with deeper, mechanistic approaches to model evaluation, ultimately aiming to build more reliable and capable language model agents.

Profile updated

See something wrong? Report a mistake