Pith. sign in

REVIEW 2 cited by

Evaluating In-Context Learning of Libraries for Code Generation

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2311.09635 v2 pith:CEYMNQEZ submitted 2023-11-16 cs.CL

classification cs.CL
keywords codellmsin-contextlibrariesdemonstrationslibrarynovelresults
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. TransitGPT: A Generative AI-based framework for interacting with GTFS data using Large Language Models

    cs.CL 2024-12 conditional novelty 6.0 of 10

    A prompt-only LLM framework that generates and executes Python code answers 90 to 93 percent of 100 GTFS transit-data queries without fine-tuning.

  2. Leveraging Metamemory Agent for Enhanced Data-Free Code Generation in Large Language Models

    cs.SE 2025-01 conditional novelty 5.0 of 10

    M2WF improves one-time LLM code generation by having the model recall, evaluate, and selectively exploit its own remembered coding examples.

Pith tools