NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inducing Features of Random Fields

S. Della Pietra, V. Della Pietra, J. LaffertyarXiv 1995

TL;DR

This paper introduces a greedy algorithm to incrementally build random fields (exponential models) by selecting the most informative features from data. It also presents the Improved Iterative Scaling (IIS) algorithm, a robust method for parameter estimation that doesn't require the rigid normalization constraints of previous techniques.

What Problem Does This Paper Address?

In the mid-90s, statistical modeling for complex data like natural language or images usually fell into two camps. In Natural Language Processing (NLP), researchers relied on probabilistic automata (like HMMs). In computer vision, they used Markov Random Fields (MRFs), which were typically restricted by the "Markov property"—the assumption that a pixel only depends on its immediate neighbors.

The authors identify a major gap: how do we build a statistical model that can capture complex, overlapping, and non-local dependencies without manually designing the structure? Specifically, they tackle the problem of feature induction—automatically discovering which patterns (features) in the data are actually worth modeling to approximate the true distribution without falling into the trap of over-training.

Methods

The authors propose a "Learning Paradigm" consisting of two main components:

  1. Greedy Feature Induction: The model starts as a simple uniform distribution. It then looks at a pool of "candidate features" (created by conjoining simple "atomic" features with existing ones). It calculates the Gain for each candidate—how much adding that feature would reduce the Kullback-Leibler (KL) divergence between the model and the training data. The feature with the highest gain is added, and the process repeats.
  2. Improved Iterative Scaling (IIS): Once a feature is added, its weight (and the weights of all previous features) must be optimized. The authors introduce IIS, an evolution of the Generalized Iterative Scaling (GIS) algorithm. Crucially, IIS removes the requirement that features must sum to a constant, making it more flexible and easier to implement for complex datasets.
  3. Monte Carlo Integration: Because the space of all possible configurations (like all possible strings of a certain length) is astronomically large, the authors use Gibbs sampling to estimate the expectations needed for the IIS equations.

Datasets

The primary demonstration of the method is applied to Word Morphology (the study of how words are formed).

  • Training Data: A massive corpus of 365,893,263 words.
  • Vocabulary: The model focused on the 100,000 most frequent spellings in that corpus.
  • Task: Inducing features of English spellings to see if the model could "learn" English morphology (like suffixes and prefixes) from scratch.

Key Insights and Ideas

  • Duality is Key: The paper reinforces the mathematical link between Maximum Likelihood and Maximum Entropy. Minimizing KL divergence to the training data is equivalent to finding the maximum entropy distribution that matches the observed feature counts.
  • Non-Markovian Flexibility: Unlike standard MRFs used in vision, these induced fields can have overlapping supports and long-range dependencies. A feature could be "starts with a capital letter AND ends in -ism," regardless of how long the word is.
  • Auxiliary Functions: The proof for the convergence of IIS relies on "auxiliary functions" that lower-bound the likelihood, a technique borrowed from the analysis of the EM (Expectation-Maximization) algorithm.
  • From Noise to Language: By starting with a uniform distribution (pure noise) and greedily adding features, the model naturally discovers the most fundamental rules of the language first (e.g., "most characters are lowercase," then "vowels are common," then specific suffixes like "-ing").

Key Results

The authors demonstrate the model's progress qualitatively by sampling strings from the field at different stages:

  • Initial Stage: The model produces gibberish ASCII strings.
  • Early Induction: After inducing a few features like [a-z] and [a-z][a-z], the samples look like random lowercase clusters (e.g., "xevo", "ijjiir").
  • 100 Features: The model discovers common words and suffixes. Samples include "the", "and", and strings ending in "-ion" or "-ed".
  • 1000+ Features: The model produces highly English-like pseudowords (e.g., "reloverated", "prolling", "menttering").
  • Quantitative Weights: The algorithm assigned very high weights to features like [0-9][0-9] (weight ~9382), capturing the fact that digits almost always appear in groups, even though digits themselves are rare in the overall corpus.

Limitations and Future Work

  • Computational Cost: The greedy search is "computationally intensive." The authors suggest that adding multiple top candidates at each step, rather than just one, could speed up the process.
  • Hidden Structure: The current method only induces features based on observed data. It does not explicitly learn "hidden" or latent variables, which the authors note is a promising direction for future research (potentially combining this with EM).
  • Stopping Criteria: The paper doesn't provide a definitive rule for when to stop inducing features. They suggest a Bayesian framework with priors on features could help decide when the model is "complete."

Summary updated

BibTeX
@misc{pietra1995inducing,
  author = {S. Della Pietra and V. Della Pietra and J. Lafferty},
  title = {{Inducing Features of Random Fields}},
  year = {1995},
  eprint = {cmp-lg/9506014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cmp-lg/9506014},
}
Figure