paper-with-me

Papers

Code Generation Tools (Almost) for Free? A Study of Few-Shot, Pre-Trained Language Models on Code

2022-06-02 · Patrick Bareiß, Beatriz Souza, Marcelo d'Amorim, Michael Pradel

Few-shot learning with large-scale, pre-trained language models is a powerful way to answer questions about code, e.g., how to complete a given code example, or even generate code snippets from scratch. The success of these models raises the question whether they could serve as a basis for building a wide range code generation tools. Traditionally, such tools are built manually and separately for each task. Instead, few-shot learning may allow to obtain different tools from a single pre-trained language model by simply providing a few examples or a natural language description of the expected tool behavior. This paper studies to what extent a state-of-the-art, pre-trained language model of code, Codex, may serve this purpose. We consider three code manipulation and code generation tasks targeted by a range of traditional tools: (i) code mutation; (ii) test oracle generation from natural language documentation; and (iii) test case generation. For each task, we compare few-shot learning to a manually built tool. Our results show that the model-based tools complement (code mutation), are on par (test oracle generation), or even outperform their respective traditionally built tool (test case generation), while imposing far less effort to develop them. By comparing the effectiveness of different variants of the model-based tools, we provide insights on how to design an appropriate input ("prompt") to the model and what influence the size of the model has. For example, we find that providing a small natural language description of the code generation task is an easy way to improve predictions. Overall, we conclude that few-shot language models are surprisingly effective, yet there is still more work to be done, such as exploring more diverse ways of prompting and tackling even more involved tasks.

📄 PDF Abstract BibTeX arXiv:2206.01335

Code (0)

등록된 구현이 없습니다.

Tasks

Code GenerationFew-Shot LearningLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Lost in the Flow with Code Talkers: Unveiling the Instruction-Tuning Tax of Large Language Models in Code Tasks

2026-06-07 · Shi Ying Chang, Chiok Yew Ho, Yichen Li, Yintong Huo arxiv

AI coding assistants have significantly improved developer productivity by automatically suggesting code that aligns with user intent, and many of these tools are now integrated directly into Integrated Development Envir…

Code Generation

"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmers

2023-04-05 · James Prather, Brent N. Reeves, Paul Denny, Brett A. Becker 외

Recent developments in deep learning have resulted in code-generation models that produce source code from natural language and code-based prompts with high accuracy. This is likely to have profound effects in the classr…

Code Generation

MTUOC: easy and free integration of NMT systems in professional translation environments

2020-11-01 · EAMT 2020 11 · Antoni Oliver

In this paper the MTUOC project, aiming to provide an easy integration of neural and statistical machine translation systems, is presented. Almost all the required software to train and use neural and statistical MT syst…

Machine TranslationNMTTranslation

Almost AI, Almost Human: The Challenge of Detecting AI-Polished Writing

2025-02-21 · Shoumik Saha, Soheil Feizi

The growing use of large language models (LLMs) for text generation has led to widespread concerns about AI-generated content detection. However, an overlooked challenge is AI-polished text, where human-written content u…

Text Generation

A Comparative Study of Static Code Analysis tools for Vulnerability Detection in C/C++ and JAVA Source Code

2020-10-20 · 2020 2020 10 · Prof. Arvinder Kaur, Ruchikaa Nayyar

Software security has become an essential component of software development process. It is necessary for an organisation to maintain software security in order to ensure integrity, authenticity and availability of the s…

Vulnerability Detection