arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.03989cs.CV
收藏

$BT^2$: 基于基变换的后向兼容训练

$BT^2$: Backward-compatible Training with Basis Transformation

University of California, Berkeley(加州大学伯克利分校);Cornell University(康奈尔大学);University of Maryland, College Park(马里兰大学帕克分校);University of Hong Kong(香港大学);MIT(麻省理工学院);Meta AI

Yifei Zhou, Zilu Li, Abhinav Shrivastava, Hengshuang Zhao, Antonio Torralba, Taipeng Tian, Ser-Nam Lim

AI总结:

针对检索系统模型升级需回填表征成本高、后向兼容训练存在性能权衡的问题,提出基于基变换的$BT^2$方法,通过正交变换按需增维保留信息,在多场景下优于现有方法且可适配架构、模态变更等复杂实际场景。

摘要:

现代检索系统在升级到更优的表征模型时,通常需要重新计算图库中每一条数据的表征。这一过程被称为回填,在图库通常包含数十亿样本的现实场景中成本极高。近期研究者提出了后向兼容训练(Backward Compatible Training, BCT)的思路,即可以通过辅助损失训练新的表征模型,使其与旧表征后向兼容。如此一来,新表征可直接与旧表征进行比对,理论上无需任何回填操作。但后续研究表明,这其中存在固有权衡:后向兼容的表征模型无法同时维持新模型自身的性能。\n本文报告了我们“并不意外”的发现:给表征增加额外维度有助于解决这一问题。但我们同时发现,单纯朴素地增加表征维度并不可行。为此,我们提出了基于新型基变换(Basis Transformation)的后向兼容训练方法$BT^2$。基变换(BT)本质上是一组可学习的参数,用于执行正交变换,这类变换具备一项重要特性:输入中包含的原始信息会完整保留在输出中。本文阐释了如何利用基变换仅添加必要数量的额外维度。\n我们在多种场景下通过实验验证了$BT^2$相较于其他前沿方法的优势。随后我们进一步将$BT^2$拓展到更具挑战性也更贴合实际的场景中,包括模型架构的显著变更(从CNN到Transformers)、模态变更,甚至是模拟深度学习模型演进的一系列模型架构更新场景。

英文摘要:

Modern retrieval system often requires recomputing the representation of every piece of data in the gallery when updating to a better representation model. This process is known as backfilling and can be especially costly in the real world where the gallery often contains billions of samples. Recently, researchers have proposed the idea of Backward Compatible Training (BCT) where the new representation model can be trained with an auxiliary loss to make it backward compatible with the old representation. In this way, the new representation can be directly compared with the old representation, in principle avoiding the need for any backfilling. However, followup work shows that there is an inherent tradeoff where a backward compatible representation model cannot simultaneously maintain the performance of the new model itself. This paper reports our ``not-so-surprising'' finding that adding extra dimensions to the representation can help here. However, we also found that naively increasing the dimension of the representation did not work. To deal with this, we propose Backward-compatible Training with a novel Basis Transformation ($BT^2$). A basis transformation (BT) is basically a learnable set of parameters that applies an orthonormal transformation. Such a transformation possesses an important property whereby the original information contained in its input is retained in its output. We show in this paper how a BT can be utilized to add only the necessary amount of additional dimensions. We empirically verify the advantage of $BT^2$ over other state-of-the-art methods in a wide range of settings. We then further extend $BT^2$ to other challenging yet more practical settings, including significant change in model architecture (CNN to Transformers), modality change, and even a series of updates in the model architecture mimicking the evolution of deep learning models.

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

↑