paper-with-me

홈 › Papers

AIOS Compiler: LLM as Interpreter for Natural Language Programming and Flow Programming of AI Agents

2024-05-11 · Shuyuan Xu, Zelong Li, Kai Mei, Yongfeng Zhang

Since their inception, programming languages have trended towards greater readability and lower barriers for programmers. Following this trend, natural language can be a promising type of programming language that provides great flexibility and usability and helps towards the democracy of programming. However, the inherent vagueness, ambiguity, and verbosity of natural language pose significant challenges in developing an interpreter that can accurately understand the programming logic and execute instructions written in natural language. Fortunately, recent advancements in Large Language Models (LLMs) have demonstrated remarkable proficiency in interpreting complex natural language. Inspired by this, we develop a novel system for Code Representation and Execution (CoRE), which employs LLM as interpreter to interpret and execute natural language instructions. The proposed system unifies natural language programming, pseudo-code programming, and flow programming under the same representation for constructing language agents, while LLM serves as the interpreter to interpret and execute the agent programs. In this paper, we begin with defining the programming syntax that structures natural language instructions logically. During the execution, we incorporate external memory to minimize redundancy. Furthermore, we equip the designed interpreter with the capability to invoke external tools, compensating for the limitations of LLM in specialized domains or when accessing real-time information. This work is open-source at https://github.com/agiresearch/CoRE, https://github.com/agiresearch/OpenAGI, and https://github.com/agiresearch/AIOS.

📄 PDF Abstract BibTeX arXiv:2405.06907

Code (3)

agiresearch/aios 공식 구현
agiresearch/core 공식 구현 pytorch
agiresearch/openagi 공식 구현 pytorch

Similar Papers 제목 키워드 기반

LLM as OS, Agents as Apps: Envisioning AIOS, Agents and the AIOS-Agent Ecosystem

2023-12-06 · Yingqiang Ge, Yujie Ren, Wenyue Hua, Shuyuan Xu 외

This paper envisions a revolutionary AIOS-Agent ecosystem, where Large Language Model (LLM) serves as the (Artificial) Intelligent Operating System (IOS, or AIOS)--an operating system "with soul". Upon this foundation, a…

AI AgentLanguage ModellingLarge Language Model

Program-as-Weights: A Programming Paradigm for Fuzzy Functions

2026-07-02 · Wentao Zhang, Liliana Hotsko, Woojeong Kim, Pengyu Nie 외 arxiv

Many everyday programming tasks resist clean rule-based implementation, such as alerting on important log lines, repairing malformed JSON, or ranking search results by intent, and are increasingly outsourced to large lan…

ALTA: Compiler-Based Analysis of Transformers

2024-10-23 · Peter Shaw, James Cohan, Jacob Eisenstein, Kenton Lee 외

We propose a new programming language called ALTA and a compiler that can map ALTA programs to Transformer weights. ALTA is inspired by RASP, a language proposed by Weiss et al. (2021), and Tracr (Lindner et al., 2023), …

Compile by Training: Turning Natural-Language Specifications into Local Neural Functions

2026-09-03 · Yuntian Deng, Pengyu Nie, Stuart Shieber hf

Many recurring text functions are easy to describe but difficult to implement with rules, while calling a large remote model for every input introduces repeated cost, latency, and dependency on a provider. We present com…

Language Models Can Teach Themselves to Program Better

2022-07-29 · Patrick Haluptzok, Matthew Bowers, Adam Tauman Kalai

Recent Language Models (LMs) achieve breakthrough performance in code generation when trained on human-authored problems, even solving some competitive-programming problems. Self-play has proven useful in games such as G…

Code Generation