Linear chain CRF: let the entire label sequence compete

Understands the division of functions between the Bureau component, the transfer score and the global distribution function.

Thematic shorts • In-depthCollate in 2 self-measured2 First-hand sources
Start Body
Learning objectives and first steps2 objectives 2 first fixes

Try to do it after reading

  • Understands the division of functions between the Bureau component, the transfer score and the global distribution function.
  • Check the input, label and evaluation conditions in the example

Suggested first

  • Text Tasks and Language Expressions
  • Conditional probability and vector calculations

What's to be bound beyond word-to-word classification

An encoder can score all types of labels for each word, but a single maximum can easily produce inconsistent label sequences. Linear chain conditions are compared to the complete sequence by adding the next-to-neighbour tag to the airport ' s position score. It modeles the distribution of label conditions after input, and does not require the creation of words themselves like HMM.

The total score of a sequence is obtained from the score of each location and the pass of the label. The indexation is divided by the sum of all candidate series index fractions, and the probability of the conditions being normalized is obtained. The denominator is called the component function, which relies on input and parameters; Training cannot be lost as a constant; otherwise it will only raise target path scores indefinitely without dealing with competitive sequences.

Two examples of the re-entry of the sequences

Assumptions are easy to calculate, there are only two legal label sequences, which score 2 and 1 respectively. The first probability is exp(2)/ (exp(2) + exp(1)), approximately 0.731; Two points are added at the same time, with the same probability. This means that the relative scores determine competition rather than absolute values are more credible.

Real sentences have a path to the number of indexes, but linear chain structures allow for forward dynamic planning to calculate denominators. The training target is the target path score minus the logarithmic function; Decoding is the way to find the highest split by Viterbi. The two share the transfer structure, but use the summation and maximum operation, respectively, and do not directly replace the training denominator with the maximum value of decoding.

Costs and boundaries of structural constraints

If the BIO tab does not allow certain transfers, the corresponding fractions may be blocked. Start and end tags also need to be addressed. The padding position of the long batch does not contribute to launch or transfer fractions, otherwise short-cut losses will depend on the length of the patches. logarithmic field calculations with log-sum-exp reduce long-sequencing.

CRF provides structural competition between labels and does not automatically address labelling errors, embedded entities or cross-sectional relationships. With the use of a strong context encoder, whether there are still benefits should be judged by comparison experiments with data, encoder, and the costs of training and reasoning should be reported. It's not possible to attribute all the changes in accuracy to the transfer layer.

The debugging process allows the listing of all eight paths for two tabs, three locations, hand-counting the denominator and validation of the gradient. Check if the label shield works simultaneously on training and decoding. If training permits and decoding bans different paths, there is a discrepancy between probabilities and actual projections.

P(y|x)=exp(s(x,y))∑y′exp(s(x,y′))

Check understanding

Do the transfer points for CRF have to be homogenised to the probability?

No need. They can be any number of the real number of the rounds, and the entire series is re-allocated globally through the distribution function. A move-by-line re-entry changes the model form.

Why can't training and decoding all use Viterbi with maximum value?

(b) The need to consider the overall quality of all competitive paths for training in seemingly competitive terms; Viterbi only seeks the best path. Replacing peace with maximum value changes the objectives of training.

Sources and reconciliations

Definitions, methods and interfaces are available.

  1. Michael Collins — Log-Linear Models, MEMMs, and CRFs
  2. Jurafsky and Martin — Sequence Labeling

Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.

← Back to the knowledge directory
Ask Max Ask about this site
Ask Max ↗

Opening the assistant…

Paper figure

Photo comments

LEAVE A NOTE

About this photograph

Connecting to the discussion board…

    Comments become public after moderation. You can delete your own comments from this browser.
    No email is required. Clearing cookies prevents this browser from claiming earlier comments.

    MAX WANG / INDEX

    Find something

    Enter a keyword, or explore the directory below.