NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DAMASHA: Detecting AI in Mixed Adversarial Texts via Segmentation with Human-interpretable Attribution

L. D. M. S. Sai Teja, Siva Gopala Krishna Nuthakki, Ufaq Khan, Muhammad Haris Khan, Partha Pakray, Atul MishraarXiv 2025 · DOI

Abstract

As AI-human collaborative writing becomes commonplace, traditional binary AI detectors struggle to identify specific AI-generated spans within mixed-authorship documents, especially under adversarial conditions. We present DAMASHA, a novel framework that utilizes stylometric features and a soft-masking mechanism called Info-Mask to perform fine-grained segmentation. DAMASHA achieves state-of-the-art performance in boundary detection and remains robust against syntactic adversarial attacks.

Introduction

Most current AI text detectors are designed for document-level classification, failing to address the "mixed-authorship" reality where humans and LLMs co-author text. Furthermore, adversarial attacks—such as intentional misspellings or invisible Unicode characters—easily bypass standard semantic-based classifiers. DAMASHA addresses these challenges by focusing on fine-grained segmentation and adversarial robustness, identifying exactly where transitions between human and AI text occur.

Methodology: The Info-Mask Architecture

The DAMASHA framework integrates stylometric analysis with deep learning to create a robust segmentation model.

Figure 1: The DAMASHA architecture featuring the Info-Mask component and CRF layer for sequence tagging.

The architecture consists of three primary components:

  1. Style Feature Extractor: Extracts cues such as perplexity, POS density, punctuation density, lexical diversity, and readability scores.
  2. Info-Mask (Soft-Attribution): Uses Multi-head Attention to project stylistic features into a soft gating mask, modulating token representations to highlight AI-like structural patterns.
  3. CRF Tagging Layer: A Conditional Random Fields layer ensures label consistency across the sequence, preventing erratic transitions in the predicted spans.

Experimental Setup

The authors introduced the Mixed-text Adversarial setting for Segmentation (MAS) benchmark, comprising over 671,000 instances. This dataset incorporates text from GPT-4o and DeepSeek-V3 and subjects them to six types of syntactic adversarial attacks, including character substitutions and invisible character injections.

Results and Discussion

The proposed RMC (RoBERTa + ModernBERT + CRF) configuration significantly outperforms existing baselines in both boundary accuracy and token-level precision.

Figure 6: Performance comparison of DAMASHA (Proposed Approach) against statistical, prior, and zero-shot baselines across different IoU thresholds.

Key findings include:

  • Superior Segmentation: DAMASHA achieved a Segment-wise Boundary Detection Accuracy (SBDA) of 45.7% at a 0.3 threshold, nearly 15% higher than the best prior baseline, SeqXGPT.
  • Adversarial Robustness: Unlike zero-shot detectors like Binoculars or GPTZero, which fail under syntactic noise, DAMASHA maintains high performance across all attack types.
  • Interpretability: The Human-Interpretable Attribution (HIA) feature significantly reduced human review time in user studies, making the tool more practical for real-world moderation.

Conclusion

DAMASHA represents a significant step forward in transparent and robust AI detection. By prioritizing stylometry over pure semantics and employing a soft-masking attribution mechanism, the model effectively unmasks AI spans in complex, adversarial, mixed-authorship contexts. Future work will explore multi-modal extensions and adaptation to low-resource languages.

Summary updated

BibTeX
@misc{teja2025damasha,
  author = {L. D. M. S. Sai Teja and Siva Gopala Krishna Nuthakki and Ufaq Khan and Muhammad Haris Khan and Partha Pakray and Atul Mishra},
  title = {{DAMASHA: Detecting AI in Mixed Adversarial Texts via Segmentation with Human-interpretable Attribution}},
  year = {2025},
  eprint = {2512.04838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.04838},
}
Figure