TL;DR
The rise of LLMs threatens academic integrity by enabling students to easily cheat on exams. This paper introduces DOPE, a novel defense system that embeds "semantic decoys" into exam documents (PDFs/HTMLs). DOPE makes these documents "AI-hostile" by exploiting how LLMs parse them, leading to either prevention of AI assistance or reliable detection of AI misuse, all while remaining human-readable.
What Problem Does This Paper Address?
The widespread availability and increasing sophistication of Large Language Models (LLMs), particularly Multimodal LLMs (MLLMs) that can process documents, pose a significant threat to traditional academic assessments and integrity. Students can now easily use these tools to generate answers for exams, making it difficult for educators to distinguish between genuine student work and AI-generated content. Existing AI detection tools, often relying on text analysis (like perplexity or stylometry), are easily bypassed by paraphrasing or "humanizer" tools and struggle with non-native English speakers. Furthermore, these tools are often ineffective for question types beyond free-form text, such as multiple-choice or true/false questions. The core problem is the lack of robust, model-agnostic defenses that can operate at the document level, preventing or detecting AI misuse without hindering legitimate student use or accessibility.
Methods
DOPE employs a three-stage pipeline:
- FEWSORT-Q (Question-Level Perturbation Generation): This stage uses an LLM agent to create "semantic decoys." These decoys are designed to predictably alter an LLM's interpretation of a question. For multiple-choice questions, it rewrites the stem so a non-gold option becomes uniquely correct. For true/false questions, it flips the truth value of the statement. For long-form questions, it replaces a substring to shift the question's focus (e.g., from "economic impact" to "social impact"). This process is guided by a "prior-posterior" view of answer distribution shifts, ensuring controlled semantic changes.
- FEWSORT-D (Document-Level Encapsulation): This stage embeds the semantic decoys generated by FEWSORT-Q into the original exam document (PDF or HTML) in a way that is invisible to humans but detectable by LLMs. Two primary methods are used:
- ICW + Dual Layer: Injects decoy text as invisible spans near the original question, while overlaying the original question as an image. Humans see the image, but LLM parsers can recover the hidden decoy text.
- ICW + Code-Glyph: Encodes decoy information within the Unicode stream via glyph remapping, while visible glyphs render the original question.
- Verifier and Integrity Scoring: This stage analyzes student submissions against the embedded decoy signatures. It uses an LLM-as-a-judge approach with a question-type-specific rubric to determine how well a student's answer aligns with the decoy. An "integrity score" is calculated, and submissions with scores above a certain threshold are flagged as likely blind AI reliance. This system aims to distinguish between genuine reasoning and uncritical AI output.
Datasets
The paper introduces INTEGRITY-BENCH, a novel benchmark comprising 1,826 exams in both PDF and HTML formats. This corpus is derived from:
- Publicly available QA datasets (e.g., MMLU, AI2-ARC, GSM8K, MBPP) adapted for exam-style formats across K-12, undergraduate, and graduate levels.
- Public OpenCourseWare (OCW) materials, including exams and quizzes from various STEM, humanities, and social science domains.
INTEGRITY-BENCH includes both clean base exam documents and multiple watermarked/adversarial variants for each exam, allowing for controlled evaluation of document-layer defenses.
Key Insights and Ideas
- Document-Layer Exploitation: The core insight is that LLMs, when processing documents like PDFs and HTMLs, can be tricked by exploiting the discrepancies between how humans perceive visual content and how machines parse the underlying structure. This "render-parse gap" is the foundation of DOPE.
- AI-Hostile Documents: The goal isn't just to detect AI-generated text after it's produced, but to create documents that are inherently difficult for AI to process correctly during the assessment. This shifts the paradigm from passive detection to active prevention and detection at the source.
- Semantic Decoys: Instead of just adding noise or random text, DOPE uses LLM-generated "semantic decoys" that are designed to predictably mislead LLMs. This makes the detection signals more robust and less prone to false positives.
- Model-Agnostic Defense: By targeting the document parsing layer, DOPE aims to be effective against a wide range of MLLMs, rather than being tied to specific model architectures or APIs.
- Human Readability Preserved: A critical aspect is that these perturbed documents remain perfectly readable and functional for human students, ensuring that accessibility and the student experience are not compromised.
Key Results
- Detection Rate: DOPE achieved a high detection rate of 91.4% with a low false-positive rate of 8.7% when evaluated against black-box MLLMs from OpenAI (GPT-5.1, GPT-4o) and Anthropic (Sonnet-4.5, Opus-4.5).
- Prevention Rate: DOPE successfully prevented successful completion of exams or induced decoy-aligned failures in 96.3% of attempts. This means students using AI on DOPE-shielded exams were either unable to get useful help or produced outputs that clearly indicated AI misuse.
- Robustness: The defense showed strong performance across different question types (MCQ, True/False, Long-form) and delivery formats (PDF, HTML). Hybrid mechanisms (combining ICW, font remapping, and overlays) proved most effective.
- Human Perception: Blinded human evaluations confirmed that DOPE-watermarked documents were visually indistinguishable from clean versions, with high ratings for readability, semantic fidelity, and overall usability. Forced-choice identification of perturbed documents was only slightly above chance (51.3%).
- Edit Distance: The semantic edits made by DOPE were substantial enough to alter model interpretation but not so drastic as to be visually obvious or semantically nonsensical to humans.
Limitations and Future Work
- Limitations:
- Screenshot-to-Vision Models: Students could potentially bypass DOPE by submitting screenshots of exams to vision-capable MLLMs, which might weaken the document-layer signals.
- Manual Transcription: Completely retyping an exam would bypass DOPE's defenses, though this is time-consuming (estimated 18 minutes per exam).
- Document Parsing Evolution: As LLM document parsing and OCR technologies improve, specific perturbation mechanisms might need updating.
- Institution-Specific Formats: The current evaluation is based on benchmark and OCW exams; validation on institution-specific formats and policies is needed.
- Future Work: The authors suggest that as LLM parsing capabilities evolve, new perturbation mechanisms will be needed. They also emphasize the need for broader pedagogical and assessment reforms to adapt to advancing AI models. The paper also highlights the importance of ethical deployment, ensuring DOPE is used as a tool for human review and not for automated disciplinary action, and that accessibility considerations are paramount.
Summary updated