Metraipolis › archive › dc_1c16fc360dc1

Toward Interactive Understanding of Code APIs — arXiv:2609.32081

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.32081
License (as archived)
CC0-1.0
Archived
2026-10-07T20:55:06.045Z
SHA-256 of the archived text
fbb06e97b5b969a623b51a480661715782590a824777d2909cba9bdbf9f8b377
Stable URL of this page
https://metraipolis.com/documento/dc_1c16fc360dc1

How to cite

Toward Interactive Understanding of Code APIs — arXiv:2609.32081 — arXiv (en), https://arxiv.org/abs/2609.32081 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_1c16fc360dc1 (Metraipolis archive dc_1c16fc360dc1, sha256 fbb06e97b5b969a623b51a480661715782590a824777d2909cba9bdbf9f8b377)
BibTeX
@misc{dc1c16fc360dc1,
  title = {Toward Interactive Understanding of Code APIs — arXiv:2609.32081},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.32081},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_1c16fc360dc1; sha256 fbb06e97b5b969a623b51a480661715782590a824777d2909cba9bdbf9f8b377},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.32081. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-29 in cs.AI).
Categorie arXiv: Artificial Intelligence (cs.AI).
Pagina del lavoro: https://arxiv.org/abs/2609.32081 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T20:29:00.703Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).