Manuscript Offprint

arXiv:2610.25456

System X: An LLM Decision Model That Replies from Its Own KV Cache

Syed Usama Khalid Bukhari, Syed Safwan Khalid, Muhammad Aamir

Abstract

Decision models return probabilities over supplied options, but a deployed agent may also need to reply in words. The present study introduces System X, a large language model (LLM) decision model that adds a text-reply option to the LLM-as-Jev readout. When this option wins, or confidence is low, the same model continues from the decision's key-value (KV) cache, avoiding a repeated prompt prefill. Qwen3-0.6B has been fine-tuned with LoRA on Reason-9k and Bitext reply rows. JevBench accuracy shows no statistically significant change (55.4% to 54.5%, p = 0.87), while expected calibration error falls from 0.292 to 0.169. Held-out Bitext routing accuracy reaches 98.3%. Cache reuse saves 15–37% of latency on an Apple M4 Pro, with token-identical replies in the FP32 demonstration cases. Scoring options on copies of the prompt cache matches full-sequence scoring to within 1.4×10−61.4 \times 10^{-6} in probability. Adding dialogue, industry and complaint data (System X+) improves support-task results but lowers IFEval accuracy from 55.5% to 45.0%. System X v4 uses Qwen3-1.7B, rebalanced data and teacher-rewritten reply targets. Against its base LLM, JevBench accuracy rises from 55.0% to 61.0% (p = 0.04), with no statistically significant IFEval change (p = 0.71). A matched latency test on unadapted Qwen3-1.7B saves 17–39%. One LLM judge prefers v4 replies to an unadapted 1.7B second call (31 to 11 pairs, p = 0.003); the other's preference is not significant. These reply comparisons also differ in prompts and generation limits. State conflicts and unsupported reply details remain failure modes. Further studies with several seeds, human raters and real support data are recommended.

1 Introduction

Many decisions inside software are choices among a known, short list: route a ticket, refund or escalate, approve or block. Decision models [1] treat these as what they are. The caller provides a State and a list of options, and the model returns a probability for each option without generating free text. LLM-as-Jev [24] showed that an ordinary instruction-tuned LLM already does this well: pre-fill the assistant turn with Best answer: [, score each option's bracketed identifier k], and normalise. That study reports targeted accuracy and calibration gains for small LLMs, with KL anchors reducing deterioration in its generation evaluations.

A decision model is only half of a customer-facing agent. When the right action is not offered, when the request is only a question, or when the model is unsure, the agent must reply in words. One design is a cascade: a decision model first, then an LLM call that reads the prompt again to write the reply. Without cache reuse, this costs a second prefill of the same context. Work on rubric judging reports overlapping errors between decision models and LLM judges [33]; whether that finding transfers to customer support remains untested. System X uses generation to communicate with the user, rather than to re-evaluate the decision.

The present study explores a simple question: can the decision model itself be the one that talks? System X combines one extra option with cache reuse:

  1. A reply option inside the decision readout. REPLY_WITH_TEXT is listed with the other options and is scored using the same prompt prefill and batched suffix scoring. Its probability is learned jointly with the action probabilities, so “I should say something” is a decision like any other.

  2. Replies decoded from the decision’s own KV cache. If REPLY_WITH_TEXT wins, or the top probability is below a threshold τ\tau, the model continues from the prompt cache with r\mathbf{r}] Reply:, where rr is the reply option index, and writes one or two sentences. No token of the prompt is processed twice. In exact arithmetic this equals a second call on the same prompt, and in FP32 we observe token-identical replies.

  3. A training recipe and an honest evaluation. The LLM-as-Jev objective has been combined with a reply language-model loss, a KL term on reply tokens and a Brier term, and trained on the paper's public data plus Bitext reply rows. Decisions, calibration, replies and latency have been measured, including where the model fails.

Our contribution combines an explicit reply option, continuation from the decision prompt's cache, and joint decision and reply training in System X ( §2§2). The method is architecture-preserving: it changes how an unmodified LLM is prompted, read out, decoded and trained, not the network itself.

The main aim of the present study is to evaluate whether a single small LLM can make calibrated customer-support decisions and, when needed, write the reply from the same key-value cache, as a fast adjunct tool for customer-support teams.

References (29)