控制器嵌入式语言模型交互(CELI)
CELI: Controller-Embedded Language Model Interactions
AI总结:
本文提出 CELI 框架,将控制逻辑直接嵌入语言模型提示中,实现多阶段任务的自主管理与外部系统交互,并在代码生成和内容生成任务上取得显著性能提升。
摘要:
我们提出了控制器嵌入式语言模型交互(CELI),这是一个将控制逻辑直接集成到语言模型(LM)提示中的框架,以促进复杂的多阶段任务执行。CELI 通过将控制逻辑直接嵌入语言模型的运行上下文中,解决了现有提示工程和工作流优化技术的局限性,使其能够动态适应不断变化的任务需求。我们的框架将控制权从传统的程序执行环境转移到语言模型,使其能够自主管理计算工作流,同时保持与外部系统和函数的无缝交互。CELI 支持带有可变参数的任意函数调用,弥合了语言模型的自适应推理能力与传统软件范式结构化控制机制之间的差距。为了评估 CELI 的通用性和有效性,我们在两个不同领域进行了案例研究:代码生成(HumanEval 基准)和多阶段内容生成(维基百科风格文章)。结果表明,在一系列领域中均取得了显著的性能提升。在 HumanEval 代码生成基准上,CELI 比基线 GPT-4 模型的最佳报告分数提高了 4.9 个百分点。在多阶段内容生成中,当配置最优时,94.4% 的 CELI 生成的维基百科风格文章达到或超过了初稿质量,其中 44.4% 达到了高质量。这些结果凸显了 CELI 在优化跨不同计算领域的 AI 驱动工作流方面的潜力。
英文摘要:
We introduce Controller-Embedded Language Model Interactions (CELI), a framework that integrates control logic directly within language model (LM) prompts, facilitating complex, multi-stage task execution. CELI addresses limitations of existing prompt engineering and workflow optimization techniques by embedding control logic directly within the operational context of language models, enabling dynamic adaptation to evolving task requirements. Our framework transfers control from the traditional programming execution environment to the LMs, allowing them to autonomously manage computational workflows while maintaining seamless interaction with external systems and functions. CELI supports arbitrary function calls with variable arguments, bridging the gap between LMs' adaptive reasoning capabilities and conventional software paradigms' structured control mechanisms. To evaluate CELI's versatility and effectiveness, we conducted case studies in two distinct domains: code generation (HumanEval benchmark) and multi-stage content generation (Wikipedia-style articles). The results demonstrate notable performance improvements across a range of domains. CELI achieved a 4.9 percentage point improvement over the best reported score of the baseline GPT-4 model on the HumanEval code generation benchmark. In multi-stage content generation, 94.4% of CELI-produced Wikipedia-style articles met or exceeded first draft quality when optimally configured, with 44.4% achieving high quality. These outcomes underscore CELI's potential for optimizing AI-driven workflows across diverse computational domains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。