arXiv:2606.31163cs.LGcs.AI2026-06

用分类器前置路由,实现合规与降本的LLM推理新方案

ComplianceGate: Classifier-Gated Multi-Tier LLM Routing for Inference in Regulated Industries

  • 前置分类器评估查询复杂度与敏感度,动态路由至合适模型和地点
  • 实测延迟降低39%,成本节省33%-52%,生成速度达122-200词/秒
  • 支持数据本地化,适合金融、医疗等强监管领域部署

在受监管行业部署大语言模型面临合规与成本双重挑战。用户查询中的个人身份信息(PII)可能在系统判断是否可跨地域传输前就抵达模型端点。单一大型模型处理所有请求会耗尽全部GPU资源,且无地理路由机制。专家混合架构虽分层但路由发生在数据抵达后,所有专家均常驻内存。本文提出分类器门控多层级路由架构,通过训练的编码器分类器在解码前评估查询复杂度与数据敏感性,将其路由至合适规模的密集模型及地理位置。含PII的查询在任何LLM计算前即被路由至本地端点,从结构上杜绝数据越界风险。简单查询则由小型快速模型处理,成本仅为原先的几分之一。600条查询的评估显示,中位数延迟降低39%,成本节省33%-52%(依查询分布而定),生成吞吐量达122-200词/秒,优于基线的50-64词/秒。编码器分类器准确率达99.2%,PII召回近乎完美,仅7毫秒推理开销,证明预推理分类是实现合规设计的可行路径。

原文摘要 · Abstract (English)

Large language models deployed in regulated industries operate under two constraints: compliance enforcement and cost efficiency. Personally identifiable information (PII) in user queries can reach model endpoints before the system determines whether that data should leave its jurisdictional boundary. Serving all queries through a single large model consumes full GPU capacity regardless of query complexity while offering no mechanism for geographic routing. Mixture-of-Experts architectures do not address this routing occurs between expert layers within the model after data has already arrived at the endpoint, with all experts loaded in memory regardless of query complexity. We propose a classifier-gated routing architecture that enforces compliance by design. A trained encoder classifier sits before any decoder inference, evaluating each query for complexity and data sensitivity, then routing it to an appropriately sized dense model in the appropriate geographic location. PII-containing queries route to local endpoints before any LLM computation begins, making data residency violations structurally impossible. Simple queries reach small, fast models at a fraction of the cost. Our evaluation on 600 queries demonstrates 39% median latency reduction, 33-52% cost savings depending on query distribution, and generation throughput of 122-200 tokens/second versus 50-64 for the baseline. The encoder classifier achieves 99.2% accuracy with near-perfect PII recall at 7ms inference overhead, establishing pre-inference classification as a practical path to compliance-by-design LLM deployment.

LLM路由合规部署成本优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。