Signal-Decision Driven Architecture: Reshaping Semantic Routing at Scale
The earlier versions of vLLM Semantic Router relied on classification-based routing, a straightforward approach where user queries are classified into one of 14 MMLU domain categories, and then routed to corresponding models. While this worked for basic scenarios, we quickly discovered its limitations when building production AI systems for enterprises.
Consider this real-world scenario: A user asks, "I need urgent help reviewing a security vulnerability in my authentication code." The classification-based router would identify this as a "computer science" query and route it to a general coding model. But it misses critical context:
- The urgency signal that requires immediate attention
- The security sensitivity that demands specialized expertise and jailbreak protection
- The code review intent that benefits from reasoning capabilities
- The authentication complexity that needs careful analysis
This single example reveals the fundamental constraint: classification-based routing captures only one dimension of user intent—the domain—while ignoring the rich, multi-dimensional signals embedded in natural language queries.
Today, we're introducing the Signal-Decision Architecture—a complete reimagining of semantic routing that scales from 14 fixed categories to unlimited intelligent routing decisions. This new architecture combines multi-dimensional signal extraction, flexible decision logic with AND/OR operators, and built-in plugin orchestration to deliver production-ready semantic intelligence.

The Problem: Why Classification-Based Routing Doesn't Scale
The previous vLLM Semantic Router architecture followed a simple pipeline:
User Prompt → MMLU Domain Classification → Model Selection
This approach has several fundamental limitations that prevent it from scaling to enterprise requirements.
Single-Dimensional Analysis
Classification-based routing only considers the domain or subject matter of the query. It cannot capture:
- Urgency signals: "urgent", "immediate", "critical"
- Security sensitivity: "vulnerability", "exploit", "breach"
- Intent types: code review, architecture design, troubleshooting
- Complexity levels: simple FAQ vs. complex reasoning tasks
- Compliance requirements: PII handling, regulatory constraints
Real Impact: A medical query about "urgent patient data breach" gets routed to a medical model but lacks PII protection and security filtering—potentially violating HIPAA compliance.
Fixed Category Constraint
Limited to 14 predefined MMLU categories (math, physics, computer science, business, etc.), making it impossible to:
- Create custom categories for specific business domains
- Define fine-grained routing rules within a domain
- Scale beyond academic subject classification
Real Impact: An enterprise with 50+ specialized use cases (legal contracts, financial compliance, medical diagnostics, code security audits) cannot express their routing requirements within 14 categories.
Inflexible Logic
Cannot combine multiple conditions or implement complex routing strategies:
- No support for AND/OR logic: "route to expert model only when query is both urgent AND security-related"
- No priority-based selection when multiple conditions match
- No conditional plugin application based on signal combinations
Real Impact: Cannot implement layered routing strategies like "high-priority security issues get reasoning + jailbreak protection, while general questions get cached responses."

Introducing Signal-Decision Architecture
The Signal-Decision Architecture fundamentally reimagines semantic routing by separating signal extraction from routing decisions and introducing a flexible decision engine with built-in plugin orchestration.
Architecture Overview

The new architecture introduces three key innovations:
- Multi-Signal Extraction: Captures multiple dimensions of user intent simultaneously
- Decision Engine: Combines signals using flexible AND/OR logic with priority-based selection
- Plugin Chain: Provides built-in intelligence for caching, security, and optimization
Complete Request Flow
