Hierarchical Routing and Safety Governance for High-Risk Requests in Large Language Model Systems

    This article explores architectural patterns for governing high-risk requests in large language model (LLM) systems. It argues that switching between models alone is insufficient for safety control, and instead proposes a complete control chain spanning request intake, risk assessment, policy decisions, constrained generation, output review, and operational auditing. The discussion covers multi-dimensional risk identification, differentiated judgment boundaries for cybersecurity, biochemical, and model distillation requests, practical routing architecture design, and the importance of output filtering and failover mechanisms. It concludes with guidance on using evaluation and audit practices to continuously validate governance effectiveness.

    From Model Switching to a Complete Safety Control Chain

    A common governance approach in LLM applications is to route ordinary requests through a standard processing pipeline, while requests involving sensitive domains or potential harm are redirected to a pipeline that enforces stricter safety policies. This design attempts to expand service coverage while constraining capabilities that could lead to significant consequences.

    However, it is important to be clear: switching models is not equivalent to completing safety control. A more capable model is not necessarily safer across all scenarios, and there is no direct, universally applicable relationship between model scale, reasoning ability, and safety performance.

    Therefore, a more rigorous technical objective is not “switch models when sensitive words are detected,” but rather to establish a complete control chain covering request intake, risk assessment, permission constraints, answer generation, output review, and operational audit. Model routing is just one execution step within this chain—what truly defines the safety boundary is the combination of policies, permissions, and verification mechanisms.

    The following discussion addresses general architectural patterns and practical methods. It does not correspond to features implemented in any specific product, nor does it presume that any particular model inherently delivers better safety performance.

    Risk Identification Should Focus on Behavioral Consequences, Not Just Topic Labels

    Cybersecurity, biochemistry, and model distillation can all include both legitimate uses and high-risk applications. Simply blocking requests based on domain names would not only mistakenly reject normal learning and research, but also risk missing rewritten or disguised dangerous requests.

    Effective risk assessment should consider at least the following dimensions.

    1. Request Intent and Expected Use

    Take cybersecurity as an example: explaining access control principles versus requesting a bypass of access restrictions on a real system have clearly different levels of risk. The former is typically knowledge comprehension, while the latter requires further evaluation of authorization status, target systems, and potential impact.

    Systems cannot rely solely on user-declared purposes. “For research” or “for learning only” can serve as contextual information, but they cannot replace judgment based on the request content itself. Especially when a request already contains explicit attack targets, evasion measures, or destructive intent, the actual behavioral consequences should be the primary basis for assessment.

    2. Degree of Actionability in Output

    Conceptual introductions, risk explanations, and directly executable operational procedures release capability to different degrees. Assessment should consider whether a response provides critical steps, execution sequences, runnable code, or parameters and conditions that significantly lower the barrier to implementation.

    Risk is not determined solely by response length. A very short piece of content that fills a critical gap in a dangerous process can have greater practical impact than a lengthy background explanation.

    3. Target Environment and Scope of Impact

    The same technique used in an isolated test environment versus a real production system can have drastically different consequences. Higher scrutiny should be applied when real user data, critical business services, public environments, or irreversible operations are involved.

    It is important to note that a user’s claim of authorization does not automatically prove that authorization is valid. For systems that can invoke tools or perform external operations, authorization should be confirmed through identity authentication, resource permission controls, and operation approval mechanisms—not determined solely by conversational text.

    4. Cumulative Risk Across Multi-Turn Conversations

    High-risk tasks can be decomposed into multiple seemingly ordinary sub-questions. Viewed individually, each turn may not reveal the full intent; only when combined with historical context does it become apparent that these questions are progressively assembling into an executable plan.

    Therefore, risk identification should cover relevant conversational context, while avoiding permanently binding historical risk to a user. A reasonable approach is to continuously update the risk status of the current task and re-assess when the topic, target, or authorization scope changes.

    Three Types of Requests Require Different Judgment Boundaries

    1. Cybersecurity Requests: Distinguish Defensive Support from Attack Enablement

    Legitimate security work includes understanding vulnerability causes, checking configuration flaws, analyzing anomalous logs, and designing remediation measures. These needs should not be categorically rejected simply because they contain security terminology.

    What warrants closer attention is whether a request directly supports unauthorized access, credential theft, covert control, business disruption, or evasion of detection. For such content, systems should restrict executable details and redirect assistance toward risk identification, remediation advice, detection methodologies, or security validation in isolated environments.

    If an application has execution capabilities, “explaining” and “operating” should be managed separately. Allowing a model to explain configuration risks does not mean allowing it to directly modify security policies in a production environment.

    2. Biochemistry Requests: Assess Hazard Level and Experimental Actionability

    Fundamental knowledge in biochemistry, health risk explanations, and laboratory safety guidelines typically have legitimate value. However, when requests involve the preparation, enhancement, propagation, or regulatory evasion of hazardous substances or high-risk biological agents, the nature of the risk changes.

    The assessment focus should be on whether a response can help users actually carry out dangerous activities, rather than making decisions based solely on how technical the terminology is. For operational details that should not be provided, responses can instead explain the hazards, compliance requirements, protection principles, and pathways for seeking professional handling.

    This domain also requires attention to secondary risks from inaccurate information. Even without malicious intent, incorrect experimental advice can cause harm. Therefore, safety controls include not only restricting dangerous capabilities, but also clearly communicating uncertainty—avoiding presenting unverified content as reliable operational guidance.

    3. Model Distillation Requests: Do Not Equate a Technical Category with Wrongdoing

    Model distillation generally refers to techniques where a student model learns from a teacher model’s outputs, probability distributions, or intermediate representations. It serves purposes such as model compression, deployment optimization, and task-specific adaptation, and is not inherently a high-risk activity.

    Relevant risks depend primarily on data and model usage authorization, how outputs are obtained, privacy protection, and whether the process attempts to transfer restricted capabilities. For example, bypassing access controls to bulk-collect outputs, extracting sensitive information, or using the training process to weaken safety constraints all warrant stricter review.

    Accordingly, governance policies should permit compliant discussions of principles and training design, while setting boundaries for unauthorized acquisition and dangerous capability transfer—avoiding conflating normal research and development with abuse.

    How to Design a Hierarchical Routing Architecture

    A practical processing pipeline can be summarized as:

    Request intake → Context assembly → Risk assessment → Policy decision → Constrained generation or execution → Output review → Audit logging.

    1. Decouple Risk Assessment from Policy Decisions

    Risk assessment identifies the request domain, potential harm, degree of actionability, and uncertainty in judgment. Policy decisions determine what actions the system may take based on that information, combined with user permissions, resource scope, and business requirements.

    Moderate decoupling between the two supports independent policy updates and easier issue diagnosis. Otherwise, when misjudgment occurs, it becomes difficult to distinguish whether the failure lies in request recognition or in the handling rules themselves.

    Risk results should not be reduced to a single aggregate score. A single score can obscure differences in risk types. For instance, privacy leakage and dangerous operations both require restrictions, but they call for different handling approaches.

    2. Routing Targets Should Be Processing Modes, Not Single Model Names

    Systems can define several processing modes based on business needs:

    • Standard response: Handles low-risk knowledge inquiries and general tasks.
    • Constrained response: Preserves conceptual assistance while reducing operationally detailed content that could facilitate harm.
    • Clarification and verification: Requests additional necessary information when goals, permissions, or environments are unclear.
    • Human review: Handles requests with significant impact, complex judgment requirements, or ambiguous automated assessment.
    • Refusal with safe alternatives: Declines to provide relevant assistance for clearly unacceptable requests and offers reasonable alternative directions.

    These modes can be served by different models, or by the same model paired with different permissions and rules. The selection basis should be the actual assessment result, not model positioning or capability claims.

    3. Permission Restrictions Must Be Enforced at the Execution Layer

    If a model can access data, run code, or invoke business tools, independent execution controls must constrain its behavior. Relying solely on prompt instructions to “not exceed authority” is insufficient.

    Common measures include read-only access, resource whitelists, isolated runtime environments, approval gates for sensitive operations, and least-privilege authorization. Even if the generation layer errs, the execution layer should still block operations that exceed the authorized scope, preventing a single-point judgment failure from escalating into a real incident.

    Output Review and Failover Mechanisms Are Essential

    An input judged low-risk does not guarantee a safe final output. The model may introduce unnecessary dangerous details while supplementing background context, or produce content beyond the request scope due to context misunderstanding.

    Therefore, output review must verify whether the response aligns with current policies, leaks sensitive information, or contains prohibited operational content. Review targets should also include planned tool invocations, not just text displayed to users.

    For systems capable of external actions, checks must occur before the action executes. For streaming responses, high-risk content should not be emitted before necessary checks complete.

    Failover design also needs explicit definition. When risk identification is unavailable, policy configuration fails to load, or review times out, the system should not bypass controls and fall back to unrestricted answering. A more reasonable approach is to pause external operations, reduce the actionability of outputs, or escalate to human processing—while clearly communicating current limitations to the user.

    Validate Governance with Evaluation and Auditing

    Once safety mechanisms are deployed, continuous validation is required. Judging effectiveness based on a few examples is insufficient.

    Evaluation samples should cover normal needs, clearly dangerous requests, ambiguous boundary cases, multi-turn decomposition attempts, and content designed to induce the system into ignoring rules. For legitimate requests, samples should include situations prone to misjudgment, such as dense domain terminology or incomplete expressions.

    Key metrics worth tracking include missed detection rates for dangerous requests, false-blocking rates for normal requests, consistency of routing decisions, answer safety, processing latency, and human review burden. These metrics should be analyzed in conjunction with business impact rather than represented by a single aggregate number.

    After every update to models, prompt policies, tool permissions, or context processing logic, regression testing should be re-run. Even if the model remains unchanged, expanded tool permissions can significantly alter system risk.

    Audit records should preserve decision rationale, policy versions, processing modes, and necessary operation outcomes to support issue tracing. However, logs themselves may contain sensitive information, so they require minimal collection, access controls, appropriate anonymization, and defined retention periods.

    Conclusion: Safe Open Access Depends on Systems, Not One-Time Switches

    Providing LLM capabilities to a broad user base is not about handing all sensitive requests to a specific model. It is about constraining the information the system can provide and the actions it can execute, based on the true risk of each request.

    The value of hierarchical routing lies in converting risk assessment results into clear, verifiable handling modes. The value of permission isolation lies in preventing erroneous judgments from becoming unauthorized actions. The value of continuous evaluation and auditing lies in helping governance mechanisms adapt to new tasks and novel attack patterns.

    Only by combining these elements can we preserve the value of legitimate research, knowledge acquisition, and business applications, while placing explainable, traceable, and adjustable constraints on high-risk capabilities.