Skip to content

Toward Interactive Understanding of Code APIs

Sep 2026 · arXiv.org · Vol abs/2609.32081 · 0 citations · 74 references
Computer Science

TL;DR

The PAU (Python API Understanding) benchmark is introduced, where models are provided with black-box, API-level access to code snippets, and inspiration is taken from the Asymmetric Actor Critic paradigm, frequently used in robot learning, to post-train models for interactive code understanding.

Abstract

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.

View source

Similar papers

Sep 2026

Is there a future for models in the LLM era?

A novel LLM-powered Multi-Agentic approach called ARTHUR (Architecture Refactoring Through Hybrid UML Reasoning), a framework that aims at combining the reliability of MDE and the ease of use of LLMs and shows that MDE could not be more far from retirement.

Marco Calamo, Massimo Mecella, M. Snoeck · 0 citations
#small language model Book Open access Oct 2026

Towards Model-Driven Generation of Domain-Specific Modelling Agents for Local Language Models

Current frontier LLMs leverage vast training datasets with knowledge about a broad range of programming languages and frameworks, and can often solve tasks with minimal prompting. However, there are scenarios where remote LLMs are unsuitable, due to cost, privacy, security, or intellectual property concerns, and local...

Antonio García-Domínguez, Ionut Predoaia, T. Vu et al. · 0 citations

DatalogBench: Evaluating Large Language Models on Text-to-Datalog Synthesis

DatalogBench is presented, a benchmark of 136 text-to-Datalog synthesis tasks curated from existing Datalog-based artifacts that identifies recursive reasoning and decomposition as open challenges for current LLMs and agents, and offers a reliable, execution-grounded measure of both.

Yuan Li, Han-Yun Jiang, Guo-Wei Tian et al. · 0 citations
Preprint Oct 2026

LASSO: An LLM-Agent Synthesized System for SQL Validation

The rise of Large Language Models (LLMs) has significantly advanced text-to-SQL capabilities, but generated queries may have errors. Test datasets are important for catching errors, but having only one or a few test datasets leaves many bugs undetected. Effective testing requires multiple test datasets that can expose...

Shreyas Jadhav, S. Sudarshan · 0 citations
Preprint Sep 2026

Understanding and Mitigating Library-Related Issues in LLM-Generated Code

Software practitioners increasingly rely on Large Language Models (LLMs) to generate code that integrates external libraries. However, LLMs often produce incorrect library usage, such as invalid imports, outdated API calls, and hallucinated dependencies, leading to compilation or runtime failures that reduce the reliab...

Yacine Majdoub, Rinad Hamid, Eya Ben Charrada et al. · 0 citations
Review Open access Nov 2026

Large Language Model-Driven Data Analysis Agents: A Systematic Review of Architectures and Code Generation Strategies

Autonomous data analysis, once the domain of experienced programmers, is being reshaped by large language models (LLMs) — a shift this paper examines through a structured systematic review. Models like GPT-4, Claude, and LLaMA have reached a level of proficiency in natural language understanding and code generation tha...

Yue-Ming Lan · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.