MCP
MA

Mayank Agarwal

43 papers in the library · Same-name authors told apart using DBLP

Papers

30
LFM3 Technical Report
Mayank AgarwalRouzbeh Amin TafreshiAlexander AminiIshwarya AnanthabhotlaFarris AtifMihir BafnaDavid BerriosSamuel J. BroughtonJonathan BuchananAldo Gael CarranzaTanush ChopraTarek Dakhran  +49
LFM3 is the third generation of Liquid Foundation Models, a natively multimodal family for edge devices, released as six 2B-class models sharing one pre-trained backbone. Using automated hardware-in-the-loop search, the backbone was designed together with three new multimodal components: a Liquid vision encoder matching the Qwen3.5-2B vision encoder's accuracy at 2.2x lower compute, a causal audio encoder that processes speech while the user is still talking, and the LiquidCodec speech codec, which decodes at 87x real time on a single CPU thread. The backbone combines gated short convolutions with sliding-window and global attention, so only a quarter of its layers keep a context-growing cache, and it is pre-trained on 22T tokens with a 256K-token context window. Benchmarks show the text model averaging 49.4 over 29 benchmarks versus 47.2 for Qwen3.5-9B, and the vision-language model averaging 71.4 over 62 vision benchmarks. The audio model covers recognition, synthesis, and translation in 18 languages, and all models are released with open weights.
arXivarXiv · · November 30, 2026
0
NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Calls
Kinjal BasuIbrahim AbdelazizKiran KateMayank AgarwalMaxwell CrouseYara RizkKelsey BradfordAsim MunawarSadhana KumaravelSaurabh GoyalXin WangLuis A. Lastras  +1
NESTFUL is a benchmark for evaluating LLMs on nested sequences of API calls, where the output of one call is passed as input to a subsequent call. It contains over 1800 executable nested sequences. The best model, GPT-4o, achieves only 28% full sequence match accuracy and 60% win-rate, showing substantial room for improvement in nested function calling.
ACL AnthologyACL Anthology · November 2025
0
68
How Good Are LLMs at Processing Tool Outputs?
Kiran KateYara RizkPoulami GhoshAshu GulatiTathagata ChakrabortiZidane WrightMayank Agarwal
This paper studies how well LLMs process structured tool outputs. It introduces a dataset for the tool response processing task and evaluates 15 models with multiple prompting strategies. Results show that JSON processing remains difficult even for frontier models; the optimal strategy depends on the size and nature of tool outputs and reasoning complexity, with performance differences varying from 3% to 50%.
arXivarXiv · · October 10, 2025
0
6
ToolRM: Outcome Reward Models for Tool-Calling Large Language Models
Mayank AgarwalIbrahim AbdelazizKinjal BasuMerve UnuvarLuis A. LastrasYara RizkPavan Kapanipathi
The paper presents ToolRM, an outcome reward model for tool-calling LLMs. To address the gap in reward modeling for tool use, the authors introduce FC-RewardBench, the first benchmark for evaluating reward models in tool-calling scenarios, showing that current models miss key signals. They train reward models (1.7B-14B parameters) on data synthesized from open-weight LLMs. These models consistently outperform general-purpose baselines across seven out-of-domain benchmarks, improving downstream task performance by up to 25%, robustness to noise, and enabling data-efficient fine-tuning.
OpenReviewOpenReview · · September 18, 2025
0
ToolRM: Outcome Reward Models for Tool-Calling Large Language Models
Mayank AgarwalIbrahim AbdelazizKinjal BasuMerve UnuvarLuis A. LastrasYara RizkPavan Kapanipathi
ToolRM introduces outcome reward models tailored for LLM tool-calling, addressing the gap that existing reward models, trained on natural language, fail to evaluate tool-based reasoning. The paper presents FC-RewardBench, a benchmark exposing this shortfall, and a training framework using synthetic data from open-weight LLMs. ToolRM models (1.7B-14B parameters) consistently outperform general-purpose baselines, achieving up to 25% improvement in Best-of-N sampling, while enhancing noise robustness, data filtering, and RL training.
arXivarXiv · · September 15, 2025
0
18
Assessing Engineering Student Perceptions of Introductory CS Courses in an Indian Context
Utsav Kumar NaretiDivyansh GuptaChandranath AdakSoumi ChattopadhyayEmma RieseTanujit ChakrabortyMayank AgarwalSatendra Kumar
This study examines 318 Indian engineering students' perceptions of assessments in an introductory programming course via a nine-week Likert-scale survey. Results show that students view lab assignments as effective, exams and projects as authentic, and instructors positively, though prior programming experience, technology familiarity, gender, and academic branch correlate with significant differences in perceptions and performance. The non-Gaussian performance distribution challenges common grade modeling assumptions, and comparison with European cohorts reveals both universal and context-specific patterns.
arXivarXiv · · August 6, 2025
0
1
LongFuncEval: Measuring the effectiveness of long context models for function calling
Kiran KateTejaswini PedapatiKinjal BasuYara RizkVijil ChenthamarakshanSubhajit ChaudhuryMayank AgarwalIbrahim Abdelaziz
This paper introduces LongFuncEval, a benchmark for measuring LLMs' ability to perform function calls under long contexts. It addresses three challenges: a large tool catalog, long API responses, and extended multi-turn conversations. The study modifies existing benchmarks for the first and third challenges and creates a new evaluation set for the second. By increasing input length and varying answer position, it observes performance drops of 7%–85% for more tools, 7%–91% for longer tool responses, and 13%–40% for longer conversations, showing LLMs struggle with long context in tool calling.
arXivarXiv · · April 30, 2025
0
25
Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks
Ibrahim AbdelazizKinjal BasuMayank AgarwalSadhana KumaravelMatthew StalloneRameswar PandaYara RizkG P Shrivatsa BhargavMaxwell CrouseChulaka GunasekaraShajith IkbalSachindra Joshi  +14
An emergent research trend explores the use of Large Language Models (LLMs) as the backbone of agentic systems (e.g., SWE-Bench, Agent-Bench). To fulfill LLMs’ potential as autonomous agents, they must be able to identify, call, and interact with a variety of external tools and application program interfaces (APIs). This capability of LLMs, commonly termed function calling, leads to a myriad of advantages such as access to current and domain-specific information in databases and the outsourcing of tasks that can be reliably performed by tools. In this work, we introduce Granite-20B-FunctionCalling, a model trained using a multi-task training approach on seven fundamental tasks encompassed in function calling. Our comprehensive evaluation on multiple out-of-domain datasets, which compares Granite-20B-FunctionCalling to more than 15 other best proprietary and open models, shows that Granite-20B-FunctionCalling has better generalizability on multiple tasks across seven different evaluation benchmarks. Moreover, Granite-20B-FunctionCalling shows the best performance among all open models and ranks among the top on the Berkeley Function Calling Leaderboard (BFCL).
ACL AnthologyACL Anthology · November 2024
0
111
Aligners: Decoupling LLMs and Alignment
Lilian NgwetaMayank AgarwalSubha MaityAlex GittensYuekai SunMikhail Yurochkin
Aligners decouple LLMs from alignment by training a separate model that can be applied to any LLM for a given criterion on demand. The aligner is trained solely on synthetic data from a prompted LLM, and a binary inspector model guides a squad of multiple aligners. Empirical results show consistent improvements across various LLMs, including chat-aligned models, on instruction-following and red-teaming tasks.
ACL AnthologyACL Anthology · November 2024
0
Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks
Ibrahim AbdelazizKinjal BasuMayank AgarwalSadhana KumaravelMatthew StalloneRameswar PandaYara RizkGP BhargavMaxwell CrouseChulaka GunasekaraShajith IkbalSachin Joshi  +14
The paper introduces GRANITE-20B-FUNCTIONCALLING, an open-source large language model (Apache 2.0) for function calling—the ability to identify, call, and interact with external tools and APIs. The model is trained via a multi-task learning approach on seven fundamental tasks: Nested Function Calling, Function Chaining, Parallel Functions, Function Name Detection, Parameter-Value Pair Detection, Next-Best Function, and Response Generation. Evaluated on multiple out-of-domain datasets against over 15 proprietary and open models, GRANITE-20B-FUNCTIONCALLING achieves the best performance among all open models on the Berkeley Function Calling Leaderboard and ranks fourth overall, demonstrating better generalizability across diverse tasks.
arXivarXiv · · June 27, 2024
0
114
Granite Code Models: A Family of Open Foundation Models for Code Intelligence
Mayank MishraMatt Stallone…Mayank Agarwal
The Granite Code family of decoder-only LLMs, trained on 116 programming languages, addresses diverse code intelligence tasks including generation, bug fixing, and documentation. With models spanning 3 to 34 billion parameters, the family supports both complex enterprise workflows and on-device scenarios. Evaluations show that Granite Code models consistently achieve state-of-the-art results among open-source code LLMs, and all models are released under the permissive Apache 2.0 license.
arXivarXiv · · May 7, 2024
0
176
Structured Code Representations Enable Data-Efficient Adaptation of Code Language Models
Mayank AgarwalYikang ShenBailin WangYoon KimJie Chen
This paper proposes data-efficient adaptation of code language models by representing programs as parse trees (concrete syntax trees, CSTs) and adapting pre-trained models on serialized CSTs. Without changing the model architecture, a small amount of continual pre-training and fine-tuning on CSTs improves performance across various code tasks, especially when training examples are limited, even though the backbone models were pre-trained only on the surface form of programs.
arXivarXiv · · January 19, 2024
0
9
Aligners: Decoupling LLMs and Alignment
Lilian NgwetaMayank AgarwalSubha MaityAlex GittensYuekai SunMikhail Yurochkin
Aligners decouple alignment from specific LLMs by training separate models that can align any LLM for a given criterion on demand, reducing alignment costs and negative performance impacts. The training recipe uses only synthetic data from a prompted LLM and adapts to various criteria. They demonstrate with an 'ethical' aligner and verify its efficacy empirically.
OpenReviewOpenReview · December 9, 2023
0
10
Explain-then-translate: an analysis on improving program translation with self-generated explanations
Zilu TangMayank AgarwalAlexander ShypulaBailin WangDerry WijayaJie ChenYoon Kim
This work explores the use of self-generated natural language explanations as an intermediate step for code-to-code translation with language models. Across three types of explanations and 19 programming languages constructed from the MultiPL-E dataset, we find the explanations to be particularly effective in the zero-shot case, improving performance by 12% on average. Improvements with natural language explanations are particularly pronounced on difficult programs. We release our dataset, code, and canonical solutions in all 19 languages.
ACL AnthologyACL Anthology · December 2023
0
Explain-then-Translate: An Analysis on Improving Program Translation with Self-generated Explanations
Zilu TangMayank AgarwalAlex ShypulaBailin WangDerry WijayaJie ChenYoon Kim
This work analyzes using self-generated natural language explanations as an intermediate step for code-to-code translation by language models. Across three explanation types and 19 languages from MultiPL-E, explanations improve translation performance by 12% on average in the zero-shot setting, with larger gains on difficult programs. The dataset, code, and canonical solutions are released.
arXivarXiv · · November 13, 2023
0
32
An Investigation of Representation and Allocation Harms in Contrastive Learning
Subha MaityMayank AgarwalMikhail YurochkinYuekai Sun
Contrastive learning, a popular self-supervised learning method, causes representation harm by collapsing the representations of minority groups into those of certain majority groups, as shown in image and text datasets. Causal mediation analysis on a downstream classification task reveals that this representation harm partly contributes to allocation harm. A theoretical explanation using a stochastic block model links this phenomenon to representational neural collapse.
arXivarXiv · · October 2, 2023
0
3
Structured Fine-Tuning Enables Data-Efficient Adaptation of Code Language Models
Mayank AgarwalYikang ShenBailin WangYoon KimJie Chen
This paper presents a data-efficient approach to fine-tuning pre-trained code language models by incorporating program structures. Programs are represented as concrete syntax trees (CSTs), serialized and used for further training alongside plain text. Fine-tuning with structures helps the model learn cross-language structural and grammatical mappings, requiring only small amounts of data (e.g., 100 examples). Training objectives are designed for both encoder-decoder and decoder-only architectures. Evaluation across coding tasks shows notable gains, especially in low-data code translation.
OpenReviewOpenReview · September 23, 2023
0
1
An Investigation of Representation and Allocation Harms in Contrastive Learning
Subha MaityMayank AgarwalMikhail YurochkinYuekai Sun
This paper reveals that contrastive learning, a popular self-supervised method, collapses representations of minority groups with certain majority groups, a phenomenon termed representation harm, observed on image and text datasets. Causal mediation analysis shows representation harm partly drives allocation harm in downstream classification, underscoring its importance. A stochastic block model theoretically explains this collapse, indicating a neural collapse in contrastive settings.
OpenReviewOpenReview · · September 21, 2023
0
Explain-then-translate: an analysis on improving program translation with self-generated explanations
Zilu TangMayank AgarwalAlexander G ShypulaBailin WangDerry WijayaJie ChenYoon Kim
This work studies using self-generated natural language explanations as an intermediate step in code-to-code translation with language models. Using three explanation types across 19 programming languages from MultiPL-E, the authors find explanations especially effective in zero-shot translation, improving average performance by 12%. Gains are most pronounced on difficult programs. They release their dataset, code, and canonical solutions across all 19 languages.
OpenReviewOpenReview · · June 8, 2023
0
Fairness Evaluation in Text Classification: Machine Learning Practitioner Perspectives of Individual and Group Fairness
Zahra AshktorabBenjamin HooverMayank AgarwalCasey DuganWerner GeyerHao Bang YangMikhail Yurochkin
This paper studies how machine learning practitioners (n=24) evaluate fairness in text classification. The type of fairness metric presented—group vs. individual fairness—influences which models practitioners deem fair. Practitioners focus on risks of under/overprediction and model sensitivity to identity token manipulation, and they draw on personal experiences when forming identity-token groups for testing. The authors offer recommendations for interactive fairness evaluation tools.
arXivarXiv · · March 1, 2023
0
31
Geometry-biased Transformers for Novel View Synthesis
Naveen VenkatMayank AgarwalManeesh SinghShubham Tulsiani
This paper proposes Geometry-biased Transformers (GBTs) for novel view synthesis from a few input images. The method augments the dot-product attention mechanism with a learnable bias based on 3D distances between rays, incorporating geometric inductive biases into a set-latent representation. Combined with camera-aware embeddings, this encourages multi-view geometric consistency and produces more accurate novel views. On the CO3D dataset, GBTs trained on 10 categories significantly outperform prior geometry-free approaches for novel objects and unseen categories.
arXivarXiv · · January 11, 2023
0
15
Better Together? An Evaluation of AI-Supported Code Translation
Justin D. WeiszMichael MullerSteven I. RossFernando MartinezStephanie HoudeMayank AgarwalKartik TalamadupulaJohn T. Richards
In a controlled study with 32 software engineers translating Java code to Python, participants using outputs from a generative code translation model produced fewer errors than those working alone. Providing multiple translations had a larger impact on the process than varying translation quality. The results highlight both benefits and challenges of AI-supported code translation, motivating interfaces that help engineers understand and evaluate model outputs.
arXivarXiv · · February 15, 2022
0
130
Investigating Explainability of Generative AI for Code through Scenario-based Design
Jiao SunQ. Vera LiaoMichael MullerMayank AgarwalStephanie HoudeKartik TalamadupulaJustin D. Weisz
Using scenario-based and question-driven XAI design, this paper explores users' explainability needs for generative AI that produces code. Through nine workshops with 43 software engineers, using real outputs from state-of-the-art models, the study focuses on three use cases: natural language to code, code translation, and code auto-completion. It proposes four types of XAI features for GenAI for code, demonstrating how human-centered methods can drive technical development of explainability in novel domains.
arXivarXiv · · February 10, 2022
0
350
On sensitivity of meta-learning to support data
Mayank AgarwalMikhail YurochkinYuekai Sun
Modern meta-learning algorithms for few-shot image classification are extremely sensitive to the support data used for adaptation. The authors show that unaltered, in-distribution natural images can cause accuracy to vary from 4% to 95% on standard benchmarks. They explain this via class margins, suggesting that robust meta-learning requires larger margins than supervised learning.
arXivarXiv · · October 26, 2021
0
31
Using Document Similarity Methods to create Parallel Datasets for Code Translation
Mayank AgarwalKartik TalamadupulaFernando MartinezStephanie HoudeMichael MullerJohn RichardsSteven I RossJustin D. Weisz
This paper proposes using document similarity methods to automatically create noisy parallel datasets for code translation, enabling supervised neural machine translation without relying on manually curated parallel corpora. The authors show that models trained on these automatically-created datasets perform comparably to those trained on ground truth data for reasonable noise levels. They demonstrate the method's practical utility by building parallel datasets for languages beyond those previously studied, thus expanding the set of programming languages for which automated code translation is feasible.
arXivarXiv · · October 11, 2021
0
15
COVID-19 India Dataset: Parsing COVID-19 Data in Daily Health Bulletins from States in India
Mayank AgarwalTathagata ChakrabortiSachin GroverArunima Chaudhary
This paper automates the extraction of COVID-19 data from daily health bulletins issued by Indian states. The technique combines classical PDF parsers with state-of-the-art machine learning to convert unstructured public bulletins into structured data, addressing the challenge of large-scale data inaccessibility. The resulting dataset enables easier access to detailed pandemic information that was previously only available manually or through limited public APIs.
arXivarXiv · · September 27, 2021
0
1
Distinguishing thixotropy from viscoelasticity
Mayank AgarwalShweta SharmaV. ShankarYogesh M. Joshi
This paper shows that step-strain or step-stress applied after preshear cessation distinguishes thixotropy from viscoelasticity, whereas existing criteria (e.g., shear-rate jumps or startup at varied waiting times) do not. In thixotropic clay dispersions, relaxation dynamics slow with waiting time; in viscoelastic polymer solutions, the relaxation modulus curve shifts to lower values until equilibrium. The discriminant is robust for the studied systems but requires further validation.
arXivarXiv · · June 25, 2021
0
Perfection Not Required? Human-AI Partnerships in Code Translation
Justin D. WeiszMichael MullerStephanie HoudeJohn RichardsSteven I. RossFernando MartinezMayank AgarwalKartik Talamadupula
This study explores software engineers' tolerance of imperfections in generative neural machine translation models for code translation. Through interviews with 11 engineers using a design scenario focused on application modernization, the authors found that features like confidence highlighting and alternate translations help engineers work with and understand imperfect AI outputs. The work highlights how acceptance of such systems' outputs is established and suggests opportunities for generative AI in application modernization.
arXivarXiv · · April 8, 2021
0
223
NeurIPS 2020 NLC2CMD Competition: Translating Natural Language to Bash Commands
Mayank AgarwalTathagata ChakrabortiQuchen FuDavid GrosXi Victoria LinJaron MaeneKartik TalamadupulaZhongwei TengJules White
The NeurIPS 2020 NLC2CMD Competition tasked participants with building models that translate English descriptions of command-line tasks into Bash commands. This report details the competition's setup, metrics, data, and attempted solutions, along with lessons learned, aiming to advance natural language processing for command-line interaction.
arXivarXiv · · March 3, 2021
0
32
Quality Estimation & Interpretability for Code Translation
Mayank AgarwalKartik TalamadupulaStephanie HoudeFernando MartinezMichael MullerJohn RichardsSteven RossJustin D. Weisz
The paper assesses the quality of automated code translations produced by the TransCoder model, treating code translation as analogous to natural-language machine translation with additional considerations. The main contribution is a technique that correlates the model's confidence scores with lint errors in the translated code, offering a way to estimate translation quality and interpret model decisions. This correlation is motivated by a user study on code translation, and the paper concludes with observations on the findings and directions for future work.
arXivarXiv · · December 4, 2020
0
13
Frequent collaborators
Mikhail Yurochkin (10)
Kinjal Basu (7)
Ibrahim Abdelaziz (7)
Yara Rizk (7)
Kartik Talamadupula (7)
Pavan Kapanipathi (6)
Yuekai Sun (5)
Bailin Wang (5)
Yoon Kim (5)
Jie Chen (5)
Justin D. Weisz (5)
Michael Muller (5)