arXiv:2608.29575cs.CLAug 2026

Manuscript Offprint

arXiv:2608.29575

SemTrace: Source-Grounded Semantic Signatures for Tracing LLM Exposure to Protected Documents

Junyan Zhang, Yudong Zeng, Yongwei Huang, Zuhao Ouyang, Hong Chen, Xuming Hu

ABSTRACT

Large language models are increasingly used to read documents and produce downstream text, creating a provenance problem when the document owner cannot control or inspect the model that performs the generation. We introduce SEM-TRACE, a source-grounded semantic watermark for detecting whether a generated review was influenced by a known protected manuscript copy. Rather than biasing token probabilities or imposing surface-form patterns, SEMTRACE constructs a document-specific binary signature from factual propositions that are directly supported by the manuscript itself. A protected PDF invisibly carries a content contract that selects one fact from each binary pair and asks an instruction-following reviewer to express those facts in fixed review slots without changing its independent evaluation. A frozen natural language inference model then decodes the resulting semantic evidence with explicit erasures and scores the recovered bits against the codeword assigned to that copy. This design targets model-agnostic, assigned-copy exposure detection while keeping the watermark semantically tied to the source document.

1 INTRODUCTION

Large language models (LLMs) are rapidly becoming general-purpose readers and writers. A user can provide a long document—a paper, report, assignment, contract, or internal memo—and ask a model to summarize, critique, transform, or reason about it. This workflow is useful, but it creates a difficult provenance question for the document owner: if a downstream text was produced after an LLM read a particular protected copy of a document, can that exposure be detected from the generated text alone? In many realistic settings, the document owner neither controls the LLM nor has access to its logits, decoding process, API provider, or model weights. Academic peer review is a representative example: a venue may distribute a manuscript to a reviewer, yet cannot assume access to whatever external model the reviewer may use to process it (Rao et al., 2025; Liu et al., 2026a).

Most LLM watermarking methods address a different deployment setting. They embed statistical structure during model decoding, for example by biasing token selection toward a keyed subset of the vocabulary. Such methods have established that generated text can carry detectable signals with small quality loss, and later work has studied robustness, unbiased sampling, and adaptive watermark strength. However, these approaches generally require the party embedding the watermark to control generation (Kirchenbauer et al., 2023; Kuditipudi et al., 2023; Liu & Bu, 2024). This assumption breaks when a trusted party controls only the input document, while generation is performed by an unknown third-party LLM.

In-context watermarking (ICW) provides a compelling alternative: instead of modifying the model, a trusted party places a watermarking instruction in the model's context and relies on instruction following to induce a detectable pattern in the output(Liu et al., 2026b). Recent work demonstrates this idea with Unicode, word-initial, lexical, and acrostic signals, including an indirect-prompt-injection setting in which the instruction is embedded in a document (Greshake et al., 2023; Liu et al., 2026a). This removes the need for decoding access, but the watermark signal itself is largely expressed through surface form. Such patterns are intentionally orthogonal to the document's substantive content: particular characters, initials, vocabulary items, or sentence initials are encouraged because they carry a key, not because they are facts supported by the source. This creates a natural tension between detectability, unobtrusiveness, instruction-following burden, and robustness to rewriting.

We explore a different design point: source-grounded semantic signatures. Our method, SEM-TRACE, constructs the watermark alphabet from the document itself. For each paper, we extract atomic propositions that are directly supported by auditable source passages, filter them for factuality, neutrality, and redundancy, and use unwatermarked reviews to estimate how often each fact would be mentioned naturally. We then select a set of reliable and relatively rare facts, arrange them into binary alternatives, and assign the document a balanced codeword that chooses one side of each pair. The protected copy contains an invisible instruction asking the review model to naturally express the selected facts in predetermined content slots. The facts are not fabricated claims: both alternatives in every pair are true statements supported by the paper. The signature therefore changes which true details are selected for expression, rather than forcing arbitrary lexical artifacts into the review.

Detection is semantic rather than string based. Given a review, a frozen natural language inference (NLI) model evaluates whether either side of each fact pair is entailed by local review spans. Each position is decoded as 0, 1, or an explicit erasure when evidence is absent, conflicting, or ambiguous. The observed positions are compared only with the codeword assigned to the known protected copy. Accordingly, our primary task is assigned-copy exposure detection: determining whether a review carries the semantic signature of a specified protected manuscript copy. The signature is a structured detection code rather than a claim of arbitrary-payload communication, and the single-copy main protocol does not require scanning a multi-recipient codebook.

The key technical challenge is that semantic carriers are not automatically reliable. A fact that appears frequently in ordinary reviews produces false evidence; two near-duplicate facts waste capacity; and if the selected fact semantically entails its unselected counterpart, the detector may observe both sides and erase the position. SEMTRACE therefore couples source verification, natural-mention estimation, diversity-aware selection, and code-aware pairing. Seed-disjoint unwatermarked reviews estimate each candidate's natural mention prior. A maximal-marginal-relevance objective favors source-supported, important, verifiable, naturally expressible, but control-rare facts. A subsequent joint assignment procedure chooses fact pairs, bit orientation, and review slots while explicitly penalizing selected-to-unselected semantic implication.

Our contributions are:

• We introduce a source-grounded semantic signature that encodes a balanced binary codeword through alternative, manuscript-supported factual propositions rather than token-level or formatting patterns.

• We develop a fully auditable construction pipeline combining exact source quotations, source-NLI validation, neutrality constraints, semantic deduplication, control-aware MMR selection, and code-aware joint pairing and slot assignment.

• We introduce an erasure-aware NLI detector that recovers semantic bits from generated reviews and scores them against the known assigned codeword. Our evaluation protocol uses paired protected/unprotected generations, paper-level clustered uncertainty, matched ICW baselines, and black-box paraphrase stress tests.

References (24)