LMSM:受Linux安全模块启发的LLM安全框架 LMSM: LLM Security Framework Inspired by Linux Security Modules 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-26
⬇️ 1 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型(LLM)常有多层防御,但恶意提示仍能绕过。可解释性方法能暴露模型内部信号,但这些信号本身不是安全控制。现有部署将这些信号用于安全时,每个新信号都需要单独校准和集成。我们提出LMSM(语言模型安全模块),借鉴Linux安全模块(LSM)的分离设计,将安全后端、策略评估和输出门控分离,使安全机制可灵活组合和更新。在Hugging Face Transformers和vLLM上实现原型,支持多种可解释性信号。在Qwen3-4B上,LMSM-Checkpoint将HarmBench攻击成功率从39.20%降至3.32%,误拒率仅从2.40%升至4.40%,吞吐量保持98.14%。
领域大语言模型安全与可解释性
适合谁读需要一定专业背景
核心贡献1. 提出将LSM设计思想应用于LLM安全,实现安全机制与请求处理的解耦;2. 在真实推理引擎上验证了多种可解释性信号可统一集成并有效降低攻击成功率。
关键数据HarmBench攻击成功率从39.20%降至3.32%;XSTest误拒率从2.40%升至4.40%;保持98.14%的吞吐量(32个活跃序列)。
推荐理由该框架为可解释性研究走向实际安全防护提供了一条通用路径,值得关注LLM安全的你阅读。
关键词["大语言模型安全", "可解释性", "Linux安全模块", "模型内部信号", "运行时防护", "稀疏自编码器"]

原文摘要

查看英文原文摘要

Large language models (LLMs) are increasingly deployed with layered defenses, yet malicious prompts can still bypass them. Interpretability methods can expose model-internal signals along the generation path that could inform enforcement, but these signals are not security controls by themselves. Deployments that adapt them for safety typically couple each signal to its own calibration, policy logic, and intervention code, so each new artifact creates integration work instead of strengthening a shared defense. We present Language Model Security Modules (LMSM), a security framework that adapts the separation behind Linux Security Modules (LSM) to LLM serving. In LMSM, a selected security backend exposes calibrated evidence, a versioned policy evaluates active rules over trusted per-request context, and a separate gate authorizes buffered output release. This design separates mediation correctness from policy effectiveness, and it allows backend, rule, or schedule changes without rebuilding request handling or enforcement. Our prototype shows the separation working in practice: with Hugging Face Transformers and continuously batched vLLM, the same substrate hosts artifact-backed sparse autoencoder (SAE) and transcoder deployments and task-fitted dense probes, preserves request-specific decisions under scheduler churn, and selectively enforces and composes multiple rules per request. On Qwen3-4B, LMSM-Checkpoint reduces HarmBench attack success rate from 39.20% to 3.32%, with XSTest false refusals rising from 2.40% to 4.40%, while retaining 98.14% of the throughput of a matched serving path that performs no monitoring work at 32 active sequences. LMSM gives advances in interpretability and model-internal analysis a common path to runtime enforcement.

📚 参考文献 (46 条)

