arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10043q-fin.CPcs.LG
收藏

使用LoRA对LLaMA-3-8B模型进行指令微调以实现金融命名实体识别

Instruction Finetuning LLaMA-3-8B Model Using LoRA for Financial Named Entity Recognition

LL Funds LLC(LL Funds有限责任公司)

Zhiming Lian

AI总结:

本文通过结合指令微调和LoRA技术,提升LLaMA-3-8B模型在金融命名实体识别任务中的性能,取得微F1得分为0.894。

摘要:

特别是,金融命名实体识别(NER)是将非结构化的报告和新闻转换为结构化知识图的一种重要方法。然而,免费且易于使用的大型语言模型(LLMs)往往无法区分组织与个人,或完全忽略实际的货币金额。本文采用Meta的Llama 3 8B模型,并结合指令微调和低秩适应(LoRA)技术,将其应用于金融NER。每个标注的句子被转换为指令-输入-输出三元组,使模型在微调时能够学习任务描述,同时使用小低秩矩阵而不是更新所有权重。使用包含1693个句子的语料库,我们的方法在与Qwen3-8B、Baichuan2-7B、T5和BERT-Base的比较中,获得了微F1得分为0.894。我们展示了数据集统计信息,描述了训练超参数,并进行了实体密度、学习曲线和评估指标的可视化。我们的结果表明,结合指令微调和参数高效的微调方法在领域敏感的NER任务上实现了最先进的性能。

英文摘要:

Particularly, financial named-entity recognition (NER) is one of the many important approaches to translate unformatted reports and news into structured knowledge graphs. However, free, easy-to-use large language models (LLMs) often fail to differentiate organisations as people, or disregard an actual monetary amount entirely. This paper takes Meta's Llama 3 8B and applies it to financial NER by combining instruction fine-tuning and Low-Rank Adaptation (LoRA). Each annotated sentence is converted into an instruction-input-output triple, enabling the model to learn task descriptions while fine-tuning with small low-rank matrices instead of updating all weights. Using a corpus of 1,693 sentences, our method obtains a micro-F1 score of 0.894 compared with Qwen3-8B, Baichuan2-7B, T5, and BERT-Base. We present dataset statistics, describe training hyperparameters, and perform visualizations of entity density, learning curves, and evaluation metrics. Our results show that instruction tuning combined with parameter-efficient fine-tuning enables state-of-the-art performance on domain-sensitive NER.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