paper-with-me

홈 › Papers

InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedback

2023-06-26 · NeurIPS 2023 11 · John Yang, Akshara Prabhakar, Karthik Narasimhan, Shunyu Yao

Humans write code in a fundamentally interactive manner and rely on constant execution feedback to correct errors, resolve ambiguities, and decompose tasks. While LLMs have recently exhibited promising coding capabilities, current coding benchmarks mostly consider a static instruction-to-code sequence transduction process, which has the potential for error propagation and a disconnect between the generated code and its final execution environment. To address this gap, we introduce InterCode, a lightweight, flexible, and easy-to-use framework of interactive coding as a standard reinforcement learning (RL) environment, with code as actions and execution feedback as observations. Our framework is language and platform agnostic, uses self-contained Docker environments to provide safe and reproducible execution, and is compatible out-of-the-box with traditional seq2seq coding methods, while enabling the development of new methods for interactive code generation. We use InterCode to create three interactive code environments with Bash, SQL, and Python as action spaces, leveraging data from the static NL2Bash, Spider, and MBPP datasets. We demonstrate InterCode's viability as a testbed by evaluating multiple state-of-the-art LLMs configured with different prompting strategies such as ReAct and Plan & Solve. Our results showcase the benefits of interactive code generation and demonstrate that InterCode can serve as a challenging benchmark for advancing code understanding and generation capabilities. InterCode is designed to be easily extensible and can even be used to create new tasks such as Capture the Flag, a popular coding puzzle that is inherently multi-step and involves multiple programming languages. Project site with code and data: https://intercode-benchmark.github.io

📄 PDF Abstract BibTeX arXiv:2306.14898

Code (2)

princeton-nlp/intercode 공식 구현
agentification/language-integrated-vi pytorch

Tasks

BenchmarkingCode GenerationmbppReinforcement Learning (RL)

Methods 이 논문이 사용한 방법론

Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…
Seq2Seq Seq2Seq, or Sequence To Sequence, is a model used in sequence prediction tasks, such as language modelling and machine translation. The idea is to use one…

Similar Papers 제목 키워드 기반

Better than Your Teacher: LLM Agents that learn from Privileged AI Feedback

2024-10-07 · Sanjiban Choudhury, Paloma Sodhi

While large language models (LLMs) show impressive decision-making abilities, current methods lack a mechanism for automatic self-improvement from errors during task execution. We propose LEAP, an iterative fine-tuning f…

Decision Makingtext-based games

Towards Coding Social Science Datasets with Language Models

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Researchers often rely on humans to code (label, annotate, etc.) large sets of texts. This is a highly variable task and requires a great deal of time and resources. Efforts to automate this process have achieved human-l…

Chakra: Advancing Performance Benchmarking and Co-design using Standardized Execution Traces

2023-05-23 · Srinivas Sridharan, Taekyung Heo, Louis Feng, Zhaodong Wang 외

Benchmarking and co-design are essential for driving optimizations and innovation around ML models, ML software, and next-generation hardware. Full workload benchmarks, e.g. MLPerf, play an essential role in enabling fai…

Benchmarking

AppWorld: A Controllable World of Apps and People for Benchmarking Interactive Coding Agents

2024-07-26 · Harsh Trivedi, Tushar Khot, Mareike Hartmann, Ruskin Manku 외

Autonomous agents that address day-to-day digital tasks (e.g., ordering groceries for a household), must not only operate multiple apps (e.g., notes, messaging, shopping app) via APIs, but also generate rich code with co…

BenchmarkingCode Generation

EnIGMA: Enhanced Interactive Generative Model Agent for CTF Challenges

2024-09-24 · Talor Abramovich, Meet Udeshi, Minghao Shao, Kilian Lieret 외

Although language model (LM) agents are demonstrating growing potential in many domains, their success in cybersecurity has been limited due to simplistic design and the lack of fundamental features for this domain. We p…

Language ModelingLanguage Modelling