Back to search

Nanyang Technological University

Optimising prompts for enhanced performance in large language models

Abstract

dc:description.abstract

Prompt engineering is critical to controlling the behaviour of large language models. Population-based metaheuristics have shown promise for automating prompt optimisation, but existing studies rarely compare different search paradigms under controlled conditions. This dissertation presents a unified optimisation framework for directly comparing three classic metaheuristics: Genetic Algorithm (GA), Differential Evolution (DE), and Particle Swarm Optimisation (PSO). All three methods start from the same initial population and use the same fitness evaluation pipeline, so that performance differences can be attributed to their search dynamics. The framework is evaluated on five standard benchmarks covering classification, summarisation, and simplification. On classification, GA achieves the highest average accuracy of 73.07%, improving over the strongest baseline EvoPrompt by 2.3 percentage points and over manually designed prompts by 5.6 points. On summarisation, all three methods outperform the baselines, with PSO reaching the highest ROUGE-1 of 43.00 against 38.35 for EvoPrompt. On simplification, DE obtains a SARI score of 52.21, comparable to EvoPrompt’s 52.14. Further analysis examines convergence behaviour, population diversity, and method-specific patterns. Maintaining diversity during search correlates with better generalisation. Behavioural analysis shows that the multi-armed bandit mutation selection in GA adjusts operator preferences to different tasks. A controlled study on population size shows that GA benefits more from larger populations, while DE benefits more from longer iterations.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Li, Zihao
Advisor dc:contributor.supervisor
  • Mao Kezhi

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/214945

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
related terms
citation

Li, Zihao. Optimising prompts for enhanced performance in large language models. Nanyang Technological University, 2026. https://hdl.handle.net/10356/214945