Elamur Research

Guiding Semi-Supervision with Constraint-Driven Learning

Paper · 2007 · Ming-Wei Chang, Lev Ratinov and Dan Roth

Summary

A bibliographic reference frequently uses punctuation to separate its author, title and publication details. A system trained on a small collection of labeled references can miss those boundaries, even though a person can describe the pattern in a sentence. The paper asks whether such knowledge can help a system learn from documents that nobody has labeled. The authors call their approach Constraint-Driven Learning. They test it on information extraction from bibliographic citations and rental advertisements, where the task is to assign a field to every token in a document.

The procedure starts by training a hidden Markov model, or HMM, on a small set of examples with human annotation. It then predicts field labels for a pool of unlabeled documents. During that prediction, domain rules can favor some assignments over others. A dictionary rule can suggest a field for a particular word, a boundary rule can check neighboring labels, and a structural rule can check whether a field reappears later in a document. The procedure relearns from the resulting assignments, keeps part of the original supervised estimate, and labels the pool afresh in the next cycle. It can keep several candidate assignments for each document. Rules typically act as soft constraints. An assignment loses score when it breaks a rule, and a practical approximation to Hamming distance lets some rules charge more for repeated violations.

The citation collection contains 500 labeled references and 5,000 unlabeled references, with 13 possible fields. The advertisements collection contains 8,767 San Francisco Bay Area Craigslist rental ads, of which 302 have labels from a set of 12 fields. In the main citation experiments, training with constraints on 20 labeled references and applying them again at test time yielded token accuracy comparable to supervised training on 300 labeled references with ordinary decoding. In a separate comparison with Grenager and colleagues, with 20 labeled and 300 unlabeled citations, the authors report an increase from 70.1% to 79.4%. The earlier study reported an increase from 65.2% to 71.3%. For advertisements with 20 labeled examples, the authors report an increase from 68.1% to 74.6%, while the earlier study found no improvement. Preprocessing differed across the studies.

The experiments distinguish two uses of a rule. It can improve the annotations that the learner receives during training, and it can improve the final predictions made after training. The first use mattered most when human labels were particularly scarce. With more labeled data, the advertisement experiments showed a larger role for applying rules at prediction time. Even then, a rule worked best when it could admit exceptions in the reported boundary comparison. With supervised training on 100 labeled advertisements, token accuracy was 76.3% with ordinary decoding, 78.7% with a hard boundary constraint, and 80.6% with a soft penalty. Together, the results show how explicit knowledge about document structure can reduce the amount of manual labeling needed on these tasks.

Deep dive: Guiding Semi-Supervision with Constraint-Driven Learning

Constraint-driven learning uses rules about document structure to improve extraction from citations and rental ads when few examples are labeled. · about 34 minutes to read

The problem and its context

Why unlabeled text needs guidance

A rental advertisement gives a reader clues about where to find its rent, size, contact details and restrictions. A price cue suggests that some nearby words belong to the rent field. A line break can separate the description of the apartment from instructions for getting in touch. An extraction system has to decide where each field starts and ends, including in stretches of text where individual words give little guidance. A citation presents a similar problem. A person's name, a title and an institution may all contain capitalized words. Choosing the field at a given position can depend on how the words around it are grouped.

Human annotation supplies examples of those decisions. The annotator identifies the fields in each document, and the learner uses the resulting sequences to estimate which words and label transitions are typical. Collecting more raw documents is different from collecting more such decisions. The raw text contains examples of the conventions the learner needs to discover, but it leaves their interpretation open. When only a few complete annotations are available, some fields and ways of arranging them may be poorly represented in the initial training set.

Semisupervised learning tries to use both kinds of data. In the feedback process studied here, an initial learner annotates the raw documents, and its annotations become evidence for the next round of training. This is valuable if the first learner recognizes enough of the right patterns to teach the next one. It also creates a route for errors to spread. If an initial prediction puts a title phrase in the author field, the next estimate can learn to associate the phrase with authors. The original error then influences how the system labels other references, including references where the same mistake would have been avoidable.

The paper situates this problem in a line of work that had found mixed effects from adding unlabeled data. The authors cite Text Classification from Labeled and Unlabeled Documents using EM for the observation that semisupervised training can degrade performance and for the idea of controlling the contribution of unlabeled examples. The risk matters especially in sequence labeling. Each prediction covers a document, so a single mistaken boundary can change the training labels assigned to a run of words. Correctly recognizing one field can also help locate its neighbor if the learner has a way to reason over the sequence.

The authors focus on knowledge that people can state separately from the labeled examples. A person can say that fields in citations typically change at punctuation, or that a field generally occupies one continuous stretch. Those observations apply to many documents whose words the person has never read. They can support an assignment even when the training set supplies poor evidence about its particular vocabulary. The central question is where to apply that knowledge so that it improves the evidence a learner gets from raw text.

How earlier approaches represented knowledge

One approach was to build domain knowledge into the statistical representation. As the paper describes it, Grenager and colleagues encouraged an HMM to stay in the same state as it moved from one word to the next. Their diagonal transition approach reflects the fact that neighboring tokens in a field commonly share a label. It addresses a useful structural tendency through a part of the HMM that already controls transitions. The authors note that a similar preference can be expressed in a conditional random field.

