Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning

Deepanway Ghosal, Yew Ken Chia, Navonil Majumder, Soujanya PoriaarXiv 2023 · DOI

Introduction

In the current Large Language Model (LLM) landscape, a distinct performance gap exists between conversational fluency and rigorous problem-solving. While modern decoder-only models like LLaMA and Vicuna excel at following open-ended instructions and maintaining engaging dialogue, older encoder-decoder models, such as FLAN-T5, often outperform them on "hard" tasks requiring multi-step reasoning, mathematical logic, and scientific knowledge.

This paper introduces Flacuna, a fine-tuned version of the Vicuna-13B model designed to bridge this gap. The researchers argue that the performance discrepancy is primarily a result of the instruction-tuning dataset rather than model architecture. By injecting the "problem-solving DNA" of the FLAN collection into the Vicuna architecture, Flacuna achieves significantly boosted performance on reasoning and logic benchmarks while preserving its conversational persona.

Methodology

The researchers employed Parameter-Efficient Fine-Tuning (PEFT) using LoRA (Low-Rank Adaptation) to train the model. Instead of updating all 13 billion parameters of Vicuna-13B, small trainable adapters were inserted into the query and value projection layers. This approach resulted in only 6.55 million trainable parameters—approximately 0.05% of the original model—making the training process highly efficient.

A critical step in the methodology was the reformatting of the FLAN data. The original FLAN collection contains thousands of diverse tasks (e.g., translation, summarization). To maintain the model's conversational utility, these tasks were recast into Vicuna’s standard dialogue format: USER: [Task Description] ASSISTANT: [Answer].

The FLAN-MINI Dataset

The core of this work is the FLAN-MINI Collection, a curated 1.34-million-sample dataset. This mixture was designed to balance technical rigor with conversational ability. It includes subsets of Flan2021, Natural Instructions v2, and Chain-of-Thought (CoT) data, alongside specialized code datasets (CodeContests, APPS) and conversational data (GPT-4-Alpaca, ShareGPT).

Composition of the FLAN-MINI dataset, totaling 1.34 million samples across diverse task types.

Key Results and Insights

Flacuna demonstrated marked improvements over the base Vicuna-13B model across nearly all problem-solving metrics evaluated via the INSTRUCTEVAL framework. Key findings include:

  • Reasoning Leaps: The model achieved a massive 15.3-point jump on the CRASS (causality) benchmark and an 8.0-point increase on DROP (arithmetic reasoning).
  • General Improvement: Flacuna showed an average increase of 5.1 points across five major problem-solving benchmarks compared to the base model.
  • Alignment Gains: The model showed an 11% improvement in HHH (Helpful, Honest, Harmless) evaluations, suggesting that task-based training assists in aligning models with human expectations.
  • Data Efficiency: Despite being 15 times smaller than the full FLAN collection, FLAN-MINI provided substantial reasoning gains, indicating that high-quality task mixtures are more critical than sheer data volume.
Comprehensive performance comparison of Flacuna against various baselines across MMLU, BBH, DROP, CRASS, and HumanEval.

Limitations and Future Work

While Flacuna is a more capable problem solver, it faces a "chatting tax." The model is slightly less creative in its writing than the original Vicuna and occasionally outputs code snippets in response to non-coding prompts due to the heavy weight of structured tasks in the training mixture. Furthermore, despite the inclusion of code datasets, performance on the HumanEval benchmark saw a minor decrease (-0.6 points).

Future work may involve full fine-tuning (rather than LoRA) and utilizing the entire 15-million-sample FLAN collection to further narrow the performance gap with state-of-the-art models like FLAN-T5 11B.

Conclusion

Flacuna successfully demonstrates that the benefits of the FLAN dataset—originally designed for encoder-decoder models—transfer effectively to decoder-only architectures. By carefully balancing task-oriented data with conversational samples, Flacuna provides a blueprint for creating LLMs that are both engaging conversationalists and robust problem solvers.

Summary updated

Abstract

Recently, the release of INSTRUCTEVAL has provided valuable insights into the performance of large language models (LLMs) that utilize encoder-decoder or decoder-only architecture. Interestingly, despite being introduced four years ago, T5-based LLMs, such as FLAN-T5, continue to outperform the latest decoder-based LLMs, such as LLAMA and VICUNA, on tasks that require general problem-solving skills. This performance discrepancy can be attributed to three key factors: (1) Pre-training data, (2) Backbone architecture, and (3) Instruction dataset. In this technical report, our main focus is on investigating the impact of the third factor by leveraging VICUNA, a large language model based on LLAMA, which has undergone fine-tuning on ChatGPT conversations. To achieve this objective, we fine-tuned VICUNA using a customized instruction dataset collection called FLANMINI. This collection includes a subset of the large-scale instruction dataset known as FLAN, as well as various code-related datasets and conversational datasets derived from ChatGPT/GPT-4. This dataset comprises a large number of tasks that demand problem-solving skills. Our experimental findings strongly indicate that the enhanced problem-solving abilities of our model, FLACUNA, are obtained through fine-tuning VICUNA on the FLAN dataset, leading to significant improvements across numerous benchmark datasets in INSTRUCTEVAL. FLACUNA is publicly available at https://huggingface.co/declare-lab/flacuna-13b-v1.0.
BibTeX
@misc{ghosal2023flacuna,
  author = {Deepanway Ghosal and Yew Ken Chia and Navonil Majumder and Soujanya Poria},
  title = {{Flacuna: Unleashing the Problem Solving Power of Vicuna using FLAN Fine-Tuning}},
  year = {2023},
  eprint = {2307.02053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.02053},
}
Figure