Semi-Supervised Learning with Declaratively Specified Entropy Constraints

Haitian Sun, William W. Cohen, Lidong Bing

Overview

The DCE-Learner is a novel framework that utilizes entropy as a "universal language" to declaratively specify and combine various semi-supervised learning (SSL) strategies. By compiling probabilistic logic rules into TensorFlow computation graphs, this approach allows researchers to easily mix heuristics like co-training and label propagation. The result is a highly flexible model that achieves new state-of-the-art performance in complex relation extraction tasks.

The Fragmentation of Semi-Supervised Learning

Semi-supervised learning is a powerful paradigm for training models when labeled data is scarce but unlabeled data is abundant. However, the field suffers from fragmentation. Different researchers rely on disparate assumptions: one might use entropy regularization (forcing the model to be confident in its predictions), another might use co-training (forcing two different models to agree), and a third might rely on graph-based methods (forcing neighboring nodes to share similar labels).

Because there is no "one size fits all" constraint, different tasks require different SSL assumptions. Testing these combinations is notoriously difficult because each strategy is typically hard-coded into specific, incompatible software architectures. This paper addresses this bottleneck by providing a unified, declarative way to specify, combine, and weight these diverse constraints within a single, efficient learning framework.

Methods: The DCE-Learner

The authors introduce the Declaratively Constrained Entropy Learner (DCE-Learner), which is built upon two core pillars:

  1. TensorLog: A probabilistic logic language that treats logical "rules" as differentiable operations. These rules are compiled into computation graphs (similar to TensorFlow), allowing the model to leverage GPU acceleration and modern gradient-based optimizers.
  2. Entropy as a Universal Constraint: The core innovation is expressing various SSL heuristics as entropy-minimization problems.

By framing these heuristics around entropy, the system allows users to write simple logic rules to define constraints.

Declarative logic rules for various SSL strategies.

As shown above, complex strategies are reduced to concise rules:

  • Entropic Regularization (ER): Minimizes the entropy of a single classifier's prediction on unlabeled data.
  • Co-training (CT): Minimizes the entropy of the combined predictions of two different classifiers, effectively forcing them to agree.
  • Network Regularization (NBER/LPER): Minimizes entropy across a neighborhood in a graph, encouraging a document to share a label with the papers it cites.

The relative importance (weights) of these different rules are then tuned automatically using Bayesian Optimization.

Key Insights

The Power of "All"

One of the most significant findings of the paper is that combining multiple SSL constraints (e.g., ER + Co-training + Graph links) almost always outperforms using just one. This suggests that different SSL heuristics capture complementary signals from the data, and unifying them yields a more robust model.

Declarative Simplicity

Instead of writing complex new loss functions in C++ or Python, a researcher can add a new SSL strategy by simply writing a one-line logic rule. For example, a "co-citation" constraint can be added just by defining a rule that looks at two-step neighbors in a graph. This drastically lowers the barrier to experimenting with novel, domain-specific heuristics.

Inductive vs. Transductive Learning

The DCE-Learner is an inductive model. It learns a general classifier that can be applied to new, unseen examples without needing to re-run the entire graph algorithm. This makes it significantly more efficient at test-time compared to transductive methods like Graph Convolutional Networks (GCNs), which require the full graph structure during inference.

Datasets and Key Results

The authors evaluated the DCE-Learner on two distinct types of tasks: Text Categorization (using citation networks) and Relation Extraction (using domain-specific text).

Text Categorization

The model was tested on three standard citation network benchmarks: Citeseer, Cora, and PubMed, where documents are nodes and citations are edges.

Text categorization results on CiteSeer, Cora, and PubMed.

The DCE-Learner consistently outperformed standard baselines like ManiReg and SemiEmb. Notably, on the Citeseer dataset, the combined model ("Supervised + All") achieved 65.7% accuracy, outperforming the inductive version of Planetoid (64.7%).

Relation Extraction

The model truly shined in relation extraction tasks, evaluated on DailyMed (28,590 articles) and WikiDisease (8,596 articles). The goal was to identify relationships between entities (e.g., "Aspirin" treats "Headache").

On the DailyMed "Drug" dataset, the DCE-Learner achieved an impressive F1 score of 50.1. This is a massive leap over the previous state-of-the-art "D-Learner" (37.8) and distant supervision baselines, which typically hovered around 15-30. Ablation studies confirmed that adding domain-specific constraints (like enforcing that mentions in the same section should have the same label) provided measurable boosts in performance, validating the declarative approach.

Limitations and Future Work

While powerful, the DCE-Learner has a few limitations:

  • Expressiveness Trade-off: To achieve the speed of TensorLog and TensorFlow, the authors utilized a slightly more restricted logic language than earlier, slower declarative systems.
  • The Transductive Gap: While the DCE-Learner beats most inductive models, specialized transductive models (like Graph Attention Networks) still hold an edge on specific benchmarks like Cora and PubMed because they can utilize the full graph structure during the inference phase.
  • Model Complexity: The underlying "learner" used in these experiments was relatively simple (akin to logistic regression). Future work replacing this with deeper, more complex neural networks could yield even stronger results.

Summary updated

BibTeX
@inproceedings{sun2018semi,
  author = {Haitian Sun and William W. Cohen and Lidong Bing},
  title = {{Semi-Supervised Learning with Declaratively Specified Entropy Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=B1WkUuWO-r},
}
Figure