A preference for staying in a field and a rule about where a field can recur address different questions. The transition preference concerns neighboring states. A rule that asks whether an author field has already ended needs information about a potentially distant stretch of the sequence. Local transitions alone offer no record of which fields occurred earlier. The paper draws on earlier supervised work to argue that such broader dependencies are worth expressing explicitly. It cites examples from information extraction and semantic role labeling where reasoning across output decisions improved performance.

Another approach was to start from reliable hints about particular words. Dictionaries, seed terms and other domain resources can associate a word with a probable class even in the absence of a fully annotated document. The paper discusses such work in information extraction and part-of-speech tagging. Among its examples is Collins and Singer's work on named entity classification, which used high-precision seeds to help start learning.

The related work also describes ways to use a seed beyond the word that appears in the seed list. Haghighi and Klein's Prototype-Driven Learning uses similarity in context to extend the information supplied by prototypes in a sequence-labeling task. The paper also describes a supervised named-entity approach that turns the similarity between a candidate entity and a dictionary prototype into a feature. These methods supply evidence about particular labeling decisions. The constraint formulation preserves the ability to give such hints and places them in the same decoding procedure as rules covering several positions or entire outputs.

The authors identify work on constrained inference in supervised learning as a technical precursor, especially the approach of Roth and Yih. It showed how structured predictions could incorporate dependencies beyond the ones used by a local sequence scorer. They also mention work by Shen and colleagues that used soft conditions in an unsupervised mention-tracking system. The paper distinguishes its own contribution by putting graded constraints into a general procedure for generating training feedback. A rule can influence what the system currently predicts and, through re-estimation, what it learns to predict from text alone.

The method, step by step

From an initial prediction to a training example

The paper illustrates the idea with a reference that names an author, gives the title of a thesis and ends with institutional and date information. An HMM trained on 30 labeled examples extends the author field into the title, then divides the remaining title words among several fields. It also assigns part of the date to the institution. The output looks plausible in pieces. The full assignment introduces boundaries where the text supplies little reason to put them.

With the same HMM parameters, restricting transitions to punctuation recovers the reference's correct annotation in the example. That change occurs during decoding, the process of choosing an output for a fixed input and current set of parameters. The resulting annotation can then be used for a separate operation, learning. If the reference is in the unlabeled pool, the learner can update its estimates using the corrected field assignments. The rule has thereby changed a training example without requiring anyone to annotate that particular reference.

This example also shows why the two roles of constraints need separate evaluation. If the rule is used only at test time, it can correct a poorly placed boundary in the current output. If it is used while annotating training documents, it can change what the learner associates with each field. Words previously assigned to the author field now provide evidence about titles. Subsequent decoding, even with the rules switched off, can benefit from that change in the parameters.

The procedure starts with the human-labeled documents and trains an initial scorer. During a cycle it holds the current parameters fixed while it processes the unlabeled pool. For each document it chooses a collection of plausible complete labelings using both the statistical score and the rules. It fits parameters to those assignments, blends that estimate with the original supervised estimate, and uses the blended parameters to begin the next cycle.

How Constraint-Driven Learning turns unlabeled text into feedback

The steps in order.

How Constraint-Driven Learning turns unlabeled text into feedbackStep 1: Fit initial parameters on human-labeled documents1. Fit initial parameters on human-labeled documentsStep 2: Score candidate labelings for each unlabeled document2. Score candidate labelings for each unlabeled documentStep 3: Charge penalties for violations of domain rules3. Charge penalties for violations of domain rulesStep 4: Keep the best labelings found by search4. Keep the best labelings found by searchStep 5: Fit parameters to the retained labelings5. Fit parameters to the retained labelingsStep 6: Blend the new and supervised parameter estimates6. Blend the new and supervised parameter estimatesStep 7: Relabel the pool in the next cycle7. Relabel the pool in the next cycle

What the sequence score represents

A structured classification task asks for an assignment to a collection of output variables. In these experiments each variable is a token's field label. The word or punctuation mark is observed and the state is hidden until the system assigns it. In the citation task, a run of tokens assigned the title state is the predicted title field. In the advertisements task, a run of contact tokens identifies text to extract as contact information. The formalism first describes input and output lengths separately and then specializes to token-by-token labeling in the experiments.

x = (x₁, …, xₙ),  n = N

Here x is the input sequence and x₁ through xₙ are its elements in order. The symbol N is the input length, and n is the final position index. The ellipsis stands for the intervening elements.

y = (y₁, …, yₘ),  m = M

Here y is an output assignment and y₁ through yₘ are its ordered variables. The symbol M is the output length, and m is the final output position index. The ellipsis again represents the intervening positions. In the experiments the output contains a label at every input position, so the two lengths coincide.

h : X → Y

Here X is the set of possible inputs, Y is the set of possible outputs and h is the predictor. The arrow indicates that h maps an input in X to an output in Y.

f : X × Y → ℝ

Here f is the scoring function. The product sign × denotes pairs consisting of an input from X and an output from Y. The arrow indicates that each pair receives a real-valued score, with ℝ denoting the real numbers.

The predictor chooses its answer by comparing scores for alternative outputs on a fixed input. The paper writes the ordinary statistical score as a weighted sum. In an HMM, this form can express the log likelihood assigned to the observed sequence and its proposed states. A sequence can receive support from familiar word-to-state pairings and from plausible transitions between states. Working with the sum of log contributions allows the paper to add constraint costs on the same scoring scale.

