Modality-Agnostic Zeroth-Order LoRA Fine-Tuning for Black-Box Prompt Optimization
Xingchen Li, Jia Zhang, Tianxing Man, Wenkang Wang, Bin Gu
Abstract
Recent progress in large-scale models with generative task capabilities allows users to produce high-quality content directly from text prompts. These contents can be further improved through prompt optimization, which is usually treated as a black-box optimization problem since gradients are inaccessible in the Model-as-a-Service setting. Existing state-of-the-art prompt optimization methods in the white-box setting typically optimize soft-embedding prompts but require access to gradients and thus cannot be applied to black-box APIs. To address this limitation, we propose a novel modality-agnostic black-box prompt enhancement framework that optimizes additional parameters within the low-rank adaptation (LoRA) and can effectively collaborate with white-box prompt optimization methods to further improve the performance of prompt optimization. Specifically, a Zeroth-Order LoRA Optimization (ZOLO) method was proposed to fine-tune an open-source LLM, establishing an O (1/T) convergence rate with theoretical guarantees to achieve automatic optimization of hard prompts, which are then fed into a black-box target model to generate higher-quality content. Experimental results on Text-to-Image and Text-to-Text demonstrate that our method outperforms manually crafted prompts and baseline models in both automated evaluation metrics and human preference ratings while maintaining a smaller parameter size, showcasing its effectiveness across diverse generation tasks. Code is available at https://github.com/xcli23/ZOLO.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Related papers
- Collaborative Discrete-Continuous Black-Box Prompt Learning for Language ModelsHualin Zhang, Haozhen Zhang, Zhekai Liu, Bin Gu et al.ICLR 2025
- Subspace Selection based Prompt Tuning with Nonconvex Nonsmooth Black-Box OptimizationHaozhen Zhang, Hualin Zhang, Bin Gu, Yi ChangKDD 2024 · 1 citation
- Black-Box Tuning for Language-Model-as-a-ServiceTianxiang Sun, Yunfan Shao, Hong Qian, Xuanjing Huang et al.ICML 2022 · 343 citations
- Drag-and-Drop LLMs: Zero-Shot Prompt-to-WeightsZhiyuan Liang, Dongwen Tang, Yuhao Zhou, Xuanlei Zhao et al.NeurIPS 2025 · 22 citations
- GPT4Tools: Teaching Large Language Model to Use Tools via Self-instructionRui Yang, Lin Song, Yanwei Li, Sijie Zhao et al.NeurIPS 2023 · 340 citations
