(Deep) Neural Networks (Deep Learning) , NLP and Text Mining

來源:互聯網
上載者:User

標籤:

(Deep) Neural Networks (Deep Learning) , NLP and Text Mining

最近翻了一下關於Deep Learning 或者 普通的Neural Network在NLP以及Text Mining方面應用的文章,包括Word2Vec等,然後將key idea提取出來羅列在了一起,有興趣的可以下載看看:

http://pan.baidu.com/s/1sjNQEfz

我沒有把一些我自己的想法放到裡面,大家各抒己見,多多交流。

下面簡單概括一些其中的幾篇paper:

  • Bengio, Yoshua, RéjeanDucharme, Pascal Vincent, and Christian Jauvin. "A Neural Probabilistic Language Model." Journal of Machine Learning Research 3 (2003): 1137-1155.

神經網路語音模型重要工作之一,後面的工作word2vec其實都是對他的一種最佳化了。因為這個模型當中的softmax過程複雜度太高,計算一個word的條件機率,需要計算詞典中每個word的條件機率,才能做normalization。所以就有了很多paper,包括word2vec對其進行最佳化。

 

  • Morin, Frederic, and Yoshua Bengio. "Hierarchical probabilistic neural network language model." In AISTATS, vol. 5, pp. 246-252. 2005.
  • Mnih, Andriy, and Geoffrey E. Hinton. "A scalable hierarchical distributed language model." In Advances in neural information processing systems, pp. 1081-1088. 2009.

這兩篇paper,一篇Yoshua Bengio的,一篇Geoffrey Hinton的,都是從Hierarchical角度來降低原模型的時間複雜度。http://blog.csdn.net/mytestmy/article/details/26969149 這篇paper的講解不錯。

  • Mikolov, Tomas, Kai Chen, Greg Corrado, and Jeffrey Dean. "Efficient estimation of word representations in vector space." ICLR (2013).

用一顆Huffman Tree來做Hierarchical Softmax, 因為詞頻大的word編碼比較短,所以可以減少很多的矩陣乘法的操作。如何用tree來表示p(w|context(w))要看明白,很簡單,左右分枝看作一個二分類問題,那麼分到左邊的機率可以定義為σ(θTx), 那麼右邊的機率就是1−σ(θTx), 最後的條件機率就是順著分枝連乘起來。文中提出了CBOW和Skip-gram兩種模型,結構有差異,求解方法類似,最大似然,求導,sgd。

什麼時候用CBOW,什麼時候用Skip-gram呢? 文章實驗說明Skip-gram在word semantic相關task中表現較好,CBOW在syntactic方面比較比較好。

 

  • Mikolov, Tomas, et al. "Distributed representations of words and phrases and their compositionality." NIPS(2013).

是上篇paper的繼續最佳化,把原問題直接表示成了二分類問題,Negative Sampling就是如何采負樣本,方法很簡單,就是一個賭盤,作者說的放法應該是工程實現的時候的trick,效率更高,可以用map存隨機數到word的映射。

Mikolov, Tomas跳槽去了Facebook了,挺Joey說,他是一個非常聰明的人。。

Word2Vec有很多有用的屬性,屬性之一自然是vector,基於此可以做一些諸如machine translation的事情:

  • Mikolov, Tomas, Quoc V. Le, and IlyaSutskever. "Exploiting similarities among languages for machine translation." arXivpreprint arXiv:1309.4168 (2013).

每種語言的語料庫訓練出word2vec的model,英語和西班牙語為例,處於兩種向量空間中,向量維度可以相同也可以不同。目標很簡單,學習一個mapping matrix最佳化||Wx−y||2即可。矩陣是什麼來著?就是一個線性變換吧。

 

Word2Vec的另外一個屬性很有意思,V(king) – V(queen) + V(woman) ≈ V(man)。 使用這個屬性就可以做很多事情了,例如:

  • Fu, Ruiji, Jiang Guo, Bing Qin, WanxiangChe, Haifeng Wang, and Ting Liu. "Learning semantic hierarchies via word embeddings." ACL, 2014.

word2vec表示word之後,學習他們的hypernym-hyponym這種語義上下位關係。方法很簡單,不過文章先用了一個聚類,也是挺make sense的。將y-x得到的向量k-means聚類,意思是cluster中的關係應該是類似的。

每個cluster學習出一個詞關係的映射矩陣W。本文中用的word2vec的skip-gram模型來表示word feature。

 

關於CNN在sentences方面的應用,有幾篇paper,首先:

  • Blunsom, Phil, Edward Grefenstette, and NalKalchbrenner. "A Convolutional Neural Network for Modelling Sentences." ACL 2014.

來自Blunsom的作品。CNN往句子上面套的過程很簡單,CNN的卷基層,在句子中體現為一個視窗,可以把幾個詞一起卷積一下,這樣就將word order, word context考慮進去了。

CNN還有pooling的環節,上面論文中作者提出了一種k-max pooling,不僅僅取一個最大值。

  • Kim, Yoon. "Convolutional Neural Networks for Sentence Classification. “ arxiv : 2014

這篇paper的思想就相對簡單些了,沒啥說的。

Sentence Classification相關的task很多啊,例如sentiment Classification等。

 

  • Zeng, Daojian, Kang Liu, Siwei Lai, Guangyou Zhou, and Jun Zhao. "Relation Classification via Convolutional Deep Neural Network.“ COLING 2014 Best Paper

Coling今年的best paper,為了描述word之間的關係,提取了很多特徵。其中提取句子特徵使用的CNN。卷積,pooling,softmax,就這麼幾個過程。

 

  • Le, Quoc V., and Tomas Mikolov. "Distributed Representations of Sentences and Documents." ICML (2014).

word2vec模型的擴充。

 

其實大家都會覺得deep model既然能夠抽取映像等訊號的latent variables, 那麼應該很自然的也會抽取text的topic出來, lda等無非就是用詞典大小的多項分布來描述topic,deep model應該可以用更短的向量來描述latent topic,當然類似的工作也是有的,這裡先list一下:

Wan, Li, Leo Zhu, and Rob Fergus. "A hybrid neural network-latent topic model." ICAIS. 2012.

Larochelle, Hugo, and Stanislas Lauly. "A neural autoregressive topic model." NIPS. 2012.

Hinton, Geoffrey E., and Ruslan Salakhutdinov. "Replicated softmax: an undirected topic model." NIPS 2009.

Srivastava, Nitish, Ruslan R. Salakhutdinov, and Geoffrey E. Hinton. "Modeling documents with deepboltzmann machines." UAI(2013).

Hinton, Geoffrey, and Ruslan Salakhutdinov. "Discovering binary codes for documents by learning deep generative models." Topics in Cognitive Science 3, no. 1 (2011): 74-91.

Salakhutdinov, Ruslan, Joshua B. Tenenbaum, and Antonio Torralba. "Learning to learn with compound hdmodels." NIPS (2011).

 

(Deep) Neural Networks (Deep Learning) , NLP and Text Mining

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.