arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.16205cs.LGstat.ML
收藏

组合微调:冻结预训练去噪自编码器以提升泛化能力

Composed Fine-Tuning: Freezing Pre-Trained Denoising Autoencoders for Improved Generalization

Stanford University(斯坦福大学)

Sang Michael Xie, Tengyu Ma, Percy Liang

AI总结:

针对结构化输出预测问题,提出组合微调方法,通过冻结预训练去噪器以保留输出结构,理论证明其降低了预测器复杂度,并在伪代码到代码翻译任务上提升了泛化能力,尤其在分布外样本上提升显著。

摘要:

我们关注输出受有效性约束的结构化输出预测问题,例如伪代码到代码的翻译,其中代码必须能够编译通过。虽然获取有标签的输入-输出对成本高昂,但“无标签”输出(即没有对应输入的输出)是免费可得的(例如 GitHub 上的代码),并提供了关于输出有效性的信息。我们可以通过预训练一个去噪器来对无标签输出的损坏版本进行去噪,从而捕获输出结构。我们首先表明,预训练后的标准微调会破坏部分这种结构。然后,我们提出了组合微调(composed fine-tuning),它微调一个与预训练去噪器组合的预测器,其中去噪器被冻结以保留输出结构。对于两层 ReLU 网络,我们证明了组合微调显著降低了预测器的复杂度,从而提升了泛化能力。在实验上,我们表明组合微调在两个伪代码到代码翻译数据集上优于标准微调(相对提升 3% 和 6%)。组合微调带来的提升在分布外(OOD)样本上更为显著(相对提升 4% 和 25%)。

英文摘要:

We focus on prediction problems with structured outputs that are subject to output validity constraints, e.g. pseudocode-to-code translation where the code must compile. While labeled input-output pairs are expensive to obtain, "unlabeled" outputs, i.e. outputs without corresponding inputs, are freely available (e.g. code on GitHub) and provide information about output validity. We can capture the output structure by pre-training a denoiser to denoise corrupted versions of unlabeled outputs. We first show that standard fine-tuning after pre-training destroys some of this structure. We then propose composed fine-tuning, which fine-tunes a predictor composed with the pre-trained denoiser, which is frozen to preserve output structure. For two-layer ReLU networks, we prove that composed fine-tuning significantly reduces the complexity of the predictor, thus improving generalization. Empirically, we show that composed fine-tuning improves over standard fine-tuning on two pseudocode-to-code translation datasets (3% and 6% relative). The improvement from composed fine-tuning is magnified on out-of-distribution (OOD) examples (4% and 25% relative).

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

↑