HARISSA: Inference-Time Self-Checks for Efficient and Safe Local Language Model Deployment

Kenan Alkiek, Moontae Lee, David Jurgens, V. G. Vinod VydiswaranarXiv 2026

TL;DR

HARISSA is a new framework that allows local language models to "self-check" their own reliability using internal hidden states. By predicting whether an answer will be correct both before and after generation, it enables a smart cascading policy that achieves near Chain-of-Thought accuracy at nearly 3x lower latency, while safely deferring difficult queries to humans.

What Problem Does This Paper Address?

Deploying Large Language Models (LLMs) locally—on a laptop or phone—is the "holy grail" for privacy, cost, and offline availability. However, local hardware usually limits us to small models that struggle with complex reasoning.

When a small model hits a hard query, the standard solution is to "escalate" it to a massive cloud model (like GPT-4). But for many domains—like clinical medicine or law—sending data to the cloud is a non-starter due to privacy regulations. This leaves local deployments with two tough choices:

  1. Efficiency: Should the model spend extra time "thinking" (Chain-of-Thought) or just answer directly?
  2. Safety: If the model is likely to be wrong regardless of how much it thinks, should it just stay silent and ask a human for help?

The challenge is that models are notoriously bad at knowing what they don't know. HARISSA addresses this by teaching models to read their own internal "mind" to make these decisions.

Methods

The core innovation of HARISSA (Hidden-Activation Reads for Inference-time Safety and Self-Assessment) is leveraging two specific points in the model's computation:

  • The Prefill State: The hidden state at the very last token of the prompt. This exists before any answer is generated and acts as a signal for how difficult the model finds the question.
  • The Answer State: The hidden state at the final token of the generated answer. This reflects the model's internal confidence in the specific response it just produced.

The authors use LoRA fine-tuning to ensure these hidden states are highly predictive of correctness. They then attach simple linear probes (logistic regression) to these states.

These probes power the HARISSA Policy, a cascade that works like this:

  1. Prefill Skip: Before generating, the prefill probe estimates the chance of success. If it's too low, the model skips the "cheap" direct answer and moves straight to a more expensive reasoning method (or a larger local model).
  2. Answer Check: After generating, the answer probe checks the result. If it looks correct, it's delivered. If not, the model tries the next, more capable method in the cascade.
  3. Deferral: If all local methods fail the check, the system defers the query to a human rather than delivering a hallucination.

Datasets

The researchers evaluated HARISSA on three challenging multiple-choice benchmarks:

  • MedQA: USMLE-style clinical questions.
  • MedMCQA: Medical entrance exam questions.
  • BBH (Big-Bench Hard): A suite of 16 subtasks focused on general logical reasoning.

They tested these across different hardware setups, including a single model on a "device" (switching between direct and Chain-of-Thought) and a "server" setup (cascading through 2B, 4B, 9B, and 27B model sizes).

Key Insights and Ideas

  • Internal States > External Probabilities: Traditional methods rely on "softmax confidence" or "logit margins" (how much the model prefers its top choice over the second). HARISSA shows that the model's internal hidden states are much richer signals of truthfulness than these external outputs.
  • The "Aha" Moment in Prefill: The prefill state can predict failure before the model even starts typing. This allows the system to save massive amounts of time by skipping "dumb" attempts at hard questions.
  • Fine-tuning for Self-Awareness: While models have some inherent self-knowledge, fine-tuning specifically to make hidden states predictive of correctness significantly boosts the reliability of the probes.
Figure 3: On the device, the answer probe predicts correctness better than the prefill probe, and fine-tuning improves the prefill probe and the answer probe. AUROC on the device, averaged over the two actions, of a question-text classifier (grey), the prefill probe (light green), and the answer probe (dark green), frozen (outlined) and fine-tuned (filled); whiskers are the standard deviation over seeds where more than one seed was run.

Key Results

  • Speed without Sacrifice: On a single device, HARISSA stayed within 1 accuracy point of full Chain-of-Thought reasoning while being 2.7 times faster. It achieves this by only "thinking hard" on the specific queries that actually require it.
  • Superior Cascading: In server environments, HARISSA outperformed existing state-of-the-art cascades like FrugalGPT and Self-REF. It was more accurate at the same latency because its prefill probe could skip smaller models that were destined to fail.
  • Enhanced Safety: When tasked with deferring to humans, HARISSA's answer probe left significantly fewer wrong answers in the system compared to standard confidence signals. On MedQA, it removed 32% of wrong answers while only deferring 8.7% of queries.
Figure 1: On a device, HARISSA is within one accuracy point of chain-of-thought at 2.7 times lower latency, averaged over three tasks. Top: accuracy against mean latency per query, every query answered; the baselines as markers and each cascade as its sweep over the skip threshold, with the selected point filled. Bottom: wrong answers delivered against the share of queries deferred, on HARISSA’s delivered answers, one curve per deferral signal (HARISSA is the answer probability and Self-REF is Self-REF confidence); the filled point is the selected deferral threshold. The answer probability takes few distinct values, so its curve ends early, and answers without a logit margin are deferred first.

Limitations and Future Work

  • Task Specificity: The current probes are trained on specific datasets. While they show some robustness, a probe trained on medical data might not perfectly translate to legal reasoning without further fine-tuning.
  • Multiple-Choice Focus: The evaluation is centered on multiple-choice tasks where "correctness" is binary and easy to label. Applying this to open-ended creative writing or coding would require more complex reward signals.
  • Fine-tuning Overhead: Unlike zero-shot methods, HARISSA requires a training phase to "calibrate" the model's internal states, which might be a hurdle for rapidly changing deployments.

Summary updated

BibTeX
@misc{alkiek2026harissa,
  author = {Kenan Alkiek and Moontae Lee and David Jurgens and V. G. Vinod Vydiswaran},
  title = {{HARISSA: Inference-Time Self-Checks for Efficient and Safe Local Language Model Deployment}},
  year = {2026},
  eprint = {2609.38006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.38006},
}
Figure