Saved in:
Bibliographic Details
Main Author: Karn, Rupesh Raj
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.11979
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915113266577408
author Karn, Rupesh Raj
author_facet Karn, Rupesh Raj
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2501_11979
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Linear Feedback Control Systems for Iterative Prompt Optimization in Large Language Models
Karn, Rupesh Raj
Machine Learning
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.
title Linear Feedback Control Systems for Iterative Prompt Optimization in Large Language Models
topic Machine Learning
url https://arxiv.org/abs/2501.11979