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

CosineGate:通过残差网络中的余弦不兼容性实现语义动态路由

CosineGate: Semantic Dynamic Routing via Cosine Incompatibility in Residual Networks

Yogeswar Reddy Thota

AI总结:

CosineGate通过余弦不兼容性实现残差网络中的动态路由,无需额外监督,有效提升准确率并降低计算量。

摘要:

现代深度残差网络通过为每个输入评估所有残差块进行大量冗余计算,即使身份映射就足够。我们引入了CosineGate,这是一种端到端可微的架构,用于残差网络中的动态路由,它利用身份和残差特征表示之间的余弦不兼容性作为自监督的跳过信号。CosineGate通过定义为1 - cos(x, F(x))的余弦不兼容性比率(CIR)来衡量语义冗余,并使用Gumbel-Softmax松弛来在训练期间启用每样本、每块的门控。一个渐进的FLOPs正则化项控制平均计算使用,而不会破坏优化。在CIFAR-10上,CosineGate跨越了准确率-效率帕累托前沿:激进的配置在24.1%的FLOPs节省下达到89.9%的准确率,平衡的配置在第160个epoch时达到91.3%的准确率,节省28.5%,保守的配置在极小的计算减少下达到93.2%的准确率。这些结果与ResNet-20(91.3%)匹配或超过,同时减少计算,无需辅助监督、蒸馏或任务特定的启发式方法。我们的结果表明,简单的几何特征不兼容性度量提供了动态残差路由的原理性和有效信号。

英文摘要:

Modern deep residual networks perform substantial redundant computation by evaluating all residual blocks for every input, even when identity mappings suffice. We introduce CosineGate, an end-to-end differentiable architecture for dynamic routing in residual networks that uses cosine incompatibility between identity and residual feature representations as a self-supervised skip signal. CosineGate measures semantic redundancy through the Cosine Incompatibility Ratio (CIR), defined as 1 - cos(x, F(x)), and uses Gumbel-Softmax relaxation to enable per-sample, per-block gating during training. A progressive FLOPs regularization term controls average compute usage without destabilizing optimization. On CIFAR-10, CosineGate spans the accuracy-efficiency Pareto frontier: an aggressive configuration achieves 89.9 percent accuracy with 24.1 percent FLOPs savings, a balanced configuration achieves 91.3 percent accuracy with 28.5 percent savings at epoch 160, and a conservative configuration reaches a peak of 93.2 percent accuracy with minimal compute reduction. These results match or exceed ResNet-20 (91.3 percent) while reducing computation, without auxiliary supervision, distillation, or task-specific heuristics. Our results demonstrate that simple geometric measures of feature incompatibility provide a principled and effective signal for dynamic residual routing.

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

↑