Natural Language Fine-Tuning
Jia Liu, Yue Wang, Zhiqi Lin, Min Chen, Yixue Hao, Long Hu
TL;DR
This work addresses data-scarce domain-specific fine-tuning for large language models by introducing Natural Language Fine-Tuning (NLFT), a token-level method that uses natural language as supervisory signal to identify saliency tokens via conditional-probability contrasts under different prompts. The approach yields a token-weighted loss that focuses learning on the most informative parts of reasoning outputs, achieving strong GSM8K performance with minimal data (e.g., 64.29% accuracy with 50 samples) and no warm-up, while maintaining $O(n)$ time/space complexity. Empirically, NLFT outperforms supervised fine-tuning (SFT) and reinforcement-based fine-tuning (ReFT) in both accuracy and efficiency, with notably lower memory (≈46.9 GB) and faster per-epoch times than ReFT, and substantially tighter resources than SFT when data are scarce. The method offers a lightweight, interpretable path for edge deployment and promises broad applicability to reasoning tasks across coding, medical diagnosis, and natural language inference, where labeled data are limited and compute is constrained.
Abstract
Large language model fine-tuning techniques typically depend on extensive labeled data, external guidance, and feedback, such as human alignment, scalar rewards, and demonstration. However, in practical application, the scarcity of specific knowledge poses unprecedented challenges to existing fine-tuning techniques. In this paper, focusing on fine-tuning tasks in specific domains with limited data, we introduce Natural Language Fine-Tuning (NLFT), which utilizes natural language for fine-tuning for the first time. By leveraging the strong language comprehension capability of the target LM, NLFT attaches the guidance of natural language to the token-level outputs. Then, saliency tokens are identified with calculated probabilities. Since linguistic information is effectively utilized in NLFT, our proposed method significantly reduces training costs. It markedly enhances training efficiency, comprehensively outperforming reinforcement fine-tuning algorithms in accuracy, time-saving, and resource conservation. Additionally, on the macro level, NLFT can be viewed as a token-level fine-grained optimization of SFT, thereby efficiently replacing the SFT process without the need for warm-up (as opposed to ReFT requiring multiple rounds of warm-up with SFT). Compared to SFT, NLFT does not increase the algorithmic complexity, maintaining O(n). Extensive experiments on the GSM8K dataset demonstrate that NLFT, with only 50 data instances, achieves an accuracy increase that exceeds SFT by 219%. Compared to ReFT, the time complexity and space complexity of NLFT are reduced by 78.27% and 92.24%, respectively. The superior technique of NLFT is paving the way for the deployment of various innovative LLM fine-tuning applications when resources are limited at network edges. Our code has been released at https://github.com/Julia-LiuJ/NLFT.