f(x, y) = ∑ᵢ₌₁ᴹ λᵢ fᵢ(x, y) = λ · F(x, y)

Here f(x, y) is the base score of the input x paired with output y. The summation adds terms indexed by i, starting at 1 and running through M, the upper index used in the paper's expansion. Each fᵢ is a feature function and λᵢ is its weight. The vector λ collects the weights, F(x, y) collects the feature values for the pair, and the dot denotes their dot product.

The HMM's local structure makes it possible to score sequences efficiently. Viterbi decoding can use that structure because the future extension of a partial assignment depends on limited state information. A constraint on field recurrence changes what needs to be remembered. Two partial assignments ending in the same state can differ in whether one has already used an author field and closed it. A later author label then has different consequences for the two assignments. The paper keeps the ordinary HMM score and brings this additional information into the search for an output.

What the rules check

A constraint tests whether a proposed labeling has a desired property for a given document. The paper's notation uses an indicator of satisfaction. The same constraint can define a different set of acceptable labelings for each input. A punctuation rule, for example, depends on the positions at which punctuation occurs in the particular document.

C : X × Y → {0, 1}

Here C is a constraint, X and Y are the input and output spaces, and × forms pairs from those spaces. The braces contain the possible indicator values. In the paper's convention, 1 identifies a pair that satisfies C, and 0 identifies a violation.

𝟙_C(x) = { y ∈ Y : C(x, y) = 1 }

Here 𝟙_C(x) denotes the set of outputs that satisfy C for input x. The braces describe a set, ∈ means membership, and the colon introduces the condition for including y. The condition C(x, y) = 1 requires the constraint to be satisfied.

Rules differ in the amount of an assignment they inspect. A unary rule can inspect one token and its proposed state. In the citations, cues such as pp. and pages support the page field. In advertisements, words such as laundry and parking support the features field. The observations can be useful even when a word was rare in the initial set of human annotations. The normalized phone and email cues in the advertisements work in much the same way, with preprocessing making the cue easier to recognize.

A boundary rule relates neighboring decisions to a feature of the input. For citations, punctuation can license a field change. For advertisements the corresponding rule also admits a newline. If the label stays the same, an intervening punctuation mark need not force a new field. The rule acts when a candidate assignment makes a change, and the scorer can still use the rest of the input to decide whether the change belongs there.

A broader rule can relate labels at positions far apart in the document. The citation inventory favors assignments in which a field occurs in one continuous stretch and appears only once. It also favors beginning a citation with an author or editor field. The advertisement inventory includes a minimum of 3 words for a field. A decoder checking that rule has to keep track of the length of a stretch before accepting the proposed end of the field. These rules express different kinds of knowledge even though each can ultimately declare a labeling acceptable or record a violation.

With hard constraints, the decoder searches only among outputs that meet the rules. The expression below uses the paper's notation for the set that satisfies the constraints together.

argmax_{y ∈ 𝟙_C(x)} λ · F(x, y)

Here argmax returns an output y with the highest score among the candidates allowed by its subscript. The set 𝟙_C(x) in this expression contains the assignments that satisfy every active constraint for x. The vector λ holds the learned weights, and its dot product with the feature vector F(x, y) supplies the base score.

Hard constraints express certainty about the admissible output. The paper's rules describe conventions that hold for much of the data, and the authors note that some correct annotations violate them. A soft constraint keeps such an output available while requiring stronger statistical support for choosing it. Its effect depends both on the penalty attached to the rule and on how much the proposed labeling violates it.

Measuring how much a candidate violates a rule

A binary penalty can distinguish an acceptable output from one with a violation. For some rules, that distinction loses useful information. Suppose an advertisement has a field change away from both punctuation and a newline. A binary penalty charges for the candidate as soon as it encounters that change. A second unsupported transition leaves the cost of the same rule unchanged. The paper's graded version can continue to prefer a candidate that has fewer problematic changes.

The formal proposal is to measure the distance from a candidate to the nearest assignment that obeys the rule. The paper gives Hamming distance as one possible definition. Between two assignments of equal length, Hamming distance is the number of positions at which their labels differ. The distance to the satisfying set thus describes the number of label changes in the closest repair.

d(y, 𝟙_Cᵢ(x)) = min_{y′ ∈ 𝟙_Cᵢ(x)} H(y, y′)

Here d is the distance from the proposed output y to the set 𝟙_Cᵢ(x), which contains outputs satisfying the individual constraint Cᵢ for input x. The symbol i indexes the constraint. The minimum ranges over y′, the possible satisfying outputs, and H(y, y′) is their Hamming distance from y. The prime distinguishes a candidate repair from the original assignment.

That definition specifies what an exact calculation would do. Finding a closest repair can itself be difficult, and the authors want a common procedure that avoids building a separate repair algorithm for each rule. Their implementation uses a test that looks at a labeled prefix, meaning the initial portion of a document and its proposed labels up to the current token. At each step, it asks whether the newest label introduces a detectable violation. Summing the results gives the approximation used during decoding.

d(y, 𝟙_C(x)) ≈ ∑ᵢ₌₁ᴺ φ_C(yᵢ)

