Skip to main content
QUICK REVIEW

[논문 리뷰] LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language

Pierpaolo Basile, Elio Musacchio|arXiv (Cornell University)|2023. 12. 15.
Topic ModelingComputer Science인용 수 10
한 줄 요약

본 논문은 LLaMA 2를 이탈리아어에 적용하기 위해 언어 적응(Language Adaptation), PEFT/LoRA, 및 QLoRA 기법을 사용하여 LLaMAntino 모델(7B/13B 및 챗 버전)을 연구 용도로 출시했다.

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 학습 데이터에서 이탈리아어의 저대표성 문제를 해결하고 이탈리아어 텍스트 생성 품질을 향상한다.
  • 언어 적응 및 PEFT 방법을 통해 이탈리아어에 적합하도록 LLaMA 2 모델(챗 버전 포함)을 개발한다.
  • 이탈리아어 NLP 작업 및 더 넓은 연구 활용을 지원하기 위해 모델을 평가하고 공개한다.
  • 다른 언어에 적용할 수 있는 재현 가능한 적응 파이프라인을 제공한다.

제안 방법

  • 미세 조정 전에 LLaMA 2 모델을 이탈리아어에 맞추기 위해 Language Adaptation을 채택한다.
  • 메모리 및 학습 비용을 줄이기 위해 4비트 양자화(NF4)와 함께 PEFT 기법(LoRA/QLoRA)을 사용한다.
  • 이탈리아어 데이터로 학습한다(Filtered Oscar Italian 하위집합; 대화 작업을 위한 UltraChat 번역; EVALITA 관련 데이터).
  • 이탈리아어에서 지시 실행을 향상시키기 위해 번역된 대화 데이터셋에 대해 SFT(감독 미세 조정)를 적용한다.
  • 4비트 NF4 양자화, 64-dim LoRA Attention(lora_r=64), lora_alpha=16, 및 lora_dropout=0.1을 활용한다.
  • Leonardo HPC에서 3개의 노드에 걸친 12대의 A100 GPU를 활용한 분산 학습과 FSDP 및 기울기 누적을 이용한다.

실험 결과

연구 질문

  • RQ1LLaMA 2 모델을 이탈리아어 생성 작업에 효과적으로 적응시키려면 어떻게 해야 하는가?
  • RQ2언어 적응 + PEFT(LoRA/QLoRA) 및 4비트 양자화가 이탈리아어 텍스트 생성 품질과 지시 수행에 어떤 영향을 미치는가?
  • RQ3이탈리아어 고유 데이터셋(번역 UltraChat, EVALITA 과제)이 LLaMAntino 모델의 고품질 대화 및 지시 조정에 도움이 되는가?
  • RQ4PEFT를 통해 이탈리아어로 대형 LLaMA 모델을 적용할 때의 실제 배포 고려사항(메모리, 지연)은 무엇인가?

주요 결과

  • 이탈리아어 언어 적응이 적용된 LLaMAntino 2-Chat 및 비챗 모델(7B 및 13B 변형)을 도입했다.
  • 번역된 UltraChat 데이터 및 EVALITA 관련 지시를 사용한 언어 적응에 이어 감독 학습 미세 조정을 적용했다.
  • 4비트 NF4 양자화 및 신중하게 구성된 LoRA 매개변수(lora_r=64, lora_alpha=16, lora_dropout=0.1)를 사용한 QLoRA를 적용했다.
  • Filtered Oscar Italian 데이터셋 및 더 큰 이탈리아어 텍스트 말뭉치의 데이터를 적응에 활용했다.
  • Leonardo HPC에서 다중 노드, 다중 GPU 구성(총 12대 A100 GPU)으로 훈련을 확장하고 일부 단계에서 25k 학습 단계; 적응 중 최대 시퀀스 길이는 1024였다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.