Skip to content
Back to skills

Virtual Update Interference

ASecurity

Rank replay candidates by loss increase under a virtual incoming-batch update for MIR selection.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Virtual Update Interference?

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

Security grade badge for Virtual Update Interference
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-virtual-update-interference/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-virtual-update-interference)

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

SKILL.md
---
name: virtual_update_interference
description: Rank replay candidates by loss increase under a virtual incoming-batch update for MIR selection.
---

# Virtual Update Interference

Use this skill when a recovery harness or implementation needs the core MIR selector. It computes a one-step virtual update from the incoming batch, evaluates candidate memory examples before and after that virtual update, and selects the examples with the greatest predicted loss increase.

## Inputs
- Current linear model parameters or an adapter exposing equivalent loss and gradient behavior.
- Incoming batch examples with features and binary labels.
- Candidate memory examples with features, labels, and optional best historical losses.
- Learning rate, replay budget, and scoring variant `smi_1` or `smi_2`.

## Outputs
- Virtual parameters.
- Candidate score records with current loss, virtual loss, and MIR score.
- Top-k selected replay candidates ordered by descending interference.

## Workflow
1. Clone the current parameters so the real model is not mutated.
2. Compute the average logistic-loss gradient on the incoming batch.
3. Apply one virtual SGD step to produce `theta_v`.
4. Score each candidate with `loss(theta_v) - loss(theta)` for `smi_1`.
5. For `smi_2`, subtract `min(current_loss, best_loss)`.
6. Sort by descending score, tie-breaking by stable example id.

## Validation
Run the included tests or `validate_skill_tree.py --run-tests`. They verify non-mutation, ranking of a harmed candidate, empty candidate behavior, and `smi_2` historical-loss handling.

## Limitations
The bundled script is a deterministic standard-library logistic-regression implementation for small recovery experiments. Larger neural systems should preserve the same contract with framework-specific models.

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…