Paragraph Vector Representation Based on Word to Vector and CNN Learning
2018-06-01ZeyuXiongQiangqiangShenYijieWangandChenyangZhu
Zeyu Xiong , Qiangqiang Shen Yijie Wang and Chenyang Zhu
1 Introduction
There are many unstructured data existed as an important source for data analysis. Text classification, text mining, text clustering, sentiment analysis, automatic speech recognition and machine translation are become as important tasks in information retrieval and natural language processing.
In actual application, raw documents need to be transformed into numerical vectors, in which each document’s hidden characteristics are captured. Distributed representations of words in a vector space help machine learning algorithms to achieve better performance in processing various IR and NLP tasks. One of the earliest application to word vector dates back to 1986 due to Rumelhart et al. [Rumelhart, Hinton and Williams (1986)], has become a successful paradigm, especially for statistical language modeling [Elman (1990); Bengio,Schwenk, Senécal et al. (2006); Mikolov (2012)], text mining tasks [Huang (2008); Wu,SC and Yu (2010)].
Various neural networks are used in learning vector representations of words [Bengio,Schwenk, Senécal et al. (2006); Collobert and Weston (2008); Mnih and Hinton (2008);Mikolov, Sutskever, Chen et al. (2013)]. In the formulation of word vector, each word is represented by a vector which is initially concatenated or averaged with other word vectors in a context, and the final resulting vector is obtained to predict other words in the context.For example, Bengio et al. [Bengio, Schwenk, Senécal et al. (2006)] use the proposed neural network language model to form the input of a neural network, and use the resulting vector to predict the next word. The training outcome to the neural network model is that the word vectors are mapped into a vector space such that semantically similar words have similar vector representations (e.g. vec (“Madrid”)-vec (“Spain”)+vec (“France”) is closer to vec (“Paris”)). Recently, Mikolov et al. [Mikolov, Sutskever, Chen et al. (2013)]introduced the CBOW model which have high quality vector representations of words by learning from large amounts of unstructured text data, and the training processing of the CBOW model does not involve dense matrix multiplications.
Word of vector has been used to represent document in a matrix form, also can be used to generate the vector space model. In the vector space model, each document is represented as a vector with one real-valued component, usually atf-idfweight for each term. Kim et al. [Kim, Kim and Cho (2017)] create concepts through clustering word vectors generated from word2vec, and use the frequencies of these concept clusters to represent document vectors. Huang [Huang 2008] uses word of vector for solving text clustering task. Tsai et al. [Tsai, Wang and Chien (2016)] establish an approach to discovering financial keywords from a large number of financial reports by applying the continuous bag-of-words (CBOW)model. Cao et al. [Cao, Zhou, Sun et al. (2018)] use the histogram of the bag of words model (BOW) to determine the number of sub-images in the image that convey secret information for the purpose of improving the retrieval efficiency, Feldman [Feldman(2013)] analyses techniques and applications of word of vector for sentiment analysis.
Word representations are limited in ability for representing idiomatic phrases that are not compositions of the individual words. For example, “Reference News” is a newspaper, and it is not a natural combination of the meanings of “Reference” and “News”. The continuous Skip-gram model and CBOW model both are efficient method for learning high-quality distributed vector representations that capture a large number of precise syntactic and semantic word relationships. Therefore, using vectors to represent the whole phrases makes the Skip-gram or CBOW model considerably more expressive. Mikolov et al. [Mikolov,Sutskever, Chen et al. (2013)] develop a simple method for finding phrases in text, and show that learning good vector representations for millions of phrases is possible. Other methods that aim to represent meaning of sentences by composing the word vectors, such as the recursive auto encoders [Socher, Pennington, Huang et al. (2011)], is also originated by using phrase vectors instead of the word vectors.
陈鹤琴先生在他的《家庭教育》中总结儿童的心理特点时,就提到小孩子生来就是好奇的,好奇是他们认识这个世界的途径之一,“若小孩子不好奇,那就不去与事物接触了;不与事物相接触,那他就不能明了事物的性质和状况,所以好奇是小孩子得着知识的一个最紧要的门径”。①成人应注意保护好儿童的好奇心,以此不断激发他们的内在潜能,促进他们更好地发展。
Paragraph vector is constructed in Mikolov et al. [Mikolov, Sutskever, Chen et al. (2013)]and Le et al. [Le and Mikolov (2014)] by an unsupervised algorithm that learns fixedlength feature representations from variable-length pieces of texts, such as sentences,paragraphs, and documents. Both word vectors and paragraph vectors are trained by the stochastic gradient descent and back-propagation. Paragraph vectors are unique among paragraphs, and the word vectors are asked to be shared. But, we find that this sharing of word vectors in different paragraph is not well kept during the training processing. It inspirits us to establish a new neural network to generate paragraph vectors and keep the word vectors shared. Yuan et al. [Yuan, Li, Wu et al. (2017)] use convolutional neural network and principal component analysis to detect fingerprint liveness from different fingerprint materials. Therefore, a hybrid neural networks by the combination of CBOW and CNN is proposed in this paper.
The rest of this paper is organized as follows: Section 2 introduces prior research related to one-hot representation for word, Hierarchical softmax model, convolutional neural networks. Section 3 formally presents our approach in combination of CBOW and CNN model for paragraph vector learning. Section 4 describes the experimental settings and experimental results. At last, we conclude the paper and discuss some future work in Section 5.
2 Some related works
2.1 One-hot representation for word and compositional vector model for sentence
Many machine learning algorithms cannot handle on label data directly. They require all input variables and output variables to be numerical form. In the following, we briefly describe the one-hot representation for word and compositional vector model for sentence.Let V={w1,w2,…,w|V|} be a lexicon, each word of w ∈ V is represented by a one-hot encoded vector v(w) of |V| dimensions, which means to be 1 at the indexing position of w, and all other |V|-1 indexing positions are 0. One-hot document vector is generated similarly (see Fig. 1).

