arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.06565cs.LGcs.CL
收藏

LIFT:面向非语言机器学习任务的机器接口微调

LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Tuan Dinh, Yuchen Zeng, Ruisu Zhang, Ziqian Lin, Michael Gira, Shashank Rajput, Jy-yong Sohn, Dimitris Papailiopoulos, Kangwook Lee

摘要:

微调预训练的语言模型(LM)而不进行任何架构更改已成为学习各种语言下游任务的规范。然而,对于非语言的下游任务,通常的做法是对输入、输出层和损失函数采用特定于任务的设计。例如,可以通过分别用图像块嵌入层替换词嵌入层、用10路输出层替换词令牌输出层以及用10路分类损失替换词预测损失来将LM微调到MNIST分类器中。一个自然的问题出现了:LM微调是否可以在不改变模型架构或损失函数的情况下解决非语言下游任务?为了回答这个问题,我们提出了存储接口的微调(LIFT),并通过对一套非语言分类和回归任务进行广泛的实证研究来研究其有效性和局限性。LIFT不对模型架构或损失函数进行任何更改,并且它仅依赖于自然语言接口,从而使用LM实现“无代码机器学习”。“我们发现LIFT在广泛的低维分类和回归任务中表现良好,在许多情况下与最佳基线的性能相匹配,特别是对于分类任务。我们还报告了实验结果的基本属性的LIFT,包括电感偏置,鲁棒性和样本的复杂性。我们还分析了预训练对LIFT的影响以及LIFT特有的一些属性/技术,例如,通过适当的提示、校准预测、数据生成和两阶段微调进行上下文感知学习。我们的代码可在https://github.com/UW-Madison-Lee-Lab/LanguageInterfacedFineTuning上获得。

英文摘要:

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.

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

↑