[Paper Review] LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks
LIFT fine-tunes pretrained language models on non-language tasks by converting data into sentences and using standard LM fine-tuning without changing architecture or loss, achieving competitive results on classification and regression across diverse datasets.
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.
Motivation & Objective
- Investigate whether language model fine-tuning can solve non-language downstream tasks without altering model architecture or loss function.
- Assess LIFT across a suite of low-dimensional classification and regression tasks.
- Understand properties of LIFT such as inductive bias, robustness, and sample efficiency.
- Explore factors that influence LIFT performance, including prompting, data augmentation, and two-stage fine-tuning.
Proposed method
- Two-phase procedure: convert each dataset sample into natural language sentences using fixed templates; fine-tune a pretrained language model (e.g., GPT) on the sentence dataset without architectural or loss-function changes.
- Use a fixed token-prediction cross-entropy loss during LM fine-tuning.
- For inference, convert test samples to sentences with the same prompt and parse the generated output to obtain predictions (classification by matching class names; regression by parsing numbers).
- Experiment with prompting variations including feature-name Rich prompts and generic x1,...,xp prompts.
- Evaluate with standard baselines across synthetic, OpenML tabular, and image-derived datasets (MNIST/Fashion-MNIST and permuted variants).
- Explore enhancements such as data augmentation and two-stage fine-tuning with synthetic pretext tasks to improve performance, especially in low-data regimes.
Experimental results
Research questions
- RQ1Can language models be fine-tuned for non-language tasks without changing the model architecture or loss function?
- RQ2How does LIFT perform on low-dimensional classification and regression tasks compared to traditional baselines?
- RQ3What factors influence LIFT's performance (prompt design, pretraining, data generation, calibration, and two-stage fine-tuning) and what are its limitations?
- RQ4What are the robustness, inductive bias, and sample-efficiency characteristics of LIFT across tasks?
- RQ5Does pretraining on natural language data matter for LIFT, and how does LIFT compare to in-context learning (ICL) as an alternative?
Key findings
- LIFT achieves accuracies comparable to strong baselines on a range of classification tasks and can learn non-linear relationships.
- LIFT can approximate different low-dimensional functions for regression and is robust to some training-outlier scenarios.
- Context-aware prompting with feature names and task descriptions improves performance for several OpenML classification datasets.
- Two-stage fine-tuning with synthetic pretext tasks and data augmentation improve predictive performance, especially with limited data.
- LIFT's performance depends on the pretrained language model being trained on natural language data, with random or code-based pretraining generally underperforming compared to natural-language-pretrained LMs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.