Conditional random fields
What it is
A discriminative undirected graphical model over a whole sequence, so labels can depend on each other globally.
When to use it
Sequence labelling — named entities, chunking, bioinformatics — usually as the output layer over an RNN.
Caveats
Training requires running inference repeatedly, which is slow for large label sets or long-range dependencies. Exact inference is limited to chains and trees, and classic CRFs depend on hand-built features.
Key ideas
- Model the label sequence given the input directly (discriminative), with no model of the input
- Globally normalized over the whole sequence, which avoids label bias
- Can use arbitrary overlapping features of the input
Related architectures
Original paper
Conditional Random Fields: Probabilistic Models for Segmenting and Labeling Sequence Data (2001, publisher)