paper-with-me

Papers

Prompting Code Interpreter to Write Better Unit Tests on Quixbugs Functions

2023-09-30 · Vincent Li, Nick Doiron

Unit testing is a commonly-used approach in software engineering to test the correctness and robustness of written code. Unit tests are tests designed to test small components of a codebase in isolation, such as an individual function or method. Although unit tests have historically been written by human programmers, recent advancements in AI, particularly LLMs, have shown corresponding advances in automatic unit test generation. In this study, we explore the effect of different prompts on the quality of unit tests generated by Code Interpreter, a GPT-4-based LLM, on Python functions provided by the Quixbugs dataset, and we focus on prompting due to the ease with which users can make use of our findings and observations. We find that the quality of the generated unit tests is not sensitive to changes in minor details in the prompts provided. However, we observe that Code Interpreter is often able to effectively identify and correct mistakes in code that it writes, suggesting that providing it runnable code to check the correctness of its outputs would be beneficial, even though we find that it is already often able to generate correctly-formatted unit tests. Our findings suggest that, when prompting models similar to Code Interpreter, it is important to include the basic information necessary to generate unit tests, but minor details are not as important.

📄 PDF Abstract BibTeX arXiv:2310.00483

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

Chain of Code: Reasoning with a Language Model-Augmented Code Emulator

2023-12-07 · Chengshu Li, Jacky Liang, Andy Zeng, Xinyun Chen 외

Code provides a general syntactic structure to build complex programs and perform precise computations when paired with a code interpreter - we hypothesize that language models (LMs) can leverage code-writing to improve …

Language ModelingLanguage Modelling

Large Language Models Know Your Contextual Search Intent: A Prompting Framework for Conversational Search

2023-03-12 · Kelong Mao, Zhicheng Dou, Fengran Mo, Jiewen Hou 외

Precisely understanding users' contextual search intent has been an important challenge for conversational search. As conversational search sessions are much more diverse and long-tailed, existing methods trained on limi…

Conversational SearchText Generation

SimulSense: Sense-Driven Interpreting for Efficient Simultaneous Speech Translation

2025-09-26 · Haotian Tan, Hiroki Ouchi, Sakriani Sakti arxiv

How to make human-interpreter-like read/write decisions for simultaneous speech translation (SimulST) systems? Current state-of-the-art systems formulate SimulST as a multi-turn dialogue task, requiring specialized inter…

Write, Execute, Assess: Program Synthesis with a REPL

2019-06-09 · NeurIPS 2019 12 · Kevin Ellis, Maxwell Nye, Yewen Pu, Felix Sosa 외

We present a neural program synthesis approach integrating components which write, execute, and assess code to navigate the search space of possible programs. We equip the search process with an interpreter or a read-eva…

NavigateProgram Synthesis

Solving Challenging Math Word Problems Using GPT-4 Code Interpreter with Code-based Self-Verification

2023-08-15 · Aojun Zhou, Ke Wang, Zimu Lu, Weikang Shi 외

Recent progress in large language models (LLMs) like GPT-4 and PaLM-2 has brought significant advancements in addressing math reasoning problems. In particular, OpenAI's latest version of GPT-4, known as GPT-4 Code Inter…

Arithmetic ReasoningMathMathematical ReasoningMath Word Problem Solving