Skip to content
Back to skills

Baseline Path Protocol

ASecurity

Build and validate absence baselines and straight-line interpolation paths for Integrated Gradients recovery experiments.

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspython

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill baseline_path_protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Baseline Path Protocol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Baseline Path Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-baseline-path-protocol/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-baseline-path-protocol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: baseline_path_protocol
description: Build and validate absence baselines and straight-line interpolation paths for Integrated Gradients recovery experiments.
---

# 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_score` and `near_zero_tolerance` for baseline diagnostics.

## Outputs
- Ordered interpolation points for `alpha = 1/steps ... 1`.
- Baseline metadata with warnings when the baseline score is not near zero.

## Workflow
1. Check that the input and baseline vectors are non-empty and equal length.
2. Check that `steps` is positive.
3. Generate the straight-line path `baseline + alpha * (input - baseline)`.
4. Include the original input as the last point and omit alpha zero for Equation 3 style averaging.
5. 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…