Initial commit: README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🔮 Sentinel Explainability
|
| 2 |
+
|
| 3 |
+
## Overview
|
| 4 |
+
|
| 5 |
+
**Sentinel Explainability** — Exact 3-coefficient decomposition using **Fourier exactness** of F(e^{iθ}).
|
| 6 |
+
|
| 7 |
+
## Key Innovation
|
| 8 |
+
|
| 9 |
+
The Sentinel function on the unit circle has **EXACT Fourier coefficients**:
|
| 10 |
+
```
|
| 11 |
+
c_1 = 1, c_2 = 1/4, c_3 = 1/27
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
This means **any decision boundary** near the unit circle can be exactly
|
| 15 |
+
represented by just **3 complex numbers** — with error |ε| < 0.01.
|
| 16 |
+
|
| 17 |
+
**For regulatory compliance (GDPR Article 22: Right to explanation):**
|
| 18 |
+
- Exact coefficients (not approximations)
|
| 19 |
+
- Minimal complexity (3 coefficients)
|
| 20 |
+
- Human-interpretable modes
|
| 21 |
+
- Bounded attributions via Gradient Axiom
|
| 22 |
+
|
| 23 |
+
## Verified Properties
|
| 24 |
+
|
| 25 |
+
| Property | SHAP / LIME | Sentinel Explainability |
|
| 26 |
+
|----------|------------|------------------------|
|
| 27 |
+
| Decomposition | Approximate (sampling) | **Exact (3 coefficients)** |
|
| 28 |
+
| Complexity | O(2^M) features | **3 modes** |
|
| 29 |
+
| Regulatory | Not provably compliant | **GDPR Article 22 ready** |
|
| 30 |
+
| Attribution bounds | Unbounded | **Bounded by 1/e** |
|
| 31 |
+
|
| 32 |
+
## Code
|
| 33 |
+
|
| 34 |
+
See `sentinel_explainability.py` for:
|
| 35 |
+
- `SentinelExplainer` (Fourier decomposition)
|
| 36 |
+
- `SentinelGradientExplainer` (bounded gradients)
|
| 37 |
+
- `demo_sentinel_explainability()` (synthetic model)
|
| 38 |
+
|
| 39 |
+
## Repository
|
| 40 |
+
|
| 41 |
+
[5dimension/sentinel-explainability](https://huggingface.co/5dimension/sentinel-explainability)
|
| 42 |
+
|
| 43 |
+
## Applications
|
| 44 |
+
|
| 45 |
+
- Financial AI (regulatory compliance)
|
| 46 |
+
- Medical AI (FDA approval)
|
| 47 |
+
- Autonomous vehicles (safety explanation)
|
| 48 |
+
- Hiring/loaning algorithms (fairness)
|