Here d is the severity assigned to y relative to the satisfying set 𝟙_C(x) for rule C and input x. The approximation sign marks the use of an estimated distance. The sum runs over token positions i from 1 through N, the input length in the token-labeling setting. The function φ_C returns a Boolean violation indicator for the latest assignment yᵢ, evaluated in the context of the observed token and the preceding labeled prefix.

The two quantities can disagree in an instructive way. In the paper's example, a stretch with no punctuation or newline receives two author labels followed by two date labels. The boundary condition would require a constant label across that stretch. Making the entire stretch author or making it date takes 2 label changes, so the exact Hamming distance is 2. The prefix check detects only the change from author to date and gives 1. It counts the problematic boundary, while the exact distance counts the labels that a closest repair would replace.

Some rules can be checked definitively only when the output is complete. The authors illustrate this with a requirement that a citation contain a title. A prefix that contains no title can still become a valid citation when an assignment reaches the relevant span later on. A penalty for absence at that point would favor introducing a title early even when the words did not support one. For this kind of rule the approximation falls back to a binary check of the completed assignment. The title requirement illustrates how the approximation works. The experimental citation inventory supplies its own list of rules, including a restriction on where quotations can occur.

The decoder combines the ordinary score with a sum of violation costs. Each cost multiplies a rule's valuation by the penalty associated with that rule. A labeling that satisfies a rule has no cost from it. When a rule's approximation can count repeated violations, the same penalty is charged for each one it detects. An output can still win after paying a penalty if its base score gives it enough support.

argmax_y [ λ · F(x, y) − ∑ᵢ₌₁ᴷ ρᵢ d(y, 𝟙_Cᵢ(x)) ]

Here argmax chooses the output y that maximizes the expression in brackets for input x. The vector λ contains learned feature weights, F(x, y) contains the corresponding feature values, and the dot product is the base score. The summation ranges over constraints indexed by i from 1 through K, the number of constraints in this formula. The penalty ρᵢ scales the distance d from y to the satisfying set 𝟙_Cᵢ(x) for Cᵢ. The minus sign deducts the total violation cost from the base score.

The authors leave this objective unnormalized. Its role is to rank candidate assignments, so the score on its own is not a probability distribution over them. When the base score is the HMM's log likelihood, the authors interpret a penalty as a crude cost related to the probability that a rule fails. They set the penalties outside the learning loop. In the reported experiments the rules within a domain share a penalty, and the domains use different settings. Keeping those coefficients fixed lets the authors control how much influence the prior knowledge has while the statistical parameters change.

They use beam search to find promising assignments. The search extends partial labelings and retains a limited set of candidates as it moves through the input. Costs that can be computed from a prefix can influence which candidates stay in the beam. At the end, the retained outputs give the decoder candidates to rank under the combined objective. A promising path can be pruned before the search has seen the whole document, so the best outputs found by the beam are an approximation to the best outputs over the full search space.

This distinction matters for rules whose effect only becomes clear near the end of a document. A candidate may look good based on its local score and its prefix checks, then incur a cost once its complete structure is visible. Another partial labeling that would have avoided the final cost may already have left the beam. The paper's formulation states what to optimize, while its implementation uses a practical search procedure to produce the annotations used in learning.

How the retained assignments become feedback

The authors describe the learning loop as an approximation to expectation maximization, or EM. In the ordinary EM procedure they discuss, the estimation step assigns a distribution across possible labelings of each unlabeled document. The maximization step uses those distributions to estimate parameters. Keeping a distribution over every possible output becomes difficult when several arbitrary constraints reshape the sequence scores.

Their alternative keeps only the best candidates found by the search. The paper reuses K at this point to mean the number of retained labelings, instead of the number of rules in the scoring formula. The retained labelings each receive equal weight, and the remaining outputs receive zero. The authors call this top-K hard EM. With top-1, the entire training contribution from an unlabeled document comes from its highest-ranked assignment. With several retained candidates, the same raw document can supply several complete assignments to the learner.

That choice is useful when several assignments share reliable components and differ at an ambiguous boundary. A mistaken decision about one boundary need not commit all of the document's training weight to the labels associated with that decision. The paper gives a compact example using strings in which the ones must precede the zeros. The candidate 11101000 breaks that pattern. Both 11111000 and 11100000 satisfy it, but the two repairs put the boundary in different places. If both are strong candidates under the score, keeping them preserves the ambiguity about which side of the boundary should account for the disputed positions.

Keeping more assignments brings a tradeoff. Additional candidates can contain reasonable alternatives and partial agreements, and they can also add erroneous labels. Equal weight within the retained set means that the score gap between its best and weakest members is discarded when constructing the training feedback. The score still determines who joins the set. Once the candidates are in it, their common elements contribute repeatedly and their disagreements are represented through the different complete assignments.

At the start of each cycle the temporary training collection is empty. The current decoder assigns the chosen labelings to every document in the unlabeled pool, and the input paired with each retained assignment enters that collection. After this pass, the authors fit to the temporary collection by maximum likelihood. The learner can use the ordinary statistical features because the constraints have already influenced the assignments on which it is learning. In their general formulation, other learning procedures could estimate the parameters at this step as well.

λ₀ = learn(Tᵣ, F)

Here λ₀ is the initial parameter vector, learn denotes the supervised fitting procedure, Tᵣ is the collection of human-labeled training examples, and F supplies the score's feature functions. The loop starts by setting the current parameters to this supervised estimate.

