cs.AIOct 29, 2026

Hybrid AI Patterns: Thirteen Ways to Couple Language Models with Rules, and How to Choose Among Them

Authors: Siegfried Handschuh, Götz-Henrik Wiegand, Lorena Raichle

Organizations: Institute of Computer Science, University of St. Gallen (HSG)

Abstract

Language models handle text well, and rule engines give conclusions with proofs. Systems that combine the two are usually described by example, and the same coupling turns up under different names in agent frameworks, guardrail toolkits and neuro-symbolic research. This document defines thirteen patterns for coupling a language model with an executable rule language, in the catalogue form introduced for object-oriented design: intent, motivation, applicability, participants, collaborations, consequences, implementation, known uses and related patterns. Four patterns concern what crosses the boundary between model and rules, five who controls whom, three how the model takes part in the reasoning, and one how knowledge is kept over time. Five invariants hold for every combination, and five failure patterns name the couplings that break them. We relate the catalogue to published pattern catalogues and taxonomies of hybrid and neuro-symbolic systems and show where they overlap with it. A decision guide leads from a problem to a pattern. It rests on our measurements, including the cases in which a model alone did as well as the hybrid or better, and it reports what each design cost.

Figures & tables

Appendix figures & tables2 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Language models fail at extended rule following

    May 3, 2026Tianxiang Dai, Jonathan FanLLM EvaluationLLM Reliability

  2. Test, then Route: How Language Models Execute In-Context Conditional Rules Across Models and Languages

    Aug 4, 2026Luxshan Thavarasa, Sivasuthan SukumarIn-Context LearningCircuits in Language Models