[Paper Review] Multi-Task Instruction Tuning of LLaMa for Specific Scenarios: A Preliminary Study on Writing Assistance
The paper investigates fine-tuning LLaMA with both generic and writing-specific instruction data to create a scenario-focused writing assistant and analyzes its effectiveness, efficiency, and limits.
Proprietary Large Language Models (LLMs), such as ChatGPT, have garnered significant attention due to their exceptional capabilities in handling a diverse range of tasks. Recent studies demonstrate that open-sourced smaller foundational models, such as 7B-size LLaMA, can also display remarkable proficiency in tackling diverse tasks when fine-tuned using instruction-driven data. In this work, we investigate a practical problem setting where the primary focus is on one or a few particular tasks rather than general-purpose instruction following, and explore whether LLMs can be beneficial and further improved for such targeted scenarios. We choose the writing-assistant scenario as the testbed, which includes seven writing tasks. We collect training data for these tasks, reframe them in an instruction-following format, and subsequently refine the LLM, specifically LLaMA, via instruction tuning. Experimental results show that fine-tuning LLaMA on writing instruction data significantly improves its ability on writing tasks. We also conduct more experiments and analyses to offer insights for future work on effectively fine-tuning LLaMA for specific scenarios. Finally, we initiate a discussion regarding the necessity of employing LLMs for only one targeted task, taking into account the efforts required for tuning and the resources consumed during deployment.
Motivation & Objective
- Motivate the study of vertical, task-specific customization of LLMs rather than general-purpose instruction following.
- Evaluate whether fine-tuning LLaMA on writing-related instructions improves performance on seven writing tasks.
- Investigate the trade-offs between model size, training approach (LoRA vs full fine-tuning), and data composition.
- Assess whether smaller, specialized LLMs can outperform larger off-the-shelf LLMs in a targeted domain.
- Discuss the practicality and costs of deploying LLMs for single-task scenarios, using grammaticality correction as a case study.
Proposed method
- Reframe seven writing tasks into an instruction-following format with a unified prompt structure.
- Assemble ~60k writing-instruction examples plus ~52k generic Alpaca data for fine-tuning.
- Fine-tune LLaMA using LoRA (parameter-efficient) and compare to full fine-tuning.
- Evaluate on seven writing tasks using a benchmark inspired by EditEval with task-specific metrics.
- Compare Writing-Alpaca-7B to larger LLMs (OPT-175B, GPT-175B, InstructGPT-175B, ChatGPT).
- Investigate data composition effects (generic vs writing-specific data) and model capacity (7B vs 13B) on performance.
Experimental results
Research questions
- RQ1Can targeted writing-instruction tuning improve LLaMA in a writing-assistant scenario?
- RQ2Does combining generic instruction data with domain-specific writing data outperform using domain data alone?
- RQ3How does model size and training method (LoRA vs full fine-tuning) affect performance and cost in a vertical application?
- RQ4Are smaller, specialized LLMs able to surpass larger off-the-shelf LLMs on targeted writing tasks?
- RQ5Is it prudent to deploy an LLM solely for a single task when considering training and deployment costs?
Key findings
- Instruction tuning improves LLaMA performance on all writing tasks.
- Writing-specific instruction data yields further gains beyond generic data (average improvement from 43.07 to 48.65).
- Smaller LLMs (≈7B) can outperform larger off-the-shelf LLMs in the targeted writing domain.
- Full model fine-tuning beats LoRA in average performance but costs ~5x more training time.
- Generic instruction data help preserve generalization, e.g., paraphrasing capability, and are indispensable for task flexibility.
- GEC case study shows LLMs may underperform task-specific lightweight models due to hallucination and speed costs; data and model size must align with deployment goals.
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.