Paper Reading AI Learner

LatentPrompt: Optimizing Promts in Latent Space

2025-08-04 14:17:29
Mateusz Bystro\'nski, Grzegorz Piotrowski, Nitesh V. Chawla, Tomasz Kajdanowicz

Abstract

Recent advances have shown that optimizing prompts for Large Language Models (LLMs) can significantly improve task performance, yet many optimization techniques rely on heuristics or manual exploration. We present LatentPrompt, a model-agnostic framework for prompt optimization that leverages latent semantic space to automatically generate, evaluate, and refine candidate prompts without requiring hand-crafted rules. Beginning with a set of seed prompts, our method embeds them in a continuous latent space and systematically explores this space to identify prompts that maximize task-specific performance. In a proof-of-concept study on the Financial PhraseBank sentiment classification benchmark, LatentPrompt increased classification accuracy by approximately 3 percent after a single optimization cycle. The framework is broadly applicable, requiring only black-box access to an LLM and an automatic evaluation metric, making it suitable for diverse domains and tasks.

Abstract (translated)

最近的研究表明,为大型语言模型(LLM)优化提示可以显著提升任务性能,但许多优化技术依赖于启发式方法或手动探索。我们提出了一种名为LatentPrompt的框架,这是一种与模型无关的提示优化方法,它利用潜在语义空间自动生成、评估和改进候选提示,并且无需手工定制规则。该方法从一组初始提示开始,将其嵌入到连续的潜在空间中,并系统地在这个空间内进行探索以识别能够最大化特定任务性能的提示。 在金融短语库(Financial PhraseBank)情感分类基准测试的一个概念验证研究中,在经过一轮优化之后,LatentPrompt使分类准确率提高了大约3%。该框架具有广泛的适用性,仅需对LLM和自动评估指标有黑盒访问权限即可使用,因此适用于多种领域和任务。

URL

https://arxiv.org/abs/2508.02452

PDF

https://arxiv.org/pdf/2508.02452.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot