On Randomized Classification Layers and Their Implications in Natural Language Generation

Gal-Lev Shalev, Gabi Shalev, Joseph Keshet
{"title":"On Randomized Classification Layers and Their Implications in Natural Language Generation","authors":"Gal-Lev Shalev, Gabi Shalev, Joseph Keshet","doi":"10.18653/V1/2021.MAIWORKSHOP-1.2","DOIUrl":null,"url":null,"abstract":"In natural language generation tasks, a neural language model is used for generating a sequence of words forming a sentence. The topmost weight matrix of the language model, known as the classification layer, can be viewed as a set of vectors, each representing a target word from the target dictionary. The target word vectors, along with the rest of the model parameters, are learned and updated during training. In this paper, we analyze the properties encoded in the target vectors and question the necessity of learning these vectors. We suggest to randomly draw the target vectors and set them as fixed so that no weights updates are being made during training. We show that by excluding the vectors from the optimization, the number of parameters drastically decreases with a marginal effect on the performance. We demonstrate the effectiveness of our method in image-captioning and machine-translation.","PeriodicalId":337590,"journal":{"name":"Proceedings of the Third Workshop on Multimodal Artificial Intelligence","volume":"220 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-06-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the Third Workshop on Multimodal Artificial Intelligence","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.18653/V1/2021.MAIWORKSHOP-1.2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

In natural language generation tasks, a neural language model is used for generating a sequence of words forming a sentence. The topmost weight matrix of the language model, known as the classification layer, can be viewed as a set of vectors, each representing a target word from the target dictionary. The target word vectors, along with the rest of the model parameters, are learned and updated during training. In this paper, we analyze the properties encoded in the target vectors and question the necessity of learning these vectors. We suggest to randomly draw the target vectors and set them as fixed so that no weights updates are being made during training. We show that by excluding the vectors from the optimization, the number of parameters drastically decreases with a marginal effect on the performance. We demonstrate the effectiveness of our method in image-captioning and machine-translation.
随机分类层及其在自然语言生成中的意义
在自然语言生成任务中,神经语言模型用于生成组成句子的单词序列。语言模型的最顶层权重矩阵称为分类层,可以看作是一组向量,每个向量表示目标字典中的一个目标单词。在训练过程中学习和更新目标词向量以及其他模型参数。本文分析了目标向量编码的性质,并对学习这些向量的必要性提出了质疑。我们建议随机绘制目标向量并将其设置为固定,这样在训练过程中就不会进行权重更新。我们表明,通过从优化中排除向量,参数的数量急剧减少,对性能的影响微乎其微。我们证明了我们的方法在图像字幕和机器翻译中的有效性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书