Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-09T04:27:27.227Z Has data issue: false hasContentIssue false

Evaluating vector space models with canonical correlation analysis*

Published online by Cambridge University Press:  20 September 2011

SAMI VIRPIOJA
Affiliation:
Department of Information and Computer Science, Aalto University School of ScienceP.O. Box 15400, FI-00076 Aalto, Finland e-mails: sami.virpioja@tkk.fi, mari-sanna.paukkeri@tkk.fi, tiina.lindh-knuutila@tkk.fi, krista.lagus@tkk.fi
MARI-SANNA PAUKKERI
Affiliation:
Department of Information and Computer Science, Aalto University School of ScienceP.O. Box 15400, FI-00076 Aalto, Finland e-mails: sami.virpioja@tkk.fi, mari-sanna.paukkeri@tkk.fi, tiina.lindh-knuutila@tkk.fi, krista.lagus@tkk.fi
ABHISHEK TRIPATHI
Affiliation:
Department of Computer Science, University of Helsinki, Finland and Xerox Research Centre Europe (XRCE) 6, Chemin de Maupertuis, 38240, Meylan, France e-mail: abhishektripathi.at@gmail.com
TIINA LINDH-KNUUTILA
Affiliation:
Department of Information and Computer Science, Aalto University School of ScienceP.O. Box 15400, FI-00076 Aalto, Finland e-mails: sami.virpioja@tkk.fi, mari-sanna.paukkeri@tkk.fi, tiina.lindh-knuutila@tkk.fi, krista.lagus@tkk.fi
KRISTA LAGUS
Affiliation:
Department of Information and Computer Science, Aalto University School of ScienceP.O. Box 15400, FI-00076 Aalto, Finland e-mails: sami.virpioja@tkk.fi, mari-sanna.paukkeri@tkk.fi, tiina.lindh-knuutila@tkk.fi, krista.lagus@tkk.fi
Rights & Permissions [Opens in a new window]

Abstract

Vector space models are used in language processing applications for calculating semantic similarities of words or documents. The vector spaces are generated with feature extraction methods for text data. However, evaluation of the feature extraction methods may be difficult. Indirect evaluation in an application is often time-consuming and the results may not generalize to other applications, whereas direct evaluations that measure the amount of captured semantic information usually require human evaluators or annotated data sets. We propose a novel direct evaluation method based on canonical correlation analysis (CCA), the classical method for finding linear relationship between two data sets. In our setting, the two sets are parallel text documents in two languages. A good feature extraction method should provide representations that reflect the semantic content of the documents. Assuming that the underlying semantic content is independent of the language, we can study feature extraction methods that capture the content best by measuring dependence between the representations of a document and its translation. In the case of CCA, the applied measure of dependence is correlation. The evaluation method is based on unsupervised learning, it is language- and domain-independent, and it does not require additional resources besides a parallel corpus. In this paper, we demonstrate the evaluation method on a sentence-aligned parallel corpus. The method is validated by showing that the obtained results with bag-of-words representations are intuitive and agree well with the previous findings. Moreover, we examine the performance of the proposed evaluation method with indirect evaluation methods in simple sentence matching tasks, and a quantitative manual evaluation of word translations. The results of the proposed method correlate well with the results of the indirect and manual evaluations.

Information

Type
Articles
Copyright
Copyright © Cambridge University Press 2011
Figure 0

Table 1. Five global weightings of words. N is the number of documents in a document collection, c(i, j) is the term frequency of word i in document j, g(i) = ∑jc(i, j) is the global frequency of word i in the whole collection, d(i) = |{j:c(i, j)>0}| is the document frequency for word i, and σi2 is the sample variance for the term frequencies of word i

Figure 1

Fig. 1. On the left: Assumed model for generation of documents s and t. Vector z in the language-independent semantic space is projected onto vectors zs and zt in the language-specific subspaces s and t. Processes s and t generate document pairs from the respective subspaces. On the right: The process of evaluating feature extraction method with CCA. The aligned document collections S and T are reduced to matrices X and Y of feature vectors using . Then X and Y are projected onto a common vector space using CCA.

Figure 2

Fig. 2. Diagram of the evaluation setup. (1) The feature extraction method is trained on monolingual corpora and then applied to transform the evaluation data sets into vectorial form. (2) CCA is trained on the evaluation training data to find the canonical variates U and V and the respective projection matrices A and B. (3) The evaluation test data are then projected into the same space, and finally the test set correlations are computed.

