FiDO:为更强性能和更快推理而优化的 Fusion-in-Decoder
FiDO: Fusion-in-Decoder optimized for stronger performance and faster inference
AI总结:
本文针对 FiD 编码器计算开销大、解码器受内存带宽限制的问题,提出两项架构修改形成 FiDO,在推理提速 7 倍的同时支持更大解码器并提升性能。
摘要:
Fusion-in-Decoder(FiD)是一种强大的检索增强语言模型,在许多知识密集型 NLP 任务上达到了最先进水平。然而,FiD 使用的架构只是通过对标准 T5 模型进行最小修改而选定的;我们的分析表明,这种架构对于检索增强模型而言高度次优。具体而言,FiD 将大部分 FLOPs 分配给编码器,而大部分推理时间则来自解码器中的内存带宽限制。我们提出对 FiD 架构进行两项简单修改,以缓解内存带宽限制,并将推理速度提高 7 倍。这使我们能够以适中的成本使用大得多的解码器。我们将经过上述修改的 FiD 记为 FiDO,并表明在广泛的推理预算范围内,它相比现有 FiD 模型显著提升了性能。例如,FiDO-Large-XXL 的推理速度比 FiD-Base 更快,同时取得了优于 FiD-Large 的性能。
英文摘要:
Fusion-in-Decoder (FiD) is a powerful retrieval-augmented language model that sets the state-of-the-art on many knowledge-intensive NLP tasks. However, the architecture used for FiD was chosen by making minimal modifications to a standard T5 model, which our analysis shows to be highly suboptimal for a retrieval-augmented model. In particular, FiD allocates the bulk of FLOPs to the encoder, while the majority of inference time results from memory bandwidth constraints in the decoder. We propose two simple changes to the FiD architecture to alleviate memory bandwidth constraints, and speed up inference by 7x. This allows us to use a much larger decoder at modest cost. We denote FiD with the above modifications as FiDO, and show that it strongly improves performance over existing FiD models for a wide range of inference budgets. For example, FiDO-Large-XXL performs faster inference than FiD-Base and achieves better performance than FiD-Large.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。