Using Graphs of Classifiers to Impose Declarative Constraints on Semi-supervised Learning

Lidong Bing, William W. Cohen, Bhuwan Dhingra

Abstract

Semi-supervised learning (SSL) is a powerful technique for leveraging unlabeled data, but its effectiveness often depends on domain-specific heuristics that are difficult to generalize or combine. We introduce D-Learner, a framework that uses a declarative logic language to define SSL constraints—such as co-training, label consistency, or mutual exclusivity. By representing these constraints as graphs and employing Bayesian optimization, D-Learner automatically identifies the most effective combination of heuristics for a given task. Evaluations on citation networks and relation extraction tasks demonstrate that D-Learner consistently matches or outperforms strong baselines, offering a flexible and automated approach to semi-supervised learning.

Introduction

The primary challenge in semi-supervised learning (SSL) is the "finicky" nature of heuristics. A constraint that improves performance in one domain, such as the "smoothness" assumption in image classification, may be ineffective or detrimental in another, like text classification. Most existing SSL methods are rigid, hard-coding specific constraints and limiting the ability of researchers to experiment with domain-specific ideas.

D-Learner addresses this lack of flexibility by viewing SSL as a constraint-satisfaction problem. It allows domain experts to easily define "soft constraints" about how a classifier should behave on unlabeled data, using a high-level declarative language.

Methods

D-Learner is built upon ProPPR (Programming with Personalized PageRank), a stochastic logic language designed for efficient inference on large graphs.

Declarative Constraints

Instead of writing complex optimization code, users define constraints using simple logic rules. For example, a "mutual exclusivity" constraint can be expressed by stating that a "failure" occurs if a single instance is classified into two different categories.

Graph-Based Semantics

ProPPR translates these logic rules into directed graphs where nodes represent proof states. Learning is treated as a Markov walk over this graph. The system adjusts feature weights so that the probability of reaching a "correct" state (a valid label) is maximized, while the probability of reaching a "failure" state (a constraint violation) is minimized.

Graph representation of a mutual exclusivity constraint in D-Learner.

Bayesian Optimization

To manage the variety of possible constraints, D-Learner uses Spearmint to automatically tune the importance of each heuristic. It treats the number of unlabeled examples assigned to each constraint as a hyperparameter. This allows the system to effectively "turn off" heuristics that do not improve performance on a validation set, solving the problem of manual heuristic selection.

Experimental Setup

The authors evaluated D-Learner on two distinct types of tasks:

  • Link-based Text Classification: Using the CiteSeer, Cora, and PubMed citation networks, where papers are classified based on text and citation links.
  • Relation Extraction: Using the DailyMed (drug-related) and WikiDisease (disease-related) corpora to identify relationships between entities.

Key Insights

  • SSL as Logic: Complex SSL heuristics, often described mathematically, can be reduced to simple logical consistency checks. Whether it is co-training (agreement between views) or label propagation (agreement between neighbors), these are fundamentally logical statements.
  • The "SSL-Naive" Trap: Simply applying every possible constraint without tuning often leads to poor performance. This confirms that SSL is highly domain-dependent and requires the automated selection mechanism provided by D-Learner.
  • Distillation in Relation Extraction: For relation extraction, "distilling" noisy, distantly-labeled data using label propagation before training provided a cleaner signal, significantly boosting D-Learner's performance.

Results

D-Learner consistently outperformed or matched strong supervised and semi-supervised baselines.

Text Classification

On citation networks, D-Learner achieved state-of-the-art results on the Cora (0.581 accuracy) and PubMed (0.699 accuracy) datasets, showing consistent gains over standard supervised methods.

Comparison of accuracy on citation network datasets across different models.

Relation Extraction

D-Learner showed its greatest strengths in relation extraction. In the disease domain, it improved F1 scores by 19% to 27% over established methods like MultiR and MIML-RE. In the drug domain, improvements were even more dramatic, ranging from 112% to 159%.

Conclusion

D-Learner provides a flexible, declarative framework for SSL that removes the "black magic" of manual heuristic tuning. Future work will explore finer hyperparameter control, such as tuning constraint weights directly, and testing the approach on non-textual tasks like computer vision.

Summary updated

BibTeX
@inproceedings{bing2017using,
  author = {Lidong Bing and William W. Cohen and Bhuwan Dhingra},
  title = {{Using Graphs of Classifiers to Impose Declarative Constraints on Semi-supervised Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/201},
}
Figure