TL;DR
This paper introduces a formal catalog of 13 design patterns for "Hybrid AI"—systems that combine the linguistic flexibility of Large Language Models (LLMs) with the rigorous, auditable logic of rule engines. By establishing a shared vocabulary and a decision guide backed by empirical measurements, the authors provide a roadmap for building AI applications that are more reliable, accountable, and cost-effective than LLMs acting alone.
What Problem Does This Paper Address?
While LLMs are exceptional at processing unstructured text, they struggle with strict logical consistency, "hallucinations," and providing verifiable proofs for their conclusions. Conversely, symbolic rule engines are perfectly logical and auditable but cannot "read" a document or hold a natural conversation.
Currently, developers often bridge this gap with ad-hoc solutions, effectively "reinventing the wheel" for every project. There is a lack of a common language to describe these hybrid architectures, making it difficult to compare designs or ensure accountability. This paper seeks to formalize these couplings into reusable patterns, similar to how the "Gang of Four" formalized object-oriented design.
Methods
The authors define 13 patterns categorized by how they handle the boundary between models and rules, who controls the execution flow, and how they function over time. Every pattern is built from four "elementary moves":
- Request: A rule issues a call to a model or tool.
- Receipt: The model’s answer returns as dated facts (data).
- Accept: A rule decides if the proposed fact is admitted, refused, or remains unknown.
- Ask: A rule generates a question for a human or requests specific evidence.
The patterns are implemented using FrameX, a rule engine based on F-Logic. To ensure accountability, the authors enforce five invariants, most notably that Rules Decide: the LLM is treated as a subroutine or "sensor," but the symbolic engine remains the final authority on logic and state transitions.
Datasets
The authors evaluated these patterns across several real-world and synthetic scenarios:
- Legal Extraction: A portfolio of 100 agreements (376 documents) used to test "Model as Sensor" patterns.
- Synthetic Intake Protocols: 770 runs of dialogue flows ranging from 4 to 96 questions to test reasoning "break-even" points.
- Bank Reconciliation: A diagnostic task used to test the "Model as Hypothesis Generator" pattern.
- Hackathon Submissions: Data from the "Hack Apertus" (Oct 2026) provided external validation for patterns like "Fail-Safe Union."
- Capability Ladder: A test suite run across six local models (from 1B to 70B parameters) to see how model size interacts with hybrid logic.
Key Insights and Ideas
- The "Break-even" Point: In simple tasks, a pure LLM is often faster and cheaper. However, once a task requires applying more than ~64 rules in a single conversation, pure LLMs' accuracy collapses, whereas hybrid systems maintain 100% accuracy.
- Model as Sensor: Instead of letting an LLM extract data directly, the hybrid pattern requires the model to provide a verbatim quote. The system then programmatically verifies that the quote actually exists in the source text before "accepting" the fact.
- Small Models, Big Logic: A key "aha moment" was finding that a small 9B parameter model in a hybrid setup can outperform a massive 70B model attempting pure reasoning. The rules handle the "heavy lifting" of logic, allowing the model to focus on what it does best: perception and language.
- Failure Patterns: The paper identifies "anti-patterns," such as the Silent Rule Override, where external code modifies a model's output before the rules see it, breaking the audit trail.
Key Results
- Exhaustive Lists: In a test of 100 agreements, pure LLMs failed to produce exact exhaustive lists in 0 out of 6 complex questions. The "Model as Sensor" hybrid got 10 out of 10 correct.
- Dialogue Consistency: In synthetic triage protocols, the hybrid decided all 770 runs correctly. Pure LLMs dropped to ~50% accuracy as the number of rules increased.
- Safety & Redaction: In a data redaction task (1,860 entities), a "Fail-Safe Union" (combining rules and models) achieved significantly higher recall than either the rules or the model alone.
- Cost Efficiency: While extraction is expensive, the authors found that for complex reasoning, the hybrid approach is often cost-competitive because it allows for the use of smaller, cheaper local models.
Limitations and Future Work
- Engine Specificity: The current implementations are tied to the FrameX engine; while the patterns are general, performance may vary with other symbolic cores (e.g., Prolog or Datalog).
- Measurement Gaps: Several patterns (like "Rules Teach the Model") are described qualitatively but lack the extensive quantitative benchmarking provided for the "Sensor" and "Steer" patterns.
- Human-in-the-loop Costs: While the "Division by Competence" pattern hands "unclear" cases to humans, the paper does not yet report the specific economic cost of this human intervention.
- Future Directions: The authors suggest expanding the catalog to include "tightly coupled" systems where logic is differentiable or embedded directly within the model's weights.
Summary updated