L2MAC: Large Language Model Automatic Computer for Extensive Code Generation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Holt, Samuel, Luyten, Max Ruiz, van der Schaar, Mihaela
Formato: Preprint
Publicado: 2023
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915361782235136
author Holt, Samuel
Luyten, Max Ruiz
van der Schaar, Mihaela
author_facet Holt, Samuel
Luyten, Max Ruiz
van der Schaar, Mihaela
contents Transformer-based large language models (LLMs) are constrained by the fixed context window of the underlying transformer architecture, hindering their ability to produce long and coherent outputs. Memory-augmented LLMs are a promising solution, but current approaches cannot handle long output generation tasks since they (1) only focus on reading memory and reduce its evolution to the concatenation of new memories or (2) use very specialized memories that cannot adapt to other domains. This paper presents L2MAC, the first practical LLM-based general-purpose stored-program automatic computer (von Neumann architecture) framework, an LLM-based multi-agent system, for long and consistent output generation. Its memory has two components: the instruction registry, which is populated with a prompt program to solve the user-given task, and a file store, which will contain the final and intermediate outputs. Each instruction in turn is executed by a separate LLM agent, whose context is managed by a control unit capable of precise memory reading and writing to ensure effective interaction with the file store. These components enable L2MAC to generate extensive outputs, bypassing the constraints of the finite context window while producing outputs that fulfill a complex user-specified task. We empirically demonstrate that L2MAC achieves state-of-the-art performance in generating large codebases for system design tasks, significantly outperforming other coding methods in implementing the detailed user-specified task; we show that L2MAC works for general-purpose extensive text-based tasks, such as writing an entire book; and we provide valuable insights into L2MAC's performance improvement over existing methods.
format Preprint
id arxiv_https___arxiv_org_abs_2310_02003
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle L2MAC: Large Language Model Automatic Computer for Extensive Code Generation
Holt, Samuel
Luyten, Max Ruiz
van der Schaar, Mihaela
Software Engineering
Artificial Intelligence
Machine Learning
Programming Languages
I.2.7; I.2.6; I.2.5; D.2.2; D.2.3; D.3.4
Transformer-based large language models (LLMs) are constrained by the fixed context window of the underlying transformer architecture, hindering their ability to produce long and coherent outputs. Memory-augmented LLMs are a promising solution, but current approaches cannot handle long output generation tasks since they (1) only focus on reading memory and reduce its evolution to the concatenation of new memories or (2) use very specialized memories that cannot adapt to other domains. This paper presents L2MAC, the first practical LLM-based general-purpose stored-program automatic computer (von Neumann architecture) framework, an LLM-based multi-agent system, for long and consistent output generation. Its memory has two components: the instruction registry, which is populated with a prompt program to solve the user-given task, and a file store, which will contain the final and intermediate outputs. Each instruction in turn is executed by a separate LLM agent, whose context is managed by a control unit capable of precise memory reading and writing to ensure effective interaction with the file store. These components enable L2MAC to generate extensive outputs, bypassing the constraints of the finite context window while producing outputs that fulfill a complex user-specified task. We empirically demonstrate that L2MAC achieves state-of-the-art performance in generating large codebases for system design tasks, significantly outperforming other coding methods in implementing the detailed user-specified task; we show that L2MAC works for general-purpose extensive text-based tasks, such as writing an entire book; and we provide valuable insights into L2MAC's performance improvement over existing methods.
title L2MAC: Large Language Model Automatic Computer for Extensive Code Generation
topic Software Engineering
Artificial Intelligence
Machine Learning
Programming Languages
I.2.7; I.2.6; I.2.5; D.2.2; D.2.3; D.3.4
url https://arxiv.org/abs/2310.02003