Nanyang Technological University
PromptOpt: a systematic framework for prompt optimization in large language models
Abstract
dc:description.abstractAlthough large language models (LLMs) are dominant in cloud AI services, their deployment on edge devices with limited resources is still fundamentally limited by high computational cost and inapplicability based on gradient optimization. Small scale language model (SLMs) with parameters between 1B and 7B has become a promising solution because of its high efficiency. However, these models face key challenges in practical application, including extreme prompt sensitivity, fragile reasoning ability and difficulties in safe alignment. In view of the high cost of manual prompt engineering and the black box characteristics of quantitative edge model, an automatic optimization framework customized for SLMs is urgently needed. In this paper, PromptOpt, a black-box multi-objective prompt optimization framework specially designed for edge SLMs, is proposed. It adopts the Homogeneous Self-Evolution architecture, innovatively uses the target model itself (such as Qwen-2.5-7B) as a mutator, and optimizes the prompt words through semantic crossover and mutation operations, without the help of external large models (such as GPT-4) or gradient information. What’s more, PromptOpt has also set up a multi-dimensional scoring system, which will assess the accuracy, consistency, loyalty and calculation cost at the same time, so that the tips trained are smart and save resources. The experimental results show that PromptOpt shows a unique and context-dependent evolutionary model in different fields. In the task of mathematical reasoning (GSM8K), evolution is biased towards ”Semantic Compression”, achieving 100% self-consistency. In the multi-modal simulation task (ScienceQA), a structured ”Visual Chain-of-Thought” appeared, which improved the accuracy by 39.8% compared with the benchmark. In the TruthfulQA task, the framework generates ”Negative Constraints”, which improves the safety accuracy by 100% compared with the benchmark. This study confirms that the 7B parameter model has sufficient self-examination and self-correction ability, and provides an efficient, robust and safe AI deployment scheme for edge devices with limited resources without training.
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
-
- Yang, Jiacheng
- Advisor dc:contributor.supervisor
-
- Mao Kezhi
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/214659