<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="309"/><title>Domain Independent Authorship Attribution without Domain Adaptation</title><pubinfo>Proceedings of Recent Advances in Natural Language Processing,pages 309-315, Hissar, Bulgaria, 12-14 September 2011.</pubinfo><author surname="Menon" givenname="Rohith"><org  name="York University" country="Canada" city="North York"/></author><author surname="Choi" givenname="Yejin"><org  name="York University" country="Canada" city="North York"/></author></firstpageheader><frontmatter><p><b>Domain Independent Authorship Attribution without Domain Adaptation</b></p><p><b>Rohith K Menon</b></p><p>Department of Computer Science Stony Brook University rkmenon@cs.stonybrook.edu</p><p><b>Yejin Choi</b></p><p>Department of Computer Science</p><p>Stony Brook University ychoi@cs.stonybrook.edu</p></frontmatter><abstract>Automatic authorship attribution, by its nature, is much more advantageous if it is domain (i.e., topic and/or genre) indepen­dent. That is, many real world problems that require authorship attribution may not have in-domain training data readily avail­able. However, most previous work based on machine learning techniques focused only on in-domain text for authorship at­tribution. In this paper, we present com­prehensive evaluation of various stylomet-ric techniques for cross-domain authorship attribution. From the experiments based on the Project Gutenberg book archive, we discover that extremely simple techniques based on stopwords are surprisingly robust against domain change, essentially ridding the need for domain adaptation when sup­plied with a large amount of data. </abstract></header><body><section number="1" title="Introduction"><p>Many real world problems that require authorship attribution, such as forensics (e.g., Luyckx and Daelemans (2008)) or authorship dispute for old literature (e.g., Mosteller and Wallace (1984)) may not have in-domain training data readily available. However, most previous work to date has focused on authorship attribution only for in-domain text (e.g., Stamatatos et al. (1999), Luyckx and Daele­mans (2008), Raghavan et al. (2010)). On lim­ited occasions researchers include heterogeneous (cross-domain) dataset in their experiments, but they only report the performance on heteroge­neous dataset is much lower than that of homo­geneous dataset, rather than directly tacking the problem of cross-domain or domain independent authorship attribution (e.g., Peng et al. (2003)).</p><p>The lack of research for cross-domain scenarios is perhaps only reasonable, given that it is under­stood in the community that the prediction power of machine learning techniques does not transfer well over different domains (e.g., Blitzer et al. (2008)). However, the seminal work of Blitzer et al. (2006) has shown that it is possible to mitigate the problem by examining distributional differ­ence of features across different domains, and de­rive features that are robust against domain switch. Therefore, one could expect that applying domain adaptation techniques to authorship attribution can also help with cross-domain authorship attribu­tion.</p><p>Before hasting into domain adaptation for au­thorship attribution, we take a slightly differ­ent push to the problem: we first examine whether there exist domain-independent features that rarely change across different domains. If this is the case, and if such features are suffi­ciently informative, then domain adaptation might not be required at all to achieve high perfor­mance in domain-independent authorship attribu­tion. Therefore, we conduct a comprehensive em­pirical evaluation using various stylistic features that are likely to be common across different top­ics and genre.</p><p>From the experiments based on the Project Gutenberg book archive, we indeed discover stylistic features that are common across different domains. Against our expectations, some of such features, stop-words in particular, are extremely informative, essentially ridding of the need for do­main adaptation, if supplied with a large amount of data. Due to its simplicity, techniques based on stop-words scale particularly well over a large amount of data, in comparison to more compu­tationally heavy techniques that require parsing (e.g., Raghavan et al. (2010)).</p></section><section number="2" title="Domain Independent Cues for Author Identification"><p>The study of authorship attribution requires care­ful preparation of dataset, in order not to draw overly optimistic conclusions.<page local="2" global="310"/> For instance, if the dataset consists of text where each author writes about a distinctive and exclusive topic, the task of author attribution reduces to topic categorization, a much easier task in general (e.g., (Mikros and Argiri, 2007)). Such statistical models that rely on topics will not generalize well over text in previ­ously unseen topics or genre. Random collection of data is not the solution to this concern, as many authors are biased toward certain topics and genre. In order to avoid such pitfall of inadvertently ben­efiting from topic bias, we propose two different ways of data preparation: First approach is to en­sure that multiple number of authors are included per topic and genre, so that it is hard to predict the author purely based on topical words. Second approach is to ensure that multiple domains (i.e., topics and/or genre) are included per author, and that test dataset includes domains that are previ­ously unseen in the training data. Next we discuss stylistic features that are likely to be common across different domains. In this study, we compare the following set of features: (1) n-gram sequences as a baseline, (2) part of speech sequences that capture shallow syntactic patterns, (3) modified <i>tf</i><i> — idf </i>for n-gram that captures repeated phrases, (4) mood words that capture author's unique emotional traits, and (5) stop word frequencies that capture author's writ­ing habit with common words. Each of these fea­tures is elaborated below.</p><subsection number="2.1" title="N-gram Sequences as a Topic Dependent Baseline"><p>We conjecture that N-gram sequences are not robust against domain changes, as N-grams are powerful features for topic categorization (e.g., (Türkoglu et al., 2007)). We therefore set N-gram based features as baseline to quantify how much domain change affects the performance. Normal­ized frequency of the most frequent 100 stemmed (Porter, 1997) 3-grams<footnote anchor="1"/> are encoded as features.</p><p><b>2.2 3-gram Part-of-Speech Sequences to Capture Favorite Sentence Structure</b></p><p>To capture the syntactic patterns unique to authors, we use 3-gram sequence of part-of-speech (POS) tags. To be robust across domain change, we use</p><p>'For all ngram based features, 3-gram (N=3) was chosen because increasing N increased sparseness and decreasing N failed to capture common phrases.</p><p>only the most frequent 100 3-grams of part-of-speech tags as features. To encode a feature from each such 3-gram POS sequence, we use the fre­quency of each POS sequence normalized by the number ofPOS grams in the document. We expect these shallow syntactic patterns will help charac­terize the favorite sentence structure used by the authors. We make use of Stanford parser (Klein and Manning, 2003) to tag the part-of-speech tags for the given document.</p></subsection><subsection number="2.3" title="Modified tf — idf for 3-gram Sequences"><p><i>Tf</i><i> — idf </i>provides a score to a term indicating how informative each term is, by multiplying the fre­quency of the term within the document (term fre­quency) by the rarity ofthe term across corpus (in­verse document frequency). <i>tf</i><i> </i><b>— </b><i>idf </i>is known to be highly effective for text categorization. In this work, we experiment with modified tf <b>— </b>idf in or­der to accommodate the nature of author attribu­tion more directly. We propose two such variants:</p><p><b><i>tf-iAf - Term-Frequency Inverse-Author-Frequency</i></b></p><p>In this variant, we take inverse-awfAor-frequency instead of inverse-docwmenf-frequency, as the terms that occur across many authors are not as informative as the terms unique to a given author. For training data, we compute tf-iAf based on known authors of each document, however in test data, we do not have access to the authors of each document. Therefore, we set tf-iAf of the test data as tf of the test data weighted by <i>iAf </i>of the training data. We generate these features for top 500 3-gram sequences ordered by tf-iAf scores from each author. We compute different tf-iAf values for different authors. The exact formula we use for a given author i is given below:</p><p><i>Tfiaf</i><b><i>i</i></b><b><i> </i></b>= ]T      <b>* </b>iafi<footnote anchor="2"/>j=i <i>N</i><b><i>ij</i></b> where <i>f</i><b><i>ij </i></b>is the frequency of a 3-gram for <i>authoT</i><b><i>i </i></b>in document <i>D</i><b><i>ij</i></b>, <i>D</i><b><i>ij </i></b>is the <i>jth </i>document by <i>author,,,,</i><i> </i><i>N</i><b><i>ij </i></b>is the total number of 3-grams in document <i>D</i><b><i>ij</i></b>, and <i>Ki</i><i> </i>is the number of documents written by <i>author</i><b><i>i</i></b><i>.</i><i></i><i> </i>We take the second power of inverse-author-frequency, as the number of au­thors is much smaller than the number of docu­ments in a corpus.</p><page local="3" global="311"/><p><b><i>tf-iAf-tpf- Term-Frequency Inverse-Author-Frequency Topic-Frequency</i></b></p><p>In this variant, we augment the previous approach with topic-frequency, which is the number of dif­ferent topics a given term appears for a given author. We generate these features for top 500 3-gram sequences ordered by <i>tf</i><i> -iAf -tpf </i>scores from each author. Again, we compute different <i>tf</i><i> -iAf -tpf </i>values for different authors. The ex­act formula for a given author <i>i </i>is given below:</p><p><i>TfiafTpf</i><b><i>i</i></b><b><i> </i></b><i>=</i><i> </i><i>Tfiaf</i><b><i>i</i></b><b><i> </i></b><i>* tpf</i><b><i>i<footnote anchor="2"/></i></b> where we take the second power to the topic fre­quency, as the number ofdistinctive topics is small in general.</p></subsection><subsection number="2.4" title="Mood Words to Capture Emotional Traits"><p>We conjecture that mood words<footnote anchor="2"/> will reveal unique emotional traits of each author. In particu­lar, either the use of certain types of mood words, or the lack of it, will reveal common mood or tone in documents that is orthogonal to the top­ics or genre. To encode features based on mood words, we include the normalized frequency of each mood word in a given document in the fea­ture vector. Normalization is done by dividing fre­quency by total number of words in the document. We consider in total a list of 859 mood words.</p></subsection><subsection number="2.5" title="Stop-words to Capture Writing Habit"><p>Many researchers reported that the usage patterns of stop-words are a very strong indication of writ­ing style (Arun et al. (2009), Garca and Martn (2007)). Based on 659 stop words obtained, we encode features as the frequency of each stop-word normalized by total number of words in the document <footnote anchor="3"/>. These normalized frequencies indi­cate two important characteristics of stop-word us­age by authors:</p><p>(1) Relative usage of function words by authors.</p><p>(2) Fraction of function words in document.</p></subsection></section><section number="3" title="Dataset with Varying Degree of Domain Change"><p>In order to investigate the topic influence on au­thorship attribution, we need a dataset that consists of articles written by prolific authors who wrote on a variety of topics. Furthermore, it would be ideal if the dataset already includes topic categorization, so that we do not need to manually categorize each article into different topics and genre.</p><footnote label="2">The list of mood words is obtained from http: // moods8 5.wordpress.com/mood-list/</footnote><footnote label="3">The list of stopwords is obtained from http : //www. ranks.nl/resources/stopwords.html</footnote><p>Fortunately, there is such a dataset available online: we use the project Gutenberg book archive (http : //www. gutenberg. org) that contains an extensive collection of books. In order to remove topic bias in authors, we rely on the cat­alog of project Gutenberg. Categories of project Gutenberg correspond to the mixture of topics and genre.</p><p>There are two types of categories defined in project Gutenberg: the first is LCSH (Library of Congress Subject Headings)<footnote anchor="4"/> and the second is LCC (Library of Congress Classification).<footnote anchor="5"/> Ex­amples of LCSH and LCC categories are shown in Table 1 and Table 2 respectively. As can be seen in Table 1, the categories of LCSH are more fine­grained, and some of the categories are overlap­ping eg: <i>"history" </i>and <i>"history and criticism". </i>In contrast, the categories of LCC are more coarse­grained so that they are more distinctive from each other.</p><p>In the next section, we present following four experiments in the order of increasing difficulty. We use the term topics, genre, and domains in­terchangeably in what follows, as LCC &amp; LCSH categories are mixed as well.</p><p>(1) <b>Balanced topic: </b>Topics in the test data are guaranteed to appear in the training data.</p><p>(2) <b>Semi-disjoint topic using LCSH: </b>Topics in the test data differ from topics in the training according to LCSH.</p><p>(3) <b>Semi-disjoint topic using LCC: </b>Topics in the test data differ from topics in the training according to LCC.</p><p>(4) <b>Perfectly-disjoint topic using LCC: </b>Topics in the test data differ from topics in the train­ing according to LCC, and documents with unknown categories are discarded to create perfectly disjoint training and test data, while in (2) and (3) documents with unknown cate­gories are added to maintain large dataset.</p><p>http ://www.loc.gov/aba/cataloging/ subj ect/weeklylists/<page local="4" global="312"/></p><footnote label="5">http://www.loc.gov/catdir/cpso/lcco/</footnote><p>American drama, Eugenics, American poetry, Fairy tales, Architecture, Family, Art, Farm life, Authors, Fiction, Bal­lads, Fishing, Balloons, France, Children, Harbors, Civil War, History, Conduct of life, History and criticism, Cor­respondence, History - Revolution, Country life, Cycling, Description and travel, ...</p><table caption="Table 1: Examples of LCSH Categories."></table><p>Music And Books On Music, Philosophy, Psychology, Fine Arts, Religion, Auxiliary Sciences Of History, Language And Literature, World History (Non Americas), Science, History OfThe Americas, Medicine, Geography, Anthropol­ogy, Agriculture, Recreation, Social Sciences, Technology, Political Science, ...</p><p>Table 3: Authorstatistics. Numbers inparentheses <i>(x,</i><i> </i><i>y)</i><i> </i>under LCC and LCSH columns indicate the number of books categorized (x) and the number of unique categories the author has written in <i>(y).</i></p><p>demonstrate strong performance, mostly achiev­ing F-score and accuracy well above 90%, with the exception of TfIafTpf.</p><p>Stop-word based features achieve the highest performance with 98.45% in F-score and 97.96% in accuracy. This echoes previously reported stud­ies (e.g., Arun et al. (2009)) that indicate that stop words can reveal author's unique writing styles and habits. We are nonetheless surprised to see the performance of stopword based features is higher than that of more sophisticated approaches such as TfIafor TfIafTpf.</p><p>It is unexpected to see that tfiaf-tpf performs worse than tfiaf or POS-grams. We conjecture the cause can be attributed to the fact that we calculate tfiaf-tpf only from the set of books which are cat­egorized by LCC. We calculate tfiaf-tpf only from LCC categorized books because only these cate­gories at the root level are truly disjoint. Because</p><table caption="Table 2: Examples of LCC Categories."></table></section><section number="4" title="Experimental Results"><p>We present four experiments in the order of in­creasing difficulty. In all experiments, we use the SVM classifier with sequential minimal optimiza­tion (SMO) implementation available in the Weka package (Hall et al., 2009). We used polynomial kernel with regularization parameter C = 1.</p><subsection number="4.1" title="Balanced Topic"><p><b>Configuration </b>We identify a set of 14 authors who had written at least 25 books and also had written books in at least 6 categories. This amounts to 844 books in total for all authors. Ta­ble 3 tabulates the author statistics.</p><p>In our first experiment, we randomly split the 844 books into 744 training data and 100 testing data with 14 authors. This setting is simpler than true topic disjoint scenario where there is no in­tersection between topics in training and testing sets. Nevertheless, this setting is not an easy one, as we only consider authors who have written for more than 6 topics, which makes it harder to ben­efit from topic bias in authors. Note that a random guess will give an accuracy of only.</p><p><b>Result </b>Table 4 tabulates the accuracy, precision, recall and f-score obtained for various features de­scribed in Section 2. Note that f-scores (including precision and recall) are first computed for each author, then we take the macro average over dif­ferent authors. We perform 8-way cross valida­tion for this setup. The first row — N-GRAM — is the baseline. It is interesting that n-gram-based features suffer in this experimental setting already, even though we do not deliberately change the top­ics across training and test data. All other features we select tfiaf-tpf ngrams only from the subset of the books in training, it is possible that we could have missed some ngrams which would otherwise have high tfiaf-tpf scores.<page local="5" global="313"/></p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Author</p></td><td class="cell"><p>Total</p></td><td class="cell"><p>LCC</p></td><td class="cell"><p>LCSH</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Andrew Lang</p></td><td class="cell"><p>63</p></td><td class="cell"><p>(36,</p></td><td class="cell"><p>8)</p></td><td class="cell"><p>(16, 12)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Charles Kingsley</p></td><td class="cell"><p>5</p></td><td class="cell"><p>(10,</p></td><td class="cell"><p>6)</p></td><td class="cell"><p>(2, 2)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Charlotte Mary</p></td><td class="cell"><p>59</p></td><td class="cell"><p>(27,</p></td><td class="cell"><p>5)</p></td><td class="cell"><p>(11,9)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>G K Chesterton</p></td><td class="cell"><p>37</p></td><td class="cell"><p>(22,</p></td><td class="cell"><p>7)</p></td><td class="cell"><p>(7, 6)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>H G Wells</p></td><td class="cell"><p>3</p></td><td class="cell"><p>(38,</p></td><td class="cell"><p>7)</p></td><td class="cell"><p>(12, 10)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Jacob Abbott</p></td><td class="cell"><p>8</p></td><td class="cell"><p>(33,</p></td><td class="cell"><p>9)</p></td><td class="cell"><p>(15,14)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>John Morley</p></td><td class="cell"><p>27</p></td><td class="cell"><p>(8,</p></td><td class="cell"><p>5)</p></td><td class="cell"><p>(6, 6)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>John Ruskin</p></td><td class="cell"><p>38</p></td><td class="cell"><p>(16,</p></td><td class="cell"><p>8)</p></td><td class="cell"><p>(8, 7)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>R M Ballantyne</p></td><td class="cell"><p>97</p></td><td class="cell"><p>(85,</p></td><td class="cell"><p>9)</p></td><td class="cell"><p>(5, 5)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Robert Louis</p></td><td class="cell"><p>80</p></td><td class="cell"><p>(28,</p></td><td class="cell"><p>2)</p></td><td class="cell"><p>(19, 6)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Thomas Carlyle</p></td><td class="cell"><p>35</p></td><td class="cell"><p>(6,</p></td><td class="cell"><p>5)</p></td><td class="cell"><p>(1, 1)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Thomas Henry</p></td><td class="cell"><p>1</p></td><td class="cell"><p>(12,</p></td><td class="cell"><p>)</p></td><td class="cell"><p>(4, 3)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>William Dean</p></td><td class="cell"><p>95</p></td><td class="cell"><p>(38,</p></td><td class="cell"><p>6)</p></td><td class="cell"><p>(25, 19)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>William Henry</p></td><td class="cell"><p>113</p></td><td class="cell"><p>(2 ,</p></td><td class="cell"><p>)</p></td><td class="cell"><p>(2, 2)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 4: Balanced Topic (Experiment-1)" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Acc</p></td><td class="cell"><p>Prec</p></td><td class="cell"><p>Rec</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NGram</p></td><td class="cell"><p>61.22</p></td><td class="cell"><p>64.75</p></td><td class="cell"><p>59.51</p></td><td class="cell"><p>58.02</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIaf</p></td><td class="cell"><p>90.82</p></td><td class="cell"><p>94.69</p></td><td class="cell"><p>91.54</p></td><td class="cell"><p>92.10</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIafTpf</p></td><td class="cell"><p>84.69</p></td><td class="cell"><p>86.02</p></td><td class="cell"><p>85.61</p></td><td class="cell"><p>84.96</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POSGram</p></td><td class="cell"><p>91.84</p></td><td class="cell"><p>93.19</p></td><td class="cell"><p>91.22</p></td><td class="cell"><p>91.51</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoodWord</p></td><td class="cell"><p>95.92</p></td><td class="cell"><p>94.99</p></td><td class="cell"><p>96.28</p></td><td class="cell"><p>95.22</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>StopWord</p></td><td class="cell"><p><b>97.96</b></p></td><td class="cell"><p><b>99.21</b></p></td><td class="cell"><p><b>97.92</b></p></td><td class="cell"><p><b>98.45</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p>93.88</p></td><td class="cell"><p>95.30</p></td><td class="cell"><p>94.68</p></td><td class="cell"><p>94.41</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>High performance for mood words, reaching 95.22% in F-score and 95.92% in accuracy con­firms our hypothesis that it can reveal author's unique emotional traits that are orthogonal to par­ticular topics.</p><p><b>Note on the Baseline </b>Because the baseline scores are very low, we also experimented with other variants with baselines not included in the table for brevity. First, we tested with increased number of n-grams. That is, instead of using top 100 3-grams per document, we experiment with top 500 3-grams per document. This did not change the performance much however. We also tried to incorporate all 3-grams, but we could not fit such features based on all 3-grams into mem­ory, as our dataset consists of many books in their entirety. We conclude the discussion on the first experiment by highlighting two important obser­vations:</p><p>• First, POS 3-gram features are also based on top 100 POS 3-grams per document,</p><p>and <i>these unlexicalized features perform ex­tremely well with 91.51% f-score and91.84% accuracy, using the identical number offea-tures as the baseline.</i></p><p>• Second, all features presented here are highly <i>efficient </i>and <i>scalable.</i></p></subsection><subsection number="4.2" title="Semi-Disjoint Topic using LCSH"><p><b>Configuration </b>In the second experiment, we use categories from LCSH. As shown in Table 1, these categories were not completely disjoint. As a result, we split training and test data with manual inspection on the LCSH categories to ensure train­ing and test data are as disjoint as possible. In this experiment, we focus on 6 authors out of 14 au­thors considered in the previous dataset in order to make it easier to split training and test data based on disjoint topics. In particular, we place books in fiction, essays and history categories in the train­ing set, and the rest in the test set. This results in 202 books for training and 72 books for testing.</p><p>Despite our effort, this split is not perfect: first, it might still allow topics with very subtle differ­ences to show up in both training and test data. Second, the training set includes books that are not categorized by LCSH categories.  As a result, these books with unknown categories might accidentally contain books whose topics overlap with the topics included in the test data. Never­theless, author attribution becomes a much harder task than before, because a significant portion of training and test data consists of disjoint topics.</p><p><b>Result </b>Table 5 tabulates the results. As ex­pected, the overall performance drops for almost all approaches. The only exceptional case is stop word based features, the top performer in the previous experiment. It is astonishing that the performance of stop word based features in fact does not drop at all, achieving 98.72% in f-score and 98.61% in accuracy. As before, the mixture of all features actually decrease the performance. Overall the performance of most approaches look strong however, as most achieve scores well above 80% in f-score and accuracy. Baseline performs very poorly again, as n-grams are more sensitive to topic changes than other features.</p></subsection><subsection number="4.3" title="Semi-Disjoint Topic using LCC"><p><b>Configuration </b>For the third experiment, we use categories from LCC instead of LCSH. As de­scribed earlier, top categories of LCC are more disjoint than those of LCSH. We choose 5 authors who have written in "Language and literature" in addition to other categories. We then create a training set with books in categories that are not "Language and Literature". We also include books with unknown categories into the training dataset to maintain a reasonably large dataset. The test set consists of books in a single topic "Language and Literature". This split results in 146 books for training, and 112 books for testing.</p><p><b>Result </b>Table 6 tabulates the result. Again, the f-score (including precision and recall) are first computed per-author, then we take the macro averfact, the performance of tfiaf-tpf is now almost as good as that of stop word based features, our all time top performer that achieves 97.<page local="6" global="314"/>13% in f-score and 97.30% in accuracy in this experiment. Mood words and pos-grams, previously high performing approaches do not appear to be very robust with drastic domain changes.</p><table caption="Table 5: Semi-Disjoint Topics using LCSH (Experiment-2)" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Acc</p></td><td class="cell"><p>Prec</p></td><td class="cell"><p>Rec</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NGram</p></td><td class="cell"><p>52.78</p></td><td class="cell"><p>57.69</p></td><td class="cell"><p>53.61</p></td><td class="cell"><p>52.66</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIaf</p></td><td class="cell"><p>87.50</p></td><td class="cell"><p>89.73</p></td><td class="cell"><p>86.15</p></td><td class="cell"><p>84.53</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIafTpf</p></td><td class="cell"><p>81.94</p></td><td class="cell"><p>82.29</p></td><td class="cell"><p>80.22</p></td><td class="cell"><p>79.47</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POSGram</p></td><td class="cell"><p>86.11</p></td><td class="cell"><p>88.89</p></td><td class="cell"><p>84.81</p></td><td class="cell"><p>85.57</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoodWord</p></td><td class="cell"><p>87.50</p></td><td class="cell"><p>88.28</p></td><td class="cell"><p>84.90</p></td><td class="cell"><p>85.77</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>StopWord</p></td><td class="cell"><p><b>98.61</b></p></td><td class="cell"><p><b>98.81</b></p></td><td class="cell"><p><b>98.72</b></p></td><td class="cell"><p><b>98.72</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p>93.06</p></td><td class="cell"><p>94.23</p></td><td class="cell"><p>92.44</p></td><td class="cell"><p>92.47</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></subsection><subsection number="4.5" title="Perfectly-Disjoint Topic using LCC with Reduced Data"><p>In this section, we briefly report how the perfor­mance of all approaches changes when we reduce the size of the data. For brevity, we report this only with respect to the last experiment. Table 8 show the results, when we reduce the size of data down to 10% and 50% respectively, by taking the first <i>x%</i><i> </i>of each book in the training and test data. In comparison to Table 7, overall performance drops with reduced data. From these results, we con­clude that (1) when faced with data reduction, the relative performance of stop word based features stands out even more, and that (2) high perfor­mance of simple features are attainable when sup­plied with sufficiently large amount of data.</p></subsection></section><section number="5" title="Related Work"><p>Stamatatos (2009) provides an excellent survey of the field. One of the prominent approaches in authorship attribution is the use of style markers (Stamatatos et al., 1999). Our approaches make use of such style markers implicitly and more sys­tematically.</p><p>The work of Peng et al. (2003) by using char­acter level n-grams achieve state-of-the-art per­formance (90%) on homogeneous (in-domain) but drops significantly (74%) on heterogeneous (cross-domain) data in accuracy. In contrast, we present approaches that perform extremely well even on heterogeneous data.</p><table caption="Table 6: Semi-Disjoint Topics using LCC (Experiment-3)"></table><p>age over all authors. Surprisingly, the performance of all approaches increased. We conjecture the reason to be overlap of unknown categories with categories in the test dataset.</p><p>Stop word and mood based features achieve 100% prediction accuracy in this setting. How­ever, we should like to point out that this extremely high performance of simple features are attainable only when supplied with sufficiently large amount of data. See Section 4.5 for discussions related to the performance change with reduced data size.</p><subsection number="4.4" title="Perfectly-Disjoint Topic using LCC"><p><b>Configuration </b>Finally, we experiment on a set of data which were truly topic independent, and we try to learn the author cues from one topic and use it to predict the authors of books written in different topics. In this experiment, the training set consists of books in a single topic "Language and Literature", which used to be the test dataset in the previous experiment. For test, we take the training dataset from the previous experiment and remove those books with unknown categories to enforce fully disjoint topics between training and testing. This split results in 112 documents in the training data and 37 documents in the test data.</p><p><b>Result </b>Table 7 tabulates the result. Note that this experiment is indeed the harder that the pre­vious experiment, as the performance of the most approaches dropped significantly. Here we find that the performance of tfiaf-tpf is very strong achieving 95.33% in f-score and 94.59% in ac­curacy. Note that in all of previous experiments, tfiaf-tpf performed considerably worse than tfiaf. This is because this experiment is the only exper­iment that discards all books with unknown cat­egories, which makes it possible for tfiaf-tpf to exploit the topic information more accurately. In<page local="7" global="315"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Acc</p></td><td class="cell"><p>Prec</p></td><td class="cell"><p>Rec</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NGram</p></td><td class="cell"><p>70.54</p></td><td class="cell"><p>70.95</p></td><td class="cell"><p>64.88</p></td><td class="cell"><p>65.84</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIaf</p></td><td class="cell"><p>93.75</p></td><td class="cell"><p>95.66</p></td><td class="cell"><p>89.76</p></td><td class="cell"><p>91.37</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIafTpf</p></td><td class="cell"><p>88.39</p></td><td class="cell"><p>91.89</p></td><td class="cell"><p>82.18</p></td><td class="cell"><p>83.40</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POSGram</p></td><td class="cell"><p>93.75</p></td><td class="cell"><p>94.80</p></td><td class="cell"><p>89.23</p></td><td class="cell"><p>90.14</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoodWord</p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>StopWord</p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"><p><b>100.00</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p>98.21</p></td><td class="cell"><p>98.67</p></td><td class="cell"><p>96.67</p></td><td class="cell"><p>97.51</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 7: Perfectly-Disjoint Topics using LCC (Experiment-4)" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Acc</p></td><td class="cell"><p>Prec</p></td><td class="cell"><p>Rec</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NGram</p></td><td class="cell"><p>56.76</p></td><td class="cell"><p>55.33</p></td><td class="cell"><p>55.50</p></td><td class="cell"><p>53.07</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIaf</p></td><td class="cell"><p>86.49</p></td><td class="cell"><p>89.00</p></td><td class="cell"><p>89.39</p></td><td class="cell"><p>87.35</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIafTpf</p></td><td class="cell"><p>94.59</p></td><td class="cell"><p>95.00</p></td><td class="cell"><p>96.36</p></td><td class="cell"><p>95.33</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POSGram</p></td><td class="cell"><p>64.86</p></td><td class="cell"><p>69.57</p></td><td class="cell"><p>71.17</p></td><td class="cell"><p>69.33</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoodWord</p></td><td class="cell"><p>81.08</p></td><td class="cell"><p>83.83</p></td><td class="cell"><p>83.12</p></td><td class="cell"><p>81.84</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>StopWord</p></td><td class="cell"><p><b>97.30</b></p></td><td class="cell"><p><b>97.50</b></p></td><td class="cell"><p>97.14</p></td><td class="cell"><p>97.13</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p><b>97.30</b></p></td><td class="cell"><p><b>97.50</b></p></td><td class="cell"><p><b>98.18</b></p></td><td class="cell"><p><b>97.71</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 8: Perfectly-Disjoint Topics using LCC (Re­duced to 10% and 50% ofthe original data)"></table><p>Another interesting technique that is explored for authorship attribution is the use of PCFG in the work of Raghavan et al. (2010). They show that PCFG models are effective in authorship attribu­tion, although their experiments were conducted only on homogeneous datasets. The approaches studied in this paper are much simpler and highly scalable, while extremely effective.</p></subsection></section><section number="6" title="Conclusion"><p>We have presented a set of features for authorship attribution in a domain independent setting. We have demonstrated that the features we calculate are effective in predicting authorship while being robust against topic changes. We show the robust­ness of our features against topic changes by eval­uating the features under increasing topic disjoint property of training and test documents. These ex­periments substantiate our claim that the features we propose capture the stylistic traits of authors that persist across multiple domains. The simplic­ity of our features also makes it scalable and hence can be applied to large scale data.</p><table caption="Table 8: Perfectly-Disjoint Topics using LCC (Reduced to 10% and 50% ofthe original data)" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Acc-o</p></td><td class="cell"><p><i>F</i>1-0</p></td><td class="cell"><p>Acc5o</p></td><td class="cell"><p><i>F1</i>5o</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NGram</p></td><td class="cell"><p>37.84</p></td><td class="cell"><p>39.40</p></td><td class="cell"><p>48.65</p></td><td class="cell"><p>46.78</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIaf</p></td><td class="cell"><p>32.43</p></td><td class="cell"><p>30.57</p></td><td class="cell"><p>72.97</p></td><td class="cell"><p>75.43</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TfIafTpf</p></td><td class="cell"><p>32.43</p></td><td class="cell"><p>33.11</p></td><td class="cell"><p>62.16</p></td><td class="cell"><p>62.87</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POSGram</p></td><td class="cell"><p>24.32</p></td><td class="cell"><p>31.16</p></td><td class="cell"><p>62.16</p></td><td class="cell"><p>64.23</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MoodWord</p></td><td class="cell"><p>40.54</p></td><td class="cell"><p>36.77</p></td><td class="cell"><p>70.27</p></td><td class="cell"><p>67.10</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>StopWord</p></td><td class="cell"><p><b>64.86</b></p></td><td class="cell"><p><b>65.38</b></p></td><td class="cell"><p><b>91.89</b></p></td><td class="cell"><p><b>92.12</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>All</p></td><td class="cell"><p>37.84</p></td><td class="cell"><p>39.24</p></td><td class="cell"><p>75.68</p></td><td class="cell"><p>77.01</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><references><p>R. Arun, V. Suresh, and C.E.V Madhavan. 2009. Stopword graphs and authorship attribution in text corpora. In <i>Semantic Computing, 2009. ICSC '09. IEEE International Conference on, </i>pages 192 -196.</p><p>John Blitzer, Ryan McDonald, and Fernando Pereira. 2006. Domain adaptation with structural correspon­dence learning. In <i>Conference on Empirical Meth­ods in Natural Language Processing, </i>Sydney, Aus­tralia.</p><p>John Blitzer, Koby Crammer, Alex Kulesza, Fernando Pereira, and Jenn Wortman. 2008. Learning bounds for domain adaptation. In <i>Advances in Neural In­formation Processing Systems 21, </i>Cambridge, MA.</p><p>MIT Press.</p><p>Antonio Miranda Garca and Javier Calle Martn. 2007. Function words in authorship attribution studies.</p><p><i>Literary and Linguistic Computing, </i>22(1):49-66.</p><p>Mark Hall, Eibe Frank, Geoffrey Holmes, Bernhard Pfahringer, Peter Reutemann, and Ian H. Witten. 2009. The weka data mining software: an update. <i>SIGKDD Explor. Newsl., </i>11:10-18, November.</p><p>Dan Klein and Christopher D. Manning. 2003. A parsing: fast exact viterbi parse selection. In <i>Pro­ceedings of the 2003 Conference of the North Amer­ican Chapter ofthe Association for Computational Linguistics on Human Language Technology - Vol­ume 1, </i>NAACL '03, pages 40-47, Stroudsburg, PA, USA. Association for Computational Linguistics.</p><p>Kim Luyckx and Walter Daelemans. 2008. Author­ship attribution and verification with many authors and limited data. In <i>Proceedings ofthe 22nd In­ternational Conference on Computational Linguis­tics (Coling 2008), </i>pages 513-520, Manchester, UK, August. Coling 2008 Organizing Committee.</p><p>George Mikros and Eleni K. Argiri. 2007. Investigat­ing topic influence in authorship attribution. In PAN.</p><p>Frederick Mosteller and David L. Wallace. 1984. <i>Ap­plied Bayesian and Classical Inference: The Case of the Federalist Papers. </i>Springer-Verlag.</p><p>Fuchun Peng, Dale Schuurmans, Shaojun Wang, and VladoKeselj. 2003. Language independent author­ship attribution using character level language mod­els. In <i>Proceedings ofthe tenth conference on Euro­pean chapter ofthe Association for Computational Linguistics - Volume 1, </i>EACL '03, pages 267-274,</p><p>Stroudsburg, PA, USA.</p><p>M. F. Porter, 1997. <i>An algorithm for suffix stripping, </i>pages 313-316. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA.</p><p>Sindhu Raghavan, Adriana Kovashka, and Raymond Mooney. 2010. Authorship attribution using prob­abilistic context-free grammars. In <i>Proceedings of the ACL 2010 Conference Short Papers, </i>ACLShort '10, pages 38-42, Stroudsburg, PA, USA.</p><p>E. Stamatatos, N. Fakotakis, and G. Kokkinakis. 1999. Automatic authorship attribution. In <i>Proceedings of the ninth conference on European chapter ofthe As­sociation for Computational Linguistics, </i>EACL '99, pages 158-164, Stroudsburg, PA, USA.</p><p>Efstathios Stamatatos. 2009. A survey of modern au­thorship attribution methods. <i>J. Am. Soc. Inf. Sci. Technol., </i>60:538-556, March.</p><p>Filiz Türkoglu, Banu Diri, and M. Fatih Amasyali. 2007. Author attribution of turkish texts by feature mining. In <i>Proceedings ofthe intelligent computing 3rd international conference on Advanced intelli­gent computing theories and applications, </i>ICIC'07, pages 1086-1093, Berlin, Heidelberg. Springer­Verlag.</p></references></body></article>