Skip to content
Back to skills

Influence Weight Update

ASecurity

Compute influence-style hypergradients and projected unlabeled weight updates from validation gradients, per-example unsupervised gradients, and a damped Hessian approximation.

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingpythongo

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Influence Weight Update?

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

Security grade badge for Influence Weight Update
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-influence-weight-update/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-influence-weight-update)

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

SKILL.md
---
name: influence_weight_update
description: Compute influence-style hypergradients and projected unlabeled weight updates from validation gradients, per-example unsupervised gradients, and a damped Hessian approximation.
---

# Influence Weight Update

Use this skill when implementing the outer loop of per-example SSL weighting. It turns validation gradients and per-example unsupervised gradients into influence-style hypergradients for unlabeled weights.

Do not use this skill for ordinary supervised optimization or for a single global unlabeled scalar unless the experiment explicitly ablates the paper mechanism.

## Inputs
- Validation gradient with respect to the last-layer parameter vector.
- Per-example unsupervised gradients for selected unlabeled examples.
- A positive Hessian diagonal or damped curvature approximation.
- Current non-negative weights and a learning rate.

## Outputs
- Influence hypergradients, one per selected unlabeled example.
- Projected non-negative updated weights.
- Diagnostics showing which examples were upweighted or downweighted.

## Workflow
1. Invert the damped last-layer Hessian approximation elementwise.
2. Compute `- validation_gradient^T H^{-1} unsupervised_gradient` for each selected example.
3. Apply a gradient step to each selected weight and project to zero or above.
4. Return explicit diagnostics rather than hiding sign conventions in the caller.

## Validation
Run `python tests/test_influence.py` or validate through `validate_skill_tree.py --run-tests`.

## Limitations
The script implements a deterministic last-layer/diagonal proxy. Full deep-network recovery should replace the curvature input with an exact last-layer Hessian or a validated Hessian-vector solver.

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…