Soft quantification in statistical relational learning

Golnoosh Farnadi, Stephen H. Bach, Marie-Francine Moens, Lise Getoor, Martine De CockMachine Learning 2017 · DOI

Abstract

Traditional Statistical Relational Learning (SRL) frameworks often rely on rigid first-order logic quantifiers, such as "for all" ($\forall$) or "there exists" ($\exists$). However, real-world relational data, particularly in social networks, frequently exhibits "soft" patterns where properties hold for a certain proportion of a set rather than its entirety. This paper introduces PSL$^Q$, an extension of Probabilistic Soft Logic (PSL) that incorporates soft quantifiers like "most" and "a few." By utilizing relative proportions instead of absolute counts, PSL$^Q$ provides a scale-invariant approach to relational modeling. Experimental results on social network datasets demonstrate that PSL$^Q$ significantly outperforms standard PSL in tasks such as trust prediction and user profiling.

Introduction: Beyond "All" or "Nothing"

In classical logic, we are often restricted to extremes. When modeling a social network, a rule stating "all of Bob's friends smoke" is likely to be false, while "at least one friend smokes" is often too weak to be predictive. In reality, human reasoning and social dynamics operate in the middle ground: we might say "most" of Bob's friends smoke, or "a few" of them do.

Standard SRL methods struggle with these "tipping point" behaviors—scenarios where a trend only becomes likely once a certain percentage of neighbors share a trait. Furthermore, "hard" thresholds (e.g., "at least $k$ friends") fail to scale across users with varying degrees of connectivity. A rule requiring 5 friends to share a trait is significant for a user with 10 friends but negligible for one with 1,000. PSL$^Q$ addresses these limitations by introducing soft quantification based on relative proportions.

The PSL$^Q$ Framework

PSL$^Q$ builds upon Probabilistic Soft Logic (PSL), a framework for collective inference in relational domains. PSL uses continuous truth values in the interval $[0, 1]$ and defines rules using Łukasiewicz logic. These rules are translated into hinge-loss Markov Random Fields (HL-MRFs), allowing for efficient convex optimization.

Soft Quantifier Mappings

The primary innovation in PSL$^Q$ is the definition of soft quantifiers as functions that map the percentage of satisfied elements in a set to a truth value.

As shown in the figure above, quantifiers like "most" and "few" are modeled as piecewise linear functions. For instance, "most" might have a truth value of 0 until 25% coverage is reached, then linearly increase to 1 at 75% coverage. This approach allows the model to capture non-linear aggregate behaviors while remaining computationally tractable.

Iterative MPE Inference

Introducing these aggregates makes the Most Probable Explanation (MPE) inference more complex. While standard PSL inference is a linear program, soft quantifiers introduce non-linearities. To solve this, the authors developed an iterative algorithm that linearizes the quantifier functions at each step, converging on a solution through a sequence of optimization problems. Despite the added complexity, the models typically converge within 10 iterations, making them viable for real-world applications.

Experimental Evaluation

The framework was evaluated on two distinct social network tasks: trust prediction and user profiling.

Datasets and Tasks

  1. Epinions: A trust/distrust network where the goal is to predict links between users. It consists of 2,000 users and approximately 8,700 relations.
  2. Netlog: A large-scale Belgian social network. A sample of 174,000 users was used to predict demographic attributes (age and gender) based on the attributes of their neighbors.
Example of a weighted social trust network used in the evaluation.

The figure above illustrates the type of relational data found in these networks, where edges represent varying degrees of trust or friendship between users like Alice, Ann, and Bob.

Key Results

PSL$^Q$ demonstrated superior performance across both datasets:

  • Trust Prediction: On the Epinions dataset, the inclusion of the "a few" quantifier improved the Area Under the Curve (AUC) from 0.812 (standard PSL) to 0.825.
  • User Profiling: The gains on the Netlog dataset were substantial. Gender prediction accuracy rose from 0.69 to 0.80, while age prediction accuracy saw a dramatic jump from 0.57 to 0.79.

Insights and Discussion

A critical finding was the effectiveness of the "a few" quantifier in trust prediction. This suggests that in social contexts, even a small but consistent signal from a subset of peers can be a highly reliable predictor. Additionally, when the model learned rule weights, those containing soft quantifiers consistently received the highest weights, indicating that they capture more fundamental domain knowledge than simple one-to-one relational rules.

By focusing on proportions over counts, PSL$^Q$ models achieve scale-invariance. A model trained on a small community can be applied to a much larger one without needing to recalibrate its thresholds, as the "percentage of friends" remains a meaningful metric regardless of the total number of friends.

Conclusion and Future Work

PSL$^Q$ successfully bridges the gap between rigid logical quantification and the nuance of real-world data. While the current implementation uses manual tuning for quantifier thresholds, future work aims to automate this process through machine learning. Expanding the variety of quantifiers and applying the framework to domains like bioinformatics or document classification are also promising avenues for research.

Summary updated

BibTeX
@article{farnadi2017soft,
  author = {Golnoosh Farnadi and Stephen H. Bach and Marie-Francine Moens and Lise Getoor and Martine De Cock},
  title = {{Soft quantification in statistical relational learning}},
  journal = {Machine Learning},
  year = {2017},
  doi = {10.1007/s10994-017-5647-3},
}
Figure