[论文解读] Introducing Bode: A Fine-Tuned Large Language Model for Portuguese Prompt-Based Task
本文提出 Bode,是一个基于 LLaMA 2 的葡萄牙语 LLM(7B 和 13B)的微调模型,用于基于提示的任务,在情感分析、新闻分类和假新闻检测方面使用零-shot 和上下文学习进行评估。
Large Language Models (LLMs) are increasingly bringing advances to Natural Language Processing. However, low-resource languages, those lacking extensive prominence in datasets for various NLP tasks, or where existing datasets are not as substantial, such as Portuguese, already obtain several benefits from LLMs, but not to the same extent. LLMs trained on multilingual datasets normally struggle to respond to prompts in Portuguese satisfactorily, presenting, for example, code switching in their responses. This work proposes a fine-tuned LLaMA 2-based model for Portuguese prompts named Bode in two versions: 7B and 13B. We evaluate the performance of this model in classification tasks using the zero-shot approach with in-context learning, and compare it with other LLMs. Our main contribution is to bring an LLM with satisfactory results in the Portuguese language, as well as to provide a model that is free for research or commercial purposes.
研究动机与目标
- 通过开发一个面向葡萄牙语指令遵从任务的公开可用的 LLM,填补高质量葡萄牙语 NLP 模型的空白。
- 通过在葡萄牙语指令遵从数据集上进行微调,将 LLaMA 2 架构适配为葡萄牙语。
- 在零-shot 与上下文学习设置下对 Bode 在葡萄牙语分类任务上进行评估。
- 将 Bode 与其他开源 LLM 进行比较,以评估其在葡萄牙语提示方面的相对优势。
提出的方法
- 使用来自葡萄牙语指令遵从数据的葡萄牙语数据集对 LLaMA 2 进行微调。
- 在微调过程中应用低秩适应(LoRA),α=32,dropout=0.05。
- 在评估中采用零-shot 和上下文学习,无需额外的任务特定训练。
- 使用提示工程引导模型在情感分析和新闻分类任务中的响应。
- 在三个葡萄牙语数据集上进行评估(TweetSentBr 多类别,TweetSentBr 二分类,AGNews 多类别,FakeRecogna 二分类)。
- 与 Cabrita/openCabrita、Falcon-7B、LLaMA-2 7B/13B,以及 Mistral-7B 基线模型进行比较。

实验结果
研究问题
- RQ1基于 LLaMA 2、面向葡萄牙语的微调 LLM 能否在零-shot 和上下文学习下,在情感分析、新闻分类和假新闻检测中达到有竞争力的准确性?
- RQ213B 参数的 Bode 是否在这些任务中优于 7B 版本及其他开源葡萄牙语 LLM?
- RQ3提示工程以及基于 LoRA 的微调如何影响葡萄牙语指令遵从性能?
主要发现
- Bode 13B 在情感分析任务中的准确率超过 90%,超过了达到 56.9% 的 LLaMA 2 13B 基线。
- 在多类别新闻分类中,Bode 7B 在 7B 模型中表现最好,在 13B 模型中,LLaMA 2 13B 稍有优势。
- 在假新闻检测中,两个 Bode 模型均优于它们的基础版本,在各任务中表现出强的一致性。
- 总体而言,Bode 7B 和 13B 通常与基线开源葡萄牙语 LLM 相当或超出,且随任务而变。
- 作者指出潜在的灾难性遗忘可能是 Bode 相对于 LLaMA 2 7B/13B 表现波动的一种原因。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。