atlas

Research map / Large language models / Agents, code and math

L2MAC: Large Language Model Automatic Computer for Extensive Code Generation

ICLR 2024 · Large language models › Agents, code and math · approach: Execution-based code verification · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes L2MAC, an LLM-based multi-agent "stored-program computer" with an instruction registry, a file store, and a control unit that manages context and enables read/write/evaluate tools, enabling extensive code and long-text generation.

Problem

LLMs are limited by a fixed context window, so they cannot produce long, internally consistent outputs such as large codebases; existing memory-augmented methods are read-focused, append-only, or domain-specific.

Approach

Treat the LLM as a processor in a von Neumann-style architecture: an instruction registry holds a self-generated prompt program, each instruction is run by a fresh LLM agent whose context a control unit manages, and a file store supports precise read/write/delete with syntax checks and self-generated unit tests feeding back errors.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Code-L2MAC instead of GPT4Code generation · URL Shortener AppFeatures %: 53.6$\pm$10.5 -> \bf91.6$\pm$8.22Helped
Use Code-L2MAC instead of AutoGPTCode generation · Online Social Media AppFeatures %: 33.3$\pm$18 -> \bf82.4$\pm$14.6Helped
Use Code-L2MAC instead of AutoGPTCode generation · Online Chat AppFeatures %: 23.1$\pm$11.8 -> \bf59.4$\pm$25.9Helped
Use Code-L2MAC instead of GPT4Code generation · URL Shortener App# Errors: 0$\pm$0 -> \bf0$\pm$0No clear effect
Use Code-L2MAC instead of CodeTCode generation · Online Social Media App# Errors: 0.4$\pm$0.603 -> \bf0$\pm$0Helped
Use Code-L2MAC instead of GPT4Code generation · Online Chat App# Errors: 0.3$\pm$0.346 -> \bf0$\pm$0Helped
Use Code-L2MAC instead of GPT4Code generation · URL Shortener AppTests Passed: 2.56$\pm$0.95 -> \bf14$\pm$6.71Helped
Use Code-L2MAC instead of CodeTCode generation · Online Social Media AppTests Passed: 2.6$\pm$1.76 -> \bf18.3$\pm$6.8Helped
Use Code-L2MAC instead of CodeTCode generation · Online Chat AppTests Passed: 3.32$\pm$1.57 -> \bf18.8$\pm$9.11Helped
Use Code-L2MAC instead of AutoGPTCode generation · Online Chat AppLOC: 220$\pm$65.8 -> \bf374$\pm$123Mixed
Use Code-L2MAC on HumanEvalGPT-4-0613 · HumanEvalPass@1: 90.2\% Pass@1Helped
Use Code-L2MAC rather than AutoGPT's rolling summary and replanningOnline Chat App code generation · Online Chat App# ErrorsHelped

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval

Benchmarks: HumanEval URL Shortener App Online Social Media App Online Chat App

Metrics: Features % # Errors LOC Tests Passed Pass@1

Baselines: AutoGPT CodeT Self-Refine Reflexion GPT-4

Builds on: ReAct Reflexion Self-Refine CodeT AutoGPT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy