Volume 2, Issue 4
Prompt Engineering Through the Lens of Optimal Control

Yifan Luo, Yiming Tang, Chengfeng Shen, Zhenan Zhou & Bin Dong

J. Mach. Learn. , 2 (2023), pp. 241-258.

Published online: 2023-12

Export citation
  • Abstract

Prompt engineering (PE) has emerged as a critical technique for guiding large language models (LLMs) in solving intricate tasks. Its importance is highlighted by its potential to significantly enhance the efficiency and effectiveness of human-machine interaction. As tasks grow increasingly complex, recent advanced PE methods have extended beyond the limitations of single-round interactions to embrace multi-round interactions, which allows for a deeper and more nuanced engagement with LLMs. In this paper, we propose an optimal control framework tailored for multi-round interactions with LLMs. This framework provides a unified mathematical structure that not only systematizes the existing PE methods but also sets the stage for rigorous analytical improvements. Furthermore, we extend this framework to include PE via ensemble methods and multi-agent collaboration, thereby enlarging the scope of applicability. By adopting an optimal control perspective, we offer fresh insights into existing PE methods and highlight theoretical challenges that warrant future research. Besides, our work lays a foundation for the development of more effective and interpretable PE methods.

  • AMS Subject Headings

  • Copyright

COPYRIGHT: © Global Science Press

  • Email address
  • BibTex
  • RIS
  • TXT
@Article{JML-2-241, author = {Luo , YifanTang , YimingShen , ChengfengZhou , Zhenan and Dong , Bin}, title = {Prompt Engineering Through the Lens of Optimal Control}, journal = {Journal of Machine Learning}, year = {2023}, volume = {2}, number = {4}, pages = {241--258}, abstract = {

Prompt engineering (PE) has emerged as a critical technique for guiding large language models (LLMs) in solving intricate tasks. Its importance is highlighted by its potential to significantly enhance the efficiency and effectiveness of human-machine interaction. As tasks grow increasingly complex, recent advanced PE methods have extended beyond the limitations of single-round interactions to embrace multi-round interactions, which allows for a deeper and more nuanced engagement with LLMs. In this paper, we propose an optimal control framework tailored for multi-round interactions with LLMs. This framework provides a unified mathematical structure that not only systematizes the existing PE methods but also sets the stage for rigorous analytical improvements. Furthermore, we extend this framework to include PE via ensemble methods and multi-agent collaboration, thereby enlarging the scope of applicability. By adopting an optimal control perspective, we offer fresh insights into existing PE methods and highlight theoretical challenges that warrant future research. Besides, our work lays a foundation for the development of more effective and interpretable PE methods.

}, issn = {2790-2048}, doi = {https://doi.org/10.4208/jml.231023}, url = {http://global-sci.org/intro/article_detail/jml/22306.html} }
TY - JOUR T1 - Prompt Engineering Through the Lens of Optimal Control AU - Luo , Yifan AU - Tang , Yiming AU - Shen , Chengfeng AU - Zhou , Zhenan AU - Dong , Bin JO - Journal of Machine Learning VL - 4 SP - 241 EP - 258 PY - 2023 DA - 2023/12 SN - 2 DO - http://doi.org/10.4208/jml.231023 UR - https://global-sci.org/intro/article_detail/jml/22306.html KW - Large language models, Prompt engineering, Optimal control. AB -

Prompt engineering (PE) has emerged as a critical technique for guiding large language models (LLMs) in solving intricate tasks. Its importance is highlighted by its potential to significantly enhance the efficiency and effectiveness of human-machine interaction. As tasks grow increasingly complex, recent advanced PE methods have extended beyond the limitations of single-round interactions to embrace multi-round interactions, which allows for a deeper and more nuanced engagement with LLMs. In this paper, we propose an optimal control framework tailored for multi-round interactions with LLMs. This framework provides a unified mathematical structure that not only systematizes the existing PE methods but also sets the stage for rigorous analytical improvements. Furthermore, we extend this framework to include PE via ensemble methods and multi-agent collaboration, thereby enlarging the scope of applicability. By adopting an optimal control perspective, we offer fresh insights into existing PE methods and highlight theoretical challenges that warrant future research. Besides, our work lays a foundation for the development of more effective and interpretable PE methods.

Yifan Luo, Yiming Tang, Chengfeng Shen, Zhenan Zhou & Bin Dong. (2023). Prompt Engineering Through the Lens of Optimal Control. Journal of Machine Learning. 2 (4). 241-258. doi:10.4208/jml.231023
Copy to clipboard
The citation has been copied to your clipboard