Figure 1: One-hot document vector via bag of words
Compositional vector representation for words has proven very efficient for many NLP tasks. One common method for generating a vector of a sentence is to average all the vectors of words in this sentence. Mitchell et al. [Mitchell and Lapata (2008)] use the combination rules with operators: Addition and multiplication to generate a higher-level representation for a sentence/document. Some more complex composition functions using parsed tree, matrix-vector composition, convolutional neural networks or tensor composition can be seen in the above issues [Socher, Lin, Ng et al. (2011); Socher, Huval,Manning et al. (2013); Hermann and Blunsom (2013); Tsubaki, Duh, Shimbo et al. (2013)].Some of these works use deep linguistic structures as parsed trees to design their composition functions, and Pham and Le [Pham and Le (2018)] employ other semantic signals such as sentiment or topic labels for designing the objective functions. Xiong et al.[Xiong and Wang (2018)] develop a new method for calculating the field weights based on the ranking score.
where c is the size of the training context, larger c results in more training examples and thus can lead to a higher accuracy, and cost more training time. The basic CBOW formulation defines p(wt+j|wt) by using the following full softmax function:
2.2 Hierarchical softmax for CBOW model
CBOW model is one of word embedding models, it represents words with real-valued vectors whose relative similarities correlate with semantic similarity. It can be used for computing similarities between terms.
Fig. 16 shows the result of total variance for sampled 10000 paragraphs.It is easy to see from Fig. 6 to Fig. 16 that the constructed deep learning network (CNNs in Fig. 5) achieves better availability in distance measure and total variance behavior. The comparative results show that the generated paragraph vector in this paper is in a closer neighborhood of mean vector in a paragraph, the measure distance performs indirectly semantic relativeness and accuracy in vector space.

Figure 2: The architecture for CBOW model [Mikolov, Sutskever, Chen et al. (2013)]
Convolutional neural networks also called as CNNs or CNN [LeCun (1989)], is a specialized kind of neural network for processing data that has a known, grid-like topology.Convolutional networks are simply neural networks that use convolution to replace general matrix multiplication with at least one of their network layers.
航标按部颁作业标准,视觉航标维护质量的总体要求:“标位准确、灯质正常、涂色鲜明、结构良好”。“灯质正常”就是航标灯的灯质与《航标表》及航标动态公布的灯质一致。灯光颜色的色度符合国标(GB12708-91)《航标灯光信号颜色》的规定,闪光周期允许误差是周期的±5%。灯光射程符合《航标表》及航标动态公布的灯光射程。

用 SPSS 23.0 软件对数据进行单因素方差分析ANOVA,组间两比较用SNK、L-SD检验。检验水准α=0.05。

