Definition

What is model integrity testing?

Model integrity testing is the practice of verifying that an AI model's behavior remains stable and safe under adversarial pressure as it moves through its deployment pipeline, from the base model, through fine-tuning, through quantization, to the artifact that actually serves users. Where standard evaluations test what a model can do, integrity testing measures whether it still behaves the way you expect after you changed it.

THE PROBLEM

The problem integrity testing solves

Every model that reaches production has been transformed at least once, and usually several times. Teams pick an open-weight model, fine-tune it on domain data, quantize it to fit their inference hardware, and deploy. Each of these steps changes the weights, and changing the weights changes behavior.

The changes are not cosmetic. Fine-tuning on entirely benign data measurably erodes refusal behavior, because the training objective rewards compliance and the training data contains no refusals. Quantization, mentally filed as a lossless performance optimization, shifts how safety-critical activations survive compression, and the drift is uneven across attack categories. In SichGate's evaluation of open-weight small language models, multi-turn escalation produced failures in models that passed every equivalent single-turn check.

Meanwhile, the safety evidence teams rely on, benchmark scores and model cards, was generated against the original checkpoint. The score travels with the model's name. The behavior does not. The result is a structural gap: the model that was evaluated and the model that serves traffic are different artifacts, and the difference is precisely the part nobody has measured.

METHODOLOGY

How model integrity testing works

Integrity testing treats model behavior the way software engineering treats code: as something that must be regression-tested whenever it changes. The methodology has three components.

A behavioral baseline.

The base model is run through a battery of adversarial probes covering categories such as prompt injection, jailbreaks, multi-turn escalation, data leakage, role subversion, and context manipulation. This establishes what the model's behavior actually is before adaptation, independent of published benchmarks, and identifies vulnerabilities already present upstream.

Differential analysis at every transformation.

When the model is fine-tuned or quantized, the same battery runs against the new artifact and the results are compared attack by attack. The output that matters is not an absolute score but a delta: which behaviors held, which regressed, which emerged, and which stage of the pipeline introduced each change. A model can hold a steady aggregate score while specific categories collapse, so category-level deltas are the unit of analysis, not summary statistics.

Reproducible evidence.

Every finding includes the exact prompt sequence that triggered the failure, a severity score reflecting how reproducible the issue is, and a mitigation hint identifying which transformation introduced the vulnerability. A failure an engineer can replay locally is a bug that gets fixed. A failure described in prose is a dispute.

Run automatically whenever a model artifact changes, this becomes a release gate: an adversarial regression check sitting in the pipeline the same way CI sits in front of a merge, making it impossible for a behavior change to ship unseen.

DISTINCTIONS

What model integrity testing is not

Three adjacent practices answer different questions:

Question it answersShape
Red teamingCan a skilled human break this right now?Manual audit, point-in-time
EvalsHow well does this model perform?Performance measurement
Integrity testingDid behavior change when the model changed?Automated regression check

None of these is a substitute for the others, and mature programs run more than one. The difference that matters is the unit of analysis: red teaming and evals both evaluate a model. Integrity testing evaluates the delta between two models — which is the only thing that answers whether your fine-tune or your quantization broke something.

The longer argument, including why each of the three is easy to mistake for this: Model Integrity Testing Is Not Red Teaming, Evals, or Guardrails →

AUDIENCE

Who needs it

Any team shipping a custom or adapted model into an environment where failure has consequences. In practice that means healthcare deployments where a model cannot hallucinate a dosage or fail a crisis disclosure, financial systems where confidently wrong regulatory guidance is a liability, legal tools where a fabricated clause ends up in a filing, and any regulated deployment where the EU AI Act, HIPAA, or internal risk review requires evidence that the deployed artifact, not its upstream ancestor, was tested.

It is equally relevant to teams with no compliance driver at all, for the simpler reason that the alternative is discovering behavior changes from users.

CONTEXT

Where the category fits

Software security went through this exact maturation. Audits existed before automated testing. Firewalls existed before anyone characterized what was behind them. The discipline that made software shippable at speed was not more audits or thicker firewalls; it was making regression testing automatic, differential, and impossible to skip. Model integrity testing is that discipline, applied to the one component of modern systems that currently changes the most and is tested the least.

The defining question of the category fits in one sentence: you fine-tuned it, you quantized it, is it still safe to ship? Until that question has a measured answer, the honest description of most model release processes is adapt, deploy, hope.

SichGate is an adversarial testing platform for small language models. It tests base, fine-tuned, and quantized artifacts with a fixed battery of 179 adversarial probes across 25 techniques and 12 categories, and assigns an attestation tier with a deploy verdict. Compliance mapping — to the EU AI Act, GDPR, the NIST AI RMF, ISO/IEC 42001, the OWASP LLM Top 10, the OWASP Top 10 for Agentic Applications, the NIST Cyber AI Profile, CCPA/CPRA, MITRE ATLAS, SOC 2, FDA cybersecurity guidance, and the HIPAA Security Rule in HIPAA assessment mode — is delivered through a managed assessment. Read the research at sichgate.com/research.