让语言模型同时处理多个任务流,突破单线程瓶颈。
Multi-Stream LLMs: Unblocking Language Models with Parallel Streams of Thoughts, Inputs and Outputs

- 将输入、思考、输出拆分为并行流,实现多任务同步进行。
- 可边读边写、边思边动,响应延迟降低,效率显著提升。
- 适合构建高效自主智能体,尤其对复杂交互场景有益。
语言模型能力的持续提升使其广泛应用于自主智能体,如编程或计算机操作。然而,核心架构自早期指令微调模型(如ChatGPT)以来变化不大,仍依赖单一消息流顺序交互:用户、系统、自身(链式思维)和工具间依次通信。这种单一流模式导致多项局限:模型无法在阅读时生成输出,也无法在写作时响应新信息;不能在思考时行动,也不能在读取或执行时思考。本文提出,通过将指令微调从串行消息格式转向多并行计算流,将各角色分离为独立流,使模型在每次前向传播中同时从多个输入流读取,并在多个输出流中生成令牌,所有输出均因果依赖于先前时间步。该数据驱动的范式变革有效缓解了上述可用性问题,通过并行化提升效率,增强安全性和可监控性。
原文摘要 · Abstract (English)
The continued improvements in language model capability have unlocked their widespread use as drivers of autonomous agents, for example in coding or computer use applications. However, the core of these systems has not changed much since early instruction-tuned models like ChatGPT. Even advanced AI agents function on message exchange formats, successively exchanging messages with users, systems, with itself (i.e. chain-of-thought) and tools in a single stream of computation. This bottleneck to a single stream in chat models leads to a number of limitations: the agent cannot act (generate output) while reading, and in reverse, cannot react to new information while writing. Similarly, the agent cannot act while thinking and cannot think while reading or acting on information. In this work, we show that models can be unblocked by switching from instruction-tuning for sequential message formats to instruction-tuning for multiple, parallel streams of computation, splitting each role into a separate stream. Every forward pass of the language model then simultaneously reads from multiple input streams and generates tokens in multiple output streams, all of which causally depend on earlier timesteps. We argue that this data-driven change remedies a number of usability limitations as outlined above, improves model efficiency through parallelization, improves model security through better separation of concerns and can further improve model monitorability.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。