Skip to main content
QUICK REVIEW

[论文解读] LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks

Tuan Dinh, Yuchen Zeng|arXiv (Cornell University)|Jun 14, 2022
Natural Language Processing TechniquesComputer Science被引用 34
一句话总结

LIFT 在非语言任务上对预训练语言模型进行微调,通过将数据转换为句子并使用标准 LM 微调,同时不改变架构或损失,在跨多样数据集的分类和回归任务中实现具有竞争力的结果。

ABSTRACT

Fine-tuning pretrained language models (LMs) without making any architectural changes has become a norm for learning various language downstream tasks. However, for non-language downstream tasks, a common practice is to employ task-specific designs for input, output layers, and loss functions. For instance, it is possible to fine-tune an LM into an MNIST classifier by replacing the word embedding layer with an image patch embedding layer, the word token output layer with a 10-way output layer, and the word prediction loss with a 10-way classification loss, respectively. A natural question arises: Can LM fine-tuning solve non-language downstream tasks without changing the model architecture or loss function? To answer this, we propose Language-Interfaced Fine-Tuning (LIFT) and study its efficacy and limitations by conducting an extensive empirical study on a suite of non-language classification and regression tasks. LIFT does not make any changes to the model architecture or loss function, and it solely relies on the natural language interface, enabling "no-code machine learning with LMs." We find that LIFT performs comparably well across a wide range of low-dimensional classification and regression tasks, matching the performances of the best baselines in many cases, especially for the classification tasks. We also report experimental results on the fundamental properties of LIFT, including inductive bias, robustness, and sample complexity. We also analyze the effect of pretraining on LIFT and a few properties/techniques specific to LIFT, e.g., context-aware learning via appropriate prompting, calibrated predictions, data generation, and two-stage fine-tuning. Our code is available at https://github.com/UW-Madison-Lee-Lab/LanguageInterfacedFineTuning.

研究动机与目标

  • 研究语言模型微调是否能在不改变模型架构或损失函数的情况下解决非语言下游任务。
  • 在一组低维分类和回归任务上评估 LIFT。
  • 理解 LIFT 的性质,如归纳偏置、鲁棒性和样本效率。
  • 探索影响 LIFT 性能的因素,包括提示、数据增强和两阶段微调。

提出的方法

  • 两阶段过程:使用固定模板将每个数据集样本转换为自然语言句子;在句子数据集上微调一个预训练语言模型(如 GPT),不进行架构或损失函数的改变。
  • 在 LM 微调过程中使用固定的 token-预测交叉熵损失。
  • 在推理阶段,将测试样本转换为具有相同提示的句子,并解析生成输出以获得预测结果(通过匹配类别名称进行分类;通过解析数字进行回归)。
  • 尝试提示变体,包括特征名丰富提示和通用的 x1, ..., xp 提示。
  • 在标准基线下进行评估,覆盖合成数据、OpenML 表格数据以及图像派生数据集(MNIST/Fashion-MNIST 及置乱变体)。
  • 探索诸如数据增强和带有合成伪任务的两阶段微调等增强方法,以在数据较少的情况下提升性能。

实验结果

研究问题

  • RQ1是否可以在不改变模型架构或损失函数的情况下对非语言任务进行微调?
  • RQ2与传统基线相比,LIFT 在低维分类和回归任务上的表现如何?
  • RQ3哪些因素影响 LIFT 的表现(提示设计、预训练、数据生成、校准和两阶段微调),以及它的局限性是什么?
  • RQ4LIFT 在各任务中的鲁棒性、归纳偏置和样本效率特征如何?
  • RQ5对自然语言数据的预训练是否对 LIFT 重要,以及与作为替代的上下文学习(ICL)相比,LIFT 的表现如何?

主要发现

  • LIFT 在一系列分类任务上达到与强基线相当的准确率,并且能够学习非线性关系。
  • LIFT 能近似不同的低维回归函数,并且对某些训练异常值情景具有鲁棒性。
  • 带有特征名称和任务描述的上下文感知提示改善了若干 OpenML 分类数据集的表现。
  • 带有合成伪任务的数据增强和两阶段微调在预测性能方面具有提升,尤其是在数据有限时。
  • LIFT 的性能取决于预训练语言模型是否在自然语言数据上进行训练,随机或基于代码的预训练通常不如在自然语言上训练的 LM。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。