ZeroPoint: a CPU-first, energy-based decision model
Picks the option that fits,
or says none does,
without being told that none is an option
ZeroPoint is a small energy-based model. It measures how well each option fits the text and compares it with a fixed level, zero, that stands for none of these. An option that fits no better than zero gets no probability, so ZeroPoint can answer none with confidence.
ZeroPoint | Strands Decider 2B ¹ | Clef-flash ² | Semantic Router | Zero-shot NLI | |
|---|---|---|---|---|---|
| Accuracy: right answer, none included | 53.6% | 58.6% | 53.3% | 19.4% | 20.7% |
| Same answer whatever the order: decisions that change when the same options are listed in another order | 0% | 7.3% | 0% | 0.6% | 0% |
| Accuracy when one option is right | 43.8% | 58.4% | 56.2% | 38.9% | 41.3% |
| Silent mistakes: no option fits, yet it answers with ≥ 90% confidence | 7.8% | 0.0%³ | 5.8% | – ⁴ | 22.2% |
| Latency, median on a CPU (on a GPU) | 42 ms | 6,770 ms (93 ms)⁵ | + 20,000 ms (156 ms)⁶ | 17 ms | 1,697 ms |
| Model size | 89 MB | 4.8 GB | 19 GB | 91 MB | 369 MB |
| Runs on | CPU | GPU | GPU | CPU | CPU or GPU |
Measured on the three tests no model is likely to have seen in training: a 2,000-case test and two support-ticket tests, 300 cases of each, 900 in all, half of them with no right option. ZeroPoint, Semantic Router and zero-shot NLI on a 2-core CPU with 2 threads, one case at a time. Semantic Router 1.1.1 with its default encoder; zero-shot NLI with DeBERTa-v3-base. ¹ AWS, Apache 2.0, and ² Cloudflare, Apache 2.0, each with "None of these" added to every list as one more option, so that it can answer none. ³ Strands Decider rarely states 90% confidence, even when it is right: 37% of its right answers, against 66% for ZeroPoint. ⁴ Semantic Router gives similarities, not probabilities. ⁵ On a CPU: measured on another 2-core CPU, on 118 cases of the 2,000-case test, where ZeroPoint takes 18 ms. On a GPU: an NVIDIA L4, on the 900 cases. ⁶ On a CPU: not measured, because Clef-flash needs about 19 GB of memory; a lower bound estimated from its size, 4.5 times that of Strands Decider. On a GPU: an NVIDIA L4, on the 900 cases. Per-test results, other confidence thresholds and the scripts to run it all again: BENCHMARK.md.
ZeroPoint at a glance
| Size | Latency | Deterministic | Multilingual |
|---|---|---|---|
89 MB, no GPUThe model ships inside the package: nothing is downloaded at run time. Strands Decider needs 4.8 GB and a GPU; Clef-flash 19 GB. |
42 ms on a CPUMedian on the tests above, on 2 CPU cores. On another 2-core CPU, ZeroPoint takes 18 ms per decision and Strands Decider 6.8 s. |
Same input, same answerThe order of the options never changes the decision; Strands Decider's changes in 7% of cases, and in 13% of support tickets whose own queue is not on the list. Same decisions on Linux, macOS and Windows, tested on every change. |
25 languagesEU languages in the Latin script, plus Catalan, Basque and Galician. Which ones, and why. |
Routing a support ticket, finding the intent behind a request, sending a document to the right process: each means picking one option from a list. A classifier always picks something, even when the right option is not on the list or the text has nothing to do with the task. ZeroPoint can answer none, and the probability of none comes out of the same calculation as the probability of each option.
Quick start
pip install zeropoint
from zeropoint import ZeroPoint
zp = ZeroPoint()
zp.decide("Can you move 200 euros from my savings to my checking account?",
["transfer", "balance", "pay bill"])
transfer 0.77 ███████████████·····
balance 0.02 ····················
pay bill 0.01 ····················
none 0.20 ████················
→ transfer · 12 ms
When none of the options fits, ZeroPoint says so:
zp.decide("Set an alarm for 6:30 tomorrow morning", ["transfer", "balance", "pay bill"])
pay bill 0.00 ····················
transfer 0.00 ····················
balance 0.00 ····················
none 1.00 ████████████████████
→ none · 12 ms
The options can be any short text, in any of the supported languages:
zp.decide("Me han cobrado dos veces la suscripción de marzo, ¿podéis devolverme el duplicado?",
["facturación", "soporte técnico", "recursos humanos"])
facturación 0.76 ███████████████·····
soporte técnico 0.00 ····················
recursos humanos 0.00 ····················
none 0.24 █████···············
→ facturación · 16 ms
See the Docs: javihaus.github.io/zeropoint.
Integration
ZeroPoint runs in your process: one call per decision, no network, no GPU, no service to run. In a routing pipeline, gate on confidence: auto-route above your threshold and escalate the rest to human review.
d = zp.decide(text, ["transfer", "balance", "pay bill"])
if d.choice is None or d.confidence < 0.8:
send_to_person(text) # no option fits, or ZeroPoint is not sure enough
else:
route(text, d.choice) # e.g. "transfer"
The right threshold depends on what a wrong action costs you; pick it on a few hundred of your own labelled texts.
| Attribute | Description |
|---|---|
choice |
the chosen option, or None when none is the most probable answer |
confidence |
probability of choice (of none when choice is None) |
p_none |
probability that none of the options fits |
probabilities |
probability of each option, in the order you gave them; with p_none they add up to 1 |
depths |
how strongly the text belongs to each option (0: not at all) |
text_truncated |
True if the text was longer than ZeroPoint reads (192 word pieces) and its end was ignored |
options_truncated |
options longer than 16 word pieces, whose end was ignored |
blocks |
how many reads of 20 options the list needed |
latency_ms |
time the decision took |
Calibration
You can calibrate ZeroPoint on your own labelled data, on a CPU.
pip install "zeropoint[fit]" # adds PyTorch and onnx; deciding never needs them
mine, report = zp.fit(texts, labels) # labels: the right option for each text, or None for "none of these"
print(report["before"], report["after"])
mine.save("my-model")
zp = ZeroPoint("my-model")
How it works
ZeroPoint is an energy-based model, in the sense of LeCun et al. (2006) ¹. It does not write an answer. It gives each option an energy: a number that measures how compatible the option is with the text, low when they fit and high when they do not. Training shapes these energies, pushing down the energy of the right option and pushing up the energy of the others. The text and all the options are read together, in one pass of a small multilingual encoder, so each option is measured against the text and against the other options.
Energies become probabilities with Boltzmann’s rule, the rule physics uses for a system in equilibrium: the lower the energy of a state, the more probable it is. A classifier applies the rule to the options alone, so one of them always wins, even when the text has nothing to do with any of them. ZeroPoint adds one more state, none of the options, with its energy fixed at zero: the flat ground around the wells the options form. Each option counts only by how far it falls below that ground. An option that does not fall below it gets nothing, however many such options there are, and none gets its probability in the same step as every option.
¹ Y. LeCun, S. Chopra, R. Hadsell, M. Ranzato and F. J. Huang, A Tutorial on Energy-Based Learning, in Predicting Structured Data, MIT Press, 2006.
Citation
@software{marin_zeropoint_2026,
author = {Marín, Javier},
title = {ZeroPoint: a CPU-first, energy-based decision model},
year = {2026},
url = {https://github.com/Javihaus/zeropoint}
}
License
ZeroPoint was trained only on data whose licence allows commercial use:
| Data | Licence |
|---|---|
| CLINC150 | CC BY 3.0 |
| Banking77, MASSIVE (English and Spanish) | CC BY 4.0 |
| Bitext customer support, banking, insurance and telco | CDLA-Sharing 1.0 |
| 5,000 examples written for this project | Apache 2.0 |
No data with a non-commercial licence was used for training, and none of the test texts above is in the training data. Details, with the criteria used to write the 5,000 examples, in docs/training-data.md.
The code is Apache 2.0. The model is built on multilingual-e5-small (MIT licence); the notices are in NOTICE.
Copyright Javier Marín, 2026
Metadata
Release files for zeropoint 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zeropoint-1.0.0.tar.gz | 80.2 MB | With provenance | Details for zeropoint-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zeropoint-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for zeropoint-1.0.0-py3-none-any.whl |
Total release size: 160.3 MB
Release files / zeropoint-1.0.0.tar.gz
| Download URL | zeropoint-1.0.0.tar.gz |
|---|---|
| Size | 80.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4321c599e1c0e29aacce11d40e89889c518d5be0d5f627264b8267c3b3f1d705
|
|
BLAKE2b-256 checksum How to use checksums |
942c9afde7cff0c001a8c6b4f2ed9c248d879fd5814e9fa06c1a4ddf7beaf31a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / zeropoint-1.0.0-py3-none-any.whl
| Download URL | zeropoint-1.0.0-py3-none-any.whl |
|---|---|
| Size | 80.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f804d4fbada0d4548b93368e9a1ff97c278d35f9dc64288a5b9ec2b6a41f46de
|
|
BLAKE2b-256 checksum How to use checksums |
6e2e7c85e5bebfb35e7ecaa1692797391a6e1c9eb5cc900ca636c2d1c6f021ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for zeropoint 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zeropoint-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.