NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HORAE: A Domain-Agnostic Modeling Language for Automating Multimodal Service Regulation

Yutao Sun, Mingshuai Chen, Kangjia Zhao, He Li, Jintao Chen, Linyu Yang, Zhongyi Wang, Tiancheng Zhao, Jianwei Yin · OpenReview

Abstract

Artificial intelligence is rapidly encroaching on the field of service regulation. This work presents the design principles behind HORAE, a unified specification language to model multimodal regulation rules across a diverse set of domains. We show how HORAE facilitates an intelligent service regulation pipeline by further exploiting a fine-tuned large language model named RuleGPT that automates the HORAE modeling process, thereby yielding an end-to-end framework for fully automated intelligent service regulation.

Introduction

Service regulation—the systematic process of ensuring services adhere to established norms and standards—is currently a fragmented field. Existing AI-based regulatory frameworks typically follow a "plug-and-play" paradigm, where specialized models are developed for specific domains such as healthcare, finance, or industrial safety. This approach suffers from significant resource wastage due to the need for redundant training of massive models and a lack of adaptability to new, unseen scenarios.

To address these challenges, we propose HORAE, a domain-agnostic specification language designed to standardize the modeling of service regulations. By abstracting rules into a unified format, HORAE enables a single framework to manage diverse regulatory requirements across industries without the need for domain-specific retraining.

The HORAE Framework

The core contribution of this work is the HORAE language, which serves as an Intermediate Representation (IR) for regulatory rules. HORAE employs a two-layered hierarchical grammar to capture the complexity of human-authored regulations:

  1. Top-Level Grammar: This layer handles the logical structure (AND, OR, NOT) and the deontic modality of the rule—specifying whether an action is enforced, recommended, or forbidden. It also incorporates temporal constraints, such as deadlines or durations.
  2. Bottom-Level Grammar: This layer decomposes basic events into fine-grained components, including object, action, attribute, and value. For instance, a rule regarding a missing manhole cover is parsed into specific state-based attributes.
The end-to-end pipeline for multimodal service regulation using HORAE and RuleGPT.

As illustrated in Figure 2, the framework encompasses the entire lifecycle of a regulation, from multimodal rule alignment and modeling to consistency checking and violation recognition. Once rules are structured in HORAE, the system utilizes SMT (Satisfiability Modulo Theories) solvers, such as Z3, to automatically identify logical contradictions or inconsistencies within a rule set.

Automated Rule Encoding with RuleGPT

To bridge the gap between natural language and the structured HORAE format, we developed RuleGPT, a 7B-parameter model fine-tuned from Qwen2.5-7B-Ins using Low-Rank Adaptation (LoRA). The automation pipeline is divided into three specialized phases:

  • Basic Event Extraction: Identifying the fundamental actions and entities within a textual rule.
  • Logical Relation Extraction: Determining the conditional and logical dependencies between these events.
  • Syntactic Pattern Matching: Mapping the extracted events to the formal HORAE bottom-level grammar.

This structured approach allows for quantitative violation recognition, where the system calculates the exact probability of non-compliance based on real-world data.

Experimental Evaluation

We evaluated our framework using SRR-Eval, a comprehensive benchmark comprising 5,100 rules across 50 domains. This dataset includes 10 real-world domains (e.g., power plants, food safety) with manually annotated rules and 40 "quasi-domains" for fine-tuning.

Performance comparison of RuleGPT against baseline models across various real-world domains.

The results, summarized in Figure 6, demonstrate that RuleGPT significantly outperforms GPT-3.5 and achieves performance metrics (Precision, Recall, and F1-score) comparable to GPT-4o. Notably, RuleGPT achieved the highest accuracy in extracting logical relations across all ten real-world benchmarks, highlighting the efficacy of domain-specific fine-tuning for complex regulatory logic. Furthermore, human annotators achieved a Fleiss’ kappa between 0.84 and 0.86, indicating that the HORAE language is both intuitive and mathematically robust.

Discussion and Future Work

By treating service regulation as a language translation and logical verification problem, HORAE provides a "future-proof" solution for industrial AI. The success of RuleGPT suggests that specialized, smaller models can be more efficient and effective for industrial applications than general-purpose large-scale models.

Current limitations include challenges in Event Correlation, where semantically identical events (e.g., "hand hygiene" vs. "wash hands") might be treated as distinct. Future research will explore the use of SBERT for enhanced event abstraction and the integration of HORAE with real-time computer vision and sensor networks to automate the detection of physical violations in the field.

Summary updated

BibTeX
@inproceedings{sun2025horae,
  author = {Yutao Sun and Mingshuai Chen and Kangjia Zhao and He Li and Jintao Chen and Linyu Yang and Zhongyi Wang and Tiancheng Zhao and Jianwei Yin},
  title = {{HORAE: A Domain-Agnostic Modeling Language for Automating Multimodal Service Regulation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1039},
}
Figure