Baseline Path Protocol
Use this skill when an Integrated Gradients experiment needs a baseline and interpolation points. Do not use it to choose a task label, evaluate model quality, or replace the attribution computation itself.
Inputs
input_vector: numeric feature vector for the explained example.baseline_vector: same-length vector representing absence of signal.steps: positive integer Riemann step count.- Optional
baseline_scoreandnear_zero_tolerancefor baseline diagnostics.
Outputs
- Ordered interpolation points for
alpha = 1/steps ... 1. - Baseline metadata with warnings when the baseline score is not near zero.
Workflow
- Check that the input and baseline vectors are non-empty and equal length.
- Check that
stepsis positive. - Generate the straight-line path
baseline + alpha * (input - baseline). - Include the original input as the last point and omit alpha zero for Equation 3 style averaging.
- Record baseline-score warnings without replacing the caller's baseline.
Validation
Run python tests/test_baseline_path.py from this skill directory or validate through the Distiller skill-tree validator.
Limitations
This skill does not compute gradients or decide whether a baseline is semantically perfect; it provides the auditable protocol and diagnostics required by the paper.