arXiv:2610.40036cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40036

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Thirteen Ways to Couple Language Models with Rules, and How to Choose Among Them

Siegfried Handschuh

Institute of Computer Science

University of St. Gallen (HSG)

siegfried.handschuh@unisg.ch

Götz-Henrik Wiegand

Institute of Computer Science

University of St. Gallen (HSG)

goetz-henrik.wiegand@unisg.ch

Lorena Raichle

Institute of Computer Science

University of St. Gallen (HSG)

lorena.raichle@unisg.ch

October 2026

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.

Contents

1 Introduction 3
2 Foundations 4
2.1 What FrameX adds for coupling 4
2.2 Five invariants 6
2.3 Four elementary moves 7
2.4 The catalogue form 7
3 Patterns at the boundary: what crosses it 10
3.1 Pattern 1: Model as Sensor 10
3.2 Pattern 2: Model as Author 14
3.3 Pattern 3: Model as Translator 18
3.4 Pattern 12: Model Selects, Rules Write 23
4 Patterns of control: who decides 27
4.1 Pattern 4: Model Proposes, Rules Dispose 27
4.2 Pattern 5: Rules Steer the Model 32
4.3 Pattern 6: Critique and Repair 36
4.4 Pattern 7: Division by Competence 38
4.5 Pattern 13: Fail-Safe Union 42
5 Patterns in the reasoning itself 47
5.1 Pattern 8: Model as Hypothesis Generator 47
5.2 Pattern 9: Model as Critic of the Rules 51
5.3 Pattern 10: Rules Teach the Model 55
6 Patterns over time 59
6.1 Pattern 11: Rule-Governed Memory 59
7 Compositions 64
8 Failure patterns 65
9 Related catalogues 66
9.1 Mapping 66
9.2 The patterns in boxology notation 66
9.3 What the catalogue adds 67
9.4 What the catalogue lacks 68
9.5 What the catalogue learns from them 69
10 Choosing a pattern 70
10.1 First question: is a hybrid needed? 70
10.2 From problem to pattern 70
10.3 What the guide rests on 71
11 Limits 74
A Boxology legend 75
B Pattern libraries 76
C Rule graph legend 84

References (33)