RuleConEx: an intrinsically interpretable neural network unifying logical rules and counterfactual explanations for data access control
RuleConEx is an intrinsically interpretable neural network that unifies access decisions, ABAC-compliant IF-THEN rules, and valid counterfactual explanations within a single forward pass, achieving accuracy comparable to state-of-the-art models while offering a tunable trade-off between user-oriented and auditor-oriented explainability.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the digital world, access control is the gatekeeper. It decides who can enter a building, who can open a file, or who can move money between accounts. For decades, these decisions were made by administrators writing down explicit lists of rules, such as "managers in the finance department may approve invoices." These lists were easy to read and check, but they were rigid; if the environment changed, the rules had to be manually rewritten, a slow and error-prone process. Recently, scientists have turned to deep learning, a type of computer system that learns patterns from vast amounts of historical data to make these decisions automatically. These systems are incredibly accurate, often outperforming human-written rules, but they suffer from a critical flaw: they are opaque. They make decisions through complex internal calculations that no human can easily trace, making it impossible to explain why a specific person was denied access. This lack of transparency is not just a technical nuisance; it is a legal hurdle. Regulations like the General Data Protection Regulation require organizations to explain automated decisions that affect individuals, a demand that opaque systems cannot meet.
Researchers from the University of Dschang in Cameroon have developed a new system called RuleConEx to solve this specific problem. Their goal was to build a smart access control system that is both highly accurate and fully transparent, capable of explaining its own reasoning in two distinct ways that serve different human needs. They wanted a system that could tell an auditor the general rules it follows, while simultaneously telling a denied user exactly what small change they could make to gain access. To achieve this, the team created a neural network that does not just guess at an answer but generates two types of explanations at the exact same moment it makes a decision. One explanation takes the form of clear, logical "if-then" statements that describe the overall policy, similar to the traditional rule lists of the past. The other is a "counterfactual" explanation, which answers the question, "What would have to be different for me to be allowed in?" by suggesting specific, valid changes to the user's attributes.
The researchers tested this new system on eleven different datasets representing various access control scenarios, including real-world data from Amazon and synthetic data designed to mimic complex organizational structures. They compared RuleConEx against several other methods, including the best existing deep learning models and traditional machine learning tools. The results showed that RuleConEx achieved a high level of accuracy, performing just as well as the most advanced opaque systems and only slightly less accurate than a standard deep learning model that offers no explanations at all. More importantly, the system successfully generated the dual explanations it was designed for. The logical rules it produced covered about 80 percent of the access requests and were found to be faithful to the system's actual decisions, meaning the rules truly reflected how the system was thinking. The counterfactual explanations were also highly effective; in 96 percent of cases, the suggested changes were valid and would actually result in access being granted, typically requiring the user to change only two attributes.
A key discovery in this work was how the researchers managed the tension between these two types of explanations. Usually, a system that gives very short, simple suggestions to a user might produce rules that are too broad for an auditor, or vice versa. The team found that they could tune the system with a single setting to shift the balance. By adjusting this setting, they could prioritize giving the user a very short, easy-to-achieve path to access, or they could prioritize giving the auditor a set of rules that perfectly matched the user's specific situation. They demonstrated that they could move this balance continuously without losing any of the system's overall accuracy. This means the system is not stuck with a fixed trade-off; administrators can choose the level of detail and the type of explanation that best fits the situation, whether they are responding to a frustrated user or conducting a formal audit.
The study also revealed that the way the system "sees" the data is crucial. The researchers found that for these rules to be readable and accurate, the system needed to understand relationships between the user and the resource, such as whether they belong to the same department, rather than just looking at their individual characteristics in isolation. Without this ability to see connections, the rules became long, confusing, and inaccurate. Furthermore, the team addressed a critical security concern: if a system explains its decisions, could a bad actor use those explanations to figure out how to hack the system? They argued that while this is a risk, their design limits the damage. The system only reveals the specific change needed for a denied request, rather than exposing the entire rulebook, and it restricts suggestions to attributes the user can actually change, preventing the leakage of sensitive information about the resources themselves.
Ultimately, this work represents a significant step toward making powerful artificial intelligence trustworthy in high-stakes environments. It proves that a system does not have to be a black box to be accurate. By unifying logical rules and actionable suggestions into a single, trainable model, the researchers have created a tool that satisfies the legal need for transparency while maintaining the performance of modern deep learning. The system offers a practical way to audit automated decisions and to help users understand why they were denied access, bridging the gap between the complexity of machine learning and the human need for clarity. The findings suggest that with the right design, we can have intelligent systems that are not only smart but also honest about how they think.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.