paper-with-me

Papers

Evaluating In-Context Learning of Libraries for Code Generation

2023-11-16 · Arkil Patel, Siva Reddy, Dzmitry Bahdanau, Pradeep Dasigi

Contemporary Large Language Models (LLMs) exhibit a high degree of code generation and comprehension capability. A particularly promising area is their ability to interpret code modules from unfamiliar libraries for solving user-instructed tasks. Recent work has shown that large proprietary LLMs can learn novel library usage in-context from demonstrations. These results raise several open questions: whether demonstrations of library usage is required, whether smaller (and more open) models also possess such capabilities, etc. In this work, we take a broader approach by systematically evaluating a diverse array of LLMs across three scenarios reflecting varying levels of domain specialization to understand their abilities and limitations in generating code based on libraries defined in-context. Our results show that even smaller open-source LLMs like Llama-2 and StarCoder demonstrate an adept understanding of novel code libraries based on specification presented in-context. Our findings further reveal that LLMs exhibit a surprisingly high proficiency in learning novel library modules even when provided with just natural language descriptions or raw code implementations of the functions, which are often cheaper to obtain than demonstrations. Overall, our results pave the way for harnessing LLMs in more adaptable and dynamic coding environments.

📄 PDF Abstract BibTeX arXiv:2311.09635

Code (1)

mcgill-nlp/incontext-code-generation 공식 구현 pytorch

Tasks

Code GenerationIn-Context Learning

Methods 이 논문이 사용한 방법론

Library 설명 없음

Similar Papers 제목 키워드 기반

CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agents

2026-05-10 · Timothy Ossowski, Xinchi Liu, Danyal Maqbool, Vaibhav Dhanuka 외 arxiv

Clinical reasoning agents based on large language models (LLMs) aim to automate tasks such as intensive care unit (ICU) monitoring and patient state tracking from electronic health records (EHRs). Existing systems typica…

Code Generation

Code Generation for Unknown Libraries via Reading API Documentations

2022-02-16 · Koki Washio, Yusuke Miyao

Open-domain code generation is a challenging problem because the set of functions and classes that we use are frequently changed and extended in programming communities. We consider the challenge of code generation for u…

Code GenerationDecoder

To See is Not to Master: Teaching LLMs to Use Private Libraries for Code Generation

2026-03-16 · Yitong Zhang, Chengze Li, Ruize Chen, Guowei Yang 외 arxiv

Large Language Models (LLMs) have shown strong potential for code generation, yet they remain limited in private-library-oriented code generation, where the goal is to generate code using APIs from private libraries. Exi…

Code Generation

GitChameleon 2.0: Evaluating AI Code Generation Against Python Library Version Incompatibilities

2025-07-16 · Diganta Misra, Nizar Islah, Victor May, Brice Rauby 외 arxiv

The rapid evolution of software libraries poses a considerable hurdle for code generation, necessitating continuous adaptation to frequent version updates while preserving backward compatibility. While existing code evol…

Code GenerationCode Completion

Code Librarian: A Software Package Recommendation System

2022-10-11 · Lili Tao, Alexandru-Petre Cazan, Senad Ibraimoski, Sean Moran

The use of packaged libraries can significantly shorten the software development cycle by improving the quality and readability of code. In this paper, we present a recommendation engine called Librarian for open source …