User Friendly Automatic Construction of Background Knowledge: Mode Construction from ER Diagrams

Alexander L. Hayes, Mayukh Das, Phillip Odom, Sriraam NatarajanarXiv 2019 · DOI

TL;DR

The Guided Mode Construction (GMC) framework bridges the gap between domain experts and complex logic-based learners by automatically translating intuitive Entity-Relationship (ER) diagrams into the technical "modes" required for efficient search. This approach achieves performance on par with expert-encoded knowledge while significantly reducing the technical barrier to entry for relational learning.

What Problem Does This Paper Address?

Inductive Logic Programming (ILP) and Statistical Relational Learning (SRL) are powerful tools for finding patterns in complex, multi-relational data. However, they suffer from a "usability bottleneck." To search the massive space of possible logical rules efficiently, these systems require modes—specific directives that tell the learner which predicates to use and how to link variables.

Currently, writing effective modes requires a rare double-expertise: you must understand the data domain and the inner workings of ILP. For most domain experts (like doctors or biologists), this technical requirement is a dealbreaker. Without well-defined modes, learners often get stuck in local minima or time out, leading to sub-optimal models.

Methods

The authors introduce Guided Mode Construction (GMC), which allows a user to interact with a graphical representation of their data rather than writing code.

  1. The Interface: A drag-and-drop GUI where users can build or load ER diagrams. Users simply double-click nodes to mark a "target" (what they want to predict) and "important" attributes (what they think is relevant).

    Figure 3: The Interface. It provides a drag-and-drop console with drop downs for annotating the ERD. As mentioned ear- lier: rectangles, diamonds, and ellipses/circles represent en- tities, relations, and attributes respectively. Here, “Rating" is annotated as the target and the “Popularity" attribute is annotated as important.
  2. The GMC Algorithm:

    • FindPaths: The system performs a breadth-first search on the ER graph to find paths connecting the target to the user-marked important attributes.
  3. CreateMode: It automatically translates these paths into ILP modes. It assigns variable types based on the entities in the path and determines if a variable should be an input (+), output (-), or a grounded constant (#).

    Figure 2: Illustrative example showing knowledge guided walks on the ERD, given in Figure 1, for mode construction.

The researchers tested two variants: Walk All Paths (comprehensive) and Walk Shortest Path (prioritizing efficiency). The underlying learner used for evaluation was Relational Functional Gradient Boosting (RFGB).

Datasets

The approach was evaluated on five standard relational learning benchmarks:

  • CiteSeer & Cora: Citation matching and paper classification.
  • WebKB: Predicting faculty members from university webpage links.
  • IMDB: Predicting "workedUnder" relationships between actors and directors.
  • UW-CSE: Predicting student-advisor relationships in a computer science department.

Key Insights and Ideas

  • ER Diagrams as a Lingua Franca: ER diagrams are already the standard way database designers and domain experts conceptualize data. By using them as the input for ILP, the authors leverage a language experts already speak.
  • Shortest Paths are Often Sufficient: One of the most interesting findings is that the "Shortest Path" variant often performed as well as "All Paths." This suggests that the simplest relational connections are frequently the most predictive, echoing a graph-based version of Occam's Razor.
  • Human Guidance as a Constraint: The paper demonstrates that human intuition isn't just "nice to have"—it acts as a critical search constraint. By pointing the learner toward relevant "neighborhoods" in the relational graph, experts prevent the algorithm from wasting time on irrelevant logical combinations.

Key Results

The GMC approach was compared against two baselines: modes written by ILP experts and a "Random Walk" approach that explored the graph without human guidance.

  • Performance Parity: In almost all datasets, GMC matched or exceeded the performance (measured by AUC ROC and AUC PR) of modes manually written by ILP experts.
  • Efficiency Gains: GMC was significantly more efficient than Random Walks. In the CiteSeer dataset, for example, Random Walks showed high variance and often took much longer to train, whereas GMC provided a stable, fast path to a high-performing model.
  • Robustness: As shown in the results for WebKB and CiteSeer, GMC reaches peak performance with relatively few user-annotated predicates, showing that even minimal human guidance is highly effective.
Figure 4: Results for CiteSeer and WebKB Datasets; Top row: Citeseer, Bottom row: WebKB. Left: Efficiency - Training time (lower is better), Middle & Right: Performance - Average AUC ROC and AUC PR respectively (higher is better).

Limitations and Future Work

While GMC simplifies the process of mode construction, it still assumes the existence of a reasonably accurate ER diagram. If the underlying database schema is poorly designed or ambiguous, the generated modes may suffer.

The authors suggest several exciting directions for future research:

  • Active Advice: Developing a system that proactively asks the user for advice when it encounters ambiguity during search.
  • Handling Noise: Adapting the framework to handle incomplete or even contradictory advice from multiple experts.
  • Beyond ILP: Extending this graphical guidance to other relational frameworks, such as relational deep networks or sequential decision-making models.

Summary updated

BibTeX
@misc{hayes2019user,
  author = {Alexander L. Hayes and Mayukh Das and Phillip Odom and Sriraam Natarajan},
  title = {{User Friendly Automatic Construction of Background Knowledge: Mode Construction from ER Diagrams}},
  year = {2019},
  eprint = {1912.07650},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.07650},
}
Figure