상세 보기
Comparisons of Some Evolutionary Computation Algorithms for Prompt Optimization in Large Language Models
- Li, Jian-Yu;
- Jin, Tian-Le;
- Zhan, Zhi-Hui;
- Kwong, Sam;
- Zhang, Jun
WEB OF SCIENCE
0SCOPUS
0초록
Prompt engineering has become an effective tool for numerous large language models (LLMs)-based tasks. However, it is still a challenge to adaptively optimize the prompt for the target task, where gradients are inaccessible via APIs and the search space is highly complex. Due to the ability to robustly handle complex and multimodal landscapes, and to adaptively explore complex search spaces without explicit gradient information, evolutionary computation (EC) algorithms have garnered significant attention in black-box optimization. However, the performance of different EC algorithms for prompt optimization remains uncertain, which cannot provide guidance for algorithm selection and design in prompt optimization. To alleviate this, a series of investigative experiments are conducted in this paper to evaluate the efficiency of EC algorithms in prompt optimization, which results in three novel findings. First, different EC algorithms, including XNES, CMA-ES, DE, and PSO, are compared on various few-shot learning tasks. The findings indicate that XNES can outperform other algorithms, achieving faster or smoother convergence and higher final accuracy under high-dimensional settings. Second, the role of truncation strategies is also investigated. Results show that moderate bounds effectively help the algorithm balance exploration and exploitation, whereas overly small or large bounds diminish performance. Third, the influence of different k-shot values is examined on the optimization performance for few-shot tasks, which shows that k=32 consistently provides the best trade-off between convergence speed and final model accuracy. In conclusion, these investigations validate the efficacy of the investigated EC algorithms and highlight the advantages of XNES for complex prompt optimization. They further underscore the importance offering valuable guidance for future black-box prompt tuning scenarios. These insights pave the way for future work on more diverse and complex tasks with larger LLMs. © 2025 IEEE.
키워드
- 제목
- Comparisons of Some Evolutionary Computation Algorithms for Prompt Optimization in Large Language Models
- 저자
- Li, Jian-Yu; Jin, Tian-Le; Zhan, Zhi-Hui; Kwong, Sam; Zhang, Jun
- 발행일
- 2026-01
- 유형
- Proceedings Paper
- 페이지
- 4063 ~ 4068
- 언어
- ENG
- 출판사
- IEEE
- 발행국가
- 미국
- 분량
- 6 페이지
- ISSN
- P 1062-922X