Undercurrent runs activation probes inside live LLM inference
An open-source Python library inspects a model's internal state during generation, with inline or asynchronous probing modes for production serving engines.
In plain words
Large language models can be monitored by training small classifiers, called probes, on their internal signals; these can flag issues like deception or toxicity before text appears. Undercurrent is a new open-source tool that runs such probes while a model is generating, rather than only in offline research settings.
What was announced
The library, released under the Apache-2.0 license, uses a declarative YAML specification to define which tensors are captured, at which layers and token positions, and which probe receives them. Probes can detect properties such as deception, harmful intent and toxicity from a model's internal activations, often before problematic text is emitted, according to the paper's abstract.
Extraction points run in two modes. Inline probes operate on the generation path and can abort a request before the next token, with optional timeouts, fail-open or fail-closed fallbacks, and a circuit breaker. Asynchronous probes use bounded per-request queues with explicit overflow policies, so observation adds no latency to the response. Undercurrent ships adapters for Hugging Face Transformers and vLLM, where a worker extension maps rows of each continuously batched forward pass to per-request token positions. The authors report measurements from the library's own benchmark harness; the tool is available on GitHub and PyPI.
What it does not show
- The evidence is limited to the paper's abstract, so the design details, correctness checks and benchmark measurements are not independently verified and no benchmark numbers are available in this excerpt.
For security and IT teams
- Scope
- Undercurrent targets production serving engines, with adapters for Hugging Face Transformers and vLLM, and is distributed via GitHub and PyPI under the Apache-2.0 license.
Sources
Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 1 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.