paper-with-me

홈 › Papers

CORGI: Efficient Pattern Matching With Quadratic Guarantees

2025-11-17 · Daniel Weitekamp arxiv

Rule-based systems must solve complex matching problems within tight time constraints to be effective in real-time applications, such as planning and reactive control for AI agents, as well as low-latency relational database querying. Pattern-matching systems can encounter issues where exponential time and space are required to find matches for rules with many underconstrained variables, or which produce combinatorial intermediate partial matches (but are otherwise well-constrained). When online AI systems automatically generate rules from example-driven induction or code synthesis, they can easily produce worst-case matching patterns that slow or halt program execution by exceeding available memory. In our own work with cognitive systems that learn from example, we've found that aggressive forms of anti-unification-based generalization can easily produce these circumstances. To make these systems practical without hand-engineering constraints or succumbing to unpredictable failure modes, we introduce a new matching algorithm called CORGI (Collection-Oriented Relational Graph Iteration). Unlike RETE-based approaches, CORGI offers quadratic time and space guarantees for finding single satisficing matches, and the ability to iteratively stream subsequent matches without committing entire conflict sets to memory. CORGI differs from RETE in that it does not have a traditional $β$-memory for collecting partial matches. Instead, CORGI takes a two-step approach: a graph of grounded relations is built/maintained in a forward pass, and an iterator generates matches as needed by working backward through the graph. This approach eliminates the high-latency delays and memory overflows that can result from populating full conflict sets. In a performance evaluation, we demonstrate that CORGI significantly outperforms RETE implementations from SOAR and OPS5 on a simple combinatorial matching task.

📄 PDF Abstract BibTeX arXiv:2511.13942

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Certified Interpretability Robustness for Class Activation Mapping

2023-01-26 · Alex Gu, Tsui-Wei Weng, Pin-Yu Chen, Sijia Liu 외

Interpreting machine learning models is challenging but crucial for ensuring the safety of deep networks in autonomous driving systems. Due to the prevalence of deep learning based perception models in autonomous vehicle…

Autonomous DrivingAutonomous Vehicles

CoRGi: Content-Rich Graph Neural Networks with Attention

2021-10-10 · Jooyeon Kim, Angus Lamb, Simon Woodhead, Simon Peyton Jones 외

Graph representations of a target domain often project it to a set of entities (nodes) and their relations (edges). However, such projections often miss important and rich information. For example, in graph representatio…

ImputationValue prediction

Stochastic Gradient Descent without Full Data Shuffle

2022-06-12 · Lijie Xu, Shuang Qiu, Binhang Yuan, Jiawei Jiang 외

Stochastic gradient descent (SGD) is the cornerstone of modern machine learning (ML) systems. Despite its computational efficiency, SGD requires random data access that is inherently inefficient when implemented in syste…

Computational Efficiency

CorGi: Contribution-Guided Block-Wise Interval Caching for Training-Free Acceleration of Diffusion Transformers

2025-12-30 · Yonglak Son, Suhyeok Kim, Seungryong Kim, Young Geun Kim arxiv

Diffusion transformer (DiT) achieves remarkable performance in visual generation, but its iterative denoising process combined with larger capacity leads to a high inference cost. Recent works have demonstrated that the …

Visualizing Graph Neural Networks with CorGIE: Corresponding a Graph to Its Embedding

2021-06-24 · Zipeng Liu, Yang Wang, Jürgen Bernard, Tamara Munzner

Graph neural networks (GNNs) are a class of powerful machine learning tools that model node relations for making predictions of nodes or links. GNN developers rely on quantitative metrics of the predictions to evaluate a…