查看全部 46 条
  1. [1] James P. Anderson. Computer security technology plan- ning study. Technical Report ESD-TR-73-51, Vol. II, Air Force Electronic Systems Division, Hanscom AFB, Bedford, MA, October 1972.
  2. [2] AppArmor. AppArmor — apparmor.net. https:// apparmor.net/, 2026.
  3. [3] Andy Arditi, Oscar Balcells Obeso, Aaquib Syed, Daniel Paleka, Nina Rimsky, Wes Gurnee, and Neel Nanda. Re- fusal in language models is mediated by a single di- rection. In The Thirty-eighth Annual Conference on Neural Information Processing Systems, 2024. URL: https://openreview.net/forum?id=pH3XAQME6c.
  4. [4] Yuntao Bai, Saurav Kadavath, Sandipan Kundu, Amanda Askell, Jackson Kernion, Andy Jones, Anna Chen, Anna Goldie, Azalia Mirhoseini, Cameron McK- innon, Carol Chen, Catherine Olsson, Christopher Olah, Danny Hernandez, Dawn Drain, Deep Ganguli, Dustin Li, Eli Tran-Johnson, Ethan Perez, Jamie Kerr, Jared Mueller, Jeffrey Ladish, Joshua Landau, Kamal Ndousse, Kamile Lukosuite, Liane Lovitt, Michael Sellitto, Nel- son Elhage, Nicholas Schiefer, Noemi Mercado, Nova DasSarma, Robert Lasenby, Robin Larson, Sam Ringer, Scott Johnston, Shauna Kravec, Sheer El Showk, Stanislav Fort, Tamera Lanham, Timothy Telleen- Lawton, Tom Conerly, Tom Henighan, Tristan Hume, Samuel R. Bowman, Zac Hatfield-Dodds, Ben Mann, Dario Amodei, Nicholas Joseph, Sam McCandlish, Tom Brown, and Jared Kaplan. Constitutional ai: Harmless- ness from ai feedback, 2022. URL: https://arxiv. org/abs/2212.08073. 14
  5. [5] Luke Bailey, Alex Serrano, Abhay Sheshadri, Mikhail Seleznyov, Jordan Taylor, Erik Jenner, Jacob Hilton, Stephen Casper, Carlos Guestrin, and Scott Emmons. Obfuscated activations bypass LLM latent-space de- fenses. In The Fourteenth International Conference on Learning Representations, 2026. URL: https: //openreview.net/forum?id=ktGmDGoWnB.
  6. [6] Sahana Chennabasappa, Cyrus Nikolaidis, Daniel Song, David Molnar, Stephanie Ding, Shengye Wan, Spencer Whitman, Lauren Deason, Nicholas Doucette, Abraham Montilla, Alekhya Gampa, Beto de Paola, Dominik Gabi, James Crnkovich, Jean-Christophe Testud, Kat He, Rash- nil Chaturvedi, Wu Zhou, and Joshua Saxe. Llamafire- wall: An open source guardrail system for building se- cure ai agents, 2025. URL: https://arxiv.org/abs/ 2505.03574, arXiv:2505.03574.
  7. [7] Jacob Dunefsky, Philippe Chlenski, and Neel Nanda. Transcoders find interpretable LLM feature circuits. In The Thirty-eighth Annual Conference on Neural In- formation Processing Systems, 2024. URL: https: //openreview.net/forum?id=J6zHcScAo0.
  8. [8] U. Erlingsson and F.B. Schneider. Irm enforcement of java stack inspection. In Proceeding 2000 IEEE Symposium on Security and Privacy. S&P 2000, pages 246–255, 2000. doi:10.1109/SECPRI.2000.848461.
  9. [9] Tal Garfinkel and Mendel Rosenblum. A virtual ma- chine introspection based architecture for intrusion de- tection. In Network and Distributed System Security Symposium (NDSS 2003). The Internet Society, 2003.
  10. [10] Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, and Nouha Dziri. Wildguard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of LLMs. In The Thirty-eighth Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2024. URL: https://openreview.net/forum?id= Ich4tv4202.
  11. [11] Tiansheng Huang, Sihao Hu, Fatih Ilhan, Selim Furkan Tekin, Zachary Yahn, Yichang Xu, and Ling Liu. Safety tax: Safety alignment makes your large reasoning mod- els less reasonable, 2025. URL: https://arxiv.org/ abs/2503.00555, arXiv:2503.00555.
  12. [12] Robert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. In The Twelfth International Conference on Learning Representations, 2024. URL: https://openreview. net/forum?id=F76bwRSLeK.
  13. [13] Hakan Inan, Kartikeya Upasani, Jianfeng Chi, Rashi Rungta, Krithika Iyer, Yuning Mao, Michael Tontchev, Qing Hu, Brian Fuller, Davide Testuggine, and Madian Khabsa. Llama guard: Llm-based input-output safeguard for human-ai conversations, 2023. URL: https://arxiv.org/abs/2312.06674, arXiv:2312.06674.
  14. [14] Wonje Jeung, Sangyeon Yoon, Minsuk Kahng, and Al- bert No. SAFEPATH: Preventing harmful reasoning in chain-of-thought via early alignment. In The Thirty- ninth Annual Conference on Neural Information Pro- cessing Systems, 2025. doi:10.52202/085713-3331.
  15. [15] Fengqing Jiang, Zhangchen Xu, Yuetai Li, Luyao Niu, Zhen Xiang, Bo Li, Bill Yuchen Lin, and Radha Poovendran. SafeChain: Safety of language models with long chain-of-thought reasoning capabilities. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Findings of the Association for Computational Linguistics: ACL 2025, pages 23303–23320, Vienna, Austria, July 2025. Asso- ciation for Computational Linguistics. URL: https: //aclanthology.org/2025.findings-acl.1197/, doi:10.18653/v1/2025.findings-acl.1197.
  16. [16] Liwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger, Faeze Brahman, Sachin Kumar, Niloofar Mireshghal- lah, Ximing Lu, Maarten Sap, Yejin Choi, and Nouha Dziri. Wildteaming at scale: From in-the-wild jail- breaks to (adversarially) safer language models. In The Thirty-eighth Annual Conference on Neural In- formation Processing Systems, 2024. URL: https: //openreview.net/forum?id=n5R6TvBVcX.
  17. [17] Yilei Jiang, Xinyan Gao, Tianshuo Peng, Yingshui Tan, Xiaoyong Zhu, Bo Zheng, and Xiangyu Yue. Hid- denDetect: Detecting jailbreak attacks against multi- modal large language models via monitoring hidden states. In Wanxiang Che, Joyce Nabende, Ekaterina Shutova, and Mohammad Taher Pilehvar, editors, Pro- ceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14880–14893, Vienna, Austria, July 2025. Asso- ciation for Computational Linguistics. URL: https: //aclanthology.org/2025.acl-long.724/.
  18. [18] Ching-Yun Ko and Pin-Yu Chen. “vLLM Hook v0: A plug-in for programming model internals on vLLM”. arXiv preprint arXiv:2603.06588, 2026. URL: https: //arxiv.org/abs/2603.06588, arXiv:2603.06588, doi:10.48550/arXiv.2603.06588.
  19. [19] Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, 15
  20. Hao Zhang, and Ion Stoica. Efficient memory man- agement for large language model serving with page- dattention. In Proceedings of the 29th Symposium on Operating Systems Principles, SOSP ’23, page 611–626, New York, NY, USA, 2023. Association for Computing Machinery. doi:10.1145/3600006.3613165.
  21. [20] Seanie Lee, Sangwoo Park, Yumin Choi, Gyeong- man Kim, Minki Kang, Jihun Yun, Dongmin Park, Jongho Park, and Sung Ju Hwang. Thinksafe: Self-generated safety alignment for reasoning models, 2026. URL: https://arxiv.org/abs/2601.23143, arXiv:2601.23143.
  22. [21] Peter Loscocco and Stephen Smalley. Integrating flexi- ble support for security policies into the linux operating system. In 2001 USENIX Annual Technical Conference (USENIX ATC 01), Boston, MA, June 2001. USENIX Association.
  23. [22] Mantas Mazeika, Long Phan, Xuwang Yin, Andy Zou, Zifan Wang, Norman Mu, Elham Sakhaee, Nathaniel Li, Steven Basart, Bo Li, David Forsyth, and Dan Hendrycks. Harmbench: a standardized evaluation framework for automated red teaming and robust refusal. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. JMLR.org, 2024.
  24. [23] Callum McDougall, Arthur Conmy, János Kramár, Tom Lieberum, Senthooran Rajamanoharan, and Neel Nanda. Gemma Scope 2: Technical paper. Technical report, Google DeepMind, September 2025. URL: https:// deepmind.google/models/gemma/gemma-scope/.
  25. [24] Kyle O’Brien, David Majercak, Xavier Fernandes, Richard Edgar, Blake Bullwinkel, Jingya Chen, Har- sha Nori, Dean Carignan, Eric Horvitz, and Forough Poursabzi-Sangdeh. Steering language model refusal with sparse autoencoders, 2025. URL: https://arxiv. org/abs/2411.11296, arXiv:2411.11296.
  26. [25] Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Car- roll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. Training lan- guage models to follow instructions with human feed- back. In Proceedings of the 36th International Confer- ence on Neural Information Processing Systems, NIPS ’22, Red Hook, NY, USA, 2022. Curran Associates Inc.
  27. [26] Niels Provos. Improving host security with system call policies. In Proceedings of the 12th Conference on USENIX Security Symposium - Volume 12, SSYM’03, page 18, USA, 2003. USENIX Association.
  28. [27] Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. Di- rect preference optimization: your language model is secretly a reward model. In Proceedings of the 37th International Conference on Neural Information Pro- cessing Systems, NIPS ’23, Red Hook, NY, USA, 2023. Curran Associates Inc.
  29. [28] Traian Rebedea, Razvan Dinu, Makesh Narsimhan Sreedhar, Christopher Parisien, and Jonathan Cohen. NeMo guardrails: A toolkit for controllable and safe LLM applications with programmable rails. In Yan- song Feng and Els Lefever, editors, Proceedings of the 2023 Conference on Empirical Methods in Nat- ural Language Processing: System Demonstrations, pages 431–445, Singapore, December 2023. Associ- ation for Computational Linguistics. URL: https: //aclanthology.org/2023.emnlp-demo.40/, doi: 10.18653/v1/2023.emnlp-demo.40.
  30. [29] Paul Röttger, Hannah Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy. XSTest: A test suite for identifying exaggerated safety behaviours in large language models. In Kevin Duh, Helena Gomez, and Steven Bethard, editors, Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 5377–5400, Mexico City, Mexico, June 2024. Asso- ciation for Computational Linguistics. URL: https: //aclanthology.org/2024.naacl-long.301/, doi:10.18653/v1/2024.naacl-long.301.
  31. [30] J.H. Saltzer and M.D. Schroeder. The protection of in- formation in computer systems. Proceedings of the IEEE, 63(9):1278–1308, 1975. doi:10.1109/PROC. 1975.9939.
  32. [31] Leheng Sheng, Changshuo Shen, Weixiang Zhao, Jun- feng Fang, Xiaohao Liu, Zhenkai Liang, Xiang Wang, An Zhang, and Tat-Seng Chua. Alphasteer: Learning refusal steering with principled null-space constraint. In The Fourteenth International Conference on Learning Representations, 2026. URL: https://openreview. net/forum?id=1vvbzAqdTe.
  33. [32] Ilia Shumailov, Yiren Zhao, Daniel Bates, Nicolas Pa- pernot, Robert Mullins, and Ross Anderson. Sponge examples: Energy-latency attacks on neural networks. In 2021 IEEE European Symposium on Security and Pri- vacy (EuroS&P), pages 212–231, 2021. doi:10.1109/ EuroSP51992.2021.00024.
  34. [33] Florian Tramer and Dan Boneh. Slalom: Fast, verifi- able and private execution of neural networks in trusted hardware. In International Conference on Learning 16
  35. Representations, 2019. URL: https://openreview. net/forum?id=rJVorjCcKQ.
  36. [34] Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Jo- hannes Heidecke, and Alex Beutel. The instruction hier- archy: Training llms to prioritize privileged instructions, 2024. URL: https://arxiv.org/abs/2404.13208, arXiv:2404.13208.
  37. [35] Haoyu Wang, Christopher M. Poskitt, and Jun Sun. Agentspec: Customizable runtime enforcement for safe and reliable llm agents, 2025. URL: https://arxiv. org/abs/2503.18666, arXiv:2503.18666.
  38. [36] Zijun Wang, Haoqin Tu, Yuhan Wang, Juncheng Wu, Yanqing Liu, Jieru Mei, Brian R. Bartold- son, Bhavya Kailkhura, and Cihang Xie. Star- 1: safer alignment of reasoning llms with 1k data. AAAI’26/IAAI’26/EAAI’26. AAAI Press, 2026. doi: 10.1609/aaai.v40i44.41136.
  39. [37] Chris Wright, Crispin Cowan, Stephen Smalley, James Morris, and Greg Kroah-Hartman. Linux security mod- ules: General security support for the linux kernel. In 11th USENIX Security Symposium (USENIX Security 02), San Francisco, CA, August 2002. USENIX Associ- ation.
  40. [38] Shenyi Zhang, Yuchen Zhai, Keyan Guo, Hongxin Hu, Shengnan Guo, Zheng Fang, Lingchen Zhao, Chao Shen, Cong Wang, and Qian Wang. Jbshield: defending large language models from jailbreak attacks through acti- vated concept analysis and manipulation. In Proceed- ings of the 34th USENIX Conference on Security Sym- posium, SEC ’25, USA, 2025. USENIX Association.
  41. [39] Yi Zhang, An Zhang, XiuYu Zhang, Leheng Sheng, Yuxin Chen, Zhenkai Liang, and Xiang Wang. Al- phaalign: Incentivizing safety alignment with extremely simplified reinforcement learning. In The Fourteenth International Conference on Learning Representations, 2026. URL: https://openreview.net/forum?id= 2XNb1JUKW3.
  42. [40] Kaiwen Zhou, Xuandong Zhao, Gaowen Liu, Jayanth Srinivasa, Aosong Feng, Dawn Song, and Xin Eric Wang. Safekey: Amplifying aha-moment insights for safety reasoning, 2025. URL: https://arxiv.org/ abs/2505.16186, arXiv:2505.16186.
  43. [41] Andy Zou, Long Phan, Justin Wang, Derek Duenas, Maxwell Lin, Maksym Andriushchenko, J Zico Kolter, Matt Fredrikson, and Dan Hendrycks. Improving align- ment and robustness with circuit breakers. In The Thirty- eighth Annual Conference on Neural Information Pro- cessing Systems, 2024. URL: https://openreview. net/forum?id=IbIB8SBKFV.
  44. [42] Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J. Zico Kolter, and Matt Fredrikson. Universal and trans- ferable adversarial attacks on aligned language models, 2023. URL: https://arxiv.org/abs/2307.15043. A Evaluation Protocols We include here the settings needed to interpret the experi- ments in Section 6. Policy effectiveness. The harmful-output evaluation uses 602 prompts from HarmBench and the 2,000 harmful prompts from WildJailbreak. Both use Qwen3-4B sampling with tem- perature 0.6, top-p = 0.95, top-k = 20, a 16,384-token gen- eration cap, and request seed 0. Each benchmark-policy cell comes from one fixed-seed generation run rather than an av- erage over repeated generations. Attack success rate is the fraction of released responses labeled unsafe by ThinkSafe’s Llama-Guard-3 first-token rule [20]. The false-refusal evaluation uses 250 safe prompts from XSTest. Matched Disabled, Checkpoint, and Anytime receive identical prompt token IDs, per-prompt seeds, thinking set- tings, greedy decoding, 512-token caps, and scheduler settings. Their released responses are pooled into one blinded set and judged with WildGuard [10] using the ThinkSafe-compatible refusal prompt. False-refusal rate is the fraction of those re- sponses labeled as refusals. Both ASR and FRR describe judged released responses rather than LMSM intervention frequency. A refusal discards any admitted model prefix and releases only the configured fixed response. The external rows in Table 5 are values reported in ThinkSafe Table 1 rather than reruns in the LMSM serv- ing path. Their XSTest values use an unmatched victim- generation path, and the ThinkSafe training-time configu- rations use low-rank adaptation (LoRA) while LMSM leaves the base-model parameters unchanged. Temporal-policy diagnostic. Figure 3 uses a separate Wild- Jailbreak mechanism workload with greedy decoding and a 512-token generation cap. It is distinct from the sampled, 16,384-token policy-effectiveness workload. Checkpoint inter- venes on 1,600 requests and Anytime intervenes on 1,566 re- quests. The first-intervention CDF is conditional on those two intervention populations. For an intervened request, avoided tokens are the remaining tokens in its corresponding Matched Disabled completion after the intervention point. Systems campaigns. The systems configurations are monitor-only, generate equal numbers of model-computed output tokens, and apply no state-changing action. Through- put excludes tokens in configured refusal text. The width-1 campaign uses 8 prompts, and the width-32 campaign uses 64 prompts, drawn from the held-out 150-row systems input. 17
  45. Each request generates 256 model tokens. The concurrency comparison in Figure 4(a) and the rule-composition compar- ison in Figure 4(b) are independent campaigns of the same 15-rule Checkpoint configuration. Each campaign uses one warmup followed by five measured repetitions. We report throughput relative to the Matched Empty Extension, added time per model token, peak GPU memory, and performance with 1, 6, and 15 active rules. Q1 and Q3 denote the first and third quartiles, and p90 denotes the 90th percentile. The fixed-runtime backend substitution in Table 4(b) is a separate campaign with one warmup and three measured repetitions. Appendix C gives that workload and its backend configuration. B Decision-Level Validation under Scheduler Churn The scheduler-churn workload submits two copies of the same 32 mixed harmful and benign requests while allowing re- quests to finish, move between packed rows, and enter reused slots. For each duplicate pair, we compare the final action, selected category, first intervention step, and vector of per-rule threshold-crossing outcomes. All 32/32 pairs preserve these decision-level results. Scores need not be bitwise identical across packed layouts. For a pair with observed scores u0 and u1 and relevant thresh- old τ, we use the following conservative sufficient condition for certifying the same threshold-crossing outcome: min{|u0 −τ|,|u1 −τ|} > |u0 −u1|. For a triggering pair, τ is the selected rule’s threshold; for a non-triggering pair, it is the closest rule threshold. The test certifies 31 pairs. For the remaining pair, both observed scores stay on the same side of every action-relevant threshold and produce the same action, category, and intervention step. The result supports decision-level request isolation rather than numerical equality of backend scores. The artifact provides the per-pair values used in this check. C Backend-Portability Workloads Table 4 tests backend portability across complete artifact- backed realizations and through a fixed-runtime substitution. The artifact profiles record the backend releases, binding con- figuration, selected coordinates, normalization parameters, rule conditions, and profile versions. Artifact-backed realizations. Table 4(a) uses 264 held-out prompts from HarmBench, spanning six categories, in the single-request Transformers path. Attack success rate follows the same Llama-Guard-3 first-token rule used for the primary harmful-output evaluation. The category-matched column ap- plies each prompt’s corresponding rule, while the full bundle activates all six rules. For Gemma-3 with the SAE backend, the unsafe-response counts are 122/264, 14/264, and 11/264 for unguarded, category-matched, and full-bundle evaluation. For Qwen3 with the transcoder backend, the corresponding counts are 127/264, 19/264, and 13/264. Fixed-runtime substitution. Table 4(b) uses 32 fixed prompts, split evenly between harmful and benign inputs, with up to 32 active sequences and 64 generated tokens per prompt. It compares a separately fitted dense backend with one selected transcoder coordinate through the same Qwen activation site. Both configurations are monitor-only, apply no state-changing actions, and share the hook, request-state handling, evaluator interface, enforcement wrapper, buffering, and logging. Each produces finite evidence for all 32 requests and makes one batched backend call at each of the 64 genera- tion steps. Throughput is measured in one warmup followed by three measured repetitions. D Systems Measurement Summary All measurements use the single-GPU eager vLLM inte- gration. Incremental monitoring costs are measured against the Matched Empty Extension. The concurrency and rule- composition results come from independent five-repetition campaigns. Concurrency. Figure 4(a) is based on the following ex- act measurements. Throughput retention and added time are relative to the Matched Empty Extension. Measurement Width 1 Width 32 Checkpoint throughput retained 99.31% 98.14% Anytime throughput retained 93.35% 83.91% Checkpoint added µs/token 79.3 7.0 Anytime added µs/token 819.4 71.2 Median allocated memory (GiB) 76.66 76.72 Median reserved memory (GiB) 79.91 79.97 Rule composition. At width 32, median throughput reten- tion is 97.88%, 98.31%, and 96.89% with 1, 6, and 15 active Checkpoint rules, respectively. The one- and six-rule medians are non-monotonic within the observed repetition variation. These measurements establish low composition cost through 15 active rules, but do not support a per-rule scaling law. 18
  46. Execution-path decomposition. The width-32 measure- ments separate the cost of execution mode from the incremen- tal cost of monitoring. Execution path Tok/s Rel. compiled Compiled-native vLLM 5,543 100.0% Matched eager-native vLLM 2,684 48.4% Matched Empty Extension 2,691 48.5% Checkpoint 2,641 47.6% Anytime 2,258 40.7% Matched eager-native vLLM execution and the empty ex- tension are indistinguishable at the reported precision, so the extension boundary itself adds no measured loss. The domi- nant throughput change occurs when compiled/CUDA-graph execution is disabled for the current Python activation hook. On this eager path, Checkpoint adds 1.86% overhead rela- tive to the empty extension. Anytime adds 16.09% because the current implementation transfers selected activation rows to host memory and evaluates its active probes on the CPU after every decode step. At width 1, compiled-native vLLM is 2.38× faster than matched eager-native execution, while Checkpoint retains 99.31% of empty-extension throughput. 19