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

PR积:神经网络中内积的替代

PR Product: A Substitute for Inner Product in Neural Networks

Shenzhen University(深圳大学)

Zhennan Wang, Wenbin Zou, Chen Xu

摘要:

本文从向量正交分解的角度分析了神经网络中权向量w与数据向量x的内积,证明了w的方向梯度随两者夹角接近0或π而减小。我们提出的投影和拒绝产品(PR产品),使w的方向梯度的角度无关,并始终大于一个标准的内积,同时保持向前传播相同。作为标准内积的可靠替代品,PR Product可以应用到许多现有的深度学习模块中,因此我们开发了全连接层、卷积层和LSTM层的PR Product版本。在静态图像分类中,对CIFAR10和CIFAR100数据集的实验表明,PR产品可以鲁棒地增强各种最先进的分类网络的能力。在图像描述的任务中,即使没有任何花哨的东西,我们的PR产品版本的字幕模型也可以在MS COCO数据集上竞争或优于最先进的模型。代码已在www.example.com上提供。

英文摘要:

In this paper, we analyze the inner product of weight vector w and data vector x in neural networks from the perspective of vector orthogonal decomposition and prove that the direction gradient of w decreases with the angle between them close to 0 or π. We propose the Projection and Rejection Product (PR Product) to make the direction gradient of w independent of the angle and consistently larger than the one in standard inner product while keeping the forward propagation identical. As a reliable substitute for standard inner product, the PR Product can be applied into many existing deep learning modules, so we develop the PR Product version of fully connected layer, convolutional layer and LSTM layer. In static image classification, the experiments on CIFAR10 and CIFAR100 datasets demonstrate that the PR Product can robustly enhance the ability of various state-of-the-art classification networks. On the task of image captioning, even without any bells and whistles, our PR Product version of captioning model can compete or outperform the state-of-the-art models on MS COCO dataset. Code has been made available at:https://github.com/wzn0828/PR_Product.

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

↑