关于流水线架构信息检索实验中的预计算与缓存
On Precomputation and Caching in Information Retrieval Experiments with Pipeline Architectures
AI总结:
本文针对信息检索流水线实验中的冗余计算与中间结果文件脱节问题,在 PyTerrier 平台中提出自动隐式缓存公共前缀和基于 pyterrier-caching 的显式缓存两种机制,实现端到端表达与计算效率兼顾。
摘要:
现代信息检索系统通常依赖以流水线方式执行的多个组件。在研究环境中,这可能导致大量冗余计算(例如,为评估不同的下游重排序器而多次检索同一查询)。为克服这一问题,研究人员将缓存的“结果”文件作为输入,这些文件代表另一条流水线的输出。然而,这些结果文件可能很脆弱,并可能导致流水线的概念设计与其逻辑实现之间出现脱节。为同时克服冗余问题(执行完整流水线时)和脱节问题(依赖中间结果文件时),我们描述了我们近期为改进开源 PyTerrier 信息检索平台缓存能力所做的努力。我们聚焦于两个主要方向:(1)在比较系统时对常见流水线前缀进行自动隐式缓存;(2)通过一个新的扩展包 pyterrier-caching 对操作进行显式缓存。这些方法能够兼得两方面的优势:流水线可以端到端地完整表达,同时避免流水线之间的冗余计算。
英文摘要:
Modern information retrieval systems often rely on multiple components executed in a pipeline. In a research setting, this can lead to substantial redundant computations (e.g., retrieving the same query multiple times for evaluating different downstream rerankers). To overcome this, researchers take cached "result" files as inputs, which represent the output of another pipeline. However, these result files can be brittle and can cause a disconnect between the conceptual design of the pipeline and its logical implementation. To overcome both the redundancy problem (when executing complete pipelines) and the disconnect problem (when relying on intermediate result files), we describe our recent efforts to improve the caching capabilities in the open-source PyTerrier IR platform. We focus on two main directions: (1) automatic implicit caching of common pipeline prefixes when comparing systems and (2) explicit caching of operations through a new extension package, pyterrier-caching. These approaches allow for the best of both worlds: pipelines can be fully expressed end-to-end, while also avoiding redundant computations between pipelines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。