arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.04090cs.LGcs.CVeess.IVeess.SP

可解释的轻量级Transformer:通过学习图平滑先验展开实现

Interpretable Lightweight Transformer via Unrolling of Learned Graph Smoothness Priors

York University(约克大学)

Tam Thuc Do, Parham Eftekhar, Seyed Alireza Hosseini, Gene Cheung, Philip Chou

AI总结:

本文通过展开图平滑先验优化算法构建可解释轻量Transformer,用浅CNN学习图结构替代自注意力,大幅减少参数,并在图像插值中验证了性能与鲁棒性。

摘要:

我们通过展开最小化图平滑先验(二次图拉普拉斯正则化器GLR和ℓ1范数图全变差GTV)并受插值约束的迭代优化算法,构建了可解释且轻量级的类Transformer神经网络。关键洞察在于,一个归一化的信号相关图学习模块相当于传统Transformer中基本自注意力机制的一种变体。与需要学习大型键、查询和值矩阵以计算缩放点积作为亲和度及后续输出嵌入的“黑箱”Transformer(导致参数集庞大)不同,我们的展开网络采用浅层CNN学习每个节点的低维特征,以建立成对马氏距离并构造稀疏相似图。在每一层,给定学习到的图,目标插值信号仅是通过最小化假设的图平滑先验导出的低通滤波输出,从而大幅减少参数数量。两个图像插值应用的实验验证了我们的基于图的展开网络相比传统Transformer在恢复性能、参数效率和对协变量偏移的鲁棒性方面的优势。

英文摘要:

We build interpretable and lightweight transformer-like neural networks by unrolling iterative optimization algorithms that minimize graph smoothness priors -- the quadratic graph Laplacian regularizer (GLR) and the $\ell_1$-norm graph total variation (GTV) -- subject to an interpolation constraint. The crucial insight is that a normalized signal-dependent graph learning module amounts to a variant of the basic self-attention mechanism in conventional transformers. Unlike "black-box" transformers that require learning of large key, query and value matrices to compute scaled dot products as affinities and subsequent output embeddings, resulting in huge parameter sets, our unrolled networks employ shallow CNNs to learn low-dimensional features per node to establish pairwise Mahalanobis distances and construct sparse similarity graphs. At each layer, given a learned graph, the target interpolated signal is simply a low-pass filtered output derived from the minimization of an assumed graph smoothness prior, leading to a dramatic reduction in parameter count. Experiments for two image interpolation applications verify the restoration performance, parameter efficiency and robustness to covariate shift of our graph-based unrolled networks compared to conventional transformers.

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

↑