Skip to main content
QUICK REVIEW

[論文レビュー] LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language

Pierpaolo Basile, Elio Musacchio|arXiv (Cornell University)|Dec 15, 2023
Topic ModelingComputer Science被引用数 10
ひとこと要約

tldr: 本論文は LLaMA 2 をイタリア語へ適応させるために言語適応、PEFT/LoRA、および QLoRA 技術を用い、研究用に公開された LLaMAntino モデル(7B/13B およびチャット variant)を生成します。

ABSTRACT

Large Language Models represent state-of-the-art linguistic models designed to equip computers with the ability to comprehend natural language. With its exceptional capacity to capture complex contextual relationships, the LLaMA (Large Language Model Meta AI) family represents a novel advancement in the field of natural language processing by releasing foundational models designed to improve the natural language understanding abilities of the transformer architecture thanks to their large amount of trainable parameters (7, 13, and 70 billion parameters). In many natural language understanding tasks, these models obtain the same performances as private company models such as OpenAI Chat-GPT with the advantage to make publicly available weights and code for research and commercial uses. In this work, we investigate the possibility of Language Adaptation for LLaMA models, explicitly focusing on addressing the challenge of Italian Language coverage. Adopting an open science approach, we explore various tuning approaches to ensure a high-quality text generated in Italian suitable for common tasks in this underrepresented language in the original models' datasets. We aim to release effective text generation models with strong linguistic properties for many tasks that seem challenging using multilingual or general-purpose LLMs. By leveraging an open science philosophy, this study contributes to Language Adaptation strategies for the Italian language by introducing the novel LLaMAntino family of Italian LLMs.

研究の動機と目的

  • LLM の訓練データにおけるイタリア語の過少 representation を是正し、イタリア語のテキスト生成品質を改善する。
  • Language Adaptation と PEFT 手法を用いてイタリア語に適応した LLaMA 2 モデル(チャット版を含む)を開発する。
  • イタリア語 NLP タスクと広範な研究利用を支援するためにモデルを評価し、リリースする。
  • 他言語にも適用可能な再現可能な適応パイプラインを提供する。

提案手法

  • Fine-tuning の前に LLaMA 2 モデルをイタリア語に合わせるために Language Adaptation を採用する。
  • メモリと学習コストを削減するために 4-bit 量子化 (NF4) を用いた PEFT 技術 (LoRA/QLoRA) を使用する。
  • イタリア語データで訓練する(Filtered Oscar Italian subset、対話タスクの UltraChat 翻訳、EVALITA 関連データ)。
  • 翻訳された対話データセットを対象に SFT( supervised fine-tuning )を用いてイタリア語の指示遵従性を向上させる。
  • 4-bit NF4 量子化、64-dim LoRA Attention (lora_r=64)、lora_alpha=16、lora_dropout=0.1 を用いる。
  • Leonardo HPC で 3 ノードにまたがる 12 A100 GPUs を用いた分散訓練を活用し、FSDP と勾配蓄積を使用する。

実験結果

リサーチクエスチョン

  • RQ1LLaMA 2 モデルをイタリア語の生成タスクに効果的に適応させるにはどうすればよいのか。
  • RQ2言語適応 + PEFT(LoRA/QLoRA)と 4-bit 量子化がイタリア語のテキスト生成品質と指示遵従に与える影響は何か。
  • RQ3イタリア語特有のデータセット(翻訳 UltraChat、EVALITA タスク)が LLaMAntino モデルの高品質な対話・指示チューニングを支援できるか。
  • RQ4PEFT を介して大規模 LLaMA モデルをイタリア語へ適応する際の実用的なデプロイメントの考慮事項(メモリ、レイテンシ)は何か。

主な発見

  • イタリア語の言語適応を行った LLaMAntino 2-Chat および non-chat モデルを 7B および 13B のバリアントとして導入。
  • 翻訳された UltraChat データと EVALITA 関連の指示を用いた言語適応の後に監視付きファインチューニングを適用。
  • 4-bit NF4 量子化と LoRA パラメータの慎重な設定(lora_r=64、lora_alpha=16、lora_dropout=0.1)を採用。
  • Filtered Oscar Italian データセットおよびより大きなイタリア語テキストコーパスを適応用データとして使用。
  • Leonardo HPC での多ノード・多GPU 訓練(合計 12 A100 GPU)といくつかのフェーズで 25k training steps を実施。適応中の最大シーケンス長は 1024。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。