<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:ns2="http://www.tei-c.org/ns/Examples">
    <teiHeader>
        <fileDesc>
            <titleStmt>
                <title>The influence of data homogeneity on NLP system performance</title>
            </titleStmt>
        </fileDesc>
    </teiHeader>
    <text>
        <front>
            <div type="abs">
                <head>Abstract</head>
                <p>In this work we study the influence of corpus homogeneity on corpus-based NLP system performance. Experiments are performed on both stochastic language models and an EBMT system translating from Japanese to English with a large bicorpus, in order to reassess the assumption that using only homogeneous data tends to make system performance go up. We describe a method to represent corpus homogeneity as a distribution of similarity coefficients based on a crossentropic measure investigated in previous works. We show that beyond minimal sizes of training data the excessive elimination of heterogeneous data proves prejudicial in terms of both perplexity and translation quality: excessively restricting the training data to a particular domain may be prejudicial in terms of In-Domain system performance, and that heterogeneous, Out-ofDomain data may in fact contribute to better sytem performance.</p>
            </div>
        </front>
        <body>
            <div>
                <p/>
            </div>
            <div1>
                <head xml:id="sec1">Introduction</head>
                <p>Homogeneity of large corpora is still an unclear notion. In this study we make a link between the notions of similarity and homogeneity: a large corpus is made of sets of documents to which may be assigned a score in similarity defined by cross-entropic measures (similarity is implicitly expressed in the data). The distribution of the similarity scores of such subcorpora may then be interpreted as a representation of the homogeneity of the main corpus, which can in turn be used to perform corpus adaptation to tune a corpus based NLP system to a particular domain.</p>
                <p>(Cavaglià 2002) makes the assumption that a corpus based NLP system generally yields better results with homogeneous training data rather than heterogeneous, and experiments on a text classifier system (Rainbow 1 ), to mixed conclusions. We reassess this assumption by experimenting on language model perplexity, and on an EBMT system translating from Japanese to English.</p>
            </div1>
            <div1>
                <head xml:id="sec2">A framework for corpus homogeneity</head>
                <div2>
                    <head xml:id="sec2.1">Previous work on corpus similarity and homogeneity</head>
                    <p>A range of measures for corpus similarity have been put forward in past literature : (Kilgarriff and Rose 98; Kilgarriff 2001) investigated on the similarity of corpora and compared “Known Similarity Corpora” (KSC) using perplexity and cross-entropy on words, word frequency measures, and a χ 2 -test which they found to be the most robust. However(as acknowledged in (Kilgarriff and Rose 98)), using KSC requires that the two corpora chosen for comparison are sufficiently similar that the most frequent lexemes in them almost perfectly overlap. However (Liebscher 2003) showed by comparing frequency counts of different large Google Group corpora that it is not usually the case.</p>
                    <p>Measuring homogeneity by counting word/lexeme frequencies introduces additional difficulties as it assumes that the word is an obvious, well-defined unit, which is not the case in the Chinese (Sproat and Emerson 2003) or Japanese language (Matsumoto et al., 2002), for instance, where word segmentation is not trivial.</p>
                    <p>(Denoual 2004) showed that similarity between corpora could be quantified with a coefficient based on the cross-entropies of probabilistic models built upon reference data. The approach needed no explicit selection of features and was language independent, as it relied on character based models (as opposed to word based models) thus bypassing the word segmentation issue and making it applicable on any electronic data. p constructed on a training corpus T , ona test {c i 1 ..c i |s i | } a sentence of |s i | characters is: The cross-entropy H T ( A ) of an N-gram model corpus A = {s 1 ,..,s Q } of Q sentences with s i =</p>
                    <p>H T ( A )= [BAR] ∑ Q i =1 [ ∑ ∑ Q i |s j =1 =1 i | |s −logp i | i j ] (1) where p i j = p ( c i j |c i j−N +1 ..c i j− 1 ) .</p>
                    <p>We therefore define a scale of similarity between two corpora on which to rank any third given one. Two reference corpora T 1 and T 2 are selected by the user, and used as training sets to compute N-gram character models. The crossentropies of these two reference models are estimated on a third test set T 3 , and respectively Eq. 1. Both model cross-entropies are estimated and H T 1 ( T 1 ) , H T 2 ( T 1 ) and H T 2 ( T 2 ) so as to obtain the weights W 1 and W 2 of references T 1 and T 2 : named H T 1 ( T 3 ) and H T 2 ( T 3 ) as in the notation in according to the other reference , i.e., H T 1 ( T 2 ) W 1 = [BAR] H H T T 1 1 ( ( T T 3 2 ) ) −H −H T T 1 1 ( ( T T 1 1 ) ) (2) and: W 2 = [BAR] H H T T 2 2 ( ( T T 1 3 ) ) −H −H T T 2 2 ( ( T T 2 2 ) ) (3) After which W 1 and W 2 are assumed to be the weights of the barycentre between the userchosen references. Thus I ( T 3 )= [BAR] W 1 W + 1 W 2 = [BAR] 1+ 1 [BAR] W W 2 1 (4) is defined to be the similarity coefficient between reference sets 1 and 2, which are respectively corpus T 1 and corpus T 2 . Given the previous asmore, any given corpus T 3 yields a score between</p>
                    <p>This framework may be applied to the quantification of the similarity of large corpora, by projecting them to a scale defined implicitly via the reference data selection. In this study we shall specifically focus on a scale of similarity bounded by a sublanguage of spoken conversation on the one hand, and a sublanguage of written style media on the other. sumptions, I ( T 1 )=0 and I ( T 2 )=1 ; furtherthe extrema I ( T 1 )=0 and I ( T 2 )=1</p>
                    <p>We build upon this previous work in order to represent intra-corpus homogeneity.</p>
                </div2>
                <div2>
                    <head xml:id="sec2.2">Representing corpus homogeneity</head>
                    <p>Corpora are collected sets of documents usually originating from various sources. Whether a corpus is homogeneous in content or not is scarcely known besides the knowledge of the nature of the sources. As homogeneity is multidimensional (see (Biber 1988) and (Biber 1995) for considerations on the dimensions in register variation for instance), one cannot trivially say that a corpus is homogeneous or heterogeneous: different sublanguages show variations that are lexical, semantic, syntactic, and structural (Kittredge and Lehrberger 1982).</p>
                    <p>In this study we wish to implicitly capture such variations by applying the previously described similarity framework to the representation of homogeneity. Coefficients of similarity may be computed for all smaller sets in a corpus, the distribution of which shall depict the homogeneity of the corpus relatively to the scale defined implicitly by the choice of the reference data.</p>
                    <p>Homogeneity as depicted here is relative to the choice of reference training data, which implicitly embrace lexical and syntactic variations in a sublanguage (which are by any means not unidimensional, as argued previously). We focus as in (Denoual 2004) on a scale of similarity bounded by a sublanguage of spoken conversation on the one hand, and a sublanguage of written style media on the other.</p>
                </div2>
            </div1>
            <note n="1" place="below">See http://www.cs.cmu.edu/mccallum/bow .</note>
            <div1>
                <head xml:id="sec3">A study of the homogeneity of a large bicorpus</head>
                <div2>
                    <head xml:id="sec3.1">Data</head>
                    <p>Reference data is needed to set up a scale of similarity, and implicitly bound it.</p>
                    <p>For the sublanguage of spoken conversation we used for both English and Japanese the SLDB (Spontaneous Speech Database) corpus, a multilingual corpus of raw transcripts of dialogues described in (Nakamura et al., 1996).</p>
                    <p>For the sublanguage of written style media, we used for English a part of the Calgary 2 corpus, containing several contemporary English literature pieces 3 , and for Japanese a corpus of collected articles from the Nikkei Shinbun newspaper 4 .</p>
                    <p>The large multilingual corpus that is used in our study is the C-STAR 5 Japanese/English part of an aligned multilingual corpus, the Basic Traveller’s Expressions Corpus (BTEC).</p>
                    <p>A prerequisite of the method is that levels of data transcriptions are strictly normalized, so that the comparison is not made on the transcription method but on the underlying signal itself.</p>
                </div2>
                <div2>
                    <head xml:id="sec3.2">Homogeneity in the BTEC</head>
                    <p>The BTEC is a collection of sentences originating from 197 sets (one set originating from one phrasebook) of basic travel expressions. Here we examine the distribution of the similarity coefficients assigned to its subsets.</p>
                    <p>The corpus may be segmented in a variety of manners, however we wish to proceed in two intuitive ways: firstly, by keeping the original subdivision, i.e., one phrasebook per subset; secondly, at the level of the sentence, i.e., one sentence per subset. Figure 1 shows the similarity coefficient distributions for Japanese and English at the sentence and subset level, and Table 1 shows their means and standard deviations.</p>
                    <p>The difference in means and standard deviation . Table 1: Means ± standard deviations of the similarity coefficient distributions in Japanese and English. values can be explained by the fact that all phrasebooksdonothavethesamesizeinlines 6 . Thedistribution of similarity coefficients at the line level, however similar to the distribution at the phrasebook level, suggests in its irregularities that it is indeed safer to use a larger unit to estimate crossentropies. Moreover, we wish not to tamper with the integrity of the original subsets, that is to keep the integrity of phrasebook contents as much as possible.</p>
                    <p>On the phrasebook level, the similarity coefficient has a low correlation on both the average phrasebook length ( 0 . 178 ) and the average line length ( 0 . 278 ) (which does not make it a too “shallow” profiling method). On the other hand, correlation is high between the coefficients in Japanese and English ( 0 . 781 ), which is only to be expected intuitively.</p>
                </div2>
            </div1>
            <note n="2" place="below">The Calgary Corpus is available via anonymous ftp at ftp.cpcs.ucalgary.ca/pub/projects/text.compression.corpus . 3 Parts are entitled book1, book2 and book3. 4 The use of classical Japanese literature is not appropriate as (older) copyright-free works make use of a considerably different language. In order to maintain a certain homogeneity, we limit our study to contemporary language. 5 See http://www.c-star.org</note>
            <div1>
                <head xml:id="sec4">Experiments</head>
                <div2>
                    <head xml:id="sec4.1">Method</head>
                    <p>This work wishes to reassess the assumption that, for a same amount of training data, a corpusbased NLP system performs better when its data tends to be homogeneous. Here we use the representation of homogeneity defined by the similarity coefficient scale to select data that tends to be homogeneous to an expected task. Experiments shall be performed both on randomly selected data, and on data selected according to their similarity coefficient. The closer the coefficient of the training data is to the coefficient of the expected task, the better.</p>
                    <p>We assume that the task is sufficiently represented by a set of data from the same domain as the large bicorpus used, the BTEC. Experiments are performed on a test set of 510 Japanese sentences which are not included in the ressource. Line level Phrasebook level Figure 1: Distributions of similarity coefficients at the sentence at level (thick line), respectively for Japanese and English. Figure 2: BLEU, NIST and mWER scores systems on amounts chosen and homogeneous BTEC data. These sentences shall first be used for language model perplexity estimation, then as input sentences for the EBMT system. The task is found to efficient for a BTEC phrasebook being 0 . 330 , the task is found to be particularly in the domain of the ressource. We examine the influence of training data size first on language model perplexity, then on the quality of translation from Japanese to English by an example-based MT system. have a coefficient of I 0 =0 . 331 . The average co-</p>
                </div2>
                <div2>
                    <head xml:id="sec4.1.1">Language model perplexity</head>
                    <p>Even if perplexity does not always yield a high correlation with NLP systems performance, it is still an indicator of language model complexity as it gives an estimate of the average branching factor ina language model. The measure is popular in the NLP community because admittedly, when Line level Phrasebook level level (thin line) and the phrasebook Percent 0 50 BTEC 100 of the original in size for EBMT built increasing of randomly perplexity decreases, the performance of systems based on stochastic models tends to increase.</p>
                    <p>We compute perplexities of character language models built on variable amounts of training data first randomly taken from the Japanese part of the BTEC, and then selected around the expected task coefficient I 0 (thresholds are determined by the amount of training data to be kept). Crossentropies are estimated on the test set, and all estimations are performed five times for the random data selections and averaged. Figure 3 shows the character perplexity values for increasBTEC and interpolated. As was expected, perplexity decreases as training data increases and tends to have an asymptotic behaviour when more data is being used as training. ing amounts of data from 0 . 5 % to 100 % of the Percent of the original BTEC in size Figure 3: Perplexity of character language models built on increasing amounts of randomly chosen BTEC and homogeneous Japanese data.</p>
                    <p>While homogeneous data yield lower perplexity scores for small amounts of training data (up to 15 %of the ressource - roughly 1 . 5 Megabytes of data), beyond this value perplexity is slightly higher than for a model trained on randomly selected data. Except for the smaller amounts of data, there seems to be no benefit in using homogeneous rather than random heterogeneous training data for model perplexity. On the contrary, excessively restricting the domain seems to yield higher model perplexities.</p>
                </div2>
                <div2>
                    <head xml:id="sec4.1.2">Automatic evaluation of the translation quality</head>
                    <p>In this section we experiment on a Japanese to English grammar-based EBMT system, HPATR (described in (Imamura 2001)), which parses a bicorpus with grammars for both source and target language, and translates by automatically generating transfer patterns from bilingual trees constructed on the parsed data. Not being a MT system based on stochastic methods, it is used here as a task evaluation criterion complementary to language model perplexity. Systems are likewise constructed on variable amounts of training data, and evaluated on the previous task of 510 Japanese sentences, to be translated from Japanese to English.</p>
                    <p>Because it is not feasible here to have humans judge the quality of many sets of translated data, we rely on an array of well known automatic evaluation measures to estimate translation quality: • BLEU (Papineni et al. 2002) is the geomet-</p>
                    <p>ric mean of the n-gram precisions in the out-</p>
                    <p>put with respect to a set of reference trans-</p>
                    <p>lations. It is bounded between 0 and 1, bet-</p>
                    <p>ter scores indicate better translations, and it</p>
                    <p>tends to be highly correlated with the fluency</p>
                    <p>of outputs; • NIST (Doddington 2002) is a variant of</p>
                    <p>BLEU based on the arithmetic mean of</p>
                    <p>weighted n-gram precisions in the output</p>
                    <p>with respect to a set of reference translations.</p>
                    <p>It has a lower bound of 0, no upper bound,</p>
                    <p>better scores indicate better translations, and</p>
                    <p>it tends to be highly correlated with the ade-</p>
                    <p>quacy of outputs; • mWER (Och 2003) or Multiple Word Error</p>
                    <p>Rate is the edit distance in words between</p>
                    <p>the system output and the closest reference</p>
                    <p>translation in a set. It is bounded between 0</p>
                    <p>and 1, and lower scores indicate better trans-</p>
                    <p>lations.</p>
                    <p>Figure 2 shows BLEU, NIST and mWER scores for increasing amounts of data from 0 . 5 % to 100 % of the BTEC and interpolated. As was expected, MT quality increases as training data increases and tends to have an asymptotic behaviour when more data is being used in training. Here again except for the smaller amounts of data (up to 3 % of the BTEC in BLEU, up to 18 % in NIST and up to 2 % in mWER), using the three evaluation methods, translation quality is equal or higher when using random heterogenous data. If we perform a mean comparison of the 510 paired score values assigned to sentences, for instance at 50% of training data, this difference is found to be statistically significant between BLEU, NIST, and mWER scores with confidence levels of 88 . 49% , 99 . 9% , and 73 . 24% respectively.</p>
                </div2>
            </div1>
            <note n="6" place="below">The BTEC phrasebooks have an average size of 824 lines with a standard deviation in size of 594 lines.</note>
            <note n="800" place="below"> 700 600 500 400 300 200 100</note>
            <note n="0" place="below">0 0.2 0.4 Japanese BTEC 0.6 0.8 Coefficients 1</note>
            <note n="1" place="below"> 0.8 0.6 0.4 0.2</note>
            <note n="50" place="below"></note>
            <note n="100" place="below"></note>
            <note n="800" place="below"> 700 600 500 400 300 200 100</note>
            <note n="0" place="below">0 0.2 English 0.4 BTEC 0.6 0.8 Coefficients 1</note>
            <note n="10" place="below"></note>
            <note n="8" place="below"></note>
            <note n="6" place="below"></note>
            <note n="4" place="below"></note>
            <note n="1" place="below"> 0.8 0.6 0.4 0.2</note>
            <note n="50" place="below"></note>
            <note n="100" place="below"></note>
            <div1>
                <head xml:id="sec5">Discussion and future work</head>
                <p>The contribution of this work is twofold:</p>
                <p>We describe a method of representing homogeneity according to a cross-entropic measure of similarity to reference sublanguages, that can be used to profile language ressources. A corpus is represented by the distribution of the similarity coefficients of the smaller subsets it contains, and atypical therefore heterogeneous data may be characterized by the lower occurrences of their values.</p>
                <p>We further observe that marginalizing such atypical data in order to restrict the domain on which a corpus-based NLP system operates does not yield better performance, either in terms of perplexity when the system is based on stochastic language models, or in terms of objective translation quality when the system is a grammar-based EBMT system.</p>
                <p>An objective for future work is therefore to study corpus adaptation with Out-of-Domain data. While (Cavaglià 2002) also acknowledged that for minimal sizes of training data, the best NLP system performance is reached with homogeneous ressources, we would like to know more precisely why and to what extent mixing In-Domain and Out-of-Domain data yields better accuracy. Concerning the representation of homogeneity, other experiments are needed to tackle the multidimensionality of sublanguage varieties less implicitly. We would like to consider multiple sublanguage references to untangle the dimensions of register variation in spoken and written language. Acknowledgements This research was supported in part by the National Institute of Information and Communications Technology. References Douglas Biber. 1988. Variation across speech and</p>
                <p>writing. Cambridge University Press. Douglas Biber. 1995. Dimensions in Register Varia-</p>
                <p>tion. Cambridge University Press. Gabriela Cavaglià. 2002. Measuring corpus homo-</p>
                <p>geneity using a range of measures for inter-</p>
                <p>document distance. Proceedings of LREC, pp. 426-</p>
                <p>431. Etienne Denoual. 2004. A method to quantify corpus</p>
                <p>similarity and its application to quantifying the de-</p>
                <p>gree of literality in a document. Proceedings of the</p>
                <p>International Workshop on Human Language Tech-</p>
                <p>nology, Hong Kong, pp.28-31. George Doddington. 2002. Automatic evaluation of</p>
                <p>machine translation quality using n-gram cooccurrence statistics. Proceedings of Human Lang. Technol. Conf. (HLT-02), pp.138-145. Kenji Imamura. 2001. Hierarchical Phrase Alignment</p>
                <p>Harmonized with Parsing. Proceedings of NLPRS,</p>
                <p>pp.377-384. Adam Kilgarriff and Tony Rose. 1998. Measures for</p>
                <p>corpus similarity and homogeneity. Proceedings of</p>
                <p>the 3rd conference on Empirical Methods in Natural</p>
                <p>Language Processing, Granada, Spain, pp. 46 - 52. Adam Kilgarriff. 2001. Comparing corpora. Interna-</p>
                <p>tional Journal of Corpus Linguistics 6:1, pp. 1-37. Richard Kittredge and John Lehrberger. 1982. Sublan-</p>
                <p>guage. Studies of language in restricted semantic</p>
                <p>domains Walter de Gruyter, editor. Robert A. Liebscher. 2003. New corpora, new tests,</p>
                <p>and new data for frequency-based corpus compar-</p>
                <p>isons. Center for Research in Language Newsletter,</p>
                <p>15:2 Yuji Matsumoto, Akira Kitauchi, Tatsuo Yamashita,</p>
                <p>Yoshitaka Hirano, Hiroshi Matsuda,Kazuma</p>
                <p>Takaoka and Masayuki Asahara. 2002. Morpholog-</p>
                <p>ical Analysis System ChaSen version 2.2.9 Manual.</p>
                <p>Nara Institute of Science and Technology. Atsushi Nakamura, Shoichi Matsunaga, Tohru</p>
                <p>Shimizu, Masahiro Tonomura and Yoshinori Sag-</p>
                <p>isaka 1996. Japanese speech databases for robust</p>
                <p>speech recognition. Proceedings of the ICSLP’96,</p>
                <p>Philadelphia, PA, pp.2199-2202, Volume 4 Franz Josef Och. 2003. Minimum Error Rate Training</p>
                <p>in Statistical Machine Translation. Proceedings of</p>
                <p>ACL 2003, pp.160-167. Kishore Papineni, Salim Roukos, Todd Ward and Wei-</p>
                <p>Jing Zhu. 2002. Bleu: a Method for Automatic</p>
                <p>Evaluation of Machine Translation. Proceedings of</p>
                <p>ACL 2002, pp.311-318. Richard Sproat and Thomas Emerson. 2003. The First</p>
                <p>International Chinese Word Segmentation Bakeoff.</p>
                <p>The Second SIGHAN Workshop on Chinese Lan-</p>
                <p>guage Processing, Sapporo, Japan.</p>
            </div1>
        </body>
        <back/>
    </text>
</TEI>
