model-equivariance-auditor

Verify PyTorch neural network models respect intended symmetries with systematic tests.

142|20|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/lyndonkl/claude --skill model-equivariance-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: model-equivariance-auditor
Source: https://github.com/lyndonkl/claude/tree/main/skills/model-equivariance-auditor
Command: npx skills add https://github.com/lyndonkl/claude --skill model-equivariance-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that your implemented neural network models correctly adhere to their intended symmetries, preventing subtle bugs that can lead to poor training and inconsistent results.

Core Features & Use Cases

  • Equivariance Verification: Run end-to-end tests to confirm if your model respects specified symmetries (e.g., rotation, translation).
  • Layer-wise Debugging: Isolate and identify specific layers that violate equivariance properties.
  • Gradient Symmetry Check: Verify that the model's gradients also respect the intended symmetries, crucial for stable training.
  • Use Case: After implementing a new 3D convolutional neural network for molecular property prediction, use this Skill to rigorously test if its predictions change predictably when the input molecule is rotated.

Quick Start

Use the model-equivariance-auditor skill to run end-to-end equivariance tests on your PyTorch model.

Frequently Asked Questions about model-equivariance-auditor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify that my PyTorch neural network respects equivariance properties?

Verify PyTorch neural network equivariance by running systematic end-to-end tests that check if model predictions change predictably under specified symmetries like rotation or translation. This process isolates custom layer violations and confirms global symmetry adherence.

Why does my equivariant model produce inconsistent results under rotation?

Equivariant models produce inconsistent results under rotation due to subtle bugs in custom layers, configurations, numerical precision, or integration. Layer-wise debugging and gradient symmetry checks isolate the specific layers violating intended symmetry properties.

Can I check gradient symmetry for my neural network to ensure stable training?

You can check gradient symmetry to ensure stable training by verifying that model gradients respect intended symmetries. This confirms that parameter updates remain consistent with geometric constraints during backpropagation.

Do I need PyTorch to test model invariance and equivariance?

You need PyTorch to test model invariance and equivariance, as the numerical computations and testing frameworks require PyTorch along with numpy and scipy dependencies to execute systematic verification tests.

What is the best way to debug symmetry violations in custom neural network layers?

The best way to debug symmetry violations in custom neural network layers is through layer-wise analysis, which isolates specific layers breaking equivariance properties and tests numerical precision issues within your model architecture.