UnifiedCrawl:聚合 Common Crawl 以实现低资源语言上 LLM 的低成本适配
UnifiedCrawl: Aggregated Common Crawl for Affordable Adaptation of LLMs on Low-Resource Languages
AI总结:
本文提出 UnifiedCrawl 方法,从 Common Crawl 中低成本提取大规模低资源语言单语数据,并结合 QLoRA 微调多语言 LLM,在降低显存占用的同时显著提升低资源语言性能。
摘要:
大语言模型(LLMs)由于训练数据有限,在低资源语言上表现不佳。我们提出了一种从整个 Common Crawl 语料库中高效收集低资源语言文本数据的方法。我们的方法 UnifiedCrawl 使用极少的计算资源对 Common Crawl 进行过滤和提取,生成了比此前可用来源大得多的单语数据集。我们证明,利用这些数据通过高效的适配器方法(QLoRA)对多语言 LLM 进行微调,能够在显著提升低资源语言性能的同时,最大限度地减少显存(VRAM)占用。我们的实验显示,语言建模困惑度大幅改善,少样本提示得分也有所提高。我们的工作和已发布的源代码提供了一种使用消费级硬件改进低资源语言 LLM 的可负担方法。我们的源代码可在 https://github.com/bethelmelesse/unifiedcrawl 获取。
英文摘要:
Large language models (LLMs) under-perform on low-resource languages due to limited training data. We present a method to efficiently collect text data for low-resource languages from the entire Common Crawl corpus. Our approach, UnifiedCrawl, filters and extracts common crawl using minimal compute resources, yielding mono-lingual datasets much larger than previously available sources. We demonstrate that leveraging this data to fine-tuning multilingual LLMs via efficient adapter methods (QLoRA) significantly boosts performance on the low-resource language, while minimizing VRAM usage. Our experiments show large improvements in language modeling perplexity and an increase in few-shot prompting scores. Our work and released source code provide an affordable approach to improve LLMs for low-resource languages using consumer hardware. Our source code is available here at https://github.com/bethelmelesse/unifiedcrawl.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。