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

通过稀疏率归约实现白盒 Transformer:压缩就是全部吗?

White-Box Transformers via Sparse Rate Reduction: Compression Is All There Is?

ShanghaiTech University(上海科技大学);University of Illinois, Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Johns Hopkins University(约翰斯·霍普金斯大学);University of Hong Kong(香港大学);University of California, Berkeley(加州大学伯克利分校);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)

Yaodong Yu, Sam Buchanan, Druv Pai, Tianzhe Chu, Ziyang Wu, Shengbang Tong, Hao Bai, Yuexiang Zhai, Benjamin D. Haeffele, Yi Ma

AI总结:

论文从稀疏率归约目标推导出数学可解释的白盒 transformer 架构 CRATE,并证明其可统一用于编码与解码,在图像和文本任务上性能接近主流 transformer。

摘要:

本文主张,表示学习的一个自然目标是将数据分布(例如 token 集合)压缩并变换为支撑在不相干子空间上的低维高斯混合分布。这种表示的优劣可通过一个有原则的度量来评估,该度量称为 sparse rate reduction(稀疏率归约),它同时最大化所学表示的内在信息增益和外在稀疏性。从这一视角看,包括 transformer 在内的流行深度网络架构,可被视为实现优化该度量的迭代方案。具体而言,我们通过对该目标的各个部分进行交替优化推导出一个 transformer 块:多头自注意力算子通过对特征的编码率执行近似梯度下降步骤来压缩表示,随后的多层感知机使特征稀疏化。由此产生了一类白盒、类似 transformer 的深度网络架构,命名为 CRATE,其在数学上完全可解释。借助去噪与压缩之间的一种新颖联系,我们证明上述压缩编码的逆过程可由同一类 CRATE 架构实现。因此,如此推导得到的白盒架构对编码器和解码器都是通用的。实验表明,这些网络尽管简单,却确实学会了压缩和稀疏化大规模真实图像与文本数据集的表示,并取得了与高度工程化的基于 transformer 的模型 ViT、MAE、DINO、BERT 和 GPT2 非常接近的性能。我们认为,所提出的计算框架从数据压缩的统一视角出发,在弥合深度学习理论与实践之间的鸿沟方面展现出巨大潜力。代码可在 https://ma-lab-berkeley.github.io/CRATE 获取。

英文摘要:

In this paper, we contend that a natural objective of representation learning is to compress and transform the distribution of the data, say sets of tokens, towards a low-dimensional Gaussian mixture supported on incoherent subspaces. The goodness of such a representation can be evaluated by a principled measure, called sparse rate reduction, that simultaneously maximizes the intrinsic information gain and extrinsic sparsity of the learned representation. From this perspective, popular deep network architectures, including transformers, can be viewed as realizing iterative schemes to optimize this measure. Particularly, we derive a transformer block from alternating optimization on parts of this objective: the multi-head self-attention operator compresses the representation by implementing an approximate gradient descent step on the coding rate of the features, and the subsequent multi-layer perceptron sparsifies the features. This leads to a family of white-box transformer-like deep network architectures, named CRATE, which are mathematically fully interpretable. We show, by way of a novel connection between denoising and compression, that the inverse to the aforementioned compressive encoding can be realized by the same class of CRATE architectures. Thus, the so-derived white-box architectures are universal to both encoders and decoders. Experiments show that these networks, despite their simplicity, indeed learn to compress and sparsify representations of large-scale real-world image and text datasets, and achieve performance very close to highly engineered transformer-based models: ViT, MAE, DINO, BERT, and GPT2. We believe the proposed computational framework demonstrates great potential in bridging the gap between theory and practice of deep learning, from a unified perspective of data compression. Code is available at: https://ma-lab-berkeley.github.io/CRATE .

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

↑