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

通过低秩分解估计视觉变换器的有效秩

Estimating the Effective Rank of Vision Transformers via Low-Rank Factorization

Liyu Zerihun(独立研究者)

Liyu Zerihun

AI总结:

通过低秩分解和蒸馏方法,研究视觉变换器的有效秩,发现其有效秩区域为[16, 34],有效膝点在31处,实现参数压缩和性能提升。

摘要:

深度网络通常过度参数化,但其学习到的表示往往具有低秩结构。我们提出了一种框架,通过将学习到的表示视为模型完整容量的低秩子空间上的投影,来估计模型的内在维度。我们的方法:训练一个全秩教师模型,对权重进行多秩分解,并通过蒸馏训练每个分解后的学生模型,以测量性能随秩的变化。我们定义有效秩为一个区域,而不是一个点:即学生模型达到教师模型85-95%准确率的最小连续秩集。为了稳定估计,我们用单调PCHIP插值拟合准确率与秩的关系,并识别归一化曲线的交叉点。我们还定义有效膝点为平滑准确率曲线与终点割线之间垂直距离最大的秩;这是一个内在指标,表示边际收益集中之处。在对CIFAR-100进行微调的ViT-B/32模型上,分解线性块并进行蒸馏训练,得到有效秩区域约为[16, 34],有效膝点在r* ~ 31。在秩32时,学生模型达到69.46%的top-1准确率,而教师模型为73.35%(约94.7%的基线水平),同时实现了显著的参数压缩。我们提供了一个框架,用于在不同架构和数据集上估计有效秩区域和膝点,提供了一种实用工具,用于表征深度模型的内在维度。

英文摘要:

Deep networks are heavily over-parameterized, yet their learned representations often admit low-rank structure. We introduce a framework for estimating a model's intrinsic dimensionality by treating learned representations as projections onto a low-rank subspace of the model's full capacity. Our approach: train a full-rank teacher, factorize its weights at multiple ranks, and train each factorized student via distillation to measure performance as a function of rank. We define effective rank as a region, not a point: the smallest contiguous set of ranks for which the student reaches 85-95% of teacher accuracy. To stabilize estimates, we fit accuracy vs. rank with a monotone PCHIP interpolant and identify crossings of the normalized curve. We also define the effective knee as the rank maximizing perpendicular distance between the smoothed accuracy curve and its endpoint secant; an intrinsic indicator of where marginal gains concentrate. On ViT-B/32 fine-tuned on CIFAR-100 (one seed, due to compute constraints), factorizing linear blocks and training with distillation yields an effective-rank region of approximately [16, 34] and an effective knee at r* ~ 31. At rank 32, the student attains 69.46% top-1 accuracy vs. 73.35% for the teacher (~94.7% of baseline) while achieving substantial parameter compression. We provide a framework to estimate effective-rank regions and knees across architectures and datasets, offering a practical tool for characterizing the intrinsic dimensionality of deep models.

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

↑