arXiv:2604.18026cs.LGcs.AI2026-04

用检索增强的软提示实现动态环境下的低成本黑箱优化

RASP-Tuner: Retrieval-Augmented Soft Prompts for Context-Aware Black-Box Optimization in Non-Stationary Environments

论文配图:RASP-Tuner: Retrieval-Augmented Soft Prompts for Context-Aware Black-Box Optimization in Non-Stationary Environments
图 1 · 摘自论文原文
  • 通过检索历史上下文生成软提示,指导低维空间中的参数调整
  • 在9个合成任务中比基线方法减少8-12倍运行时间,累计损失更优
  • 适合需要快速响应且上下文变化频繁的实时系统调优场景

许多部署系统存在随外部上下文变化的黑箱目标函数。当上下文反复进入有限的潜在状态时,忽略历史信息会导致重复适应成本;而每次更新代价又需低廉,难以持续进行高观测数下的全量高斯过程(GP)重拟合。本文将在线调优建模为上下文相关的后悔值最小化,提出RASP-Tuner:首先通过检索相似历史上下文识别状态代理;其次使用混合专家代理模型,输入包含参数、上下文和检索到的软提示,预测短期损失;最后主要在低维提示子空间中调整,仅在标量误差或分歧激增时才触发完整代理更新。一个RealErrorComposer通过EMA稳定化的逻辑得分,将异构流式指标映射到[0,1]区间,提供单一可微训练目标。在九个非平稳合成基准、对抗性上下文检验及三个真实表格式数据流上,RASP-Tuner在七项合成任务中优于或匹配我们实现的GP-UCB与CMA-ES,在T=100的时域内表现更佳,同时在相同硬件下每步耗时仅为滑动窗口GP-UCB的8-12分之一。在簇分离强凸模型(RA-GD)中的理想化分析给出了有界动态后悔的充分条件;实际部署管道违反了其中若干前提,本文也指出了尚未解决的差距。

原文摘要 · Abstract (English)

Many deployed systems expose black-box objectives whose minimizing configuration shifts with an externally observed context. When contexts revisit a small set of latent regimes, an optimizer that discards history pays repeated adaptation cost; when each step must remain inexpensive, full Gaussian-process (GP) refits at high observation counts are difficult to sustain. We cast online tuning as context-conditioned regret minimization and present RASP-Tuner, which instantiates a decomposition motivated by first principles: (i) identify a regime proxy by retrieving similar past contexts; (ii) predict short-horizon loss with a mixture-of-experts surrogate whose input concatenates parameters, context, and a retrieved soft prompt; (iii) adapt chiefly in a low-dimensional prompt subspace, invoking full surrogate updates only when scalarized error or disagreement spikes. A RealErrorComposer maps heterogeneous streaming metrics to [0,1] via EMA-stabilized logistic scores, supplying a single differentiable training target. On nine synthetic non-stationary benchmarks, an adversarial-context sanity check, and three tabular real-world streams (Section on real-world experiments), RASP-Tuner improves or matches cumulative regret relative to our GP-UCB and CMA-ES implementations on seven of nine synthetic tasks under paired tests at horizon T=100, while recording 8-12 times lower wall-clock per step than sliding-window GP-UCB on identical hardware. Idealized analysis in a cluster-separated, strongly convex regime model (RA-GD) supplies sufficient conditions for bounded dynamic regret; the deployed pipeline violates several of these premises, and we articulate which gaps remain open.

黑箱优化上下文感知在线学习软提示

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。