λ = γλ₀ + (1 − γ) learn(T, F)

Here λ is the updated parameter vector and λ₀ is the fixed supervised estimate. The symbol γ is the balancing weight on λ₀. The term 1 − γ gives the remaining weight to learn(T, F), the parameter estimate from the current temporary collection T of machine-labeled examples using feature functions F. The multiplication of each weight by its parameter vector and the addition of those vectors produce a convex combination.

The supervised contribution stays anchored to the original estimate even as the machine-generated annotations change. This differs from weighting the labeled and unlabeled documents together during one fit. The authors estimate parameters from each source and blend those estimates. In the next cycle every unlabeled document is eligible for a different set of annotations. A bad assignment from an early cycle can be replaced once the learner has acquired better evidence about its fields.

The authors relate the loop to Effective Self-Training for Parsing. In the comparison they draw, self-training frequently selects high-confidence examples and keeps their labels once assigned. Their implementation labels the whole pool each cycle. They note that it could also restrict the pool to high-confidence cases. A single pass retaining the strongest assignment for each document is the point of contact with the self-training variant that takes every unlabeled example. Repeated relabeling and keeping alternative outputs give the procedure studied here additional choices about how to use the pool.

Experiments and results

Collections, training and evaluation

The citation task uses a collection that began with 500 labeled references and was extended by 5,000 unannotated references from papers on the web. Each citation is a separate sequence, with 13 possible fields including author, title and location. A field can cover several tokens. The system assigns a state to every token, including punctuation, so decisions about the punctuation itself contribute to the evaluation as well as decisions about the words it separates.

The rental collection contains 8,767 advertisements downloaded from Craigslist in June 2004 for the San Francisco Bay Area. The labeled portion contains 302 advertisements and uses 12 fields, including size, rent, neighborhood and features. The researchers use regular expressions to preprocess phone numbers, email addresses and URLs. They adapt seed terms from Haghighi and Klein to accommodate differences in preprocessing and add structural checks suited to the advertisements. The paper identifies downloadable data for both tasks.

In the main experiments, the number of labeled training documents ranges from 5 to 300 for citations and from 5 to 100 for advertisements. The semisupervised conditions use 1000 unlabeled examples. For each setting the authors randomly select the labeled training set and run the experiment 5 times. The reported scores average those runs. Evaluation uses 100 held-out documents, disjoint from both the labeled training documents and the unlabeled pool.

The metric is token accuracy. A prediction is correct at a position when the assigned state matches the reference annotation at that position. A long field with only its final token mislabeled can contribute many correct token decisions and still have a wrong boundary. The measure is therefore useful for comparing the overall quality of labeling, including the quality of long stretches that the system identifies correctly.

Both tasks use a simple token-based HMM. The semisupervised procedure runs for 5 cycles with γ set to 0.1. The authors choose the violation penalties on a development set and hold them fixed. The citation penalty is the negative logarithm of 10 raised to the power −4. The advertisement penalty is the negative logarithm of 10 raised to the power −1. Rules within each domain share the domain's penalty. In the version that retains several assignments, K is 50.

What the comparisons hold fixed

The supervised baseline, labeled sup. in the paper, trains on the manually labeled set. The hard-EM baseline, H, adds feedback from the best assignment for each unlabeled document and takes the resulting estimate without the supervised blend. The H&W baseline adds the blend with the original supervised parameters. The proposed H&W&C condition adds the constraints when generating the feedback for that otherwise comparable procedure. Both the top-1 and top-K constrained variants are evaluated. The paper also says that the authors tried ordinary soft EM without constraints and generally obtained worse results.

The authors run the systems with two decoding conditions at evaluation time. With I, the final decoder uses the rules. With no I, it leaves them out. A system that never saw the rules during training can still be evaluated with I because the decoder can use them with any fitted parameters. Conversely, a system that generated its machine annotations using the rules can be evaluated with no I. The latter comparison asks how much of the constraint-guided feedback is reflected in its learned parameters.

The table's citation results with 20 labeled references illustrate the difference between the training procedures when final decoding leaves out the rules. Supervised training gives 70.1% token accuracy, hard EM gives 72.4%, and adding the supervised blend gives 75.0%. Constrained training gives 79.6% in the top-1 condition and 79.4% in the top-K condition. In this comparison, the strongest final score comes from parameters learned with constraints even though the rules are absent from the final decoder.

Training procedures on citations with 20 labeled references and ordinary held-out decoding

Constraint-guided training gives the strongest token accuracy with the rules omitted from final decoding.

Training procedures on citations with 20 labeled references and ordinary held-out decodingSupervised training: 70.1Supervised training70.1Hard EM: 72.4Hard EM72.4Hard EM with supervised blending: 75.0Hard EM with supervised blending75.0Constraint-guided top-1 (this paper): 79.6Constraint-guided top-1 (this paper)79.6Constraint-guided top-K: 79.4Constraint-guided top-K79.4
The numbers
System or settingtoken accuracy %
Supervised training70.1
Hard EM72.4
Hard EM with supervised blending75.0
Constraint-guided top-1 (this paper)79.6
Constraint-guided top-K79.4