Figure 3

Fig. 3. Effect of different noise levels for evaluation training data: (a) Correlation sum R(X, Y), and (b) Gaussian–MI score G(X, Y). Lighter the tone of the curve, higher the noise level.

Figure 4

Fig. 4. Effect of different noise levels for evaluation test data: (a) Correlation sum R$(\Xt, \Yt)$, and (b) Gaussian–MI score G$(\Xt, \Yt)$. Medians are drawn with solid lines. For consistency, also the first and third quartiles (dashed lines) are drawn, although these are very close to the median in these figures.

Figure 5

Fig. 5. Evaluation training set results for data with 50 intrinsic dimensions: (a) Correlation sum, and (b) Gaussian–MI score. In subset, a random subset of D dimensions of X and Y are selected. In PCA, the D first principal components are applied.

Figure 6

Fig. 6. Evaluation test set results for data with 50 intrinsic dimensions: (a) Correlation sum, and (b) Gaussian–MI score. In subset, a random subset of D dimensions of X and Y are selected. In PCA, the D first principal components are applied. Medians are drawn with solid lines and the first and third quartiles with dashed lines.

Figure 7

Table 2. The number of sentences, word occurrences, and word forms in the English–Finnish data sets

Figure 8

Fig. 7. Evaluation test and training set results for 100-, 300-, and 1,000-dimensional SVD features for different sizes of evaltrain set: (a) Correlation sum, and (b) Gaussian–MI score. Solid lines show the evaltest scores and dotted lines the evaltrain scores. The peaks in the evaltrain scores occur when the number of samples equals the number of dimensions.

Figure 9

Table 3. The evaluated dimensionality reduction methods. is the original data matrix and X is the reduced data matrix

Figure 10

Fig. 8. Results for different dimension reduction methods: (a) Absolute sum of correlations. The dashed lines show the first and third quartiles for the results of each method. (b) Relative change compared to SVD. The reference (SVD) does not have quartile lines, because the relative differences were calculated separately for each subset and the deviation is thus included in the results of the compared methods.

Figure 11

Fig. 9. Results for the different dimension reduction methods: (a) Absolute Gaussian–MI scores, and (b) relative change compared to SVD. The dashed lines show the first and third quartiles for the results.

Figure 12

Fig. 10. Individual test correlations for SVD and W-FreqSet dimensionality reductions for D = 100. Values of the correlations are shown in descending order.

Figure 13

Fig. 11. Results for different global weightings: (a) Absolute sum of correlations, and (b) relative change compared to no weighting. The dashed lines show the first and third quartiles for the results of each method.

Figure 14

Fig. 12. Results for different local weightings: (a) Absolute sum of correlations, and (b) relative change compared to no weighting. The dashed lines show the first and third quartiles for the results of each method.

Figure 15

Fig. 13. Results for different length normalizations: (a) Absolute sum of correlations, and (b) relative change compared to no normalization. The dashed lines show the first and third quartiles for the results of each method.

Figure 16

Fig. 14. Results for different sizes of training data for SVD: (a) Absolute sum of correlations, and (b) relative change compared to the one-month data set. For the year data set, we used dimensionality up to 500 only due to high computational requirements.

Figure 17

Table 4. The amount of n-gram types in the English and Finnish training data. For n > 1, n-grams occurring only once are discarded

Figure 18

Fig. 15. Correlation sums for test data using n-gram features of different lengths: (a) Absolute sum of correlations, and (b) relative change compared to words.

Figure 19

Fig. 16. Correlation sums for test data with different language pairs: (a) Absolute sum of correlations, and (b) relative change compared to Danish–Swedish.

Figure 20

Fig. 17. Translation (top) and alignment (bottom) accuracy versus correlation sum over the test data subsets. The left side shows individual values for each subset and the right side shows the mean values for the different representations. The solid lines show the best linear least squares fit of data points. The dashed horizontal line shows the average baseline result of a random choice.

Figure 21

Fig. 18. Translation and alignment accuracies versus correlation sum. The points are mean values for 10, 20, 50, 100, 200, and 500 dimensional SVD representations.

Figure 22

Table 5. Evaluation results of different dimensionality reduction methods and different settings for SVD using the correlation sum and the number of correct translations