arXiv:2410.12457cs.LGcs.AI2024-10被引 5

用尖锐度感知优化提升黑盒调参的泛化能力

Sharpness-Aware Black-Box Optimization

  • 通过高斯分布重参数化目标函数,捕捉局部最优的稳定性
  • 在小邻域内优化最大目标值,避免陷入尖锐极小点
  • 适合需要强泛化的黑盒调参场景,如提示微调

黑盒优化算法广泛应用于强化学习和提示微调等机器学习任务。然而,现有方法直接优化训练损失,可能导致模型质量与泛化性能不佳。为此,本文提出一种新的尖锐度感知黑盒优化(SABO)算法,采用尖锐度感知最小化策略以提升模型泛化能力。具体而言,SABO 首先通过高斯分布期望对目标函数进行重参数化,然后在高斯分布空间中,迭代更新参数化分布,利用当前解附近小邻域内最大目标值的近似随机梯度。理论上,本文证明了 SABO 算法的收敛速率和泛化误差上界。实验上,在多个黑盒提示微调任务上验证了该方法在提升模型泛化性能方面的有效性。

原文摘要 · Abstract (English)

Black-box optimization algorithms have been widely used in various machine learning problems, including reinforcement learning and prompt fine-tuning. However, directly optimizing the training loss value, as commonly done in existing black-box optimization methods, could lead to suboptimal model quality and generalization performance. To address those problems in black-box optimization, we propose a novel Sharpness-Aware Black-box Optimization (SABO) algorithm, which applies a sharpness-aware minimization strategy to improve the model generalization. Specifically, the proposed SABO method first reparameterizes the objective function by its expectation over a Gaussian distribution. Then it iteratively updates the parameterized distribution by approximated stochastic gradients of the maximum objective value within a small neighborhood around the current solution in the Gaussian distribution space. Theoretically, we prove the convergence rate and generalization bound of the proposed SABO algorithm. Empirically, extensive experiments on the black-box prompt fine-tuning tasks demonstrate the effectiveness of the proposed SABO method in improving model generalization performance.

黑盒优化泛化提升尖锐度感知

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