arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.06120cs.LGcs.NAmath.NAstat.ML
收藏

Sketchy Moment Matching:面向微调的快速且可证明的数据选择方法

Sketchy Moment Matching: Toward Fast and Provable Data Selection for Finetuning

New York University(纽约大学)

Yijun Dong, Hoang Phan, Xiang Pan, Qi Lei

AI总结:

本文提出Sketchy Moment Matching(SkMM)数据选择方法,通过梯度草图控制低秩近似偏差、矩匹配降低方差,在微调中实现快速且可证明的数据选择,并保持与参数维度无关的快速泛化率。

摘要:

我们从基础视角重新审视现代微调背景下的数据选择问题。将低维方差最小化的经典思想扩展到高维微调中,我们的泛化分析揭示了额外减少由低秩近似引入的偏差的重要性。受理论中高维方差-偏差权衡的启发,我们提出了 Sketchy Moment Matching(SkMM),一种具有两个阶段的可扩展数据选择方案。(i)首先,通过梯度草图(gradient sketching)控制偏差,该过程探索微调参数空间以寻找信息丰富的低维子空间 $\mathcal{S}$;(ii)然后在 $\mathcal{S}$ 上通过原始数据集与所选数据集之间的矩匹配来降低方差。理论上,我们证明梯度草图速度快且准确可证明:通过在 $\mathcal{S}$ 上降低方差来选择 $n$ 个样本,可以保持快速泛化率 $O(\dim(\mathcal{S})/n)$,且与参数维度无关。实验上,我们通过合成实验具体化了方差-偏差平衡,并展示了 SkMM 在真实视觉任务微调中的有效性。

英文摘要:

We revisit data selection in a modern context of finetuning from a fundamental perspective. Extending the classical wisdom of variance minimization in low dimensions to high-dimensional finetuning, our generalization analysis unveils the importance of additionally reducing bias induced by low-rank approximation. Inspired by the variance-bias tradeoff in high dimensions from the theory, we introduce Sketchy Moment Matching (SkMM), a scalable data selection scheme with two stages. (i) First, the bias is controlled using gradient sketching that explores the finetuning parameter space for an informative low-dimensional subspace $\mathcal{S}$; (ii) then the variance is reduced over $\mathcal{S}$ via moment matching between the original and selected datasets. Theoretically, we show that gradient sketching is fast and provably accurate: selecting $n$ samples by reducing variance over $\mathcal{S}$ preserves the fast-rate generalization $O(\dim(\mathcal{S})/n)$, independent of the parameter dimension. Empirically, we concretize the variance-bias balance via synthetic experiments and demonstrate the effectiveness of SkMM for finetuning in real vision tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