Research & documentation

How Verity reaches its conclusions

Every number in an audit comes from a documented computation on your data. This page explains the method, the thresholds, and where the evidence stops being conclusive.

What shortcut learning is

A model can reach high accuracy by learning a feature that happens to correlate with the label in the training distribution but has no causal relationship to the concept. The classic example: an animal classifier that recognises cows by the green grass underneath them.

Cow images are photographed on grass. Camel images are photographed on sand. A model that separates grass from sand separates cows from camels — and fails the moment a cow stands in a desert.

This is not overfitting in the usual sense: training and test accuracy can both look excellent because the shortcut holds in both splits. It only breaks under distribution shift, which is why it needs a dedicated audit.

Evidence hierarchy

1
Detected correlation

A feature tracks the model's output more strongly than the label does. Suggestive, never conclusive — two features can correlate for benign reasons.

2
Experimentally verified dependency

Changing only that feature flips a meaningful share of predictions. This shows the model uses the feature; it does not show the model is wrong to.

3
Suspected shortcut

A verified dependency plus the absence of a plausible causal path from feature to label, plus robustness loss under stratum re-weighting.

The platform never labels a correlation as a proven shortcut. The report states which level of evidence each finding reached.

How each measure is computed

Association strength

Numeric features: correlation ratio η, the square root of between-class variance over total variance. Categorical features: Cramér's V from the contingency table against the class labels. Both live in [0, 1], so the model-output association and the label association are directly comparable.

Permutation importance

The feature's values are shuffled across rows, the model is re-scored, and the accuracy drop is recorded. Available only when the model can be re-run in this environment.

Counterfactual flip rate

Every row is copied with one feature changed — numeric features move to mean + 1.5σ, categorical features to their rarest level. The model re-scores all copies; the flip rate is the share whose predicted label changed. A flip rate of at least 20% is treated as a verified dependency.

Robustness conditions

Gaussian noise at σ = 0.15 of each numeric feature's standard deviation, masking roughly 10% of numeric cells with the column mean, and stratum-balanced accuracy that weights every stratum of the strongest candidate equally. Consistency reports the share of rows whose label did not change.

Risk index

The index combines three measured quantities, each capped at one:

risk = 0.42 · correlation + 0.34 · verification + 0.24 · robustness loss
  • · correlation = max association gap × 2.2, capped
  • · verification = strong signals ÷ 2, capped
  • · robustness loss = accuracy lost under stratum re-weighting × 3, capped

Below 0.30 is low suspicion, 0.30–0.55 moderate, and above 0.55 high. With no model predictions available the index is not computed and the audit is marked "not assessed".

What this platform does not do

  • · It does not execute uploaded model binaries. Artifacts are registered for provenance only.
  • · It does not retrain your model. Counterfactuals re-score the same fitted model on perturbed copies of the rows.
  • · It cannot see raw pixels. Image datasets are audited through extracted background and subject descriptors.
  • · It does not infer causality. A verified dependency is evidence of reliance, not of error.
  • · Its reference model is fitted in-sample, so its accuracy is an upper bound rather than a production estimate.

Reproducibility

Every stage stores its output with the audit record, so reopening an audit shows exactly the numbers that were produced at run time. Randomised steps (shuffles, noise) use fixed seeds derived from the feature name, so repeating the same audit reproduces the same values.

Demonstration datasets are generated deterministically from published seeds. The demonstration model uses fixed published weights, which is why its results are labeled simulated.

Background reading: shortcut learning in deep networks