Exact gradient updates in time independent of output size for the spherical loss family
An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2016-06 |
---|---|
Hauptverfasser: | , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Vincent, Pascal de Brébisson, Alexandre Bouthillier, Xavier |
description | An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D (e.g. 200,000). Computing the equally large, but typically non-sparse D-dimensional output vector from a last hidden layer of reasonable dimension d (e.g. 500) incurs a prohibitive O(Dd) computational cost for each example, as does updating the \(D \times d\) output weight matrix and computing the gradient needed for backpropagation to previous layers. While efficient handling of large sparse network inputs is trivial, the case of large sparse targets is not, and has thus so far been sidestepped with approximate alternatives such as hierarchical softmax or sampling-based approximations during training. In this work we develop an original algorithmic approach which, for a family of loss functions that includes squared error and spherical softmax, can compute the exact loss, gradient update for the output weights, and gradient for backpropagation, all in \(O(d^{2})\) per example instead of \(O(Dd)\), remarkably without ever computing the D-dimensional output. The proposed algorithm yields a speedup of up to \(D/4d\) i.e. two orders of magnitude for typical sizes, for that critical part of the computations that often dominates the training time in this kind of network architecture. |
format | Article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2079889881</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2079889881</sourcerecordid><originalsourceid>FETCH-proquest_journals_20798898813</originalsourceid><addsrcrecordid>eNqNikEKwjAQRYMgWLR3GHBdSBNr61oqHkBwWUI7tSltEzMJqKc3Cw8gfN5bvL9iiZAyz6qDEBuWEo2cc3EsRVHIhN3rl2o9PJzqNC4egu2URwK9gNczRndoMSI204MJ3gYPpD8IvXHgBwSyAzrdqgkmQwS9mvX03rF1rybC9Oct21_q2_maWWeeAck3owluiakRvDxVVVwu_3t9AX-RQgg</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2079889881</pqid></control><display><type>article</type><title>Exact gradient updates in time independent of output size for the spherical loss family</title><source>Free E- Journals</source><creator>Vincent, Pascal ; de Brébisson, Alexandre ; Bouthillier, Xavier</creator><creatorcontrib>Vincent, Pascal ; de Brébisson, Alexandre ; Bouthillier, Xavier</creatorcontrib><description>An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D (e.g. 200,000). Computing the equally large, but typically non-sparse D-dimensional output vector from a last hidden layer of reasonable dimension d (e.g. 500) incurs a prohibitive O(Dd) computational cost for each example, as does updating the \(D \times d\) output weight matrix and computing the gradient needed for backpropagation to previous layers. While efficient handling of large sparse network inputs is trivial, the case of large sparse targets is not, and has thus so far been sidestepped with approximate alternatives such as hierarchical softmax or sampling-based approximations during training. In this work we develop an original algorithmic approach which, for a family of loss functions that includes squared error and spherical softmax, can compute the exact loss, gradient update for the output weights, and gradient for backpropagation, all in \(O(d^{2})\) per example instead of \(O(Dd)\), remarkably without ever computing the D-dimensional output. The proposed algorithm yields a speedup of up to \(D/4d\) i.e. two orders of magnitude for typical sizes, for that critical part of the computations that often dominates the training time in this kind of network architecture.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Algorithms ; Back propagation ; Computation ; Neural networks ; Predictions ; Training ; Weight</subject><ispartof>arXiv.org, 2016-06</ispartof><rights>2016. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>780,784</link.rule.ids></links><search><creatorcontrib>Vincent, Pascal</creatorcontrib><creatorcontrib>de Brébisson, Alexandre</creatorcontrib><creatorcontrib>Bouthillier, Xavier</creatorcontrib><title>Exact gradient updates in time independent of output size for the spherical loss family</title><title>arXiv.org</title><description>An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D (e.g. 200,000). Computing the equally large, but typically non-sparse D-dimensional output vector from a last hidden layer of reasonable dimension d (e.g. 500) incurs a prohibitive O(Dd) computational cost for each example, as does updating the \(D \times d\) output weight matrix and computing the gradient needed for backpropagation to previous layers. While efficient handling of large sparse network inputs is trivial, the case of large sparse targets is not, and has thus so far been sidestepped with approximate alternatives such as hierarchical softmax or sampling-based approximations during training. In this work we develop an original algorithmic approach which, for a family of loss functions that includes squared error and spherical softmax, can compute the exact loss, gradient update for the output weights, and gradient for backpropagation, all in \(O(d^{2})\) per example instead of \(O(Dd)\), remarkably without ever computing the D-dimensional output. The proposed algorithm yields a speedup of up to \(D/4d\) i.e. two orders of magnitude for typical sizes, for that critical part of the computations that often dominates the training time in this kind of network architecture.</description><subject>Algorithms</subject><subject>Back propagation</subject><subject>Computation</subject><subject>Neural networks</subject><subject>Predictions</subject><subject>Training</subject><subject>Weight</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2016</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNikEKwjAQRYMgWLR3GHBdSBNr61oqHkBwWUI7tSltEzMJqKc3Cw8gfN5bvL9iiZAyz6qDEBuWEo2cc3EsRVHIhN3rl2o9PJzqNC4egu2URwK9gNczRndoMSI204MJ3gYPpD8IvXHgBwSyAzrdqgkmQwS9mvX03rF1rybC9Oct21_q2_maWWeeAck3owluiakRvDxVVVwu_3t9AX-RQgg</recordid><startdate>20160626</startdate><enddate>20160626</enddate><creator>Vincent, Pascal</creator><creator>de Brébisson, Alexandre</creator><creator>Bouthillier, Xavier</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20160626</creationdate><title>Exact gradient updates in time independent of output size for the spherical loss family</title><author>Vincent, Pascal ; de Brébisson, Alexandre ; Bouthillier, Xavier</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_20798898813</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2016</creationdate><topic>Algorithms</topic><topic>Back propagation</topic><topic>Computation</topic><topic>Neural networks</topic><topic>Predictions</topic><topic>Training</topic><topic>Weight</topic><toplevel>online_resources</toplevel><creatorcontrib>Vincent, Pascal</creatorcontrib><creatorcontrib>de Brébisson, Alexandre</creatorcontrib><creatorcontrib>Bouthillier, Xavier</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Vincent, Pascal</au><au>de Brébisson, Alexandre</au><au>Bouthillier, Xavier</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Exact gradient updates in time independent of output size for the spherical loss family</atitle><jtitle>arXiv.org</jtitle><date>2016-06-26</date><risdate>2016</risdate><eissn>2331-8422</eissn><abstract>An important class of problems involves training deep neural networks with sparse prediction targets of very high dimension D. These occur naturally in e.g. neural language models or the learning of word-embeddings, often posed as predicting the probability of next words among a vocabulary of size D (e.g. 200,000). Computing the equally large, but typically non-sparse D-dimensional output vector from a last hidden layer of reasonable dimension d (e.g. 500) incurs a prohibitive O(Dd) computational cost for each example, as does updating the \(D \times d\) output weight matrix and computing the gradient needed for backpropagation to previous layers. While efficient handling of large sparse network inputs is trivial, the case of large sparse targets is not, and has thus so far been sidestepped with approximate alternatives such as hierarchical softmax or sampling-based approximations during training. In this work we develop an original algorithmic approach which, for a family of loss functions that includes squared error and spherical softmax, can compute the exact loss, gradient update for the output weights, and gradient for backpropagation, all in \(O(d^{2})\) per example instead of \(O(Dd)\), remarkably without ever computing the D-dimensional output. The proposed algorithm yields a speedup of up to \(D/4d\) i.e. two orders of magnitude for typical sizes, for that critical part of the computations that often dominates the training time in this kind of network architecture.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2016-06 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_2079889881 |
source | Free E- Journals |
subjects | Algorithms Back propagation Computation Neural networks Predictions Training Weight |
title | Exact gradient updates in time independent of output size for the spherical loss family |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-07T11%3A57%3A34IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Exact%20gradient%20updates%20in%20time%20independent%20of%20output%20size%20for%20the%20spherical%20loss%20family&rft.jtitle=arXiv.org&rft.au=Vincent,%20Pascal&rft.date=2016-06-26&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2079889881%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2079889881&rft_id=info:pmid/&rfr_iscdi=true |