arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.11979cs.LG
收藏

大型语言模型中迭代提示优化的线性反馈控制系统

Linear Feedback Control Systems for Iterative Prompt Optimization in Large Language Models

New York University(纽约大学)

Rupesh Raj Karn

AI总结:

本文借鉴线性反馈控制原理,将LLM输出与期望结果的偏差作为误差项迭代优化提示,并探索多种控制器,为LLM提示优化提供数学基础。

摘要:

大型语言模型(LLMs)通过基于给定提示生成输出,彻底改变了各种应用。然而,实现期望的输出需要迭代的提示优化。本文提出了一种新颖的方法,将LLMs中的迭代提示优化过程与反馈控制系统相类比。我们通过将LLM输出与期望结果之间的偏差视为误差项,迭代地优化提示,直到满足输出标准。这个过程类似于反馈控制系统,其中LLM尽管是非线性和非确定性的,却使用线性反馈控制系统的原理进行管理。我们探索了在此框架内应用不同类型的控制器,为将线性反馈控制机制与LLMs集成提供了数学基础。

英文摘要:

Large Language Models (LLMs) have revolutionized various applications by generating outputs based on given prompts. However, achieving the desired output requires iterative prompt refinement. This paper presents a novel approach that draws parallels between the iterative prompt optimization process in LLMs and feedback control systems. We iteratively refine the prompt by treating the deviation between the LLM output and the desired result as an error term until the output criteria are met. This process is akin to a feedback control system, where the LLM, despite being non-linear and non-deterministic, is managed using principles from linear feedback control systems. We explore the application of different types of controllers within this framework, providing a mathematical foundation for integrating linear feedback control mechanisms with LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