arXiv:2610.21062cs.CLOct 2026

Manuscript Offprint

arXiv:2610.21062

Multimodal AI Detection for Math-Heavy Scientific Text

Yixuan Huang, Danish Pruthi, Bhuwan Dhingra

Yixuan Huang 1^{1}, Danish Pruthi 2^{2}, Bhuwan Dhingra 1^{1}

1^{1}Duke University, 2^{2}Indian Institute of Science

yixuan.huang@duke.edu, bdhingra@cs.duke.edu

As large language models become increasingly capable of generating, and assisting with, scientific writing, there is a need for greater transparency and disclosure around the use of AI in research. Consequently, a veritable subfield of research and a number of commercial services aim to flag AI-generated content automatically. However, existing detectors which rely only on text extracted from PDFs fail to benefit from the rich visual information contained in the formatting of math-heavy scientific content. To study this, we select human-written proof and prose passages from pre-2022 arXiv LaTeX sources and re-generate them using 15 modern LLMs within the context of the same paper. This leaves us with coupled human and AI outputs in three different representations: the LaTeX source, a rendered image of the PDF, and the text extracted from the PDF. We find that the accuracy of the state-of-the-art Pangram 4 drops significantly as the mathematical content in a passage increases, especially when evaluated on text as opposed to LaTeX. However, this is not an inherent limitation of detecting AI-generated math: finetuning Qwen-3.5-27B based detectors on this domain recovers the gap, with LaTeX inputs performing significantly better than text since they preserve more formatting information. Since LaTeX sources are rarely available in practice, we also train SNAPJUDGE: an image-based detector operating on screenshots of both prose and proofs from papers. At 0.1% false positive rate, SNAPJUDGE achieves a detection rate of 92% on proofs and 93% on prose generated by frontier models, substantially outperforming both Pangram 4 and our text-based detector. We release our data, models and code at https://nlplab.cs.duke.edu/snapjudge.

1. Introduction

Mathematical capabilities of LLMs have risen from solving middle-school math problems (Cobbe et al., 2021) to winning math olympiads (Luong & Lockhart, 2025), and now tackling longstanding open problems, such as the Jacobian conjecture (Tao, 2026) and (allegedly) the Navier–Stokes Millennium Prize problem (OpenAI, 2026b). These advances highlight the urgent need for improving transparency about the use of AI when publishing scientific papers, including the technical content such as proofs and derivations that support their claims. Even when the claims in a paper are correct, understanding how they were produced still matters for evaluating researchers' contributions and assigning credit. This need is reflected in publication policies: many conferences and publishers now require authors to disclose their use of AI (NeurIPS, 2025; ICLR, 2025; NeurIPS, 2026; Nature Portfolio, Springer Nature, 2026; Mohapatra & Pruthi, 2026). Such policies rest on honest disclosure, which can only be verified, and therefore enforced, when accurate detection is available. Although the state-of-the-art commercial detector, Pangram 4 (Glickenhaus et al., 2026), is highly accurate at flagging general-purpose AI content, we find that its effectiveness degrades significantly on scientific text, especially math-heavy text, which comes with rich visual formatting. 1^{1}

For ordinary prose, we can expect that any given idea can be expressed in many different ways, and the choices an LLM makes among them leave traces that can be detected (Mitchell et al., 2023; Hans et al., 2024; Liang et al., 2025). However, it is unclear whether such detectable signs remain in the much more constrained and formal setting of math-heavy scientific writing. In this work, we present the first systematic study of AI text detection on math-heavy scientific writing under 3 different representations: LaTeX, text and rendered images of PDF pages (Figure 1). We find that AI-generated math remains highly detectable under all three representations.

LaTeX is the dominant language for typesetting math in scientific papers (Ginev et al., 2026), however, in

1^{1}The Pangram 4 report explicitly states that mathematical prompts are excluded from its evaluation.

Figure

Our detectors

Figure 1: The same mathematical expression shown as LaTeX source, PDF-extracted text, and a rendered image. We study AI detection across three representations and find that rendered images generally yield higher detection rates than extracted text and approach the performance obtained with the original LaTeX source.

practice readers seldom have access to the underlying LaTeX source of a paper they are reading. Prior detectors deal with PDFs by either: (i) extracting text from the PDF, using tools such as PyMuPDF (Artifex Software, 2026), which severely damages formatting of the mathematical content and, as we show, reduces detection accuracy (Section 4); or (ii) running OCR on the page images using specialized tools such as Marker and Tesseract (Paruchuri, 2023; Smith, 2007), which preserve math but introduce additional formatting signals that impede detection (Emi, 2025).

Hence, we develop SNAPJUDGE, an image-based detector that identifies AI-generated writing directly from rendered scientific passages. This requires minimal preprocessing and preserves the stylistic choices behind math writing which can aid detection. Specifically, we construct our data by extracting the proof and prose passages from LaTeX sources of pre-2022 arXiv papers, and re-generating them using modern LLMs (conditioned on the rest of the paper). Using the resulting data, we finetune three Qwen3.5-based detectors (Qwen Team, 2026), one per representation, and show that while the LaTeX detector performs best, the image-based detector has comparable accuracy and also outperforms the text-based detector (Section 4). On the same test data, we find that Pangram 4 only detects 36% of the AI-generated proofs when tested on the LaTeX source, with even worse performance upon using the extracted text. Overall, our detectors lead to a >90% detection rate at a relatively strict threshold of 0.1% false positive rate, and also hold up outside mathematics. Despite concerns that supervised detectors collapse on unfamiliar domains (Shen et al., 2026), SNAPJUDGE performs excellently on MIRAGE (Fu et al., 2025), RAID (Dugan et al., 2024), AI-written peer reviews (Yu et al., 2026), and the EditLens dataset (Thai et al., 2026) (Section 4.3).

When we reduce the false-positive rate to 0.01%, SNAPJUDGE still detects more than 82% of the AI-written passages (Figure 2), highlighting the viability of our tool for practical use. We further analyze what makes AI-generated math detectable, and invalidate explanations that conjecture that AI-generated math is qualitatively different or may contain more errors, and therefore is detectable (Section 4.2). We also investigate if prose around the mathematical formulas gives away signs of AI writing, and find that passages do become harder to detect as the percentage of formulas in them increases, but we are still able to detect over 80% proofs which are composed primarily of formulas and equations.

To summarize, our contributions are the following:

  1. We contribute a dataset containing math-heavy text, consisting of 47K human-AI paired proofs and 45K paired prose passages, where each pair includes three representations, namely the LaTeX source, the text extracted from the PDF, and the rendered image.

  2. We show that existing zero-shot and open-source detectors fail to detect proofs from frontier models, and even the state-of-the-art Pangram 4 detects only 32.4% of them (from extracted text), or 65.6% upon recalibration.

  3. We systematically study the detection performance under three different representations, and find that detectors operating on the LaTeX source perform best, whereas text-based detectors struggle with math-heavy text. Image-based detectors are comparable to the performance of detectors that use LaTeX source.

  4. We propose SNAPJUDGE, an image-based text detector, which also supports estimating the proportion of the text in an image that was AI-generated. It is the most effective practical detector for math-heavy text, outperforming the text-based Pangram 4 by 26.2 percentage points on frontier-model proofs.

  5. We analyze AI usage trends in arXiv papers across fields and find that AI entered mathematics relatively late, but its use in mathematics is now growing faster and faster, with the share of mathematics passages detected as AI-generated rising from essentially zero before 2023 to 23.1% of prose and 17.6% of proofs in August 2026. Proofs still lag behind prose but are catching up quickly.