Skip to main content
ZeroPoint: four spheres above a floor; three float at different heights, the fourth almost touches the ground

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


License PyPI Python Docs

Tests SLSA 3 OpenSSF Scorecard


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 almost no probability, so ZeroPoint can answer none with confidence.



ZeroPoint
Strands Decider 2B ¹Clef-flash ²Semantic RouterZero-shot NLI
Accuracy: right answer, none included53.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 order0%7.3%0%0.6%0%
Accuracy when one option is right43.8%58.4%56.2%38.9%41.3%
Silent mistakes: no option fits, yet it answers with ≥ 90% confidence7.8%0.0%³5.8%– ⁴22.2%
Latency, median on a CPU (on a GPU)42 ms6,770 ms (93 ms)⁵+ 20,000 ms (156 ms)⁶17 ms1,697 ms
Model size89 MB4.8 GB19 GB91 MB369 MB
Runs onCPUGPUGPUCPUCPU 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 GPU

The 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 CPU

Median 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 answer

The 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 languages

EU 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 (near 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 torch --index-url https://download.pytorch.org/whl/cpu   # optional: CPU-only PyTorch, without the GPU libraries
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

Which team should handle the message: Can I change my delivery address? The options Billing and Technical are energy wells; None of these is the flat ground at energy zero. The text lands on the ground, so ZeroPoint answers none with 0.96, while softmax splits it between billing 0.55 and technical 0.45.

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zeropoint 1.1.0
File Size Uploaded Provenance Actions
zeropoint-1.1.0.tar.gz 80.2 MB With provenance Details for zeropoint-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zeropoint 1.1.0
File Interpreter ABI Platform Actions
zeropoint-1.1.0-py3-none-any.whl Python 3 none any Details for zeropoint-1.1.0-py3-none-any.whl

Total release size: 160.3 MB

Release files / zeropoint-1.1.0.tar.gz

Download URL zeropoint-1.1.0.tar.gz
Size 80.2 MB
Tags Source
SHA-256 checksum
How to use checksums
bc94ab4a8117d331dfc0a16c2d3776968ecf9134323836298e5496eeb4559ede
BLAKE2b-256 checksum
How to use checksums
b3809d38ee8ca1283d9266a1d1ae590aec37b938fa81eb340c852d7b4e9c9789
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 6, 2026.

Transparency log

Release files / zeropoint-1.1.0-py3-none-any.whl

Download URL zeropoint-1.1.0-py3-none-any.whl
Size 80.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
94b454ed20a6504305bb6f5a150dd9b20ef84fbe57960c56a6bdd34586d4870f
BLAKE2b-256 checksum
How to use checksums
17f96559769fa2464e4d62962eba6dd57cb2dc130543fea544b17eff00917ba5
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 6, 2026.

Transparency log

Security for zeropoint 1.1.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.

Select from 2 files

Attestation for zeropoint-1.1.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 6, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page