Skip to content
Back to skills

Ntk Block Spectrum

ASecurity

Compute PINN neural tangent kernel block traces, eigenvalue summaries, and dominance diagnostics from empirical Jacobians.

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

Security analysis

A100/100

Scanned September 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Ntk Block Spectrum?

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

Security grade badge for Ntk Block Spectrum
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-ntk-block-spectrum/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-ntk-block-spectrum)

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

SKILL.md
---
name: ntk_block_spectrum
description: Compute PINN neural tangent kernel block traces, eigenvalue summaries, and dominance diagnostics from empirical Jacobians.
---

# NTK Block Spectrum

Use this skill when a PINN recovery task needs to diagnose convergence-rate imbalance between boundary and residual loss components. It implements the paper's block-kernel view with small deterministic arrays.

## Inputs

- Boundary Jacobian `J_u` as rows over boundary observations and columns over parameters.
- Residual Jacobian `J_r` as rows over residual observations and columns over the same parameters.
- Optional dominance tolerance.

## Outputs

- `trace_kuu`, `trace_krr`, and `trace_full`.
- Eigenvalue lists for `Kuu` and `Krr`.
- Dominance label: `residual_dominates`, `boundary_dominates`, or `balanced`.

## Workflow

1. Validate that both Jacobians are non-empty matrices with equal parameter dimension.
2. Compute Gram blocks `Kuu = J_u J_u^T` and `Krr = J_r J_r^T`.
3. Compute traces and symmetric eigenvalues.
4. Compare block traces and record which loss component is expected to converge faster.
5. Pass the diagnostics to the adaptive weighting skill.

## Validation

Run:

```bash
python tests/test_ntk_spectrum.py
```

The tests use residual-dominant Jacobians and check trace, eigenvalue, and label behavior.

## Limitations

This skill computes empirical finite-width diagnostics. It does not prove infinite-width convergence; it preserves the operational recovery mechanism needed for bounded experiments.

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…