<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Authorship Verification Using the Impostors Method</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Shachar Seidman Bar Ilan University</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2013</year>
      </pub-date>
      <abstract>
        <p>This paper describes the evaluation of the GenIM method, which participated in the PAN' 13 authorship identification competition. The approach is based on comparing the similarity between the given documents and a number of external (impostor) documents, so that documents can be classified as having been written by the same author, if they are shown to be more similar to each other than to the impostors, in a number of trials. The method showed competitive results, achieving the overall 1st ranking in the competition.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The task we wish to solve is that of determining whether a given document is an
outlier in a set of documents known to have been written by a single author. Like all
other methods that have been suggested for this task, we define some distance
measure of the given document from the other documents in the collection. The novelty of
our method is that our distance measure is not based directly on the actual similarity
between two texts (as is customary), but rather on a second-order measure defined in
Koppel and Winter (2013). The measure defined there was designed to solve the
problem of determining whether two documents, say X and Y, are by the same author.
The method proposed there, known as the “Impostors Method” (IM) is to check
whether X is more similar to Y than to each one of a set of impostors &lt;I1,…,In&gt;,
where the comparison is made for each of 100 different feature sets. The “similarity”
of X to Y is the percentage of feature sets for which X is more similar to Y than to
any of the impostor sets.</p>
      <p>For the PAN' 13 competition, we adapted the IM method to support different
languages. Our assumption was that the IM method itself is language independent, but its
parameters should be optimized for each language separately. In addition, we
generalize the IM to support the comparison of a document to a number of documents in the
most effective way.</p>
      <p>Our Method: General Impostors Method</p>
      <sec id="sec-1-1">
        <title>Original Impostors Method (IM) Implementation</title>
        <p>Koppel and Winter suggested and evaluated a few variations of the IM. In our
work we considered the following approach, which was based on the
ManyCandidate method suggested by Koppel et al. (2011):
Impostors Method
Input: &lt;X,Y&gt;: A pair of documents. S: A set of impostors.
Output: &lt;same-author&gt; or &lt;diff-author&gt;
1. Set Score=0
2. Repeat k times
a. Randomly choose rate% of the features from the full
feature pool.
b. Randomly choose n impostors from S: I1,…,In.
c. Score = Score + 1/k if Sim(X,Y) * Sim(Y,X) &gt; Sim(X,</p>
        <p>Ii) * Sim(Y, Ii), for each i∈{1,…,n}.</p>
        <p>3. Return &lt;same-author&gt; if Score &gt; ∆*; else &lt;diff-author&gt;.</p>
        <p>The given pair &lt;X, Y&gt; and impostor set S are represented as frequency feature
vectors. We experimented with various feature sets for each language, including function
words, unigrams, n-grams and n-character-grams. We evaluated the features with
different frequency representations, including binary, numeric and tf-idf. Different
distance/similarity measures were tested, including Euclidean, Manhattan and
MinMax distance. The number of iterations k as well as parameters rate% and ∆* were
optimized. All parameters were evaluated per language.</p>
        <p>
          Koppel and Winter (2013) suggest a few approaches for selecting or generating the
impostor set S. We generated such impostor sets from the web, using a search engine.
We downloaded a single web impostor corpus for each language and it was used as
the impostor set S for all problems. We used the following information retrieval
technique, suggested by Koppel and Winter (2013), to generate the impostors: We chose a
few (
          <xref ref-type="bibr" rid="ref3 ref4">3-4</xref>
          ) seed documents and randomly chose small sets (3-5 words) of words from
them (excluding function words). For each such word set, we ran a web search query
and added the top 10 returned documents to the web impostor corpus, repeating the
process until we had a large enough corpus. The returned documents were stripped of
html and such. Only the first 1,500 words for each web impostor were considered.
2.2
        </p>
        <p>General Impostors Method (GenIM) Implementation</p>
        <p>The IM method was designed to deal with a pair of documents, but our problem
was measuring whether one document is an outlier in a set of documents, so we had to
adapt IM to support it. We considered several approaches, and the highest performing
and most robust approach was running IM on all pairs consisting of the questioned
and a single known document and aggregating the results. Formally, the process is as
follows:
General Impostors Method
Input: X: The unknown document. Y = {Y1,…,Yn}: Known documents.
Output: &lt;same-author&gt; or &lt;diff-author&gt;.</p>
        <p>1. For each pair of documents &lt;X, Yi&gt; in set D:
