arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.28516cs.CVcs.DC
收藏

CLEAR-MoE: 通过校准驱动的层选择从冻结视觉Transformer中提取共享基专家

CLEAR-MoE: Shared-Basis Expert Extraction from Frozen Vision Transformers via Calibration-Driven Layer Selection

Brac University(布拉克大学)

Md Irtiza Hossain, Humaira Ayesha, Junaid Ahmed Sifat

AI总结:

提出CLEAR-MoE四阶段后训练流程,将冻结的ViT转换为稀疏MoE模型,通过共享SVD基保留精度,在多个ViT骨干上精度损失≤0.10%。

摘要:

我们提出CLEAR-MoE,一个四阶段后训练流程,将冻结的预训练视觉Transformer(ViT)转换为稀疏混合专家(MoE)模型,无需更新骨干网络权重。该流程(i)通过稀疏性、可聚类性和输出敏感性对前馈网络(FFN)层进行评分;(ii)使用k-means聚类将选定层分解为共享低秩SVD基和每个聚类的残差专家;(iii)训练由聚类标签监督的轻量级路由器;(iv)通过可插拔的CUDA后端分发token。在Imagenette上使用DeiT-Small,CLEAR-MoE保留了密集模型99.9%的准确率(86.70 +/- 0.02%对比86.73%)。大量消融研究揭示了一致的实证发现:共享SVD基是保持准确率的主要因素。随机路由、学习路由和三种不同的路由器架构产生几乎相同的性能,准确率变化最多0.06个百分点(86.62%-86.68%)。准确率在不同SVD秩、专家数量(2-8)、校准集大小(50-500)和随机种子下也保持稳定。这种行为在五个ViT骨干(DeiT-Tiny、DeiT-Small、DeiT-Base、ViT-Small和ViT-Base)上泛化,覆盖5.7M到86.6M参数的模型,与密集对应模型的准确率差异≤0.10个百分点。在GTX 960 GPU上,路由和分散-聚合开销使CLEAR-MoE FFN比密集实现慢1.3-1.7倍。一个调度微基准进一步表明,路由比专家矩阵乘法更受内存限制,识别融合调度内核作为未来优化的有前途方向。

英文摘要:

We present CLEAR-MoE, a four-phase post-training pipeline that converts a frozen pretrained Vision Transformer (ViT) into a sparse Mixture-of-Experts (MoE) model without updating backbone weights. The pipeline (i) scores feed-forward network (FFN) layers by sparsity, clusterability, and output sensitivity; (ii) decomposes selected layers into a shared low-rank SVD basis and per-cluster residual experts using k-means clustering; (iii) trains lightweight routers supervised by cluster labels; and (iv) dispatches tokens through pluggable CUDA backends. On Imagenette with DeiT-Small, CLEAR-MoE retains 99.9% of the dense model's accuracy (86.70 +/- 0.02% versus 86.73%). Extensive ablation studies reveal a consistent empirical finding: the shared SVD basis is the primary factor responsible for preserving accuracy. Random routing, learned routing, and three different router architectures produce nearly identical performance, with accuracy varying by at most 0.06 percentage points (86.62%-86.68%). Accuracy also remains stable across different SVD ranks, expert counts (2-8), calibration set sizes (50-500), and random seeds. This behavior generalizes across five ViT backbones (DeiT-Tiny, DeiT-Small, DeiT-Base, ViT-Small, and ViT-Base), covering models from 5.7M to 86.6M parameters, with accuracy differences <= 0.10 percentage points from their dense counterparts. On a GTX 960 GPU, routing and scatter-gather overhead make the CLEAR-MoE FFN 1.3-1.7x slower than the dense implementation. A dispatch microbenchmark further shows that routing is an order of magnitude more memory-bound than expert matrix multiplications, identifying fused dispatch kernels as a promising direction for future optimization.

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

↑