用少量API调用实现大模型高效黑盒微调,精度提升30%以上。
Advanced Black-Box Tuning of Large Language Models with Limited API Calls
- 构建高斯过程代理模型,通过少量查询生成对齐的逻辑值对指导微调
- 在仅1.38次调用/样本条件下,准确率从55.92%提升至86.85%
- 适合无参数访问但需高效调优的场景,如受限接口部署
黑盒微调是一种新兴范式,用于在无法访问模型参数的情况下适应大型语言模型(LLM)以实现期望行为。现有方法常面临效率与效果的两难:要么训练小型代理模型后离线使用,虽高效但提升有限;要么每轮微调都调用基础模型的API,计算成本极高。为此,我们提出一种新型的低频调用黑盒微调方法。核心思想是基于少量但信息丰富的训练子集对基础模型进行查询,获取“LogitMap对”,并以此训练高斯过程(GP)代理模型,该代理可近似基础模型输出,从而指导代理模型训练,大幅减少对基础模型的直接调用。大量实验表明,该方法将预训练语言模型准确率从55.92%提升至86.85%,同时将API调用频率降至仅1.38次/样本,显著优于完全离线的方法。此外,其性能可媲美或超越高调用密集型方法,却大幅降低API开销,为语言模型适配提供了一种高效可靠的范式。
原文摘要 · Abstract (English)
Black-box tuning is an emerging paradigm for adapting large language models (LLMs) to better achieve desired behaviors, particularly when direct access to model parameters is unavailable. Current strategies, however, often present a dilemma of suboptimal extremes: either separately train a small proxy model and then use it to shift the predictions of the foundation model, offering notable efficiency but often yielding limited improvement; or making API calls in each tuning iteration to the foundation model, which entails prohibitive computational costs. Therefore, we propose a novel advanced black-box tuning method for LLMs with limited API calls. Our core strategy involves training a Gaussian Process (GP) surrogate model with "LogitMap Pairs" derived from querying the foundation model on a minimal but highly informative training subset. This surrogate can approximate the outputs of the foundation model to guide the training of the proxy model, thereby effectively reducing the need for direct queries to the foundation model. Extensive experiments verify that our approach elevates pre-trained language model accuracy from 55.92% to 86.85%, reducing the frequency of API queries to merely 1.38%. This significantly outperforms offline approaches that operate entirely without API access. Notably, our method also achieves comparable or superior accuracy to query-intensive approaches, while significantly reducing API costs. This offers a robust and high-efficiency paradigm for language model adaptation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。