With the rules applied again at test time, the same 20-reference setting gives 81.1% token accuracy from supervised training, 82.4% from hard EM and 84.0% from hard EM with the supervised blend. The constraint-guided top-1 and top-K procedures both give 86.1%. The citation result highlighted by the authors compares that outcome with the 86.1% achieved by ordinary decoding after supervised training on 300 labeled references. The reported comparison shows similar token accuracy with different sources of training information. The smaller labeled set is accompanied by the unlabeled pool and rules during learning, as well as the rules at test time.

The larger citation setting also shows the danger of treating unlabeled data as an automatic improvement. With 300 labeled references and ordinary test decoding, supervised training reaches 86.1%, while hard EM drops to 80.7%. Adding the supervised blend raises the score to 87.1%. Constrained learning reaches 88.2% for both retained-candidate variants. These values help account for the paper's choice to distinguish plain feedback, blending and constraint-guided feedback. Each changes how unreliable initial assignments can affect the eventual parameters.

For advertisements with 20 labeled training examples, the table gives 68.1% token accuracy after supervised training with ordinary decoding and 74.6% after top-K constraint-guided training with the same final decoding condition. With constrained decoding, those figures are 71.9% and 78.1%, respectively. The top-1 constrained version gives 74.5% with ordinary decoding and 77.9% with constrained decoding. The two variants are close in this setting, and both show improvement from applying the rules at test time.

Comparisons with earlier studies

The authors give an additional citation comparison with Grenager and colleagues for a setting with 20 labeled and 300 unlabeled examples. The earlier study reported an increase in accuracy from 65.2% to 71.3%. The authors report their own improvement from 70.1% to 79.4%. The stated pool size for this comparison is 300, whereas the main experimental protocol uses 1000 unlabeled examples. The paper presents the figures alongside a warning about preprocessing differences across studies.

For advertisements, the comparison with Grenager and colleagues uses 20 labeled examples. The authors report that the earlier study found no improvement from its semisupervised procedure, whereas their own accuracy rose from 68.1% to 74.6%. They also report benefiting from web data outside the original citation collection. In their account, Grenager and colleagues found that the web data did not improve their unsupervised system. These comparisons show how the outcomes differed across the reported setups. Different preprocessing and different learning procedures limit the conclusions that can be drawn from the absolute scores alone.

The paper discusses Haghighi and Klein's prototype-based approach on a shared dataset as well. It reports 53.75% accuracy for their unary-constraint setting and describes their full method, which extends the prototypes to additional tokens, as comparable to the authors' own result with 10 labeled examples. The authors report surpassing it when adding 10 more examples. They also observe that the earlier procedure gives no clear route for incorporating a small available set of human-labeled documents. This comparison places the paper's use of seed words in context. Its experimental protocol combines such cues with structural rules and explicit initialization from complete annotations.

What the ablations show

The same rules can improve training and decoding

The most informative control crosses the use of constraints during learning with their use during evaluation. To isolate the effect of training, the paper compares hard EM with supervised blending against the corresponding top-1 constraint-guided procedure, holding the evaluation mode fixed. To isolate the effect of constrained decoding, it takes a single trained condition and compares its predictions with and without the rules. The experiments show improvements on both axes.

For advertisements with 5 labeled training documents, top-1 hard EM with the supervised blend gives 60.5% token accuracy with ordinary test decoding and 63.6% with constrained test decoding. Adding rules while generating the training annotations gives 66.0% with ordinary test decoding and 69.3% with constrained test decoding. The comparison at 63.6% and 69.3% is especially informative because both systems have access to the same rules when producing their final answers. The higher score comes from also bringing those rules into the cycle that generates training feedback.

Training and decoding choices on advertisements with 5 labeled training documents

Both uses of the rules improve token accuracy, and using them throughout gives the strongest result.

Training and decoding choices on advertisements with 5 labeled training documentsBlended hard EM with ordinary decoding: 60.5Blended hard EM with ordinary decoding60.5Blended hard EM with constrained decoding: 63.6Blended hard EM with constraineddecoding63.6Constraint-guided top-1 with ordinary decoding: 66.0Constraint-guided top-1 with ordinarydecoding66.0Constraint-guided top-1 with constrained decoding (this paper): 69.3Constraint-guided top-1 with constraineddecoding (this paper)69.3
The numbers
System or settingtoken accuracy %
Blended hard EM with ordinary decoding60.5
Blended hard EM with constrained decoding63.6
Constraint-guided top-1 with ordinary decoding66.0
Constraint-guided top-1 with constrained decoding (this paper)69.3

With 100 labeled advertisements the comparison changes in degree. Hard EM with supervised blending gives 77.6% with ordinary decoding and 81.2% with constrained decoding. Training the top-1 version with rules gives 78.5% with ordinary decoding and 81.8% with constrained decoding. At this training size, applying the rules during evaluation adds more than changing the way the machine annotations were generated. That is the relationship the authors emphasize in their advertisement figure.

The results are consistent with an initial learner becoming a more reliable annotator as it sees more human-labeled documents. At small training sizes, corrections during decoding can yield training examples that the learner would have had difficulty generating on its own. At larger sizes, the parameters estimated from labeled data give the learning loop a stronger starting point. Even there, the final decoder has access to global rules that the token-based HMM cannot fully express. Final decoding carries a distinct benefit that can persist as the need to correct training feedback diminishes.

Blending and keeping alternative assignments

