Downloads · 30 days
0
Carnot-EBM/carnot-jepa-predictor-v2
carnot-jepa-predictor-v2 is a machine learning model from Carnot-EBM. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
JEPA Violation Predictor v2 — a multi-domain neural verifier trained to predict whether a language model answer violates domain constraints (arithmetic, code, logic).
Downloads · 30 days
0
Access
Public
Updated Apr 23, 2026
Repo size
74.9 KB
Likes
0
Public
Click a slice to open those files.
.safetensors74.9 KB · 93%
From the Hugging Face model README
JEPA Violation Predictor v2 — a multi-domain neural verifier trained to predict whether a language model answer violates domain constraints (arithmetic, code, logic).
This is a research artifact from the Carnot EBM framework. It is a small MLP (input_dim=200, hidden_dim=128, output_dim=1) trained with class-weighted binary cross-entropy and early stopping on a balanced multi-domain dataset.
| Domain | AUROC (v2) | vs v1 |
|---|---|---|
| Arithmetic | 0.721 | +0.018 |
| Code | 0.776 | +0.071 |
| Logic | 0.479 | −0.056 |
| Macro average | 0.659 | +0.011 |
Training details: 963 samples, best epoch 19 / 100, early stopping on validation macro AUROC (patience=15), class-weighted BCE loss (pos_weight clipped [0.1, 10]).
JEPAViolationPredictor(
input_dim = 200 # 200-dim binary feature vector (same encoder as Ising models)
hidden_dim = 128
output_dim = 1 # P(violation | x)
)
The predictor is trained on structured (question, answer, violated) triples. Features are the same 200-dim binary structural encoding used by the Ising constraint models (Carnot-EBM/constraint-propagation-*). This makes the two model families interoperable.
from safetensors.numpy import load_file
weights = load_file("jepa_predictor_v2.safetensors")
# Keys: "layer1.weight", "layer1.bias", "layer2.weight", "layer2.bias"
# Or load via the carnot package:
from carnot.inference.jepa_predictor import JEPAViolationPredictor
predictor = JEPAViolationPredictor.load("jepa_predictor_v2.safetensors")
# Score a 200-dim binary feature vector
import numpy as np
x = np.zeros(200, dtype=np.float32)
x[:20] = 1.0 # example features
prob_violation = predictor.predict(x)
print(f"P(violation) = {prob_violation:.3f}")
Note: This is a Phase 1 research artifact. For production use of the full Carnot EBM framework (constraint verification, guided decoding, energy-based repair), see:
pip install carnotSource and documentation: https://github.com/ianblenke/carnot
@misc{carnot2026jepa,
title = {Carnot JEPA Violation Predictor v2},
author = {Carnot-EBM},
year = {2026},
url = {https://github.com/ianblenke/carnot}
}
For production LLM output verification, install: pip install carnot
This model is a Phase 1 research artifact (activation-based confidence detection). These 16 per-token activation EBMs detect confidence, not correctness. For the full verify-repair pipeline, see: https://github.com/Carnot-EBM/carnot-ebm