Unsupervised Text Segmentation Based on Native Language Characteristics

Shervin Malmasi, Mark Dras, Mark Johnson, Lan Du, Magdalena Wolska

Abstract

Traditional text segmentation methods primarily rely on lexical cohesion to detect shifts in topic. This paper introduces an unsupervised Bayesian approach designed to segment text based on stylistic "fingerprints" of a writer's native language (L1). By transitioning from word-based models to Part-of-Speech (POS) n-grams and employing asymmetric Dirichlet priors, the researchers demonstrate that stylistic shifts can be identified even when the topic remains constant. The resulting model, L1SEG-ASYMP, significantly outperforms standard lexical baselines, providing a new tool for applications like patchwriting detection and literary analysis.

Introduction

Automatic text segmentation is the process of dividing a document into meaningful, contiguous chunks. While most existing tools look for shifts in topic—marking boundaries when vocabulary changes significantly—this paper addresses the challenge of segmenting based on style. Specifically, it focuses on the native language characteristics that "leak" into a second language.

This has two primary motivations:

  1. Patchwriting Detection: Helping educators identify where non-native students might be mixing their own prose with near-copied source text.
  2. Literary Analysis: Enabling scholars to pinpoint where a multilingual author's native tongue influences their writing in another language.

Stylistic shifts are subtler than topic shifts; two authors may use the same vocabulary to discuss the same subject, but their underlying syntactic habits (word order, inflections) differ based on their L1.

Methodology

The authors build upon BAYESSEG, a standard unsupervised Bayesian segmentation model that treats segments as being generated from distinct language models. They introduce three key innovations to adapt this framework for L1 detection:

  • POS N-grams: Since L1 influence is largely syntactic, the model replaces words with Part-of-Speech tags. The researchers found that the fine-grained CLAWS2 tagset outperformed standard Penn Treebank tags.
  • Feature Filtering (L1SEG-COMP): To prevent language models from becoming "diluted" by non-discriminative data, the authors used external Native Language Identification (NLI) data to select only the top 300 most discriminative POS bigrams and trigrams.
  • Asymmetric Priors (L1SEG-ASYMP): Instead of assuming all features are equally likely, the model uses asymmetric Dirichlet priors to incorporate prior knowledge about specific L1-influenced English patterns (e.g., typical Italian-English vs. German-English structures).

Experimental Setup

The study utilized the TOEFL11 dataset, containing 12,100 essays from 11 different L1 backgrounds. Because natural L1-segmented data is rare, the authors created artificial "composite" documents by concatenating essays from different L1s while maintaining a consistent topic. Control sets with varying topics but the same L1 were used to verify baseline performance on traditional tasks.

Key Results

Performance was measured using $P_k$ and WindowDiff (WD), where lower scores indicate better accuracy (0 is perfect, 0.5 is near random).

Table 1: Comparative performance of segmentation models across various datasets and feature configurations.

As shown in the results, standard lexical models (BAYESSEG) fail at L1 segmentation, yielding a $P_k$ of ~0.466. The introduction of filtered trigrams in L1SEG-COMP improved this to ~0.370. The most significant gain came from the use of asymmetric priors in L1SEG-ASYMP, which achieved a $P_k$ of 0.316. While topic segmentation remains an easier task (achieving ~0.20), these results represent a major step forward in stylistic segmentation.

Discussion and Insights

  • Lexical Cohesion vs. Style: Traditional models relying on word repetition are ineffective for L1 segmentation because the vocabulary remains stable across segments if the topic is fixed.
  • The Power of Compactness: Bayesian models perform better when probability mass is concentrated. By stripping away non-discriminative POS tags, the authors amplified the L1 "signal."
  • Priors as Knowledge: Moving to asymmetric priors allowed the model to leverage general linguistic knowledge without requiring labeled training data for the specific document being analyzed.

Conclusion and Future Work

While the current model effectively identifies L1 shifts at the sentence level, future work aims to address sub-sentence granularity, as patchwriting often occurs within phrases. Additionally, the researchers plan to test the model on naturally occurring datasets, such as the manuscripts of multilingual authors like Joseph Conrad, to validate its performance beyond artificial composite documents.

Summary updated

BibTeX
@inproceedings{malmasi2017unsupervised,
  author = {Shervin Malmasi and Mark Dras and Mark Johnson and Lan Du and Magdalena Wolska},
  title = {{Unsupervised Text Segmentation Based on Native Language Characteristics}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-1134},
}
Figure