Enriching Knowledge Bases with Counting Quantifiers

Paramita Mirza, Simon Razniewski, Fariz Darari, Gerhard WeikumarXiv 2018

TL;DR

Knowledge bases (KBs) like Wikidata are great at capturing explicit relationships between entities, but they frequently miss out on numerical summaries found in text, such as "California is divided into 58 counties." This paper introduces CINEX, the first full-fledged system designed to extract these "counting quantifiers" from unstructured text using distant supervision. By introducing clever filtering techniques to handle incomplete training data, CINEX successfully expands Wikidata's existential facts by 28% across 110 distinct relations.

What Problem Does This Paper Address?

Traditional Information Extraction (IE) focuses heavily on subject-predicate-object (SPO) triples, such as <Monterey, locatedIn, California>. However, natural language text frequently expresses numerical summaries without explicitly naming the underlying objects—for instance, stating that a director made "more than twenty movies."

Standard Open IE systems struggle with these patterns, often failing to recognize numbers as numeric modifiers of relations. Furthermore, existing KBs are notoriously incomplete when it comes to these counts. If you try to train an extraction model using distant supervision (matching text to existing KB facts), you run into a major hurdle: non-maximal seeds. Because the KB itself is incomplete, its recorded counts systematically underestimate reality. A model trained on this noisy data will end up rewarding spurious text patterns and ignoring correct, higher counts.

SPO facts and counting information in Wikidata.

Methods

The authors propose CINEX (Counting Information Extraction), a two-stage pipeline that turns counting quantifier extraction into a sequence labeling and consolidation problem.

Fig. 2. Overview of the CINEX system.
  1. Counting Quantifier Recognition: Input sentences are pre-processed to replace specific numbers with generic placeholders (CARDINAL, ORDINAL, NUMTERM). A sequence labeling model—either a feature-based Conditional Random Field (CRF) or a BiLSTM-CRF—then tags tokens as COUNT (a count mention), COMP (compositional cues like "and" or commas), or O (other).

  2. Incompleteness-Aware Distant Supervision: To combat incomplete KB seeds, CINEX filters training data by subject popularity (leveraging the insight that popular entities have more complete KB entries). It also excludes text mentions higher than the KB count from being marked as negative examples, unless they exceed a realistic 99th-percentile upper bound.

  3. Entropy Discounting: The system ignores sentences containing highly frequent, low-entropy numbers to minimize background noise.
  4. Counting Quantifier Consolidation: Because an entity might have multiple count candidates across different sentences, CINEX uses a consolidation algorithm. It sums up compositional mentions (e.g., combining "three sons" and "two daughters" into 5), filters out low-confidence predictions, and ranks the remaining candidates by mention type preference (cardinal > numterm > ordinal > article).

Datasets

The system was trained and evaluated using Wikidata as the source KB and English Wikipedia articles as the source text. The authors evaluated CINEX across five diverse relations:

  • containsWork (series of creative works $\rightarrow$ has part)
  • hasMember (musical ensemble $\rightarrow$ has part)
  • containsAdmin (administrative territorial entity $\rightarrow$ contains admin)
  • hasChild (human $\rightarrow$ child)
  • hasSpouse (human $\rightarrow$ spouse)

Evaluation sets included a manually annotated gold standard of 200 entities per relation, an automated silver standard of popular entities, and a zero-count test set derived from Wikidata's special no-value fields.

Key Insights and Ideas

  • Popularity as a Proxy for Completeness: KBs are incomplete, but they aren't uniformly incomplete. By restricting distant supervision training to the most popular entities, CINEX obtains significantly cleaner training labels.
  • Compositionality is Crucial: Humans rarely express total counts cleanly. We say "one son and two daughters" rather than "three children." Explicitly tracking compositional cues (COMP) prevents the model from missing these split counts.
  • CRFs Outperform LSTMs on Noisy Seeds: Interestingly, the authors found that traditional feature-based CRF models were more robust than BiLSTM-CRF architectures. The neural models were highly prone to overfitting on the noisy, distantly supervised training data.

Key Results

  • High Precision: CINEX-CRF achieved an average precision of 60% across the five primary test relations, vastly outperforming previous baseline methods that only looked at explicit cardinal numbers.
  • Zero-Count Accuracy: The system proved highly adept at identifying when an entity had zero relations, achieving 92.3% accuracy for hasChild and 71.9% for hasSpouse.
  • Large-Scale KB Enrichment: When scaled to 2,474 frequent Wikidata relations, CINEX successfully extracted 851K counting quantifier facts across 110 relations that met strict quality thresholds. This effectively asserted the existence of 2.5 million new SPO facts, expanding the existential knowledge of those relations by 28.3%.

Limitations and Future Work

While highly effective for cardinal numbers, CINEX struggles with ordinals (e.g., "her third husband"). Ordinals naturally express a lower bound rather than an exact count, leading to low precision when evaluated under strict exact-match criteria. Additionally, the frequent use of indefinite articles (like "a child") introduced spurious candidates that occasionally degraded precision.

The authors note that fully exploiting these extracted counting quantifiers will require moving beyond the Semantic Web's standard Open-World Assumption, blending open- and closed-world reasoning to properly infer negative information.

Summary updated

BibTeX
@misc{mirza2018enriching,
  author = {Paramita Mirza and Simon Razniewski and Fariz Darari and Gerhard Weikum},
  title = {{Enriching Knowledge Bases with Counting Quantifiers}},
  year = {2018},
  eprint = {1807.03656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.03656},
}
Figure