mlsanityData to 14 Oct 2026

Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition

arXiv 2606.03657 ↗First posted 2 Jun 2026cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Rapidly evolving software libraries require coding language models to use unfamiliar APIs. Yet failed solutions alone tell us little about what API knowledge models need or how to provide it. We present NovelAPIBench, an automated diagnostic framework that builds benchmarks around the API knowledge gaps of a target model. It identifies novel APIs, generates executable coding tasks with separately controllable knowledge components, and classifies failures into six categories. The framework can be rerun as models and libraries evolve. We study 21 libraries across five domains and six backbone models, with our primary benchmark comprising 1,670 tasks covering 856 APIs. Our experiments show that when supplied directly, usage examples provide the strongest standalone guidance for novel API acquisition, and combining them with signature descriptions approaches full-knowledge performance. Retrieving this knowledge from a pool of APIs yields lower accuracy than supplying only the target API's knowledge, even when retrieval finds the target. Fine-tuning on other APIs improves performance on unseen APIs mainly when external knowledge is supplied, helping models both select the target API and integrate it into the surrounding code. These findings highlight complementary roles for external API knowledge and the ability to apply it. By separating knowledge content, delivery, and use, NovelAPIBench helps diagnose what limits novel API use and guides adaptation to evolving libraries. Code and data are available at https://github.com/MAPS-research/NovelAPIBench.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 29 of its 40 references that are in the map. First posted on arXiv 2 Jun 2026.

Builds on

29 of 40 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024CodeNav: Beyond tool-use to using real-world codebases with LLM agents18 Jun

Other references · 28

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  4. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  5. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  6. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  7. 2022Mass-Editing Memory in a Transformercited by 1,001
  8. 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 271
  9. 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
  10. 2023Tool Documentation Enables Zero-Shot Tool-Usage with Large Language Modelscited by 68
  11. 2025Seed-Coder: Let the Code Model Curate Data for Itselfcited by 49
  12. 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
16 more
  1. 2024Towards Understanding the Characteristics of Code Generation Errors Made by Large Language Modelscited by 30
  2. 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 24
  3. 2024CodeUpdateArena: Benchmarking Knowledge Editing on API Updatescited by 19
  4. 2024VersiCode: Towards Version-controllable Code Generationcited by 17
  5. 2025When LLMs Meet API Documentation: Can Retrieval Augmentation Aid Code Generation Just as It Helps Developers?cited by 13
  6. 2024LibEvolutionEval: A Benchmark and Study for Version-Specific Code Generationcited by 12
  7. 2024Model Editing for LLMs4Code: How Far are We?cited by 10
  8. 2025RustEvo^2: An Evolving Benchmark for API Evolution in LLM-based Rust Code Generationcited by 10
  9. 2025CODESYNC: Synchronizing Large Language Models with Dynamic Code Evolution at Scalecited by 8
  10. 2026KOCO-BENCH: Can Large Language Models Leverage Domain Knowledge in Software Development?cited by 5
  11. 2025A Comparative Analysis of LLM Adaptation: SFT, LoRA, and ICL in Data-Scarce Scenarioscited by 4
  12. 2026To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generationcited by 3
  13. 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generationcited by 3
  14. 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
  15. 2026Learning from Execution: Self-Evolving Memory for Private-Library Code Generationcited by 2
  16. 2026Knowledge boundary probing and demand-guided intervention for LLM-based power system code generationcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
  2. 2026Towards Knowledge Alignment in Code LLMs: Contrastive Unlearning for Evolving APIs
  3. 2023SelfEvolve: A Code Evolution Framework via Large Language Models
  4. 2026Toward Interactive Understanding of Code APIs
  5. 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation
  6. 2024De-Hallucinator: Mitigating LLM Hallucinations in Code Generation Tasks via Iterative Grounding
  7. 2026Agent-Diff: Benchmarking LLM Agents on Enterprise API Tasks via Code Execution with State-Diff-Based Evaluation
  8. 2025Lifecycle-Aware code generation: Leveraging Software Engineering Phases in LLMs