Discovering Power Laws in Entity Length

Xiaoshi Zhong, Erik Cambria, Jagath C. Rajapakse · OpenReview

Abstract

This paper presents a discovery that the length of the entities in various datasets follows a family of scale-free power law distributions. The concept of entity here broadly includes the named entity, entity mention, time expression, aspect term, and domain-specific entity that are well investigated in natural language processing and related areas. The entity length denotes the number of words in an entity. The power law distributions in entity length possess the scale-free property and have well-defined means and finite variances. We explain the phenomenon of power laws in entity length by the principle of least effort in communication and the preferential mechanism.

Introduction

In the field of quantitative linguistics, several fundamental laws govern the structure of human language. Zipf’s law describes the rank-frequency of words, while word and sentence lengths typically follow Poisson, gamma, or log-normal distributions. However, modern Natural Language Processing (NLP) has increasingly shifted focus toward entities—multi-word phrases representing concrete objects, locations, or concepts.

Despite their ubiquity in tasks such as Named Entity Recognition (NER) and entity linking, the mathematical distribution of entity lengths remained unexplored. This research investigates whether a universal characteristic governs entity length across diverse domains, genres, and languages.

Defining Entity Length

To analyze these patterns, we define entity length ($l$) as the number of words (or tokens) contained within a specific entity mention. This definition spans various categories, from simple abbreviations to complex descriptive phrases.

Examples of entities and their corresponding lengths ($l$).

As shown in the examples above, entity lengths can range from a single word (e.g., "NBA") to lengthy technical or temporal expressions (e.g., "human cytomegalovirus ( HCMV ) major immediate").

Methodology: The Marshall-Olkin Power-Law (MOPL)

Initial analysis revealed that pure power-law distributions fail to accurately model entity lengths. Specifically, the probabilities for short lengths (1 or 2 words) often deviate from the strict linear log-log plot required by standard power laws.

To address this, we applied the Marshall-Olkin power-law (MOPL) distribution. MOPL is a generalized model that introduces an additional parameter to flexibly adjust the probabilities of small values while maintaining strict power-law linearity in the "long tail." We evaluated the goodness-of-fit using the Kolmogorov-Smirnov (KS) test and a custom Average Error metric, comparing MOPL against three baselines: CSN2009 (maximum-likelihood), LSavg (least-squares), and a standard LogNormal distribution.

Experimental Setup and Datasets

Our experiments utilized 30 datasets categorized into two groups:

  1. 12 English Entity Type Datasets: These covered a wide range of domains, including biomedical terms (BioMed), literary entities (LitBank), time expressions (TimeExp), and informal Twitter text. Dataset sizes ranged from 3,000 to over 10 million entities.
  2. 18 Multilingual Datasets: We extracted named entities from corpora in 18 different languages, including Arabic, Basque, French, Russian, and Ukrainian, with sizes ranging from 4,700 to 21 million entities.

Key Results

Superior Model Fit

MOPL demonstrated significantly better performance than traditional models. It was the only model to achieve an "Accept" decision via the KS test on all 12 English entity type datasets. In contrast, the popular CSN2009 baseline only achieved 5 accepts, while LSavg and LogNormal achieved none. On the multilingual datasets, MOPL achieved 8 "Accepts," the highest among all tested models.

Data Coverage and Efficiency

MOPL successfully modeled over 98.7% of the data points across all datasets. This is a major improvement over CSN2009, which often discarded up to 98% of the data (fitting only the extreme tail) to achieve its results. Furthermore, MOPL proved highly scalable; fitting the model took less than one second per dataset, even for those containing over 10 million entities.

The "Two-Word" Rule

A striking discovery was the stability of the average entity length. Despite variations in domain or maximum length (which reached 129 words in some literary texts), the average length across almost all 30 datasets hovered consistently around 2 words. This suggests a fundamental linguistic constraint governed by the principle of least effort.

Discussion and Future Work

The discovery that entity lengths follow a MOPL distribution suggests that entities are mathematically distinct from both individual words and full sentences. While the model fit was slightly less perfect for non-English datasets—potentially due to noisier annotations in low-resource settings—the overall trend remains robust.

This stable scaling property offers significant potential for improving NLP algorithms. Specifically, understanding the universal mathematical distribution of entities can facilitate knowledge transfer from high-resource languages to low-resource ones, where large-scale training data is unavailable. Future work will focus on integrating these power-law insights directly into the architecture of NER models.

Summary updated

BibTeX
@article{zhong2018discovering,
  author = {Xiaoshi Zhong and Erik Cambria and Jagath C. Rajapakse},
  title = {{Discovering Power Laws in Entity Length}},
  journal = {Knowledge-Based Systems},
  year = {2018},
  doi = {10.48550/arxiv.1811.03325},
}
Figure