Mayank Agarwal

Liquid AI
5 previous affiliations
38Machine learning papers tracked by Lacuna

1 other author named Mayank Agarwal: Mayank Agarwal (Carnegie Mellon University · 1 paper)

Is this you?

Research Overview

Mayank Agarwal focuses on the intersection of natural language processing, software engineering, and machine learning, with particular emphasis on code generation and tool-augmented language models. His trajectory spans early work in federated learning and meta-learning to robust code translation systems. Most recently, his research addresses the alignment, evaluation, and function-calling capabilities of large language models in complex reasoning environments.

Research Trajectory

Agarwal's early research explored representation learning across diverse domains, beginning with computer vision. He contributed to 3D-LMNet: Latent Embedding Matching for Accurate and Diverse 3D Point Cloud Reconstruction from a Single Image (2018), which addressed the challenge of generating accurate 3D structures from monocular images. Concurrently, he developed methods for decentralized model training, participating in the broader research direction of One-Shot Federated Learning. This work included Statistical Model Aggregation via Parameter Matching (2019), which introduced a Bayesian nonparametric framework for aggregating heterogeneous, sequestered datasets without pooling the underlying data. He extended these meta-modeling principles to complex architectures in Bayesian Nonparametric Federated Learning of Neural Networks (2019), and later revisited this domain to explore Personalization in Federated Learning (2022).

Moving into natural language processing and software engineering, Agarwal began investigating how machine learning models understand, translate, and generate programming languages. He led Quality Estimation & Interpretability for Code Translation (2020), examining the disconnect between a model's internal confidence scores and actual code quality metrics like lint errors. This work contributed to the area of Internal Probabilistic Signals for LLM Confidence and Calibration. He also organized the NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commands, which advanced research areas such as Evaluating Functional Equivalence in AI Generated Code and the broader field of Robust Translation from Natural Language to Formal Code. To address the scarcity of parallel training data in the programming domain, he introduced Using Document Similarity Methods to create Parallel Datasets for Code Translation (2022), leveraging unsupervised neural machine translation techniques to advance the research direction of Bridging the Parallel Data Gap in Program Translation.

Alongside his work in code generation, Agarwal investigated the robustness of few-shot learning systems. In On sensitivity of meta-learning to support data (2021), he demonstrated how modern meta-learning algorithms can be highly sensitive to the specific support data used for adaptation, showing that accuracy on standard benchmarks could swing dramatically based on the selection of natural, in-distribution images.

In recent years, Agarwal's focus has shifted toward the alignment, structural understanding, and tool-use capabilities of large language models (LLMs). He proposed a modular approach to AI safety in Aligners: Decoupling LLMs and Alignment (2024), training portable "aligner" models and inspectors to post-process outputs without requiring expensive fine-tuning of the base model. He also collaborated on An Investigation of Representation and Allocation Harms in Contrastive Learning (2024), examining fairness and bias in representation learning. Returning to code intelligence, he demonstrated in Structured Code Representations Enable Data-Efficient Adaptation of Code Language Models (2024) that adapting models using serialized Concrete Syntax Trees significantly improves data efficiency compared to plain text, allowing models to learn structural rules with a fraction of the standard data requirements.

A major recent theme in his trajectory is the orchestration of external tools by LLMs. Agarwal contributed to the development of the Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks (2024), which utilized multi-task learning across granular sub-tasks to improve tool-use performance. He subsequently introduced ToolRM: Outcome Reward Models for Tool-Calling Large Language Models (2025), creating specialized reward models and the FC-RewardBench benchmark to better evaluate tool calls, noting that general-purpose models often fail as reliable judges in this domain. He oversaw research into how models handle the data returned by these tools in How Good Are LLMs at Processing Tool Outputs? (2025), finding that models often struggle to process complex JSON responses directly—a key challenge in the broader area of Autonomous Agents with Executable Code Actions. Furthermore, he participated in evaluating these systems under extended context conditions in LongFuncEval: Measuring the effectiveness of long context models for function calling (2025), which highlighted significant performance drops when models are forced to navigate massive tool catalogs and lengthy multi-turn conversations.

Current Directions

The most recent papers in the evidence indicate a strong focus on the practical deployment, evaluation, and reliability of tool-augmented large language models. This work addresses the critical gap between an LLM's ability to invoke an external API and its capacity to accurately process the resulting data, particularly in long-context scenarios or when handling complex structured formats like JSON. Additionally, ongoing research investigates modular approaches to model alignment—separating safety constraints from core capabilities—and the use of explicit structural representations, such as syntax trees, to improve the data efficiency of code-specific language models.

Profile updated

See something wrong? Report a mistake