Comparing H with H&W tests the contribution of the supervised anchor. The citation result with 300 labeled examples is the clearest warning case. Unblended hard EM lowers ordinary held-out accuracy below the supervised baseline. Blending brings performance back above that baseline. The direction of the result supports the idea of retaining some influence from human annotations when updating parameters with automatically labeled text. The experiment uses a fixed γ, so it establishes the effect of the chosen blend in the reported conditions.

The comparison between top-1 and top-K tests whether retaining many assignments helps in practice. In the citation setting with 5 labeled training documents, the constraint-guided top-1 system gives 76.0% token accuracy with constrained evaluation, and top-K gives 77.8%. With 20 labeled citations both give 86.1% under that decoding condition. With 300 labeled citations and constrained evaluation, top-1 gives 93.6% and top-K gives 93.5%.

The advertisement results likewise put the variants close together in some settings. With 100 labeled documents and ordinary test decoding, top-1 gives 78.5% and top-K gives 78.6%. With constrained test decoding, their order reverses, with 81.8% for top-1 and 81.7% for top-K. These results show that retaining alternatives can help, especially in some sparse-data settings. They also fit the method's tradeoff. Ambiguous documents may benefit from distributing their training influence across multiple assignments, while extra low-ranked assignments can add noise. The reported comparison evaluates the candidates as a group and does not tell which particular alternatives account for the difference.

A boundary condition works better with exceptions

The cleanest hard-versus-soft comparison uses supervised training on 100 advertisements. The authors vary the treatment of the condition that limits field changes to punctuation and newlines. With no such constraint, token accuracy is 76.3%. Giving a violation infinite cost makes the condition hard and gives 78.7%. With a finite penalty of −log(0.1), the score reaches 80.6%.

Boundary constraint settings on advertisements with 100 labeled training documents

A finite penalty for an unsupported boundary gives the strongest held-out token accuracy.

Boundary constraint settings on advertisements with 100 labeled training documentsOrdinary decoding: 76.3Ordinary decoding76.3Hard boundary constraint: 78.7Hard boundary constraint78.7Soft boundary constraint (this paper): 80.6Soft boundary constraint (this paper)80.6
The numbers
System or settingtoken accuracy %
Ordinary decoding76.3
Hard boundary constraint78.7
Soft boundary constraint (this paper)80.6

The hard rule helps because punctuation and line breaks often mark real field boundaries. Its cost is that some correct outputs place a field change elsewhere and are removed from consideration. Under the soft rule, such a boundary can survive when the words and the surrounding structure make it plausible enough. The reported comparison shows the benefit of flexibility for this rule under supervised training. It leaves open how much of the benefit in semisupervised training comes from softness as opposed to the inclusion of the rule itself.

The discussion of binary and graded penalties provides a different kind of analysis. A cost that records the presence of any violation can leave candidates tied on that rule even when one creates several unsupported boundaries. Counting detectable events can distinguish them and remains easy to apply as a prefix grows. The paper illustrates that reasoning with concrete label sequences. Its accuracy comparison varies the hardness of the boundary rule, so it does not separately establish an accuracy result for exact Hamming distance, the prefix approximation and binary soft costs.

Limitations

Limits identified by the authors

The authors acknowledge that the experimental rules have exceptions. Their lists describe properties of typical correct assignments. A violation may signal an implausible boundary, but it may also be a correct annotation of an unusual document. The ad boundary result shows that this distinction matters in practice. A penalty chosen for one collection expresses how strongly to favor its conventions, and the paper uses a development set to choose that strength. It tests a common value for the rules within each domain, leaving individual penalty estimation outside the reported experiments.

The computation also involves two approximations. The prefix-based valuation counts events that can be checked as the output grows, so it can differ from the actual minimum number of label changes needed to satisfy the rule. Rules that depend on a complete output can receive only a binary check under the stated approximation. Beam search then limits the assignments that can be considered. As a result, the retained candidates are best among those the search finds, and the scores and labels obtained in practice depend on that search as well as on the formal objective.

The learning procedure replaces a full estimation distribution with uniform support over retained candidates. This is a practical response to the difficulty of assigning a complete distribution after arbitrary constraints have been added. It also limits what can be inferred from the probabilities used for training. A retained assignment just above the cutoff receives the same weight as the strongest one. An assignment just below it receives none. The paper evaluates this approximation through the extraction results rather than through a comparison with exact constrained estimation.

The authors explicitly qualify the comparisons with Grenager and colleagues and Haghighi and Klein because preprocessing differs. Preprocessing determines which symbols are visible to an extractor and how a seed is matched to input text. It may also change the tokens on which accuracy is measured. The within-paper comparisons, where the authors hold the task setup and metric in common, support finer conclusions about which changes help. The earlier scores establish a historical point of comparison under the conditions of each study.

Limits visible in the experimental setup

The evidence covers two kinds of field extraction, both cast as sequences of token labels and both tested with the HMM implementation. The formal scoring rule can be coupled with other learning algorithms, and the paper explains where such a substitution would occur. Its results directly establish behavior for the implemented setting. Different structured tasks may involve dependencies whose violations are difficult to see in partial outputs, or outputs for which a beam search discards plausible assignments very early. The paper leaves the empirical behavior of those cases open.

