arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1806.07139cs.CLstat.ML
收藏

使用J-K交叉验证减少NLP模型调整时的方差

Using J-K fold Cross Validation to Reduce Variance When Tuning NLP Models

Lancaster University(兰卡斯特大学)

Henry B. Moss, David S. Leslie, Paul Rayson

摘要:

K折交叉验证(CV)是一种用于估计机器学习模型真实性能的流行方法,允许模型选择和参数调整。然而,CV的过程需要对数据进行随机分区,因此我们的性能估计实际上是随机的,对于自然语言处理任务来说,可变性可能很大。我们证明,这些不稳定的估计不能依赖于有效的参数调整。由此产生的调整参数对我们的数据如何分区非常敏感,这意味着我们经常选择次优参数选择,并存在严重的再现性问题。相反,我们建议使用较少变量的J-K倍CV,其中J独立K倍交叉验证用于评估性能。我们的主要贡献是将J-K-fold CV从性能估计扩展到参数整定,并研究了如何选择J和K。我们认为,可变性比偏见更重要的有效调整,因此主张较低的选择K比通常在NLP文献中看到的,而不是使用节省的计算来增加J。为了证明我们的建议的一般性,我们调查了广泛的案例研究:情感分类(一般和特定目标),词性标记和文档分类。

英文摘要:

K-fold cross validation (CV) is a popular method for estimating the true performance of machine learning models, allowing model selection and parameter tuning. However, the very process of CV requires random partitioning of the data and so our performance estimates are in fact stochastic, with variability that can be substantial for natural language processing tasks. We demonstrate that these unstable estimates cannot be relied upon for effective parameter tuning. The resulting tuned parameters are highly sensitive to how our data is partitioned, meaning that we often select sub-optimal parameter choices and have serious reproducibility issues. Instead, we propose to use the less variable J-K-fold CV, in which J independent K-fold cross validations are used to assess performance. Our main contributions are extending J-K-fold CV from performance estimation to parameter tuning and investigating how to choose J and K. We argue that variability is more important than bias for effective tuning and so advocate lower choices of K than are typically seen in the NLP literature, instead use the saved computation to increase J. To demonstrate the generality of our recommendations we investigate a wide range of case-studies: sentiment classification (both general and target-specific), part-of-speech tagging and document classification.

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

↑