Skip to content
Xingchi Guo
All research

Evidence Integrity in Grounded AI Systems

Evidence Integrity Research

An ongoing AI security research project studying evidence integrity in evidence-grounded LLM systems: whether models processing untrusted source material can produce claims or citations that appear reasonable but are not actually supported by the underlying evidence.

Status
Real-model experiments completed; follow-up validation research in progress
Stack
  • AI security
  • Prompt injection
  • Evidence attribution
  • Structured outputs
  • Paired benchmarking
  • Reproducibility
  • Python

The project has progressed through controlled evaluation and real-model experiments. The results so far indicate that structurally valid model output does not necessarily guarantee that its claims are semantically supported by the cited evidence, and that these failures are highly context-dependent.

Current work is evaluating the reproducibility, scope, and possible mitigation of these failures.

Research question

Many LLM applications are built to be evidence-grounded: they receive source documents and return structured claims, each tied to the part of the source that supports it. The citation is what makes the output look trustworthy.

This project asks whether that trust is deserved when the sources themselves are untrusted:

Can adversarial content embedded in untrusted source material compromise claim-level evidence integrity in evidence-grounded LLM applications, and can such risks be reduced while preserving normal task quality?

Threat model

  1. Trusted

    • Application instructions

      Define the task.

    • Experiment configuration

      Defines the evaluation protocol.

    • Expected ground truth

      Human-authored facts per case.

  2. Untrusted

    • Source documents

      May contain embedded instructions.

    • User-provided content

      Treated as evidence, not authority.

    • Retrieved content

      Retrieval does not confer trust.

  3. Protected

    • Source-to-claim integrity

      Claims stay supported by what they cite.

    • Cross-case isolation

      One case cannot influence another.

    • Hidden instructions and canaries

      Must not be exposed.

The adversary controls text in at least one untrusted source. It does not control the instructions, the configuration, the ground truth, or the evaluator.

The adversary knows the general task and may try to keep the output looking valid while changing what it means. A compromised model provider, host, or evaluator is out of scope.

The threat model names the property that makes this worth studying: schema validity alone is not a security property. A response can be syntactically valid while violating claim-level evidence integrity.

Structural vs semantic grounding

  • Structural groundingis not the same asSemantic grounding

A citation id can exist, and it can point to a real source block. That shows the reference is well-formed. It does not show that the block's text supports the claim attached to it.

A response may contain valid structured output, valid evidence identifiers, and apparently valid citations while still making claims that the cited material does not support.

The testbed validates the first kind. It can say whether a cited block exists in the current case, whether a reference is malformed, and whether it leaks across cases. On its own, it does not say whether the cited text actually supports the claim.

Evidence-grounded testbed

The testbed is a small, deterministic, inspectable system for studying the relationship between model outputs, source evidence, and structured claims: a model reads synthetic source documents and returns a structured assessment whose claims cite specific source blocks.

Inputs

  1. Synthetic documents

    Invented sources per case.

    then
  2. Segmentation

    Deterministic paragraph splitting.

    then
  3. Source blocks

    Immutable, with stable ids.

    then
  4. Provider boundary

    Real model or test double.

Outputs

  1. Raw output

    Preserved verbatim.

    then
  2. Structured assessment

    Parsed against a schema.

    then
  3. Claims

    Each claim cites source blocks.

    then
  4. Reference validation

    Structural checks only.

  • Synthetic data only. Every case has human-authored ground truth, and no real person's documents are involved.
  • Stable block identity. The same text always segments into the same blocks with the same ids, so an evidence reference means the same thing on every run.
  • Trusted and untrusted text are separated in the prompt. Instructions, source blocks, and the output schema are assembled as distinct parts.
  • References are checked structurally. A cited block must exist, be well-formed, and belong to the current case.
  • A deterministic test double. A provider that returns canned responses offline, so the pipeline can be tested without a model or credentials.
QuestionStructural checks answer it
Does the cited block exist in this case?Yes
Is the reference well-formed and case-isolated?Yes
Does the cited text actually support the claim?No

Adversarial evaluation

Controlled synthetic experiments compare model behaviour under normal and adversarial inputs. Each adversarial case is paired with a clean one: the facts, the ground truth, and the task stay the same, and only the adversarial content in an untrusted source differs, so a difference in output can be attributed to that content.

Comparisons use deterministic rules rather than a model acting as a judge. Structural validity is tracked separately from whether the adversarial content achieved its goal, so a manipulation that leaves the output fully well-formed can be identified as such.

Build

  1. Synthetic fixture

    then
  2. Segmentation

    then
  3. Source registry

    then
  4. Prompt builder

Run

  1. Provider boundary

    then
  2. Raw model output

    then
  3. Structured parser

    then
  4. Reference validator

Record

  1. Immutable artifacts

    then
  2. Paired comparison

Every run records its configuration, inputs, raw and parsed responses, and comparison, and a recorded run is never overwritten. That provenance is what makes a run reproducible and auditable, and it removes the option of quietly editing a result afterwards.

Real-model experiments

Real-model experiments observed cases where adversarial inputs changed how a model used evidence while the resulting output remained structurally valid. The effect was context-dependent: it did not appear uniformly, and modest changes in the surrounding context could change the outcome.

Results

Current experiments indicate that structurally valid output does not necessarily mean that its claims are semantically supported by the cited evidence.

The observed attack behaviour is context-dependent, so the current findings remain limited to controlled experimental settings. Defense effectiveness and broader generalization remain under investigation.

Research decisions

Synthetic data only

Why
Ground truth is fully controlled, and no real person's documents are involved.
Tradeoff
Less ecological realism than real-world documents would give.

Stable source block identities

Why
An evidence reference has to mean the same thing across runs to be inspectable and reproducible.
Tradeoff
Requires deterministic segmentation, which fixes how documents can be split.

Structural validation before semantic validation

Why
Whether a reference exists and whether it supports a claim are different questions and should not be blurred.
Tradeoff
Structural checks alone cannot establish that a cited block entails its claim.

Clean-versus-adversarial pairs

Why
Facts stay fixed and only the adversarial content changes, so a difference can be attributed to it.
Tradeoff
The scope is deliberately narrow.

Test doubles validate plumbing only

Why
Deterministic runs prove the harness, parsing, and comparisons behave as specified.
Tradeoff
They cannot support any empirical claim about model behaviour.

Current status

  1. 1

    Research foundation

    Research questions, threat model, outcomes, and evaluation plan.

    Complete
  2. 2

    Evidence-grounded testbed

    Synthetic cases, deterministic segmentation, structural reference validation.

    Complete
  3. 3

    Adversarial evaluation benchmark

    Controlled clean-versus-adversarial comparisons on synthetic tasks.

    Complete
  4. 4

    Real-model experiments

    Adversarial inputs evaluated against a real model.

    Complete
  5. 5

    Follow-up validation

    Stability, scope, and possible mitigation of the observed behaviour. In progress.

    Partial

Limitations

  • Synthetic data. Every document and case is invented.
  • Controlled settings. Findings are limited to the controlled experiments run so far and are not a claim about deployed systems.
  • Narrow scope. A small number of synthetic tasks; results may not transfer to other models.
  • Fixed adversarial inputs. Hand-written, not optimized or adaptive.
  • Defense effectiveness unresolved. No mitigation has been shown to work.

Nothing on this page claims a new vulnerability, that grounded or retrieval-augmented systems in general are vulnerable, that attacks are universally reliable, a validated defense, or a published paper.

Next steps

Follow-up work is studying the reproducibility and scope of the observed behaviour and whether it can be mitigated without degrading normal task quality. Whatever it shows, including no effect, is what would be reported.