Reproduce “Evaluating In-Context Learning of Libraries for Code Generation” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Arkil Patel, Siva Reddy, Dzmitry Bahdanau, Pradeep Dasigi
This research investigates the capacity of large language models to learn and utilize novel programming libraries and entirely new programming languages purely through in-context learning. The study finds that state-of-the-art models can acquire new library usage effectively from natural language descriptions or raw code, often performing comparably to learning from expensive demonstrations.
Key insights
- GPT-4 can learn new programming libraries from natural language descriptions or raw code implementations as effectively as from paired demonstrations, reducing the need for costly data.
- Smaller, open-source LLMs like Llama-2 and StarCoder demonstrate a notable ability to learn and use novel libraries via in-context learning.
- The optimal in-context supervision format varies by model, with text-trained models preferring descriptions and code-trained models leveraging implementations more effectively.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.