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

Sang Michael Xie, Tengyu Ma, Percy Liang
6/29/2020
18 citations
cs.LGstat.ML

Official code: p-lambda/composed_finetuning (4 stars, Python, MIT, last commit 2021-12-28).

Abstract

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.

Show full abstract

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).

View on arXivView PDF

Code Implementations(1)

MIT

Code for the ICML 2021 paper "Composed Fine-Tuning: Freezing Pre-Trained Denoising Autoencoders for Improved Generalization" by Sang Michael Xie, Tengyu Ma, Percy Liang

41Python, CudaOct 23, 20204 years agoMIT
image-generationood-generalizationsemi-supervised-learningstructured-predictiontranslation

Similar Papers

Cite this paper

@article{xie2020composed,
  title  = {Composed Fine-Tuning: Freezing Pre-Trained Denoising Autoencoders for Improved Generalization},
  author = {Sang Michael Xie and Tengyu Ma and Percy Liang},
  year   = {2020},
  eprint = {2006.16205},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.16205}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2006.16205.svg)](https://codeofpaper.com/paper/2006.16205)

Discussion