arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.16219cs.CLcs.AI
收藏

低资源环境下领域特定专业化:基于离线响应的知识蒸馏在大语言模型中的有效性

Domain Specific Specialization in Low-Resource Settings: The Efficacy of Offline Response-Based Knowledge Distillation in Large Language Models

Erdem Aslan, Pakize Erdoğmuş

AI总结:

本文提出了一种基于离线响应的知识蒸馏方法,通过优化硬件资源,在低资源环境下实现高精度领域专用助手,验证了数据质量和结构对齐比数量更重要。

摘要:

大语言模型(LLMs)在一般任务中表现出色,但在处理缺乏预训练数据的领域特定或机构知识时往往会出现幻觉问题。我们提出了一种基于离线响应的知识蒸馏方法,能够在受限硬件资源下开发出高精度的专用助手。我们评估了三种不同的数据策略:通用领域适应(15,000行)、无结构知识注入(2,000行)以及由教师模型生成的上下文感知合成数据集(500行)。为了减少计算成本,我们利用Unsloth库优化Qwen-2.5-7B学生模型,将NVIDIA A100 GPU的内存需求从40GB降至16GB。实验结果表明,虽然较大的无结构数据集会持续出现幻觉问题,但500行的上下文感知数据集实现了96.7%的准确率和稳健的拒绝能力。这些发现验证了LIMA假设,表明在低资源环境下,数据质量和结构对齐比数量更为关键。

英文摘要:

Large Language Models (LLMs) excel in general tasks but often struggle with hallucinations when handling domain-specific or institutional knowledge absent from their pre-training. We present an offline response-based knowledge distillation method that develops high-accuracy specialized assistants under constrained hardware resources. We evaluate three distinct data strategies: general domain adaptation (15,000 lines), unstructured knowledge injection (2,000 lines), and a context-aware synthetic dataset (500 lines) generated by a teacher model. To minimize computational costs, we utilize the Unsloth library to optimize the Qwen-2.5-7B student model, reducing NVIDIA A100 GPU memory requirements from 40 GB to 16 GB. Experimental results demonstrate that while larger unstructured datasets suffer from persistent hallucinations, the 500-line context-aware dataset achieves a 96.7% accuracy rate and robust rejection capability. These findings validate the LIMA hypothesis, showing that data quality and structural alignment are more critical than quantity for domain adaptation in low-resource settings.

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

↑