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.
翻译:示范检查站验证程序是指在学习模型超参数之前,对在培训数据暂停部分执行的示范检查站的性能进行评价,以学习该模型的超参数,并用来避免超装,确定模型何时趋同,从而停止培训。一个简单而有效的战略是,在培训期间增加一个深学习检查站的验证环;然而,对密集的检索器(DR)检查点的验证并不微不足道,增加验证圈效率不高。这是因为,为了准确评价DR检查站的性能,整个文件库需要用当前检查站的降压速度编码成矢量器,然后才能进行任何实际检索以验证检查站验证操作。如果文件堆中包含数百万份文件(例如,MS MARCO为8.8m,自然问题为21m),则这一编码程序会非常耗时。因此,在培训期间对验证循环循环循环循环循环循环循环使用验证,将极大地增加培训时间。为了解决这个问题,我们在本指导文件中提议Asynvalval:从一个基于Pyson的降级测试工具,在对DRRR的循环检查站进行一个高效的校正路路路前测试。