Skip to content
Back to skills

Training Dynamics Scoring

ASecurity

Convert per-example training dynamics into CCS-compatible importance scores for coreset selection.

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

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Training Dynamics Scoring?

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

Security grade badge for Training Dynamics Scoring
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-training-dynamics-scoring/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-training-dynamics-scoring)

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

SKILL.md
---
name: training_dynamics_scoring
description: Convert per-example training dynamics into CCS-compatible importance scores for coreset selection.
---

# Training Dynamics Scoring

Use this skill when a coreset workflow needs deterministic per-example importance scores derived from model training dynamics. It is appropriate for Coverage-centric Coreset Selection style experiments and for reduced proxy recovery where probability traces are synthetic but still aligned to labels and indices.

Do not use this skill to choose the coreset directly or to claim full model accuracy. It only converts logged probabilities into scores that downstream selection modules consume.

## Inputs

- Records with `index`, `epoch`, `probabilities`, and `label` fields.
- `num_classes`, inferred from probabilities when omitted.
- Optional `max_el2n_epoch`, matching the paper-style early dynamics window.

## Outputs

- `targets`: label per original index.
- `correctness`, `forgetting`, and `last_correctness` counts.
- `accumulated_margin`: target probability minus best non-target probability summed across records.
- `el2n`: Euclidean distance between one-hot label and probabilities over the configured early window.
- Optional `entropy` and `loss` when final probabilities are available.

## Workflow

1. Validate that every probability vector is non-empty and matches the class count.
2. Sort records by epoch while preserving original index identities.
3. Update correctness and forgetting whenever an example changes from correct to incorrect.
4. Add accumulated margins for every record and EL2N contributions before the configured cutoff.
5. Return plain Python lists so later scripts can serialize the result without torch or numpy.

## Validation

Run `python tests/test_training_dynamics_scoring.py` or validate the skill tree with the Distiller validator using `--run-tests`.

## Limitations

This skill intentionally avoids framework-specific tensors. Full-paper score generation can wrap it after extracting probabilities from PyTorch logs, but the reusable contract is standard-library only.

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…