Lune

KDD2026Top-tier venue

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 Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. Collaborative Discrete-Continuous Black-Box Prompt Learning for Language ModelsHualin Zhang, Haozhen Zhang, Zhekai Liu, Bin Gu et al.ICLR 2025
  2. Subspace Selection based Prompt Tuning with Nonconvex Nonsmooth Black-Box OptimizationHaozhen Zhang, Hualin Zhang, Bin Gu, Yi ChangKDD 2024 · 1 citation
  3. Black-Box Tuning for Language-Model-as-a-ServiceTianxiang Sun, Yunfan Shao, Hong Qian, Xuanjing Huang et al.ICML 2022 · 343 citations
  4. Unlocking Black-Box Prompt Tuning Efficiency via Zeroth-Order OptimizationHeshen Zhan, Congliang Chen, Tian Ding, Ziniu Li et al.EMNLP Findings 2024 · 3 citations
  5. Drag-and-Drop LLMs: Zero-Shot Prompt-to-WeightsZhiyuan Liang, Dongwen Tang, Yuhao Zhou, Xuanlei Zhao et al.NeurIPS 2025 · 22 citations
Dusk over the sea between two cliffs drawn in fine vertical lines