The headline comparison between 20 and 300 labeled citations concerns the number of fully annotated training examples. The smaller labeled setting also uses unlabeled documents, a hand-specified constraint inventory, development data for the penalty and constrained final decoding. The result measures how those resources can substitute for additional complete annotations on this task. The authors do not quantify the effort of specifying, adapting or tuning the rules. In the advertisements, for instance, the seed vocabulary was adapted to the preprocessing, a step that would have to be considered in assessing annotation savings in another collection.

Token accuracy leaves some questions about extraction quality unanswered. A correctly recovered field, a partially recovered field and a field that appears twice can have very different consequences for a user of the extracted record. A token score weights decisions by positions and gives long spans more opportunities to contribute than short spans. The experiments report that metric and average across 5 runs. They do not provide a separate breakdown of exact field recovery, whole-document accuracy or variation across the runs. Close comparisons between top-1 and top-K are best read as scores for the reported settings.

The rules are mostly evaluated as an inventory. The study separates when the inventory is used and gives a detailed example of varying a boundary constraint, but it does not remove each lexical or structural rule in turn. A reader can see the effect of adding rule-guided feedback and the effect of allowing an exception to a boundary rule. The experiments do not establish how much each remaining rule contributes, whether several rules tend to correct the same errors, or whether some rules become less helpful as labeled coverage improves.

The main training settings also hold the unlabeled pool size, the number of cycles and the blending weight fixed. This allows comparisons as the amount of labeled data changes, while leaving unresolved how sensitive the results are to those other choices. The reported tests show that this particular feedback loop can learn from a substantial unlabeled pool. They do not establish how far it can go with a smaller pool, how accuracy evolves beyond the chosen cycle count, or how the balance should change when the automatically labeled text differs more sharply from the labeled collection.

What came after

The later citations span several structured prediction problems. Their titles identify the knowledge or data each brings to its own problem. A citation establishes a connection to Constraint-Driven Learning. The exact inheritance of the original procedure, including the graded penalty, the supervised blend and repeated relabeling, remains unspecified for these works.

The closest title-level parallel is in event extraction. The original study places global constraints over groups of field decisions in a document. The later work addresses the extraction of multiple events and names global constraints as the source of guidance. That places the emphasis on the relationship among extraction decisions once there can be several events in the output. Multi-Event Extraction Guided by Global Constraints

A related direction uses discourse constraints for document compression. The decision is what to retain when compressing a document, while the source of guidance named in the title is its discourse structure. The connection is that some properties of a proposed output can be assessed at a scope broader than the individual local choices that produce it. The two tasks draw on different kinds of structure, one involving extraction fields and the other involving discourse analysis. Discourse Constraints for Document Compression

Work on grammar induction names universal linguistic knowledge as a source of guidance. The original paper draws on conventions of citation and advertisement writing. The grammar-induction work brings linguistic knowledge to the problem of inferring grammatical structure. The shared question is how a source of knowledge outside the immediate annotations can favor some structural analyses over others. A later survey addresses typological linguistics more broadly by bringing both language variation and universals into its account of natural language processing. These works point to different scopes for prior knowledge, from conventions of a document type to patterns across languages. Using Universal Linguistic Knowledge to Guide Grammar Induction and Modeling Language Variation and Universals

Two other works extend the discussion toward learning settings where the source of supervision is central. Confidence-driven unsupervised semantic parsing names confidence as the basis for guiding its procedure. The original paper discusses confidence filtering as a possible change to its own learning loop and reports experiments that include the whole unlabeled pool. The later entity-linking work explicitly asks how unlabeled documents can improve linking performance. Its task concerns assigning entity identities, while the original paper assigns fields to token positions. Both ask what information a learner can recover from documents that lack the annotations required by its target task. Confidence Driven Unsupervised Semantic Parsing and Boosting Entity Linking Performance by Leveraging Unlabeled Documents

Transfer in dependency parsing gives another point of comparison. The work on delexicalized parsers names multiple sources as the basis for transfer and makes grammatical dependencies the structured output. The original extraction work obtains extra training evidence by interpreting unlabeled documents under domain rules. In the later parsing work, the source of additional support named in the title is transfer across sources. The citation connects the study to the wider problem of supplying structured predictors with evidence beyond direct annotation for the target setting. Multi-Source Transfer of Delexicalized Dependency Parsers

The later work on factuality in summarization names fine-grained annotation and prediction as its focus. Its unit of interest is the factuality of a summary, while the original experiments annotate fields in a citation or an advertisement. The citation places the earlier paper alongside a later effort that also makes distinctions within a structured text output. It leaves the methodological connection open. The result established by the original experiments remains specific and concrete. On two extraction tasks, prior knowledge could improve the labels used to learn from raw documents, and the learned parameters could carry part of that benefit into ordinary decoding. Fine-grained Factuality in Summarization

Cite

Cite as Ming-Wei Chang, Lev Ratinov and Dan Roth. 2007. Guiding Semi-Supervision with Constraint-Driven Learning. Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{chang2007guiding,
  title = {{Guiding Semi-Supervision with Constraint-Driven Learning}},
  author = {Ming-Wei Chang, Lev Ratinov and Dan Roth},
  booktitle = {Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics},
  year = {2007},
  url = {https://aclanthology.org/P07-1036/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chang-2007-guiding-semi-supervision-constraint-driven/