LaFFi: Leveraging Hybrid Natural Language Feedback for Fine-tuning Language Models

Qianxi Li, Yingyue Cao, Jikun Kang, Tianpei Yang, Xi Chen, Jun Jin, Matthew E. TaylorarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have traditionally relied on Supervised Fine-Tuning (SFT) to align with specific tasks. In SFT, models learn to map an input directly to a ground-truth answer. However, this "black box" approach often fails in complex reasoning tasks, such as question-answering (QA), because the model learns what the answer is without understanding the underlying logic (why). This lack of interpretability and external guidance frequently leads to hallucinations or logical errors, particularly in low-data regimes where examples are scarce.

The LaFFi Framework

To address these limitations, we propose LaFFi (Natural Language Feedback for Fine-tuning), a novel framework that integrates descriptive feedback into the fine-tuning loop. Instead of training the model to predict a simple label, LaFFi trains the model to predict the natural language feedback it would receive from a critic.

Comparison between standard Supervised Fine-Tuning (SFT) and the proposed LaFFi framework.

The LaFFi process consists of four primary stages:

  1. Answer Prediction: An initial LLM generates answers for the training set.
  2. Hybrid Feedback Annotation: These answers are reviewed by a combination of human annotators and an AI labeller (e.g., LLaMA 7B). The resulting feedback includes the correct answer and a natural language explanation of the rationale.
  3. Supervised Feedback Prediction: The model is trained to take the input context (Passage + Question) along with its own predicted answer and output the annotated feedback (Correct Answer + Explanation).
  4. Parameter-Efficient Tuning: To maintain efficiency, the framework utilizes Low-Rank Adaptation (LoRA), updating only a small fraction (approx. 0.09%) of the model’s parameters.

By forcing the model to "reflect" on its own outputs and predict the expected critique, LaFFi acts as a form of regularization that encourages deeper semantic understanding over simple memorization.

Experimental Evaluation

The framework was evaluated using the SQuAD 2.0 benchmark, which is particularly challenging as it includes questions that are unanswerable based on the provided text. The study utilized a small subset of 932 instances to simulate a low-data environment.

Key Results

LaFFi demonstrated significant performance gains over both the zero-shot baseline and standard SFT. As shown in the benchmarking results, the improvement is consistent across various model scales, including 3B, 7B, and 13B parameter versions.

Accuracy scores on SQuAD 2.0 benchmarking Baseline, Standard SFT, and LaFFi across different model sizes.

Notably, LaFFi proved highly robust in scenarios with extremely limited data (200–400 rows), where standard SFT often struggled to outperform the baseline. Analysis of attention maps further revealed that LaFFi-tuned models develop superior local and global dependencies, allowing them to better group related tokens and link semantically connected concepts across long contexts.

Discussion and Future Work

A critical insight from the study is the value of hybrid labeling. While AI-generated feedback provides a cost-effective starting point, the inclusion of human-calibrated data significantly enhances precision and F1 scores. This suggests a trade-off between the scalability of AI labeling and the high-fidelity signal provided by human experts.

Future research will focus on generalizing the LaFFi approach to specialized domains such as legal or medical reasoning and exploring methods to automate "human-quality" feedback generation to further reduce the reliance on expensive manual annotation.

Summary updated

BibTeX
@misc{li2024laffi,
  author = {Qianxi Li and Yingyue Cao and Jikun Kang and Tianpei Yang and Xi Chen and Jun Jin and Matthew E. Taylor},
  title = {{LaFFi: Leveraging Hybrid Natural Language Feedback for Fine-tuning Language Models}},
  year = {2024},
  eprint = {2401.00907},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.00907},
}
Figure