where Vwtis input vector representation of word wt, andare output vector representations of words wt+j,wi.
A computationally efficient approximation of the full softmax is the hierarchical softmax.The hierarchical softmax uses a binary tree representation of the output layer with the |V|words as its leaves and, for each wordwlocated at the leaf, let n(w,j) be thej-th node on the path from the root tow, and let Len(w) be the length of this path, so n(w,1)=root and n(w,len(w))=w. Let cℎild(n) be an arbitrary fixed child of inner noden, and let〈x〉 be 1 ifxis true and -1, otherwise, then the hierarchical softmax is defined as follows:

2.3 Paragraph vector representation
Le et al. [Le and Mikolov (2014)] has established paragraph vector framework, which is an unsupervised manner that learns continuous distributed vector representations for pieces of texts. The pieces of texts can be of variable-length, includes phrase, sentence, paragraph and document. Using the nameParagraph Vectoris to insist the fact that the method can be applied to variable-length pieces of texts, range from a phrase or sentence to a large document.

Figure 3: A framework for learning paragraph vector [Le and Mikolov (2014)]
The paragraph vector framework actually is a distributed memory model (Fig. 3), every paragraph is mapped to a unique vector, represented by a column in matrixDand every word is also mapped to a unique vector, represented by a column in matrixW. In this model,the concatenation or average of this vector with a context of three words (“is”, “this”, “the”)is used to predict the fourth word (“top”).
In order to employ CNNs availably, we need to understand the motivation behind using convolution in a neural network. Convolution leverages three important ideas that can help improve a machine learning system:Sparse interactions,parameter sharingandequivariant representations[Goodfellow, Bengio and Courville (2016)]. Sparse interactions is accomplished by making the kernel smaller than the input, parameter sharing refers to using the same parameter for more than one function in a model, in the case of convolution, the particular form of parameter sharing causes the layer to have a property called equivariance to translation. One of the basic operation in CNNs is calledpooling,which almost all convolutional networks use.
2.4 Convolutional neural networks
Given a sequence of training words: w1,w2,…,wT, the objective of the CBOW model is to maximize the average log probability
1.1 仪器 Waters ACQUITY超高效液相色谱仪,美国Waters公司,配备有二极管阵列检测器,自动进样器,Empower 2色谱工作站;XS-205电子天平,AL-204电子天平,METTLER TOLEDO公司;超声仪,南京新辰生物科技有限公司,40 KHz。
The parameters in Fig. 5 are listed in Tab. 1. Behind the three convolutional layers is a flatten layer, which is a fully connected layer and perform feature fusion, and finally 50 neurons are set up.
3 The CNN model for paragraph vector representation
3.1 Motivation: Example of the topic analysis to actual paragraph.
Consider the paragraph stated as follows [ABC news, Feb 7, 2018]:

Figure 4: Relative words marked to theme in a paragraph
Fig. 4 marked the relative words to express the theme information in a paragraph, the relative terms to express theme are marked same color in word2vec space, which words with same color are at nearby position in a paragraph. We have known that CNNs have achieved great success for acquiring local neighboring feature (for example: Finger, edge etc.) in image processing, if we let a word in a paragraph viewed as a pixel in a document,we can use CNNs to generate feature of theme in a paragraph, and this feature is closed relative to paragraph vector.
在互联网金融几种常见模式的影响下,极大的冲击了传统商业银行的负债业务,比如,第三方支付平台对商业银行的储蓄存款进行了分流;互联网金融的支付、借贷与融资均对商业银行的贷款业务产生了不同程度的影响。互联网金融机构的各种代缴费业务不仅给客户带来了诸多便利,同时也削弱了商业银行的金融中介职能,沉重打击了商业银行的中间业务,进而使得其利润空间逐渐被侵占。……
猜你喜欢
杂志排行
Computers Materials&Continua的其它文章
- An Optimized Labeling Scheme for Reachability Queries
- Watermark Embedding for Direct Binary Searched Halftone Images by Adopting Visual Cryptography
- Semi-Supervised Learning with Generative Adversarial Networks on Digital Signal Modulation Classification
- Identifying Materials of Photographic Images and Photorealistic Computer Generated Graphics Based on Deep CNNs
- Binary Image Steganalysis Based on Distortion Level Co-Occurrence Matrix
