Toward Interactive Understanding of Code APIs
On the map: LLM agents and tool use → Software engineering coding agents also fits: Tool learning and function calling
Abstract (arXiv)
Empowered by advances in Language Model agents, systems have made substantial strides in code generation and understanding. However, these approaches often rely on read access to the relevant code, an assumption which does not hold when dealing with external APIs. In this work, we introduce the PAU (Python API Understanding) benchmark, where we provide models with black-box, API-level access to code snippets. Models must query the API with exploratory inputs and draw insights from the resulting outputs, with the goal of describing the snippet's true functionality. By treating the code snippets as external tools that must be understood via interaction alone, PAU studies the more general problem of unsupervised tool understanding, specifically for tools implemented as Python methods. Despite recent progress in coding agents, even frontier models struggle to achieve high performance on PAU, with the best model (Claude-4-Opus) failing to understand over 45% of the PAU test set. An investigation into the common error modes reveals that models are overconfident; they often overrate the quality of their current hypothesis, leading to insufficient exploration and premature termination. Finally, we take inspiration from the Asymmetric Actor Critic (AAC) paradigm, frequently used in robot learning, to post-train models for interactive code understanding. Models trained with AAC conduct more active exploration of the APIs, with an AAC-tuned Qwen3-8B model matching the performance of GPT-5-mini.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 46 of its 74 references that are in the map. First posted on arXiv 25 Sep 2026.
Builds on
46 of 74 references.
Closest ancestors · 2
Same direction, newest first
- 2025CodeARC: Benchmarking Reasoning Capabilities of LLM Agents for Inductive Program Synthesis29 Mar
- 2024AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents26 Jul
Other references · 44
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
32 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 988
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 946
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Secrets of RLHF in Large Language Models Part I: PPOcited by 226
- 2022Knowledge Distillation from A Stronger Teachercited by 204
- 2017Asymmetric Actor Critic for Image-Based Robot Learningcited by 202
- 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 138
- 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Modelscited by 129
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025SycEval: Evaluating LLM Sycophancycited by 101
- 2024CodeRAG-Bench: Can Retrieval Augment Code Generation?cited by 89
- 2021Unbiased Asymmetric Reinforcement Learning under Partial Observabilitycited by 24
- 2024Planning and Editing What You Retrieve for Enhanced Tool Learningcited by 21
- 2024Automatic Metrics in Natural Language Generation: A Survey of Current Evaluation Practicescited by 19
- 2024Privileged Sensing Scaffolds Reinforcement Learningcited by 18
- 2026Benchmarking LLM Tool-Use in the Wildcited by 15
- 2024Provable Partially Observable Reinforcement Learning with Privileged Informationcited by 13
- 2025Is LLM an Overconfident Judge? Unveiling the Capabilities of LLMs in Detecting Offensive Language with Annotation Disagreementcited by 13
- 2025Are Large Language Models Reliable AI Scientists? Assessing Reverse-Engineering of Black-Box Systemscited by 13
- 2024ExploraCoder: Advancing code generation for multiple unseen APIs via planning and chained explorationcited by 11
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
- 2024A Little Human Data Goes A Long Waycited by 6
- 2024Learning Program Behavioral Models from Synthesized Input-Output Pairscited by 4
- 2025Live API-Bench: 2500+ Live APIs for Testing Multi-Step Tool Callingcited by 4
- 2026APISENSOR: Robust Discovery of Web API from Runtime Traffic Logscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challenges
- 2025Learning API Functionality from In-Context Demonstrations for Tool-based Agents
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2025SWE-Compass: Towards Unified Evaluation of Agentic Coding Abilities for Large Language Models
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2025ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
- 2024CoSQA+: Pioneering the Multi-Choice Code Search Benchmark with Test-Driven Agents