# Large Language Models as General Pattern Machines

> 原标题：Large Language Models as General Pattern Machines

- 来源：Stanford ILIAD / Dorsa Sadigh
- 文章发布日期：2023-07-10
- Physical AI Hot：https://physical-ai-hot.pages.dev/items/ihte6jv26wvxgw7ukirtpbxgv
- 原文：https://arxiv.org/abs/2307.04721

## 一句话结论

研究显示，预训练大语言模型无需额外训练即可通过上下文学习完成多类复杂序列与空间模式，并被尝试用于机器人状态预测和奖励条件轨迹控制；但受延迟、上下文长度和计算成本限制，当前仍难部署到真实系统。

## 摘要

We observe that pre-trained large language models (LLMs) are capable of autoregressively completing complex token sequences -- from arbitrary ones procedurally generated by probabilistic context-free grammars (PCFG), to more rich spatial patterns found in the Abstraction and Reasoning Corpus (ARC), a general AI benchmark, prompted in the style of ASCII art. Surprisingly, pattern completion proficiency can be partially retained even when the sequences are expressed using tokens randomly sampled from the vocabulary. These results suggest that without any additional training, LLMs can serve as general sequence modelers, driven by in-context learning. In this work, we investigate how these zero-shot capabilities may be applied to problems in robotics -- from extrapolating sequences of numbers that represent states over time to complete simple motions, to least-to-most prompting of reward-conditioned trajectories that can discover and represent closed-loop policies (e.g., a stabilizing controller for CartPole). While difficult to deploy today for real systems due to latency, context size limitations, and compute costs, the approach of using LLMs to drive low-level control may provide an exciting glimpse into how the patterns among words could be transferred to actions.

## 为什么重要

以下为编辑分析，不能视作已验证结果。

它把大语言模型的模式补全能力从文本序列延伸到机器人状态和动作轨迹，说明上下文学习可能成为低层控制建模的一条研究路线。

## 对 AI 研究或应用的影响

以下为编辑分析，不能视作已验证结果。

如果延迟、上下文长度和计算成本得到改善，LLM可能被用于从示例或奖励条件轨迹中推断闭环控制策略；目前这一启示主要停留在研究探索层面。

## 值得继续追的问题

原材料不足，暂无具体追问。