a. Run original IM on the pair to obtain a similarity
binary score S(X, Yi).
2. Score = Avg over similarity scores ([S(X, Y1)… S(X, Yn)]).
3. Return &lt;same-author&gt; if Score &gt; θ *; else &lt;diff-author&gt;.
3</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Evaluation</title>
      <p>We used the training set in this year's competition as an evaluation set for both IM and
GenIM. Since our method consists of these two phases, we had to measure
performance and optimize parameters at each step.
3.1</p>
      <sec id="sec-2-1">
        <title>IM Parameters Optimizations</title>
        <p>25%-33% of the training documents of each language were used to measure and
optimize IM, while the others were used to evaluate GenIM. For the IM evaluation set
we used 3-4 documents as seed documents for the web impostor retrieval. The best
parameter values for IM are presented below in Table 1, while the optimum threshold
∆* is shown in Table 2 along with its performance:</p>
        <sec id="sec-2-1-1">
          <title>Spanish</title>
          <p>Character 4-Grams
MinMax</p>
          <p>We used most of the training data to choose the aggregation function and to
optimize θ* for GenIM. Results are shown in Table 3.</p>
        </sec>
        <sec id="sec-2-1-2">
          <title>Best threshold θ* &lt;diff&gt; F1 score &lt;same&gt; F1 score</title>
          <p>3.2</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>Results</title>
        <sec id="sec-2-2-1">
          <title>Accuracy - Training</title>
          <p>Accuracy - Test</p>
          <p>The results for the 2013 competition data are summarized in Table 4.</p>
          <p>English Greek Spanish
90% 75% 100%
80% 83.33% 60%</p>
        </sec>
        <sec id="sec-2-2-2">
          <title>Total</title>
          <p>82.86%
75.3%</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Conclusions</title>
      <p>The test results are fairly consistent with the training results, apart from Spanish,
where we suspect that the parameters were not optimized correctly, as a result of lack
of training examples.</p>
      <p>We showed that the GenIM method is a competitive method for the problem of
authorship verification and that it is language independent (aside from the feature
selection phase). The method can be improved by better feature selection and impostor
generation.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Keselj</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peng</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cercone</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Thomas</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <article-title>N-gram-based author profiles for authorship attribution</article-title>
          .
          <source>Proceedings of PACLING</source>
          (pp.
          <fpage>255</fpage>
          -
          <lpage>264</lpage>
          ).
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Kotlerman</surname>
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dagan</surname>
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Szpektor</surname>
            <given-names>I.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Zhitomirsky-Geffet</surname>
            <given-names>M</given-names>
          </string-name>
          .
          <article-title>Directional distributional similarity for lexical expansion</article-title>
          .
          <source>Proceedings of the ACL-IJCNLP</source>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Koppel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
            <given-names>J.</given-names>
          </string-name>
          ,
          <source>and Argamon S. Computational Methods in Authorship Attribution. JASIST</source>
          ,
          <volume>60</volume>
          (
          <issue>1</issue>
          ):
          <fpage>9</fpage>
          -
          <lpage>26</lpage>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Koppel</surname>
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schler</surname>
            <given-names>J.</given-names>
          </string-name>
          , and Argamon S.
          <article-title>Authorship attribution in the wild</article-title>
          .
          <source>Language Resources and Evaluation</source>
          ,
          <volume>45</volume>
          (
          <issue>1</issue>
          ):
          <fpage>83</fpage>
          -
          <lpage>94</lpage>
          .
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Koppel</surname>
            <given-names>M.</given-names>
          </string-name>
          and
          <string-name>
            <surname>Winter</surname>
          </string-name>
          . Y.
          <article-title>Determining If Two Documents Are by the Same Author, JASIST</article-title>
          , in press
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Stamatatos</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <article-title>A Survey of Modern Authorship Attribution Methods. Intrinsic Plagiarism Detection Using Character n-grams</article-title>
          ,
          <source>JASIST</source>
          ,
          <volume>60</volume>
          (
          <issue>3</issue>
          ):
          <fpage>538</fpage>
          -
          <lpage>556</lpage>
          .
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>