The Topic Confusion Task: A Novel Evaluation Scenario for Authorship Attribution
Paper · 2021 · Malik Altakrori, Jackie Chi Kit Cheung and Benjamin C. M. Fung
Summary
Suppose the examples you have from a writer are all about politics. An attribution system may learn a great deal about political language and very little about how that person writes. The distinction matters when the next unsigned article is about a different subject. The Topic Confusion Task studies how to detect this kind of mistake in a closed set of candidate writers. Its starting point is that an accuracy score can tell us how often a system picked the right person while leaving open what made the wrong person look plausible.
The authors give different groups of writers different subjects in training, then exchange the subjects for testing. Each writer is still eligible, and each test subject has appeared in training. What changes is the group associated with that subject. An incorrect prediction can land among the true writer’s groupmates or among the writers whose training articles share the test article’s subject. The latter is the direction in which the old association would pull the prediction. Counting those outcomes separately gives the topic switch an observable signature, an example of how the design of a test changes what can be learned from evaluation and benchmarks.
The experiments use a revised Guardian collection of 508 articles by 13 writers across 4 topics. Document-level measurements of writing habits, known as stylometry, become more effective when combined with sequences of grammatical categories. In the swapped-topic test, the combination gets 79.6% of attributions right and has a cross-group error of 12.1%. Adding both kinds of information also helps representations built from words or characters. The highest correct-attribution rate in the swap comes from masked word sequences combined with stylometry and grammatical sequences, at 83.3%. A separate, conventional cross-topic test also reaches 83.3%, this time with unmasked word sequences alongside the stylistic and grammatical features.
The tested BERT and RoBERTa approaches fare worse under the swap than even the unmasked word-sequence baseline. Their errors often land across the group boundary. One comparison shows what the additional metric contributes. Grammatical sequences and a BERT author-profile approach achieve nearly identical ordinary cross-topic accuracies, at 71.0% and 71.1%. Their cross-group errors in the swap are 16.6% and 39.6%, respectively. The experiment exposes a difference between those particular approaches that the ordinary accuracy comparison leaves hidden. Its unit of explanation is the pattern across predictions. The destination of any individual mistake can still have several causes.
Deep dive: The Topic Confusion Task: A Novel Evaluation Scenario for Authorship Attribution
The topic confusion task swaps authors’ subjects between training and testing to reveal when attribution follows topic cues instead of writing style. · about 33 minutes to read
The problem and its context
What an attribution score leaves open
Authorship attribution begins with an anonymous document and examples of writing from a set of plausible authors. The task in this paper assumes the writer is among those candidates. Each candidate’s identity is a class, and the system assigns the document to one of them. In this broad sense authorship attribution is a form of text classification.
Several kinds of evidence can make a candidate plausible. A person may repeatedly choose particular spellings, arrange words in recognizable ways, or use punctuation at characteristic rates. A writer may also repeatedly cover particular subjects. Training examples bring all of these properties together. A system that has learned to associate the language of a subject with a byline can make correct predictions whenever the association holds. Those successes count in exactly the same way as successes based on persistent habits of expression.
The distinction matters because the two sources of evidence support different expectations about a new document. A recurrent spelling preference might carry over when a writer moves to different material. A vocabulary associated with one subject can be shared by a writer who rarely uses it and by several people who discuss that subject regularly. Attributing a document on the basis of that vocabulary may give a persuasive answer while the comparison being made is mostly between subjects.
The paper motivates the question partly through investigative attribution. A specialist may use linguistic analysis when trying to identify the writer of an anonymous threatening text. If the result is discussed in court, people need to understand the basis for the proposed attribution. A relationship between the subjects of two texts has a different evidential meaning from a relationship between their authors’ habits of expression. The experiments address the technical problem of distinguishing those influences in evaluation.
What changes when the subject changes
The authors describe two established arrangements for testing attribution. In same-topic evaluation, the topics represented in the training material are also available during testing. This gives a method a chance to exploit stable associations between writers and recurring content. Separating the documents into training and test samples prevents direct reuse of the particular examples, while familiar themes can still make the person behind a document easier to guess.
A conventional cross-topic evaluation holds out subjects from training. The authors regard this as closer to situations in which the topic of an anonymous text differs from the topics of the available writing samples. Prior work discussed in the paper found that established methods could lose substantial accuracy under this change. The drop is evidence that the prediction task became harder when the topic changed. An aggregate score leaves open which information stopped working, which styles were difficult to tell apart, and whether narrower themes remained predictive inside the broad categories.
Consider the predictions behind an ordinary cross-topic score. A classifier can repeatedly confuse a pair of writers because they use similar grammatical constructions. It can also rely on a cluster of words that happened to be associated with one writer in training and became common in the new test material. Each wrong prediction counts once. The standard experiment lacks a group of alternatives towards which a specific training-time topical association is expected to pull the classifier.
Topic confusion puts that direction into the design. The subject of a test article has already been seen in the writing of other candidates. The test thus asks whether a system treats familiar subject matter as evidence for the wrong set of people. The author’s subject is new for that author in the experiment, while the classifier has encountered it elsewhere. That distinction is what gives the swap a reading different from a test on globally held-out topics.
Earlier ways of describing a writer
The paper traces attribution from manual examination of writing patterns to statistical classification. It credits Mendenhall’s work with identifying differences in word length and frequency across writers. In the computational history it recounts, Mosteller and Wallace used the distribution of function words to study the disputed Federalist papers with Naïve Bayes, a classifier that combines evidence probabilistically. Function words are items that perform grammatical jobs and recur across many kinds of subject matter. Their frequencies provide a way to compare documents without organizing them by what they discuss.
Later research extended the inventory of possible features and adapted attribution to different languages, genres, and communication settings. The paper describes work in which the language of the known writing differs from the language of the investigated text, as well as studies in which genre or domain changes. Those lines of work supply context for the paper’s more narrowly controlled intervention. Each investigates what happens when a condition of writing changes between the available examples and the text to be attributed.
Many of the earlier attribution systems described in the paper use contiguous sequences of characters or words. A character sequence can preserve part of a spelling, an ending, or a pattern around punctuation. A word sequence can retain a recurring turn of phrase or an expression tied closely to a subject. Both are instances of an n-gram.
Another line of earlier work kept frequent words visible and hid less frequent ones before extracting these sequences. The authors trace that approach to Stamatatos’s adaptation of text distortion. The premise is that the shape of a document and the distribution of commonly used words can still tell us something about its author after distinctive content words have been obscured. The topic-confusion setup supplies a way to check whether the masking changes the kinds of mistakes a classifier makes.
The paper also takes up earlier work by Barlas and Stamatatos, who used separate predictive systems for individual writers. Each author profile scored the words in an investigated document, and relative predictive fit determined the attribution. The earlier work considered several sources of pretrained representations, including ELMo.
The paper examines that profile strategy alongside a direct way of predicting authors with pretrained representations. It uses BERT and RoBERTa.
These approaches differ in how they make text available to a decision rule. Counts make selected surface patterns explicit. Grammatical sequences retain some local organization. A pretrained representation encodes words in context, and an author profile uses predictive fit as the basis for comparison. A single attribution score can rank those approaches while leaving unanswered whether each is using the same kind of evidence. This is the question that motivates the new split.
The method, step by step
How the swap works
Imagine that one group contributes Politics articles in training and another contributes World articles. A training document in this setup has an author label. Because every Politics article in training comes from the first group, the contents of a political article can indirectly point towards the writers in that group. The training procedure can discover useful words or patterns for this purpose without ever receiving a label that says Politics.
For the test, the authors in the first group supply World articles and those in the other group supply Politics articles. Consider a World article written by someone in the first group. The eligible answers still include its actual writer. A decision based on the same topic-to-group association that was useful during training will point to the second group. A decision sensitive to habits that carry across subjects can still find the first writer’s class.
The setup leaves room for a different kind of failure. A system may assign that World article to another author in the first group. This is still a wrong attribution, but its destination differs from the destination predicted by simply following the training association. The point of the exercise is to record both destinations, in addition to successful attributions, under a common experimental split.
Preparing and scoring the topic-confusion test
The steps in order.
The probability argument
The formal discussion begins with a simplified account of how a document comes to be written. A topic makes certain vocabulary available or likely. The author makes choices among those words and expresses them under the constraints of a language. A finite document captures a selection of the expressions available for the subject, and different writers can express the same idea with different words. The paper sets the language component aside in its equations to focus on the relationship between author and topic.
With author and topic treated as independent, the joint probability has this factorization.
P(A, T, D) = P(A) P(T) P(D | A, T)
Here P denotes probability, A is the author variable, T is the topic variable, and D is the document variable. Commas inside a probability expression collect variables considered together. The vertical bar means “given.” Thus P(A, T, D) describes the variables jointly, and P(D | A, T) gives the document distribution given author and topic. P(A) and P(T) denote their respective prior distributions. Juxtaposition on the right means multiplication, and the equals sign states that the product is the joint probability. The separate prior factors express the assumption that knowing the author leaves the prior distribution over topics unchanged.
Attribution proceeds from the document back to the author. Applying Bayes’ rule and summing over possible topics gives the following expression under that assumption.
P(A = a | D) ∝ Σₜ P(A = a) P(T = t) P(D | T = t, A = a)
P still denotes probability, and A, T, and D still refer to author, topic, and document. Lower-case a identifies the particular candidate being considered, and t identifies a possible topic. Inside an event, = specifies the value taken by the corresponding variable. The symbol Σₜ sums the products over possible values of t. The bar makes the quantity to its left conditional on what follows. P(A = a) is the candidate’s prior probability, P(T = t) is the topic’s prior probability, and the final probability gives the likelihood of the document for that pair. ∝ indicates proportionality. A common normalization across candidates converts the quantities on the right into author probabilities for the observed document.
The paper illustrates the independent case with a uniform topic prior.
P(T = t) = 1 / |T|
P(T = t) is the probability of topic t, and |T| is the number of possible topics in the dataset. The expression to the right of = divides 1 by that number, where / denotes division. In this illustration, every topic has the same prior weight whichever candidate is being evaluated.
The authors also describe a collection whose only subject is sports. For that example the topic probability is fixed.
P(T = sports) = 1
T is the topic, sports is its sole value in the example, and P(T = sports) is the probability of that value. The equality to 1 expresses certainty. With the topic fixed for the entire collection, the paper writes the candidate comparison in a reduced form.
P(A = a | D, T) ∝ P(A = a) P(D | A = a)
Here P again denotes probability, A = a is the event that the author is candidate a, and D and T are the document and the fixed topic. The comma after D includes both variables in the conditions to the right of the bar. P(A = a) gives the author prior. In P(D | A = a), the fixed topic is implicit in the likelihood. Juxtaposition multiplies prior and likelihood, and ∝ again indicates that normalization is needed across candidates.
In the proposed setup, the author can influence the distribution of topics available to the attribution procedure. The alternative factorization is as follows.
P(A, T, D) = P(A) P(T | A) P(D | A, T)
The variables A, T, and D again indicate author, topic, and document. The joint probability to the left of = equals the product of the author prior P(A), the author-conditioned topic probability P(T | A), and the document likelihood P(D | A, T). The bars indicate conditioning, and a comma inside the last factor puts both the author and the topic in its conditions. The experimental change is represented by P(T | A). An author’s group in the training split controls which topic can occur for that author there.
Carrying this dependence through the author comparison gives the last expression.
P(A = a | D) ∝ Σₜ P(A = a) P(T = t | A = a) P(D | T = t, A = a)
P(A = a | D) is the probability of author a given the observed document D. Σₜ adds terms for possible topics t, and ∝ indicates proportionality before normalizing across authors. As before, = inside an event specifies a value, commas join conditions, bars indicate conditioning, and adjacent factors are multiplied. For each term, P(A = a) supplies the candidate prior. P(T = t | A = a) gives the topic probability for that candidate, and P(D | T = t, A = a) gives the probability of the document under the specified topic and author.
These equations describe the association controlled by the evaluator. The classifiers in the experiments use document representations or predictive scores for their decisions. A classifier can behave as if the training association still holds without explicitly estimating the probability factors. That distinction is important because the same experimental test is applied to systems with different decision rules.
Building a collection that can support the swap
The general setup calls for at least 4 authors and at least 3 topics, with approximately comparable quantities of writing for each author on each topic. Equal group sizes are part of the design. Enough coverage is needed for each author to appear in training and testing whichever of the selected topics the evaluator assigns to that author’s group. Sparse coverage could leave an author poorly represented before the topic switch even takes place.
The authors started from 381 documents in an existing Guardian dataset. They retrieved the originals from the newspaper and checked article metadata against the collection. One example of a mismatch is an article treated as Politics in the existing collection while assigned to Society on the newspaper’s website. The authors excluded such mismatches, material listed under several of the relevant topics, and work with multiple authors. These checks give the topic swap identifiable inputs and give each prediction an unambiguous author label for scoring.
The authors used the Guardian API to find additional articles, aiming for 10 documents for each author on each topic and retaining the original collection’s limit on documents per writer. They could fill the target more readily for some topics than for Society. Some of the writers had a long publishing history concentrated in particular subject areas, so the length of a career did not guarantee a comparable selection on every topic. The resulting collection is relatively balanced and still has a thinner Society category.
They also address a separate problem with the article bodies. Website artifacts, metadata, and mentions of an author’s own name can make a representation respond to information that is extraneous to the comparison of topic and style. The authors inspected the documents and describe manually removing author names where needed. They document the manual steps in supplementary material. The distribution described in the paper consists of article URLs and retrieval and preprocessing material, in accordance with the Guardian API conditions, with the article bodies remaining at the source. The paper also announces plans to make its experimental code available.
Assigning the material and scoring the predictions
For a configuration, the evaluator selects the two topics to use for the swap and allocates the participating authors to equal groups. The first group supplies its articles on one topic for training, and the second group supplies its articles on the other. The evaluator gathers test articles on the converse pairing. Writing on the remaining topics supplies validation material from both groups. The paper illustrates the arrangement with 4 authors and 4 topics. The experiment’s larger author set increases the number of plausible answers within either group without changing the logic of the split.
A validation set provides examples with which to select settings before final scoring. For instance, a representation built from sequences has to specify how long those sequences can be and which recurring patterns are common enough to keep. The results on validation documents guide that selection. Since these documents come from the remaining topics, choosing a setting on them is a different exercise from checking performance on the swapped-topic test. The training procedure receives documents and their author labels. The evaluator keeps the topic labels and the identities of the author groups for forming splits and scoring the outcome.
The paper defines three test percentages. Correct attribution counts cases in which the predicted author is the true author. Same-group error counts predictions for another writer in that author’s group. Cross-group error counts predictions for a writer in the opposite group. In each case, the denominator in the definition is the number of evaluated predictions. In particular, the cross-group percentage measures how frequently this outcome occurs across all samples, including correctly attributed ones in the denominator.
The same formal grouping also makes it possible to sort validation mistakes. The direct connection between crossing the boundary and following the other group’s training subject is specific to the swapped test. Validation articles come from topics left out of training altogether. The labels for the error destinations can be applied there, while the topical explanation for those destinations depends on which split generated the predictions.
For the topic-confusion experiments, the paper constructs 100 configurations. It orders the topics at random and selects 12 of the 13 writers for allocation to the groups. The omission is part of making both groups the same size. As a consequence, the random-choice probabilities reported by the paper are identical whichever group the true author belongs to. A uniform random choice has probability 1/12 of being correct, 5/12 of choosing a wrong member of the true author’s group, and 6/12 of choosing a member of the opposite group.
The alternative of keeping all 13 writers would make the random-choice probabilities depend on the size of the true author’s group. Under that arrangement, candidates from different groups would have different numbers of opportunities for each kind of mistake. The authors favor equal groups so that comparisons can retain their simple interpretation in terms of document outcomes.
For most approaches, each configuration is run ten times to account for randomness in training. The direct BERT and RoBERTa classifiers are trained once per configuration. The evaluation procedure describes reporting average balanced accuracy with standard deviation, and the topic-confusion results give the separate percentages and standard deviations for the three outcomes. The conventional cross-topic experiment uses average overall accuracy.
Turning an article into evidence for a classifier
The conventional methods represent each article individually by a collection of numerical features. A linear support vector machine, or SVM, learns to classify those article representations. In a linear classifier the features contribute through learned weights. Holding the classifier family fixed across these comparisons makes the choice of representation a clear experimental variable. The authors chose the linear SVM because earlier attribution studies had found it effective.
The stylometric representation includes 371 features. Some characterize the document as a stream of characters, including character totals and the relative use of digits, letters, upper-case letters, or tabs. Some look at words, such as average word length, the shares of words of particular lengths, and the number of distinct words relative to the token count. That last measurement is the type–token ratio.
The inventory also includes punctuation and frequencies for 277 function words. Each measurement captures a property of the document in aggregate. Two writers can differ in their use of function words while producing documents that are similar in length. Conversely, articles with similar overall inventories can arrange the same grammatical material quite differently. This gives a reason to examine document-wide measurements alongside sequences.
The sequence representations use characters, words, or part-of-speech tags as their units. Part-of-speech tags identify grammatical categories such as nouns and verbs. Sequences of these categories retain local grammatical order while omitting the identity of the particular word assigned to each category. The process of labeling those categories is part-of-speech tagging.
For the tagging, the authors use Stanford CoreNLP.
The word-based and character-based variants retain different aspects of the written form. A recurring word sequence can serve as a relatively direct signal of an expression or subject. A recurring character sequence can also capture spelling and smaller pieces of words. Both can encode habits of expression alongside topical vocabulary. The authors compare each representation by itself and in combinations that add the stylistic and grammatical measurements.
Masking creates another version of the input before extracting the sequences. Word frequencies from the British National Corpus determine which infrequent words are obscured. Every character in a word selected for masking is replaced by an asterisk, and digits are replaced by number signs. The tokens are then reassembled into document order. The transformation can remove specific vocabulary while leaving traces such as masked word length and the arrangement of tokens. It can be applied before extracting either character or word sequences.
The authors search over choices that govern what enters these representations. In the notation of their parameter tables, k is the masking cutoff and fₜ is the minimum frequency for a feature. The n settings determine sequence length, with distinct ranges for the character representation and for the word and grammatical representations. The character lengths considered run from 3 through 8. The search for word and grammatical sequences considers lengths from 1 through 3. The appendix reports average selected settings and feature counts across conditions. Those averages summarize a search conducted across configurations, so the reported noninteger averages for sequence length are summaries of discrete choices.
Using pretrained representations in two ways
The direct neural approach puts a pooling layer and an author classifier above BERT or RoBERTa. Pooling produces a representation for the sequence as a whole from what the pretrained system computes. The authors use the base, uncased versions and describe training with lower-case text. Given the small labeled collection relative to the size of the pretrained systems, they keep the pretrained representations fixed and train the classification layer. The paper describes this as few-shot learning.
The training appendix specifies Adam, a learning rate of 0.1, a maximum of 500 epochs, and early stopping with a minimum change of 1e-3 and patience of 100. An epoch is a pass through the training material. Early stopping permits training to end before that maximum when improvement is insufficient. The paper says most of these runs ended before 150 epochs. These settings characterize the comparison with the conventional classifier. The scope of the comparison is especially affected by the decision to keep pretrained representations fixed.
The author-profile approach instead builds a separate predictive profile for each candidate. Its embedding layer starts from BERT or RoBERTa representations. Each profile assigns a perplexity score to the investigated article. In this application, perplexity expresses how difficult the article’s words are for that profile to predict. A lower value corresponds to a better predictive fit. For the topic-confusion profiles the appendix specifies 2 epochs and a vocabulary size of 2000, choices informed by the earlier BERT ablations it cites.
Profiles can produce scores on different scales, so the authors adjust them using a normalization vector. The entry nᵢ corresponds to author profile Aᵢ, where the subscript i identifies the candidate. The entry is that profile’s average perplexity on a common normalization corpus. This gives each profile a reference for assessing the investigated document. The candidate with the lowest normalized perplexity is selected.
There are two choices for the reference corpus. K uses the training collection. U uses the test collection with its author labels withheld. A U profile can therefore draw on the distribution of the test material when calibrating its scores, even though it receives no answers. The authors evaluate both choices. They point out that someone investigating a single anonymous document may have no equivalent collection of test articles available for calibration.
Experiments and results
The data and the comparison conditions
The extended Guardian dataset contains 508 articles from 13 authors. The topic totals are 130 for Politics, 118 for Society, 130 for UK, and 130 for World. The descriptive statistics give an average of 39.1 articles per author with SD = 1.5, and 127 per topic with SD = 5.2. Here SD is the standard deviation, which describes the spread of the quantity being summarized. The close topic totals and the remaining shortage in Society matter because every topic can be asked to serve a different role across configurations.
The central comparison uses the swapped association. The baselines include stylistic summaries alone, grammatical sequences alone, raw character and word sequences, and their masked counterparts. The authors also compare mixtures of those features and the pretrained approaches described above. The random-choice row reports 8.3% correct, 41.7% same-group error, and 50.0% cross-group error for the equal-group setup. These chance percentages reflect the distribution of eligible authors across the outcomes. They provide context when reading error rates, since the available wrong answers are divided across the groups unequally from the point of view of any one true author.
The conventional cross-topic comparison uses one topic for training and a different topic for validation. The remaining topics are for testing. Across 12 topic configurations, the authors report mean overall accuracy. The test subjects in this protocol are new to the training collection as a whole. In topic confusion those subjects are familiar from the other group’s writing, and every author changes subjects at the swap. The conventional score is useful as a further test of whether the stronger feature combinations transfer when the subject changes under the established protocol.
Correct attribution in the swapped test
The strongest topic-confusion setting uses masked word sequences alongside stylometry and grammatical sequences. The following comparison places it among individual feature sets and other combinations built with the linear classifier. Values are mean percentages of test articles with the correct author assigned.
Correct attribution by feature set in the extended Guardian topic-confusion test
The highest correct-attribution rates come from pairing masked sequences with stylometry and grammatical sequences.
The numbers
| System or setting | correct % |
|---|---|
| Stylometry | 63.1 |
| Grammatical tag sequences | 72.0 |
| Stylometry with grammatical tag sequences | 79.6 |
| Raw character sequences | 70.1 |
| Raw word sequences | 62.5 |
| Raw words with stylometry and tags | 80.3 |
| Masked characters with stylometry and tags | 83.1 |
| Masked words with stylometry and tags (this paper) | 83.3 |
The stylometry and grammatical sequence combination has SD = 4.0 in correct attribution. The corresponding standard deviations for the individual representations are 4.2 and 4.5. For the masked combinations near the top of the comparison, the character-based one has SD = 4.8 and the word-based one has SD = 4.4. These values describe variation in the reported evaluation. They give context to the closeness of the strongest means without deciding whether their ordering would persist under other samples.
Adding stylometric measurements alone to raw character sequences raises correct attribution from 70.1% to 73.0%. For raw word sequences the corresponding comparison is 62.5% to 72.4%. Adding grammatical sequences as well yields 76.8% with raw characters and 80.3% with raw words. The better standalone lexical feature and the better augmented lexical feature are thus different in this experiment. To understand where the improvements occur, the authors examine the wrong answers.
The destination of wrong predictions
Stylometry and raw character sequences supply the simplest example of what the diagnostic adds. Their accuracies favor character sequences. Cross-group error, however, is 21.2% for stylometry and 23.2% for character sequences. The larger weakness of stylometry is visible within the group, where its error is 15.7%, compared with 6.8% for character sequences. A representation can therefore place fewer wrong answers on the side associated with the test topic and still struggle to distinguish the writers within the true author’s own group.
Raw words and raw characters behave differently. The two standalone representations are relatively close on same-group error, at 7.9% and 6.8%. Cross-group error is 29.6% for raw words and 23.2% for raw characters. The stronger difference between these representations concerns the destination consistent with topic following. The authors connect this with the earlier observation that character features can capture information that transfers across topics, even though characters can still retain some of the vocabulary signal.
Cross-group error by sequence representation in the extended Guardian topic-confusion test
Masking and adding stylistic and grammatical features both reduce errors toward the group associated with the test topic.
The numbers
| System or setting | cross-group error % |
|---|---|
| Raw character sequences | 23.2 |
| Masked character sequences | 13.8 |
| Masked characters with stylometry and tags | 10.4 |
| Raw word sequences | 29.6 |
| Masked word sequences | 15.3 |
| Masked words with stylometry and tags (this paper) | 10.0 |
The standalone grammatical sequence representation has cross-group error of 16.6% and same-group error of 11.5%. With stylometry added, these figures fall to 12.1% and 8.4%. The combined representation makes progress in both categories relative to using grammatical sequences by themselves. Its comparatively low cross-group figure is particularly relevant because it uses neither the unmasked word sequence feature set nor the masking transformation.
When the same stylistic and grammatical measurements are added to raw word sequences, cross-group error is 12.6% and same-group error is 7.1%. In the character combination the corresponding rates are 17.2% and 6.0%. This illustrates one reason to examine both errors even for settings with improved accuracy. With these augmented features, the character-based variant has the lower within-group error, and the word-based variant has the lower across-group error.
What happened with the pretrained approaches
In topic confusion, the direct BERT classifier records 33.1% correct, 19.9% same-group error, and 47.0% cross-group error. The direct RoBERTa classifier records 39.8% correct, 13.1% same-group error, and 47.1% cross-group error. In both cases the cross-group outcome occurs far more frequently than a wrong prediction within the true writer’s group. The correct-attribution standard deviations are 5.7 for BERT and 7.5 for RoBERTa.
The profiles produce higher correct-attribution rates than the direct classifiers. BERT profiles score 51.6% with the training reference and 52.1% with the unlabeled test reference. Their cross-group errors are 40.2% and 39.6%, respectively. RoBERTa profiles score 57.8% and 58.9% correct with those respective reference collections. Their cross-group errors are 35.1% and 34.3%. These results show the direction of the normalization comparison under the swap and give its scale. The raw word baseline still has higher correct attribution and lower cross-group error than any of the profiles.
The random baseline helps qualify the description of the neural errors. Even the largest cross-group percentages among the tested approaches are below the 50.0% from uniform random choice over candidates. A useful reading comes from considering the cross-group rates alongside the success rates, within-group rates, and results of the conventional feature sets. The neural approaches do identify writers above chance. A substantial part of what remains wrong, when compared with other ways of representing the same articles, is concentrated in the direction made informative by the topic exchange.
Performance when the test topics are held out
The main cross-topic table puts the best mean accuracy at 83.3% for stylometry plus grammatical and raw word sequences, with SD = 2.6. Here the word sequences are unmasked. The masking-based character baseline has 80.9% accuracy with SD = 2.6. When stylometry and grammatical sequences are added to that baseline, the mean is 83.2% with SD = 3.3. The paper gives 82.8% both for the augmented raw character representation and for the augmented masked word representation, with SD = 2.7 and SD = 3.3, respectively.
Accuracy of selected approaches on the extended Guardian conventional cross-topic test
The highest mean belongs to the linear classifier that combines stylometry with grammatical and raw word sequences.
The numbers
| System or setting | accuracy % |
|---|---|
| Grammatical tag sequences | 71.0 |
| Stylometry with grammatical tag sequences | 79.2 |
| Masked character sequences | 80.9 |
| Masked characters with stylometry and tags | 83.2 |
| Raw words with stylometry and tags (this paper) | 83.3 |
| BERT profiles using the unlabeled test collection | 71.1 |
| RoBERTa profiles using the unlabeled test collection | 75.8 |
The direct pretrained classifiers again have lower accuracies than their corresponding profile variants. Direct BERT reaches 37.5% with SD = 3.5, and direct RoBERTa reaches 51.1% with SD = 3.4. With the training collection as the reference, the BERT profiles reach 67.3% and the RoBERTa profiles 70.8%. Both profile families have higher means with the unlabeled test reference. The comparison isolates a difference in the material used to calibrate perplexity, so access to that material belongs in any account of the reported profile scores.
The authors highlight the similar cross-topic accuracies of the standalone grammatical sequences and the test-normalized BERT profile. A comparison confined to those means would suggest similar competence under the conventional split. Under the author-group swap, the grammatical sequences show 16.6% cross-group error, with SD = 3.3, and the BERT profile shows 39.6%, with SD = 8.5. The pairing illustrates the diagnostic question of the paper particularly well. One can agree that both approaches correctly attribute a similar share of documents in one setting and still learn something different about each when a known topical association is reversed.
The paper reports a significance comparison between its strongest cross-topic word combination and its character-masking baseline. The appendix gives a mean of 83.26 and SD = 2.63 for the combination, and a mean of 80.89 and SD = 2.59 for the baseline, with P = 0.04. The authors describe this comparison as statistically significant. Their reported comparisons among several close feature settings are less decisive. The main result is a stronger mean for the combined word representation in this benchmark, with several augmented alternatives close to it.
What the ablations show
Individual features and their combinations
The paper includes a feature ablation in the conventional cross-topic experiment. An ablation changes which parts of a system are present to see how performance depends on them. Here the authors compare individual features and combinations. They search again over minimum frequency and sequence length, allowing the representations to have settings appropriate to the features they contain. The resulting comparison concerns the contribution of feature sets under tuning.
The ablation table reports 61.2% cross-topic accuracy for stylometry alone, with SD = 3.1. Grammatical sequences reach 71.0% with SD = 3.2. Raw character and raw word sequences are stronger on their own, at 77.3% with SD = 2.8 and 77.7% with SD = 2.7, respectively. The difference between stylometry and either raw sequence family is appreciable in the reported means. A practitioner considering only individual feature scores would have little reason to start with the stylometric inventory.
When the authors put stylometry and grammatical sequences together, the ablation table gives 79.2% with SD = 2.7. Adding word sequences produces the strongest ablation entry, 83.2% with SD = 2.6. The main cross-topic table gives 83.3% for the corresponding feature combination. Both reports favor the combined representation among the settings evaluated. Their difference leaves the last decimal ambiguous if one wants a single cross-topic value across the tables.
The appendix’s prose reports P = 0.21 for the comparison involving the standalone word representation and the stylometry-plus-grammar set. It gives P < 0.01 for the comparison between the latter feature set and the fuller word combination. The prose gives the former combined set a mean of 79.3, while the ablation table gives it 79.2. What can be read consistently across the reports is the ranking of the tested ablation configurations and the authors’ claim that the comparison with the fuller combination was significant.
The ablation supports complementarity at the level of feature families. Word sequences carry considerable attribution evidence on their own. Grammatical and stylometric features are weaker individually and still contribute to the strongest tested combination. The reported sets give less resolution about the marginal contribution of each family given every possible subset. For instance, the explicit ablation contrasts word sequences alone, the style-and-grammar pair, and the fuller combination. The paper offers a separate comparison in the swapped test for character or word features with only stylometry added.
Masking changes the error profile
For the masked character representation in topic confusion, the same-group rate is 6.8%, the same reported average as for raw characters. Cross-group error moves from 23.2% with raw characters to 13.8% after masking. The analogous word comparison leaves the displayed same-group average at 7.9%, with cross-group error moving from 29.6% to 15.3%. This is the kind of result that overall accuracy alone could describe only as an improvement. The split shows that the improvement appears in the category specifically implicated by the topical intervention.
A comparison of this sort concerns the consequences of a preprocessing operation as a whole. Masking preserves the ordering of retained material, replaces digits, and hides the identities of selected words. It can also change which recurring sequences are frequent enough to become useful features. The observed error pattern is consistent with the authors’ interpretation that obscuring infrequent vocabulary reduces a source of topical attraction. The comparison gives the impact of the tested transformation on predictions, without identifying the contribution of any individual masked word.
The authors also compare feature additions to the already masked representations. Pairing the masked character features with stylometry and grammatical sequences reduces cross-group error from 13.8% to 10.4%, with same-group error at 6.8% and 6.4% respectively. The masked word representation goes from 15.3% to 10.0% cross-group error when those features are added, while its same-group rates are 7.9% and 6.7%. In both cases masking leaves room for the added information to improve the attribution decisions. The larger movements are again in the across-group outcomes.
Which explanations remain proposals
The authors suggest a possible reason for the weakness of the pretrained approaches. Representations that make words similar when their contexts are similar may underemphasize a distinction that is valuable for authorship. Their example is the pair of spellings “color” and “colour.” The two can express the same thing while reflecting different spelling conventions. A distinction like that may be informative about the writing under investigation even when a representation of meaning has little reason to emphasize it.
The experiments measure attribution and error destinations under the split. The spelling account is an interpretation of that behavior. The paper gives no ablation that isolates the treatment of spelling, checks how that pair is represented, or changes the preservation of spelling while holding the rest of the classifier fixed. The empirical result is the relative fragility of the tested pretrained configurations in this evaluation. Which properties of their representations or training procedures create that fragility remains an open question.
The profile normalization comparison addresses a more directly manipulated factor. BERT and RoBERTa profiles both achieve higher mean accuracy with the unlabeled test collection as the reference in the conventional cross-topic experiment. Their topic-confusion means also improve with this change, alongside comparatively modest movements in cross-group error. The comparison shows what happens when the evaluated profile approach is allowed a different reference collection. It offers no direct test of the spelling explanation, and its application depends on whether a collection of anonymous test articles is available at attribution time.
Limitations
Limits the authors identify
The authors describe their corpus as relatively balanced. Society supplies fewer examples for some writers than the target. The source of this shortfall is substantive to the design. Even a writer with a long newspaper career may concentrate on particular topics and only occasionally publish material on others. An experiment requiring coverage of each selected writer across topics depends on the availability of such combinations. The authors discuss ways imbalance could be studied or accommodated, including withholding samples deliberately or using evaluation measures appropriate to unequal coverage.
Their account of document production also recognizes that author, topic, and language rules may leave relevant factors unexplained. The display equations deliberately concentrate on author and topic. That choice is sufficient to describe the intervention in the split. It leaves open the extent to which other influences may shape either the available writing or a classifier’s decisions about it.
The authors explicitly question test-based normalization as a realistic assumption for profile attribution. The U condition gets a collection of unlabeled test documents with which to establish a reference perplexity for each candidate. A single investigated article may be all that is available in a practical case. The training-reference K condition gives a separate comparison for the profile method under a more restricted information supply.
The ethics discussion identifies a practical failure mode: subject overlap can send an attribution towards the wrong person. It also recognizes that successful attribution can threaten people who depend on anonymity. For the authors, another potential application is analyzing anonymization, where one asks how often a writer remains identifiable after a document has been transformed. The experiments evaluate attribution on the Guardian collection. The investigative and anonymization discussions explain reasons to care about the outcome of that evaluation.
Limits visible in the design
A cross-group error is an observed destination, with a plausible explanation supplied by the intervention. Membership in that group does not certify why the destination was chosen. Two writers from opposite groups may share stylistic characteristics, and a classifier that confuses them for those characteristics will still create a cross-group error. The connection to topic is strongest in comparisons across settings where the number of such errors changes in the predicted direction. Masking offers a particularly direct example because it acts on lexical information and alters the error distribution in the way the task was designed to detect.
Similarly, a same-group mistake can involve content. The two groups share broad topic assignments within each split, while writers can differ in the finer subjects they cover. The matched category could include different subtopics, and a prediction can be influenced by vocabulary that the category does not describe. The paper manipulates the newspaper’s broad labels. Robustness to that manipulation supports a narrower inference than general independence from what an article says.
A lower cross-group percentage is also partly a consequence of how often a system predicts correctly. The denominator includes every evaluated sample. A strong increase in correct attribution leaves fewer possible mistakes of either kind. Reading the rates together shows which outcome accounts for more of the change and avoids treating a single error percentage as a pure measure of how much topic information survives in a representation. The character-versus-stylometry comparison illustrates this point because it reverses the ordering depending on whether the reader considers accuracy or cross-group error.
The swap creates a particular and intentionally strong relationship. Within a configuration, a test topic is paired with the opposite group’s training material. Real collections can express author–topic dependence through mixtures of topics, through preferences operating within broad subjects, or through associations that do not reverse so neatly. Topic confusion is an assessment of sensitivity under the chosen intervention. An expected error rate outside this setting would require evidence about how the author and subject distributions are related in the new setting.
The candidate pool is closed and balanced by construction for the group comparison. Every scored instance is associated with a known candidate. The procedure therefore measures the quality and direction of a choice among those candidates. It supplies no evaluation of an option to decline attribution or determine whether the true writer is absent. The repeated configurations also draw from a single revised newspaper collection. They vary the grouping, topics, and participation of authors within that collection. Evidence about new forms of writing or other languages would require evaluating those domains.
The pretrained findings are similarly bounded. The direct classifiers use a frozen pretrained representation and an uncased setup in a small labeled task. The profile approaches have their own vocabulary, training, and normalization choices. The experiments establish the behavior of these implementations under the reported conditions. Other ways of adapting pretrained representations could change which features are available for attribution and how strongly topical cues influence a prediction.
Limits visible in the reporting
Some details of the corpus and auxiliary splits are inconsistent within the paper. The descriptive statistics give Society 118 articles, while the cross-topic appendix specifies 127 training articles when Society supplies the training material. The exact article count for that specific training condition is consequently unclear. The same-topic appendix lists 26% for training, 26% for validation, and 58% for testing alongside counts of 132, 132, and 244 articles. The percentages and counts do not describe the same partition. The results used for the paper’s main comparisons are reported for topic confusion and conventional cross-topic testing.
The statistical reporting also gives reasons for care when interpreting small differences. For instance, the test note prints α = 0.5 for the unequal-variance t-test. The appendix contains a malformed probability value in one passage, while the principal word-combination comparison is given as P = 0.04 in the main discussion and elsewhere in the appendix. Together with the differing ablation means, these details limit how precisely the reader can reconstruct every significance claim. The reported changes in error patterns, the ordering of the feature combinations in the principal tables, and the scope of the benchmark can each be assessed separately from that uncertainty.
What came after
A later work citing the paper is Explainable Disentangled Representation Learning, published in 2026. Its stated subject is generalizable authorship attribution in the context of generative AI, with explainability and disentanglement as aims for the learned representation. In this context, disentanglement refers broadly to separating influences that would otherwise be represented together. The connection to topic confusion is the problem of deciding which aspects of a document provide evidence about the writer when other properties of the text can also predict the writer’s label.
The two research questions operate at different levels. The topic-confusion paper arranges the input collections so that reliance on a particular association has an observable consequence for the predictions. Work framed around disentangled representations asks about separating influences in the representation used to make those predictions. The citation links the later study to the earlier research problem. Whether it reruns the Guardian split, uses the cross-group metric, or evaluates any particular topic reversal is unspecified. There are no comparable follow-up scores to report from that connection.
The earlier paper’s contribution to this line of inquiry is a concrete behavioral test. A representation intended to support generalization can be evaluated under a change in what each writer discusses, and the test can record where failures go. In the Guardian experiments, that extra information distinguishes approaches with similar conventional accuracy and identifies improvements that an undifferentiated error rate could show only in aggregate.
Cite
Cite as Malik Altakrori, Jackie Chi Kit Cheung and Benjamin C. M. Fung. 2021. The Topic Confusion Task: A Novel Evaluation Scenario for Authorship Attribution. Findings of the Association for Computational Linguistics: EMNLP 2021.
@inproceedings{altakrori2021topic,
title = {{The Topic Confusion Task: A Novel Evaluation Scenario for Authorship Attribution}},
author = {Malik Altakrori, Jackie Chi Kit Cheung and Benjamin C. M. Fung},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2021},
year = {2021},
doi = {10.18653/v1/2021.findings-emnlp.359},
url = {https://doi.org/10.18653/v1/2021.findings-emnlp.359}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/altakrori-2021-topic-confusion-task-novel-evaluation/