﻿# CheckList NLP testing: minimum functionality, invariance and direction

Design CheckList test families around explicit behavioral expectations instead of treating every text perturbation as an unchanged-label example.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/data-guide-checklist-behavioral-test-types/
Language: en

## Test types express different expectations

CheckList organizes testing around linguistic capabilities and minimum-functionality, invariance and directional tests. Minimum functionality checks a known expected behavior. Invariance asks whether a suitable transformation preserves the relevant prediction. Directional tests express an expected direction of change rather than strict equality.

Choose the expectation before generating examples. A negation can legitimately change a sentiment label, while an irrelevant formatting change may be expected to preserve it. Treating both as invariance tests creates misleading failures.

## Templates generate a family, not independent evidence

The toolkit provides templates, lexicons and perturbation utilities for producing variations. These make targeted coverage easier, but many generated cases can share one underlying construction and assumption.

Retain template parameters and capability labels. A large family should not be described as the same number of independent real-world observations. Review linguistic validity and the expected relation for representative variants before using the family to explain model weaknesses.

## Model outputs need a compatible wrapper

The author repository demonstrates connecting predictions and confidence values to test expectations. A wrapper translating a new model's output must preserve class order and the meaning of confidence. Free-form generated explanations may require a separate parsing policy.

Inspect raw outputs beside the expectation result. A class-map error can make every directional test look wrong even when the model's underlying predictions are sensible. Distinguish wrapper failures from substantive behavioral failures.

## Group aggregation changes the reported failure

The released test classes expose expectation and aggregation behavior, including grouped input handling. Whether a family fails when any member fails is different from averaging individual predictions. State the unit represented by the reported failure rate.

Keep individual outcomes and group membership. A single invalid generated sentence can affect a group-level result, so review it before treating the entire capability as unsupported. The aggregation rule does not validate the examples automatically.

## Behavioral coverage complements held-out accuracy

The paper motivates targeted tests because ordinary held-out accuracy can miss important failure modes. Such tests are diagnostic evidence, not a replacement for a representative evaluation population or proof of complete linguistic competence.

A proposed report includes capability, test type, template revision, wrapper and failure examples. This article creates no new model test result. It explains how CheckList makes expectations explicit while keeping generated-data validity and population-level performance as separate questions.

## Primary references

[CheckList original paper](https://aclanthology.org/2020.acl-main.442.pdf).

[CheckList author repository](https://github.com/marcotcr/checklist).

[CheckList test-class implementation](https://raw.githubusercontent.com/marcotcr/checklist/master/checklist/test_types.py).

Related explanations: [Independent test examples](/journal/document-level-data-split-leakage/); [Generated-test provenance](/journal/document-markdown-json-provenance/).
