Structured prediction or structured learning is an umbrella term for supervised machine learning techniques that involves predicting structured objects, rather than scalar discrete or real values. Similar to commonly used supervised learning techniques, structured prediction models are typically trained by means of observed data in which the true prediction value is used to adjust model parameters. Due to the complexity of the model and the interrelations of predicted variables the process of prediction using a trained model and of training itself is often computationally infeasible and approximate inference and learning methods are used.
Applications
For example, the problem of translating a natural language sentence into a syntactic representation such as a parse tree can be seen as a structured prediction problem in which the structured output domain is the set of all possible parse trees. Structured prediction is also used in a wide variety of application domains including bioinformatics, natural language processing, speech recognition, and computer vision.
Example: sequence tagging
Sequence tagging is a class of problems prevalent in natural language processing, where input data are often sequences. The sequence tagging problem appears in several guises, e.g. part-of-speech tagging and named entity recognition. In POS tagging, for example, each word in a sequence must receive a "tag" that expresses its "type" of word: The main challenge of this problem is to resolve ambiguity: the word "sentence" can also be :wikt:sentence#Verb|a verb in English, and so can "tagged". While this problem can be solved by simply performing classification of individual tokens, that approach does not take into account the empirical fact that tags do not occur independently; instead, each tag displays a strong conditional dependence on the tag of the previous word. This fact can be exploited in a sequence model such as a hidden Markov model or conditional random field that predicts the entire tag sequence for a sentence, rather than just individual tags, by means of the Viterbi algorithm.
One of the easiest ways to understand algorithms for general structured prediction is the structured perceptron of Collins. This algorithm combines the perceptron algorithm for learning linear classifiers with an inference algorithm and can be described abstractly as follows. First define a "joint feature function" Φ that maps a training sample x and a candidate prediction y to a vector of length n. Let GEN be a function that generates candidate predictions. Then: In practice, finding the argmax over will be done using an algorithm such as Viterbi or an algorithm such as max-sum, rather than an exhaustive search through an exponentially large set of candidates. The idea of learning is similar to multiclass perceptron.