Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LSTMを用いた自然言語処理について

tkng
January 27, 2016

 LSTMを用いた自然言語処理について

第3回TokyoCL勉強会 でのLSTMについての発表資料です

tkng

January 27, 2016
Tweet

More Decks by tkng

Other Decks in Technology

Transcript

  1. Seq2seqϞσϧͰͷ຋༁ 5IJT JT B QFO &04 ͜Ε ͸ ϖϯ Ͱ͢

    &04 ͜Ε ͸ ϖϯ Ͱ͢ 5IJTJTBQFOΛݻఆ௕ʹ Τϯίʔυ͍ͯ͠Δʂ
  2. Effective Approaches to Attention- based Neural Machine Translation (Bahdanau+, 2015)

    • Seq2seqͰػց຋༁ • Local Attentionͱ͍͏৽͍͠ख๏ΛఏҊ • ͍͔ͭ͘ͷݴޠϖΞͰɺstate of the artΛୡ੒
  3. Ask Me Anything: Dynamic Memory Networks for Natural Language Processing

    (Kumar+, 2015) • Dynamic Memory NetworksΛఏҊͨ͠ • Recurrent Neural NetworkΛ૊Έ߹ΘͤͨΑ ͏ͳϞσϧʹͳ͍ͬͯΔ • ࣭໰Ԡ౴ɺ඼ࢺλά෇͚ɺڞࢀরղੳɺධ൑ ෼ੳͰstate of the art • ΄΅ಉ͡ϞσϧͰ৭ʑղ͚Δͷ͕͍͢͝ͱ ͍͏ओு
  4. Show, Attend and Tell: Neural Image Caption Generation with Visual

    Attention (Xu+, 2015) • ը૾ʹର͢Δղઆจͷੜ੒ • CNN + LSTM + Attention IUUQLFMWJOYVHJUIVCJPQSPKFDUTDBQHFOIUNM
  5. Semi-supervised Sequence Learning (Dai+, 2015) • LSTMΛ࢖ͬͯ sentiment analysis ͳͲ෼ྨܥ

    ͷλεΫΛ࣮ݧ • Language ModelͱSequence Autoencoderͷ2 ͭΛpretrainingͷख๏ͱͯ͠༻͍ɺ্هͷ࣮ݧ Ͱstate of the artΛߋ৽ • γϯϓϧͳख๏Ͱɺ஍ຯʹ͍͢͝
  6. An Empirical Exploration of Recurrent Network Architectures ( Jozefowicz+, 2015)

    • Googleͷܭࢉػύϫʔʹ෺ΛݴΘͤͯɺ LSTM΍GRUͷ೿ੜϞσϧΛͨ͘͞ΜධՁͨ͠ • LSTMΛॳظԽ͢Δࡍɺforget gateͷbiasΛ1 ʹ͢Δ͜ͱΛڧ͘קΊ͍ͯΔ
  7. ࣮ݧઃఆʢ1ʣ • ޠኮʢor จࣈʣ਺͸80000 or 10000 • ೖྗ͸100࣍ݩͷembeddingʹม׵ • LSTM͸1૚ɺঢ়ଶ਺͸200࣍ݩ

    • ࠷దԽʹ͸AdamΛ࢖༻ • ίʔυ͸ https://github.com/odashi/ chainer_examples Λར༻ͨ͠
  8. ͲΜͳײ͡ͰֶशͰ͖Δ͔ʁ • trg = ͠Ό͘ ͠Ό͘ ͱ φγ ͷ Α͏

    ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = Χϥʔ ໾ ͱ ग़਎ ͷ Α͏ ͳ ࣄଶ ʹ ʹ ඇৗ ͳ ࢪઃ ɻ • hyp = ਎ମ ౳ ͱ ࠃՈ ͷ Α͏ ͳ ৯ ײ ʹ ߦ͘ ͳ ୴ಹ ɻ • hyp = ౳ ౳ ͱ φγ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ୴ಹ ɻ • hyp = ೖࡳ ౳ ͱ φγ ͷ Α͏ ͳ ৯ ԰ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ࣇۄ Ԃ ͱ φγ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = PA ͠Ό͘ ͱ ٳܜ ͷ Α͏ ͳ ৯ ͗͢ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ͠Ό͘ ͠Ό͘ ͱ φγ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ͠Ό͘ ͠Ό͘ ͱ ↑ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ͠Ό͘ ͠Ό͘ ͱ ↑ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ͠Ό͘ ͠Ό͘ ͱ φγ ͷ ͳ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ • hyp = ͠Ό͘ ͠Ό͘ ͱ φγ ͷ Α͏ ͳ ৯ ײ ʹ ্඼ ͳ ؁ຯ ɻ