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

Asyncval:训练过程中异步验证密集检索器检查点的工具包

Asyncval: A Toolkit for Asynchronously Validating Dense Retriever Checkpoints during Training

The University of Queensland(昆士兰大学)

Shengyao Zhuang, Guido Zuccon

摘要:

模型检查点验证的过程是指在学习模型的超参数时对在训练数据的保留部分上执行的模型检查点的性能进行评估,并且用于避免过拟合并确定模型何时收敛以停止训练。验证深度学习检查点的一个简单而有效的策略是在训练期间添加验证循环。然而,密集检索器(DR)检查点的验证并不是那么简单的--并且添加验证循环效率不高。这是因为,为了准确地评估DR检查点的性能,在可以执行用于检查点验证的任何实际检索操作之前,需要使用当前检查点将整个文档语料库编码为向量。如果文档语料库包含数百万个文档(例如,8.8米为MS MARCO和21米为自然问题)。因此,在训练期间天真地使用验证循环将显著增加训练时间。为了解决这个问题,在这篇演示论文中,我们提出了Asyncval:一个基于Python的工具包,用于在训练期间有效地验证DR检查点。Asyncval不是暂停训练循环来验证DR检查点,而是将验证循环从训练循环中分离出来,使用另一个GPU来自动验证新的DR检查点,从而允许与训练异步执行验证。Asyncval还实现了一系列不同的语料子集采样策略,用于验证DR检查点;这些策略可以进一步加快验证过程。我们提供了一个调查这些方法的验证时间和验证保真度的影响。Asyncval作为一个开源项目在https://github.com/ielab/asyncval上提供。

英文摘要:

The process of model checkpoint validation refers to the evaluation of the performance of a model checkpoint executed on a held-out portion of the training data while learning the hyperparameters of the model, and is used to avoid over-fitting and determine when the model has converged so as to stop training. A simple and efficient strategy to validate deep learning checkpoints is the addition of validation loops to execute during training. However, the validation of dense retrievers (DR) checkpoints is not as trivial -- and the addition of validation loops is not efficient. This is because, in order to accurately evaluate the performance of a DR checkpoint, the whole document corpus needs to be encoded into vectors using the current checkpoint before any actual retrieval operation for checkpoint validation can be performed. This corpus encoding process can be very time-consuming if the document corpus contains millions of documents (e.g., 8.8m for MS MARCO and 21m for Natural Questions). Thus, a naive use of validation loops during training will significantly increase training time. To address this issue, in this demo paper, we propose Asyncval: a Python-based toolkit for efficiently validating DR checkpoints during training. Instead of pausing the training loop for validating DR checkpoints, Asyncval decouples the validation loop from the training loop, uses another GPU to automatically validate new DR checkpoints and thus permits to perform validation asynchronously from training. Asyncval also implements a range of different corpus subset sampling strategies for validating DR checkpoints; these strategies allow to further speed up the validation process. We provide an investigation of these methods in terms of their impact on validation time and validation fidelity. Asyncval is made available as an open-source project at https://github.com/ielab/asyncval.

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

↑