Abstract
Machine learning models often struggle to adapt to rapid policy shifts or new business logic without extensive retraining. This paper presents an interactive overlay framework that allows users to "patch" model behavior in real-time using interpretable Boolean rules. By leveraging Boolean Rule Column Generation (BRCG), the system translates complex model logic into human-modifiable rules, enabling immediate deployment of "soft" or "hard" constraints. Experimental results across multiple benchmarks demonstrate that this approach significantly improves model agility and performance between retraining cycles compared to traditional active learning.
Introduction
In dynamic real-world environments, the "ground truth" for a predictive model is often a moving target. For instance, regulatory changes might shift a bank's loan eligibility criteria overnight. Traditional machine learning (ML) workflows, which rely on collecting new labeled data and retraining the model, are often too slow and resource-intensive to handle such immediate requirements.
The authors identify a critical gap: complex ML models offer high predictive power but lack the flexibility for rapid, human-driven adjustments. Current alternatives—either manual relabeling or switching entirely to rule-based systems—sacrifice either speed or nuance. This research proposes a middle ground: an "interactive overlay" that layers user-defined Boolean rules on top of existing ML models to act as immediate behavioral patches.
Methodology: The Interactive Overlay
The proposed architecture consists of three distinct layers designed to bridge the gap between static models and dynamic requirements:
- ML Layer: The foundation is the original pre-trained model. To make its logic accessible, the system uses Boolean Rule Column Generation (BRCG) to extract human-readable
if-thenrules that approximate the model's decision-making process. - User Modification Layer: Users interact with these extracted rules. For example, if a model uses a rule
age > 30for loan approval, a user can manually adjust this threshold toage > 26to reflect a new policy. These adjustments are stored as Feedback Rules. - Application Layer: Incoming data points are checked against the Feedback Rules.
Constraint Types
The system supports two primary ways to apply these patches:
- Hard Constraints (hc): The user's rule directly overrides the model's prediction, ensuring strict compliance with specific logic.
- Soft Constraints (sc): This utilizes a Transformation Function ($t$). Instead of a direct override, the system subtly modifies the input features (e.g., "nudging" a value) to move the instance across the original model's decision boundary. This preserves the model's underlying knowledge of other features while achieving the desired outcome.
Experimental Evaluation
The approach was evaluated using four binary classification benchmarks from the UCI repository: Tic-Tac-Toe, Banknote Authentication, Bank Marketing, and Breast Cancer diagnostics. To simulate user feedback, an "oracle" rule set (trained on the full dataset) provided corrections to a model initially trained on a small data subset.
Key Results and Insights
- Efficiency and Agility: The system allows for immediate deployment. Unlike retraining, which can take days, Boolean patches take effect instantly.
- Information Density: A single user-provided rule can cover hundreds of data points, making it far more efficient than standard Active Learning, which requires labels for individual instances.
- Performance Stability: Soft constraints consistently improved accuracy between retraining cycles. In scenarios where only 20% of the training data was available, supplementing the model with user rules allowed it to achieve performance comparable to models trained on significantly larger datasets.
Limitations and Future Work
While promising, the framework faces challenges regarding rule conflicts in multi-user environments and the dependency on the "Explainer" (BRCG) to produce interpretable rules. Future research aims to integrate these temporary "patches" more deeply into the core model during subsequent retraining phases, effectively "promoting" human-derived rules into permanent model constraints.
Summary updated