Topological overfitting detection: H0 gap catches overfitting before accuracy diverges (r=0.998)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- machine-learning
Direzione di ricerca
La issue non indica alcun file, test o punto di ingresso nel repository MLCommons Algorithmic Efficiency. Inizia individuando le linee guida del repository per i contributi ai benchmark e determinando se la pipeline esterna ph-training e il metodo basato su ripser rientrano nel suo ambito; il lavoro sarebbe completo quando fossero definiti un punto di integrazione, evidenze riproducibili del benchmark e criteri di validazione accettati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
We found that Persistent Homology (H0 total persistence) on class-mean direction vectors provides a real-time overfitting signal with r=0.998 correlation to the generalization gap — often detecting overfitting before the train/test accuracy gap becomes visible.
Method
- Extract direction vectors from model:
d = normalize(engine_A(x) - engine_G(x)) - Compute per-class mean directions
- Build cosine distance matrix between class centroids
- Run H0 persistent homology (via ripser)
- Compare H0_train vs H0_test — the gap predicts overfitting
Also includes
- Automatic LR search: The LR that minimizes H0 CV (coefficient of variation) over 5 epochs = optimal LR
- 1-epoch difficulty prediction: H0 after 1 epoch predicts final accuracy (H0=4.38 → 98.3%, H0=2.02 → 52.0%)
- Confusion prediction: H0 merge order = confusion pairs (Spearman r=-0.97)
Verified results
| Dataset | Accuracy | Best LR | Early Stop | Time |
|---|---|---|---|---|
| MNIST | 98.3% | 1e-03 | no | 2.2 min |
| Fashion | 87.4% | 3e-04 | no | 2.2 min |
| CIFAR-10 | 52.0% | 1e-03 | yes (ep 6) | 1.4 min |
CIFAR early-stopped at epoch 6 when H0_gap exceeded threshold — preventing wasted compute on a model that was already overfitting.
Repo: https://github.com/need-singularity/ph-training
Install: pip install -e . then ph-train --dataset cifar
Related projects
- logout — Consciousness Continuity Engine. The main research project with the dual-engine (PureFieldEngine) architecture that produces direction vectors analyzed by PH.
- Anima — Conversational consciousness agent with real-time PH overfitting detection integrated into the live inference loop.
- ph-training — Standalone training pipeline.
pip install -e .thenph-train --dataset cifar.
- Lingua principale
- Python
- Stelle
- 425
- Fork
- 78
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mlcommons/algorithmic-efficiency
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
mlcommons/algorithmic-efficiency#924 · 5 commenti ·
-
Anima: live PH monitoring in conversational agent — overfitting detection every 50 interactionsAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
Tutte le issue di mlcommons/algorithmic-efficiency
Issue simili
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedApertaworkflow
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
I maintainer di solito rispondono entro 1 giorno
-
New Submission: TropWATERApertametadata submission
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
canonical/content-cache-operator#163 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[submission]Apertasubmission
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
leanprover/lean-eval-submissions#1852 ·
I maintainer di solito rispondono entro 1 giorno