arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.22937cs.CL
收藏

使用DistilBERT提升问答效率:在移动端Intel CPU上的微调与推理

Improving QA Efficiency with DistilBERT: Fine-Tuning and Inference on mobile Intel CPUs

Carnegie Mellon University Africa(卡内基梅隆大学非洲分校)

Ngeyen Yinkfu

AI总结:

本研究提出基于DistilBERT的问答模型,通过数据增强与微调在13代Intel CPU上实现高效推理,验证F1达0.6536,在准确性与计算效率间取得良好平衡,适用于资源受限的实时应用。

摘要:

本研究提出了一种高效的基于Transformer的问答(QA)模型,使用Stanford Question Answering Dataset (SQuAD) v1.1数据集,针对部署在13代Intel i7-1355U CPU上进行了优化。利用探索性数据分析、数据增强以及DistilBERT架构的微调,该模型实现了0.6536的验证F1分数,平均推理时间为每个问题0.1208秒。与基于规则的基线(F1:0.3124)和完整的BERT模型相比,我们的方法在准确性和计算效率之间提供了有利的权衡。这使其非常适合在资源受限的系统上进行实时应用。该研究包括对数据增强策略和超参数配置的系统评估,为优化基于CPU推理的Transformer模型提供了实用见解。

英文摘要:

This study presents an efficient transformer-based question-answering (QA) model optimized for deployment on a 13th Gen Intel i7-1355U CPU, using the Stanford Question Answering Dataset (SQuAD) v1.1. Leveraging exploratory data analysis, data augmentation, and fine-tuning of a DistilBERT architecture, the model achieves a validation F1 score of 0.6536 with an average inference time of 0.1208 seconds per question. Compared to a rule-based baseline (F1: 0.3124) and full BERT-based models, our approach offers a favorable trade-off between accuracy and computational efficiency. This makes it well-suited for real-time applications on resource-constrained systems. The study includes systematic evaluation of data augmentation strategies and hyperparameter configurations, providing practical insights into optimizing transformer models for CPU-based inference.

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

↑