Skip to content
Back to skills

Influence Vector Estimation

ASecurity

Estimate per-example parameter influence vectors for dataset pruning using gradients and damped inverse-Hessian approximations.

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
testingpython

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Influence Vector Estimation?

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

Security grade badge for Influence Vector Estimation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-influence-vector-estimation/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-influence-vector-estimation)

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

SKILL.md
---
name: influence_vector_estimation
description: Estimate per-example parameter influence vectors for dataset pruning using gradients and damped inverse-Hessian approximations.
---

# Influence Vector Estimation

Use this skill when a recovery or implementation needs the paper mechanism that approximates the parameter change caused by removing each training example without retraining. Do not use it as an independent scalar importance ranker; its output is meant to be aggregated vectorially by a pruning optimizer.

## Inputs

- Feature matrix, labels, and model parameters for a small differentiable classifier, or explicit per-example gradients and a Hessian/curvature matrix.
- Positive damping value for numerical stability.
- Approximation scope, such as last linear layer, recorded in metadata.

## Outputs

- JSON with one influence vector per example.
- Metadata containing damping, vector dimension, sample count, finite-value checks, and sign convention.

## Workflow

1. Compute per-example gradients for the selected parameter block.
2. Build or accept a curvature matrix and add `damping * I`.
3. Solve the damped linear system for every example.
4. Return removal influence vectors using a consistent sign convention.
5. Validate shapes and non-finite values before passing vectors downstream.

## Validation

Run `python scripts/influence_estimator.py --demo` and `python tests/test_influence_estimator.py` from this skill directory.

## Limitations

This skill provides a scalable approximation. It does not claim full leave-one-out retraining equivalence, and full CIFAR-scale recovery requires the actual model/data runtime.

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…