Hierarchical Bayesian Domain Adaptation
Paper · 2009 · Jenny Rose Finkel and Christopher D. Manning
Summary
A system trained to recognize names in newswire may have plenty of examples from one source and far fewer from another. The larger collection can help, but the sources may use the same words differently or follow different conventions for marking entities. Training on each collection separately leaves useful evidence on the table. Pooling the collections gives every source the same feature weights, even when their evidence points in different directions. Hierarchical Bayesian Domain Adaptation offers a way to share evidence while letting each source keep its own weights. The authors test it on named entity recognition and dependency parsing.
The authors give each feature a weight for each domain and a shared weight learned from all the domains. A Gaussian prior, which favors values near its center, pulls each domain’s weight towards that shared value. If a feature scarcely appears in a domain’s training data, its weight can therefore reflect evidence from the other domains. When local examples strongly favor a different weight, they can pull it away from the shared value. The authors show that an earlier feature-copying approach uses the same construction when its regularization settings are tied. Their formulation lets the strength of sharing be tuned separately from the amount of pressure on the shared weights themselves.
On the named entity recognition test sets, the hierarchical approach reached an entity F1 of 86.92 on MUC-6 and 79.98 on MUC-7, exceeding the compared methods on both. On the CoNLL testb split it reached 85.81, essentially level with 85.80 for the earlier adaptation method. The parsing results were more mixed. The hierarchy beat the earlier adaptation method in every tested domain by unlabeled attachment accuracy, which measures whether the parser assigns words to the correct heads. Compared with training one parser on all the data, it ranked ahead on CNN, MNB, and PRI and behind on ABC, NBC, and VOA. The authors report a significant sentence-level comparison across the combined parsing test data, alongside these mixed domain-level results.
The experiments concern domains represented during training, with the domain known at test time. Within that setting, the results show what tuning the pressure to share can accomplish, especially when the alternative is to let domain weights vary as freely as the shared ones. The hierarchy operates during training. At test time a recognizer or parser can use the learned weights for its domain with the same prediction procedure it would use after training on that domain alone.
Deep dive: Hierarchical Bayesian Domain Adaptation
Hierarchical Bayesian Domain Adaptation explains how to share evidence across text domains while retaining separate weights for each domain. · about 36 minutes to read
The problem and its context
What a domain changes
A domain can reflect what a collection is about, how its language was produced, or the register its speakers or writers use. Speech and newswire are domains in this broad sense even when they cover similar subjects. Collections from different news sources can also count as distinct domains. For a system trained from examples, the operational question is whether the collections offer similar evidence for the decisions it has to make. A feature may be common in one collection, rare in another, and associated with different outputs where it occurs in both.
The paper’s motivating situation is a collection of labeled datasets of uneven size. Newswire might provide abundant examples, while speech is represented more sparsely and email more sparsely still. Producing linguistic annotation is expensive, so it matters whether labels already available for one source can help with another. The examples need enough in common for sharing to be useful. At the same time, the reason for treating them as different domains is that a decision learned from one may need to change in another.
Consider the paper’s example of the place name Leeds. In general text a location reading may be a good starting point. In sports coverage the same name often refers to a football club, giving evidence for an organization label. A recognizer that shares all its weights across domains can still use surrounding words to disambiguate a particular mention. But for any given feature, it has to use the same weight in every domain. Giving the sports domain a separate weight allows that feature to carry a different association even when the feature itself is represented in the same way.
The converse case matters just as much. A cue that occurs in one collection may be missing from another collection’s training examples. A system fitted independently has no local evidence for that cue. Yet the absence of the cue in a finite sample leaves open whether it would be useful when it appears in a new sentence. The authors want the evidence from the first collection to inform the second while leaving room for the second collection to disagree where it has examples of its own.
Whose performance should improve?
The paper distinguishes the customary source–target setup from its own objective. In source–target adaptation, the target is the collection where better predictions are wanted. Labeled source data help serve that goal, and performance on the source can be secondary. The authors keep the idea that the collections represent the same underlying task, but take the more symmetric goal associated with multitask learning. Each domain is a place where the trained system should work, and a domain with comparatively little training data still has something to contribute to the others.
Symmetry here concerns the role of a domain in the training objective. Each domain gets its own data term and its own weights. There is no permanently designated source whose fit is completed before the others begin. The amount of influence domains exert can still differ. A large collection can supply strong evidence for many weights, and a smaller collection can supply decisive evidence for a feature it uses in a distinctive way. Conversely, a large collection may have little to say about a feature absent from it. The paper therefore frames the question at the level of individual feature weights as well as at the level of whole datasets.
The most direct comparison is between separate training and pooled training. Separate training learns a complete set of weights from each domain. That gives it the freedom to follow local usage, along with the burden of estimating everything from the local sample. Pooled training fits one set of weights from the union. It can make use of a cue wherever it was observed, although it has to use a common weight when evidence across domains disagrees. Both are sensible starting points, and pooled training is particularly relevant when the collections are reasonably large and provide compatible evidence.
The authors also consider differences in what annotators are asked to record. The same text may contain a kind of entity marked in one dataset and treated as background in another. There is still a common recognition task wherever the label inventories overlap. For the remaining labels, a cross-domain experiment needs a rule about which outputs are possible during training and what counts as a prediction at evaluation. This makes the problem partly about how labels are observed, in addition to the usual question of whether words and constructions have similar distributions.
What earlier approaches shared
Frustratingly Easy Domain Adaptation offers a way to use a standard learner by changing the features it receives. Each feature gets a general copy and copies associated with individual domains. An example activates the general copy and the copy for its own domain. The learner can then adjust a domain’s effective weight without giving up a common component. The earlier work presents this mainly as a feature transformation. Finkel and Manning ask what kind of prior the transformation amounts to, and which choices become visible when the prior is written explicitly.
Chelba and Acero also used a learned set of weights as the center of a prior. In their setup, a classifier was fitted on source examples first. Its weights then served as the starting preference for weights learned from target examples. The target could depart from the source, but the source was fitted before that happened. In the hierarchy developed here, the shared center is learned jointly with all participating domains. Evidence from any of them can move it.
Daumé and Marcu proposed a different Bayesian description. Their approach treated each training example as coming from either a general component or a domain-specific component, with that origin unobserved. An expectation-maximization procedure estimated the hidden assignments along with the weights. The paper reports a training slowdown of 10 to 15 times for that approach. That cost matters when a procedure has to revisit the training corpus and perform structured inference repeatedly. Under Finkel and Manning’s proposal, the domain is observed, and the coupling is between feature weights.
The authors also place their work alongside research outside language processing. They describe a related use of shared structure for predicting student exam scores with support vector machines, and an undirected Bayesian hierarchy for jointly representing shapes of different mammals. These connections situate the general idea of coupling related estimation problems. The contribution here is to make that idea work through the regularization terms of existing discriminative language systems, and to relate those terms directly to the feature augmentation already used in domain adaptation.
The method, step by step
From a feature to a shared weight
Imagine that a recognizer has a feature that fires when it sees the name Nigel. A feature describes a property of an input, a proposed output, or their combination. A weight determines how much that property contributes to the score of an output. In the paper’s example, British newswire might provide evidence that Nigel is part of a person’s name, while American newswire has no training occurrence of the cue. Separate training leaves the American weight with its original preference. Under the hierarchy, the British examples can move the shared weight, which becomes the preferred value for the American weight as well.
The shared weight is itself learned. At the start of the formulation it has a Gaussian prior centered at zero, expressing a preference for weights of modest magnitude. Each domain’s weight also has a Gaussian prior, centered on the learned shared weight. A narrow Gaussian places stronger pressure on a weight to stay close to its center. A wider Gaussian charges less for the same departure. The feature can therefore receive a weight supported by the collection as a whole, while each domain pays a controllable cost to move away from it.
Evidence that points in opposite directions fits the same construction. A word can favor a name label in one dataset and disfavor it in another. In that case the two local weights can move in opposite directions. What matters is how much the training fit improves in each domain when its own weight changes, relative to the cost of that change. The shared center expresses the part of the association that the domains can support in common. The deviations represent where their fits call for different choices.
A domain need not be given a reputation for reliability across every feature. The learner can follow strong local evidence for a common cue and rely more heavily on the shared center for an uncommon one in the same dataset. The variance controls the cost of a departure. The domain’s likelihood determines how much can be gained by paying that cost. This is the sense in which information sharing operates feature by feature, even in the experiments where the same variance setting applies across the weights of a domain.
Training and prediction with hierarchical domain weights
The steps in order.
The objective for a single domain
The authors start from discriminative training. The system learns to assign probabilities to outputs conditional on the observed input. A name recognizer can compare alternative sequences of tags for the same words. A parser can compare possible trees for the same sentence and its part-of-speech tags. The conditional log likelihood measures how much probability the current weights give to the annotated outputs. It serves as the data-fit term, whatever structured prediction procedure supplies those probabilities.
With one dataset and a zero-centered Gaussian prior, the training objective is as follows.
arg max over θ { L_orig(D; θ) − ∑ᵢ θᵢ² / (2σ²) }
Here arg max over θ means to find the weight vector θ that makes the expression inside braces largest. D is the labeled training data and L_orig(D; θ) is their original conditional log likelihood at those weights. The semicolon in the notation distinguishes the data from the parameters. The index i identifies a feature, θᵢ is its weight, and ∑ᵢ adds the penalty across all features. The symbol σ² is the prior variance. Squaring the weights makes the cost depend on their distance from zero, and the denominator scales that cost. The factor 2 is part of the Gaussian expression.
This is a point-estimation procedure. The optimization yields a particular set of weights that balances data fit and the prior. The paper calls the construction Bayesian because of how the prior is specified, and also recognizes the equivalent regularization interpretation. In that interpretation, the square in the objective is a penalty that keeps the feature weights from growing without a corresponding improvement in fit. Both readings lead to the same calculation for the training procedure studied here.
Replacing zero with a learned center
For several domains, the same feature vocabulary has a vector of weights at the root and a vector at every domain. Only the domain vector enters the likelihood for that domain. The root vector enters through the prior. Thus a British newswire example can change the British data term directly. It influences the American weights indirectly, through the preference the two vectors share. All of these weights are found in the same optimization.
L_hier(D; θ) = ∑ over d { L_orig(D_d; θ_d) − ∑ᵢ (θ_d,i − θ_*,i)² / (2σ_d²) } − ∑ᵢ θ_*,i² / (2σ_*²)
L_hier(D; θ) is the hierarchical objective. In this expression D collects all the training data, and θ collectively denotes the shared and domain weight vectors. The index d selects a domain, D_d is its labeled dataset, and θ_d is its weight vector. L_orig(D_d; θ_d) is the conditional log likelihood computed with that domain’s data and weights. For feature i, θ_d,i is the local weight and θ_*,i is the corresponding shared weight. The star in the subscript denotes the root, and ∑ᵢ sums over features. The variance σ_d² scales the cost of a domain’s deviation, while σ_*² is the variance of the shared weights around zero. The factor 2 in each penalty comes from the Gaussian prior. The braces specify what is added for every d. The final penalty occurs outside those braces because it applies to the one shared vector.
The two types of variance answer different questions. The root variance sets how freely a feature can acquire a large weight across the domains. A domain variance sets how freely the local weight can differ from the shared association. Keeping these settings distinct makes it possible to allow substantial shared weights while preferring small local deviations. The authors select settings on development data. Their formalism permits different variances for different domains, though their reported experiments use a common setting for the domain weights.
A large domain variance weakens the coupling. In the limit where the local penalty ceases to matter, the domain likelihoods can be maximized independently, approaching the separate-training baseline with respect to sharing. A variance close to zero places strong pressure on the local vectors to coincide with the root. When that pressure is applied across all domains, the likelihood terms are effectively using the same weights, as in pooled training. The intermediate regime makes it possible to learn a shared association without imposing it everywhere. The variance applies to the difference between weights, so even a small domain variance can accompany a large local weight when the shared weight is large too.
There is a directed relationship in the prior, from root to domain weights. This describes how the preferred value at the lower level is determined. It leaves the form of the conditional likelihood open. In particular, the recognizer and parser in the paper are both conditional random fields, in which the probability of a structured output is determined from scores for competing whole outputs. During optimization the data can influence the root even though the prior is drawn in the other direction. The local fit and the penalty for moving away from the root are evaluated together.
What the optimizer needs
The authors used L-BFGS for their experiments. It needs the current objective value and the derivative with respect to each weight. A derivative gives the local rate of change of the objective when the corresponding weight is moved. Most of the computation needed for this step already exists in the original recognizer or parser. Each domain still contributes an ordinary likelihood derivative. The hierarchy changes the prior contribution and adds derivatives for the root.
∂L_hier(D; θ) / ∂θ_d,i = ∂L_orig(D_d; θ_d) / ∂θ_d,i − (θ_d,i − θ_*,i) / σ_d²
The notation ∂ / ∂θ_d,i denotes the partial derivative with respect to feature i in domain d, with the other weights treated as fixed for that calculation. L_hier(D; θ) is the joint objective for data D and all weights θ. L_orig(D_d; θ_d) is the data-fit term for the local dataset D_d and local vector θ_d. The difference between θ_d,i and the root weight θ_*,i, scaled by the local variance σ_d², is the derivative of the corresponding prior penalty with its sign in the objective. If the local weight is above the root, the penalty contributes pressure downward. If it is below, the pressure is upward. The data term can counteract either pull.
Differentiating the hierarchical objective with respect to a root weight gives the following expression.
∂L_hier(D; θ) / ∂θ_*,i = ∑ over d { (θ_d,i − θ_*,i) / σ_d² } − θ_*,i / σ_*²
The derivative on the left is the change in the joint objective L_hier for data D and weights θ as shared feature weight θ_*,i changes. Inside the braces, θ_d,i is the weight for feature i in domain d, and σ_d² is the variance associated with that domain. The sum adds all domains’ pulls on this root coordinate. The last term uses the root variance σ_*² to scale the pull towards zero. A domain weight above the root pulls it upward when the objective is maximized. This sign follows from differentiating the squared deviation in the objective. Its direction matters because it is through this term that a strong association in one domain can raise the preferred weight in another.
The shared weights have no likelihood derivative of their own. Their role in the training calculation is to reconcile the local weights and satisfy the prior at the root. For the log-linear conditional systems used in the experiments, the maximization can also be expressed as minimization of a convex negative objective. The extra quadratic terms preserve that structure. The practical consequence is that the authors can continue to use gradient-based optimization for the coupled weights.
After training, each domain’s fitted vector can be passed to the ordinary recognizer or parser. An input’s domain identifies the vector, which already incorporates the influence of the other domains. The root is needed at fitting time to express that influence. The authors suggest retaining it if a future application wants a starting point for adapting to another domain. The reported predictions use the existing leaf vectors.
Why feature copying gives the same objective
The algebra becomes clearer if a local weight is split into the common part and the amount by which it differs. Write the difference vector explicitly.
ψ_d = θ_d − θ_*
Here ψ_d is the vector of deviations for domain d, θ_d is its full vector of effective feature weights, and θ_* is the shared vector. The subtraction is coordinate by coordinate. For feature i, a positive entry ψ_d,i means that this domain gives the feature a larger weight than the shared component does.
In the augmented representation, an active feature contributes through its general copy and its domain copy. The general copy receives the shared weight, and the domain copy receives the deviation. Their contributions add, giving the same effective local weight as before. Expressing the same optimization in those coordinates yields the following.
L_hier(D; θ) = ∑ over d { L_orig(D_d; θ_* + ψ_d) − ∑ᵢ ψ_d,i² / (2σ_d²) } − ∑ᵢ θ_*,i² / (2σ_*²)
L_hier(D; θ) is the same objective for all the data D and effective weights θ, now written using the shared vector θ_* and deviation vectors ψ_d. The term L_orig(D_d; θ_* + ψ_d) evaluates the original likelihood on the data D_d of domain d with its reconstructed weight vector. In the inner sum, i ranges over features and ψ_d,i is the deviation for feature i. The local variance σ_d² scales the penalty on that deviation. The final sum penalizes the shared feature weights θ_*,i with variance σ_*². The 2 in each denominator is the Gaussian factor, and each sum ranges over the domains or features indicated.
The feature-copying method as tested in the earlier work assigns the same prior variance to the domain copies and the general copies.
σ_d² = σ_*² for every d
Here σ_d² denotes the prior variance for the deviations in domain d, and σ_*² is the prior variance for the common weights. The equality ties these settings across the two roles. The same feature representation can express unequal variances by regularizing the copies differently. The important distinction in the paper is therefore the freedom to tune the two kinds of weight separately. It is the objective under the tied setting that the authors identify with the earlier approach.
The optional middle of the tree
The basic hierarchy has a single root and a leaf for each domain. The authors also describe a tree with intermediate vectors. Suppose some datasets contain speech and others contain written newswire. Each speech domain can take its prior center from a speech vector, and each newswire domain from a text vector. The two intermediate vectors can in turn be centered on the root. A feature would then have a global preference, a preference within its group, and an effective weight for the particular domain.
This structure changes the route by which evidence travels. Speech domains can influence a common speech vector before their influence reaches the root. The root can still communicate evidence to text, but a specifically speech-related association can be expressed at the intermediate level. The tree encodes a prior belief about which domains ought to share more directly. The reported comparisons use the basic hierarchy. The deeper tree illustrates the extension the authors see in the formulation.
Experiments and results
Recognizing names across annotation inventories
For named entity recognition, the authors use a linear-chain conditional random field. It scores competing tag sequences for an observed sequence of words, with adjacent labels coupled along the chain. Such a system can evaluate a proposed sequence as a whole and give it a conditional probability. The paper bases the features on earlier work on extraction. Its adaptation experiment changes the fitting of the weights while keeping this basic sequence architecture. Incorporating Non-local Information into Information Extraction Systems by Gibbs Sampling
The datasets come from the CoNLL 2003, MUC-6, and MUC-7 shared tasks. CoNLL contains British newswire, while the MUC collections contain American newswire. The authors give MUC-6 and MUC-7 separate domain identities because the collections were annotated independently for different shared tasks. They use the standard training and test data, with the more difficult testb split supplying the CoNLL evaluation. Table entries in the paper give MUC-6 as 165, 082 training words and 15, 032 test words, MUC-7 as 89, 644 training words and 64, 490 test words, and CoNLL as 203, 261 training words and 46, 435 test words. These are word counts, while the prediction scores below are calculated over entities.
The inventories share person, organization, and location. CoNLL also has a miscellaneous category. The MUC datasets instead mark percentages, dates, times, and amounts of money. A common representation can carry all of these labels, but their absence from an annotation inventory has consequences. A date in a CoNLL sentence is outside that collection’s entity categories. A percentage labeled in MUC may have the same surface cues as a percentage in CoNLL even though the latter does not receive that label in the test annotation.
In the unrestricted setup, training permits the union of available labels in each domain. At evaluation, an output outside the domain’s inventory is handled as background. In the restricted setup, only the legal labels for the domain are allowed during training and prediction. This changes the candidate sequences that can compete. The test-time handling also differs. The unrestricted recognizer can assign an out-of-inventory label and have it ignored during scoring, while the restricted recognizer has to choose among the legal labels and background during prediction.
The separate-training baseline, Target Only, uses just the training examples for the domain being evaluated. All Data trains a common recognizer on the combined datasets. The Daumé comparison uses general and domain-specific feature copies with tied regularization. Hier Bayes uses the learned shared center with independently set domain and root scales. The methods that train on all the corpora are evaluated in both label settings. In the paper’s table an asterisk identifies the restricted setting. For the comparisons here, the words “restricted labels” make the setting explicit. The baselines and the hierarchy’s root use a Gaussian standard deviation of 1, and the hierarchy’s local deviation standard deviation is 0.1 in each domain. The variances in the equations are the squares of these scales.
Entity precision measures how many of the system’s reported entities are correct. Entity recall measures how many of the annotated entities the system recovers. F1 combines precision and recall in a score that rewards doing well on both. The distinction between a whole entity and an individual token is relevant when comparing with the earlier adaptation paper. Finkel and Manning evaluate the earlier technique in their own setup using entity scores, while the earlier report used token-level label accuracy.
The entity results by test set
Named entity recognition systems on the MUC-6 test set by entity F1
Hier Bayes achieves the highest entity F1, with both variants ahead of the compared settings.
The numbers
| System or setting | F1 |
|---|---|
| Target Only | 83.29 |
| All Data, restricted labels | 84.26 |
| All Data | 84.32 |
| Daumé, restricted labels | 85.56 |
| Daumé | 85.46 |
| Hier Bayes, restricted labels | 86.74 |
| Hier Bayes (this paper) | 86.92 |
MUC-6 shows the clearest advantage for the hierarchical method. The unrestricted system records 88.77 precision, 85.14 recall, and 86.92 F1 on the test set. Target Only records 86.74 precision, 80.10 recall, and 83.29 F1. The unrestricted pooled system reaches 84.32 F1, and the stronger variant of the earlier adaptation method, with restricted labels, reaches 85.56 F1. Both components of the hierarchical system’s score are higher than for that Daumé variant, which has 87.83 precision and 83.41 recall. The result reflects better recovery of annotated entities along with better precision.
On MUC-7, the best F1 is 79.98 for unrestricted Hier Bayes, with 83.17 precision and 77.02 recall. Restricted Hier Bayes reaches 79.82 F1. The earlier method reaches 79.37 F1 unrestricted and 79.18 restricted. Its unrestricted precision, 83.51, is higher than that of unrestricted Hier Bayes, while its recall is 75.63. The hierarchy’s better combined score on this test set therefore comes with a different precision and recall profile from the across-the-board improvement over Daumé on MUC-6. Target Only reaches 75.30 F1. All Data reaches 76.14 F1 unrestricted and 78.82 with restricted labels, making that restriction especially relevant to how the pooled comparison is read.
On CoNLL testb, the unrestricted hierarchical system scores 86.51 precision and 85.13 recall for 85.81 F1. Unrestricted Daumé scores 86.35 precision and 85.26 recall for 85.80 F1. The authors describe the F1 performance as a tie. Restricted Hier Bayes records 85.69 F1, and restricted Daumé records 85.57. The pooled learner has 85.22 F1 unrestricted and 85.38 with restricted labels. Target Only has 85.13 F1. The hierarchy’s strong MUC-6 result and its small CoNLL difference therefore represent distinct outcomes under the same training procedure.
The authors test the recognition results with a paired t-test across documents from the combined evaluation data. Pairing compares systems on the same documents, so the differences concern performance under the same set of inputs. They report that unrestricted Hier Bayes exceeds the baselines with greater than 95% confidence in this comparison. They exclude the restricted version of their own method from that significance statement. The pooled test is evidence about the combined document comparison. The individual test-set scores show where the systems are separated and where their F1 is nearly the same.
Parsing dependencies in speech and newswire
A dependency parser assigns a head to a word, producing a tree of attachments for the sentence. The experiment is untyped. The question at evaluation is which head was assigned, without grading a label for the grammatical relation. This tests adaptation on outputs with more structural alternatives than the recognizer’s tag sequence. The recognizer and parser nevertheless use the same pattern of regularization, because what the hierarchy needs from the underlying task is a differentiable likelihood in the local weights.
The parser conditions on the sentence’s words and part-of-speech tags. It defines a score for a parse from decisions about attaching a dependent and decisions about when a head stops taking dependents in a direction. A chart reuses computations over parts of the sentence. The authors adapt Eisner’s algorithm so that the score of an attachment or a stop can depend on whether a head already has a dependent in that direction. The original stopping terms described in the paper cannot distinguish competing trees for a sentence when every word eventually stops in each direction. The added condition allows the contribution of a stop to depend on whether a dependent was attached. Three New Probabilistic Models for Dependency Parsing: An Exploration
The conditional parser computes scores for local decisions and normalizes across whole candidate trees. Inside calculations combine scores for ways to build parts of a tree. Outside calculations account for ways those parts can participate in complete trees. Together they support the normalization and the feature derivatives required in fitting. The paper relates this computation to earlier work on discriminative constituency parsing. Efficient, Feature-based, Conditional Random Field Parsing
A feature can depend on the head, its proposed dependent when there is one, the direction, whether there has already been a dependent on that side, and the words and tags. The authors draw their features from earlier dependency work and add information about whether a dependent is the first one. The resulting system can give different scores to a potential first dependent and to an attachment farther along the same side of a head. The hierarchical procedure determines how the weights for those cues are shared. Online Large-Margin Training of Dependency Parsers
The parsing data are LDC2008T04 OntoNotes Release 2.0. The authors take the phrase-structure trees and convert them to dependency trees. OntoNotes supplies several sources of newswire and speech, enabling comparisons across individual sources. The paper excludes WSJ because its annotation follows a different convention. This leaves the domains with compatible annotations for the reported experiment. OntoNotes: The 90% Solution
The conversion uses the Collins head rules. These identify heads within phrase structures so that the original annotations can be represented as dependencies. The reported accuracy is thus relative to dependency trees obtained by this conversion. The study compares different ways to learn the parser on those trees with the conversion held fixed. Head-Driven Statistical Models for Natural Language Parsing
The authors aimed for a 75/25 training and testing split while dividing the data by its existing sections, so the realized proportions vary by source. ABC uses 1195 training sentences and 199 test sentences. CNN uses 5092 for training and 1521 for testing. MNB has 509 and 245, respectively, while NBC has 552 and 149. PRI has 1707 training sentences and 394 test sentences, and VOA has 1512 and 383. In each case the split identifies distinct sections for fitting and evaluation. The differing sizes matter when considering whether a close comparison within a domain carries the same amount of evidence as a comparison across all the test sentences.
The parser comparison again uses Target Only, All Data, Daumé, and Hier Bayes. There is no competing label-inventory condition of the kind studied in recognition. The authors give the standard deviation setting as 1.0 for the ordinary or root prior and 0.1 for the local deviations in Hier Bayes. Unlabeled attachment accuracy measures the share of head decisions that agree with the reference trees. The planned comparison is therefore between ways of fitting the same kind of parser, all judged on the same attachment decisions within a domain.
The attachment results by test domain
Dependency parsers on the OntoNotes MNB test split by unlabeled attachment accuracy
Hier Bayes leads the MNB comparison, while pooling also improves on training only with MNB data.
The numbers
| System or setting | unlabeled attachment accuracy % |
|---|---|
| Target Only | 77.06 |
| All Data | 86.41 |
| Daumé | 84.70 |
| Hier Bayes (this paper) | 86.71 |
The hierarchy does better than separate training throughout the parsing experiments. On MNB the test score rises from 77.06% for Target Only to 86.71% for Hier Bayes, while the pooled parser is already at 86.41%. The same ordering occurs on CNN, where Target Only scores 85.53%, Daumé reaches 86.41%, All Data reaches 87.09%, and Hier Bayes reaches 87.26%. On PRI the accuracy scores in that order are 87.65%, 89.52%, 90.28%, and 90.59%. In these domains the pooled parser captures much of the gain over training separately, and the hierarchy improves further.
On ABC, pooling is ahead at 88.97%, followed by the hierarchy at 88.68%. Daumé reaches 87.30% and Target Only reaches 83.32%. For NBC, All Data reaches 85.82%, Hier Bayes reaches 85.32%, Daumé reaches 85.01%, and Target Only reaches 76.21%. On VOA, All Data has 92.11% and Hier Bayes has 92.09%. The earlier adaptation technique reaches 90.67%, and the separate baseline reaches 89.17%. In these domains, the best tested route to sharing evidence is to fit common weights to the entire training pool, even though the hierarchy also yields gains over training separately.
Daumé’s results are below All Data in every parsing domain. This reverses their ordering in the named entity recognition comparison, where feature augmentation improves on straightforward pooling. Hier Bayes is ahead of Daumé throughout the parsing table. In the contrast with All Data, the authors describe the gains as small and report significance at p < 10⁻⁵ from a sentence-level paired t-test over the combined data. That test compares systems on the same sentences. The domain-level table answers a different question, namely which parser has higher attachment accuracy within each source. Both views are needed to describe a small aggregate effect alongside a mixed ranking by source.
What the ablations show
Sharing and how strongly to enforce it
The paper’s most direct controlled comparison concerns the regularization on shared and local weights. The hierarchical objective and Daumé’s feature augmentation have the same form after a change of variables when their variances are tied. The hierarchy experiments let the domain weights have a tighter prior around the common component than the common component has around zero. This gives a concrete interpretation to the performance difference. The untied setting can learn a strong common feature while requiring more local evidence for a large departure from it.
The broad comparisons show where this setting mattered most in the reported experiments. On MUC-6, the setting with separate scales offers a clear improvement over feature augmentation. On CoNLL, the two unrestricted results are practically level. The attachment comparisons offer a different kind of evidence. The shared and local terms with tied scales give lower accuracy than straight pooling in every source. Separating the scales yields scores closer to the pooled parser where it wins and higher scores in the domains where the hierarchy wins. This makes the amount of regularization on the deviations an important part of the comparison, even where the main performance advantage comes from pooling the data.
The authors also report trying distinct variances for individual domains. They found gains from separating the root setting from the domain setting and found no gains from giving the domains different settings from one another. The reported results use the shared setting across domains selected with development data. That observation addresses a particular use of the extra flexibility. The paper gives no per-domain variance sweep showing how broad the favorable region is or how variance choices interact with sample size. The evidence is strongest for separating the two roles of regularization in these experiments.
Target Only and All Data supply end points for interpreting these comparisons. With separate fits, a feature may receive local evidence but can receive none from another collection. With a common fit, evidence from every collection can contribute to the same feature weight. The large advances over Target Only in parsing show how much the training pool helps. The narrower margins between All Data and Hier Bayes indicate how much additional performance is at issue when deciding whether to permit regularized local deviations. The results do not identify individual features whose deviations account for those margins.
Allowing labels that the dataset never marks
The restricted and unrestricted recognition variants test a decision about annotation. The pooled system benefits from the restriction on MUC-7 and CoNLL. On MUC-6 its unrestricted F1 is slightly higher than its restricted F1. For Hier Bayes the unrestricted variant has higher F1 in each dataset. The earlier feature-copying method also favors unrestricted labels on MUC-7 and CoNLL, while MUC-6 favors the restricted variant. The authors describe the broad tendency as restricted labels helping the pooled recognizer and unrestricted labels helping the methods with local weights.
A pooled recognizer uses a common score for decisions across domains. Restricting its output vocabulary can prevent competition from irrelevant entity categories. A recognizer with local weights can learn domain-specific patterns from training, including the lack of annotations for certain entity types. At the same time, for a feature unseen in a domain, a shared weight influenced by the other data can still favor a label outside the local inventory. Because such outputs are treated as background in scoring, they can affect which of the remaining categories the recognizer predicts.
The authors use nationalities to illustrate this possibility. CoNLL marks words such as Iraqi and American as miscellaneous entities, but the MUC inventories lack that class. On a new nationality in MUC text, a recognizer might see evidence that looks like a location cue. The evidence transferred from CoNLL might instead lead it to choose miscellaneous. The scorer then treats that output as background, which can spare the system an incorrect location prediction. In this example the transferred cue helps the system choose an output that the evaluation maps away from a local error, even though the foreign category is never itself rewarded.
The explanation is a hypothesis about what the system may have learned. The experiment changes both the admissible labels in training and the way the prediction procedure handles legal labels at test time. It therefore compares two complete policies. It does not independently measure how much of the difference comes from what the learner saw as an alternative during fitting, how much comes from the decisions allowed at prediction, or how often a nationality actually follows the proposed pattern.
Looking across tasks and domains
Using the same adaptation comparison for a sequence recognizer and a dependency parser shows that the behavior of feature augmentation depends on the task and setup. The parser has to choose a tree, and changing a score can affect which combinations of attachments are possible as a complete analysis. The authors suggest that sharing may be harder in this more structurally complicated problem. The experiments are consistent with that interpretation, since the tied-variance approach does better relative to pooling in recognition than in parsing. They also change the datasets, the prediction units, and the evaluation measure, so the influence of output structure itself is not isolated.
Nor does training set size alone explain which parsing domains favor the hierarchy. MNB and NBC supply relatively small training sets. MNB favors Hier Bayes, whereas NBC favors All Data. CNN, the largest training set in the parsing comparison, also favors Hier Bayes. The authors leave the difference open and suggest the character of a domain may matter. These comparisons establish variation across sources. They do not establish a rule for predicting from the source or the training size which method will win.
Limitations
Limits the authors identify
The experiments concern a learner with data available from every domain in the evaluation. The authors identify adaptation to an additional domain as future work. They suggest the root weights as a possible starting point because they express associations learned across domains. The paper supplies a reason to retain those weights, but its reported prediction procedure chooses a fitted local vector. The experiments therefore give no measurement of how well the root works on an completely new source or how much labeled data would be needed to adapt it.
The authors also acknowledge that the parsing results are hard to explain domain by domain. Their statistical test finds an aggregate difference, while the best parser on an individual source can be the pooled one. They do not establish which characteristics of the data account for that pattern. Different amounts of training material are visible in the setup, but the paper explicitly treats them as an insufficient explanation. Its empirical claim is about the tested corpora and the observed combined result.
The richer tree is proposed as a generalization. It lets an experimenter express, for example, a belief that speech collections should share a nearer ancestor. The paper does not compare such a grouping with the flat hierarchy and offers no procedure that learns a tree from examples. The benefit of extra branches, the value of an intermediate level’s variance, and the cost of an unsuitable grouping are left open by the experiments.
There is also a practical distinction between time and memory. According to the authors, the hierarchy retains more weights than the pooled baseline but takes only slightly longer to train on the two tasks. Memory grows with the number of domains because each has its own vector. Training ran for four days for the slowest dependency parser, illustrating how a small relative overhead can accompany a long total training time. The paper gives a practical comparison on the stated tasks, rather than measurements of how training time changes over a wider range of domain counts and data sizes.
Limits apparent from the setup
The label mismatch in the recognition study is a specific kind of mismatch. The collections share common entity categories, and each inventory contains additional categories. The unrestricted treatment relies on the possibility of treating a category outside a domain’s inventory as background for that domain’s evaluation. A disagreement over where an entity starts and ends, or over how the same category should be applied to a particular mention, would pose a different problem. The experiment does not show that variance tuning on its own can resolve such disagreements.
The removal of WSJ makes that distinction concrete for parsing. The authors describe incompatible treatment of some hyphenated words and differences in how noun-phrase structure is represented. These choices affect the units and trees on which the parser is trained. The experiment excludes the source with the different scheme, which allows the comparison to focus on the other sources. Consequently, it tests transfer among domains with compatible converted targets. It leaves unresolved how to fit the hierarchy when the observed structures reflect different tokenization and tree conventions.
Domain membership is available for the experiments. It identifies the relevant weights and, where applied, the legal entity inventory. The results therefore measure prediction after the learner has been told which source it is handling. The paper gives no corresponding accuracy estimates for blended sources, inputs of uncertain origin, or a stream in which the useful domain categories change. Those settings would require a way to choose or combine domain weights, beyond the trained system’s use of the designated local vector.
Size and composition are also intertwined. The MUC datasets count as different domains because of their different shared tasks and separate annotation histories, although both are American newswire. CoNLL combines a different newswire variety with a different label inventory. Those differences make the transfer problem realistic, but the study does not independently vary genre, geography, and annotation. Similarly, the parsing sources have different sizes and use a rough, section-based split. The paper shows what happened across these collections, without estimating performance as a function of a systematically varied amount of labeled data.
Finally, the statistical evidence is reported for the combined comparisons. In recognition the paired units are documents, and in parsing they are sentences. Those tests are valuable for comparing two systems on the same evaluation units. They do not imply that every source has a separately established gain, or that a small score difference has the same practical value on every source. On CoNLL the almost identical F1 values are the appropriate description of the result. On the parsing domains where pooling has the higher observed accuracy, the pooled significance result leaves that ordering intact.
What came after
Later work that cites the paper takes the sharing question into different tasks and different parts of the learning procedure. The relationship can be stated at the level of what is adapted in each case. The paper’s own contribution is a prior on feature weights across related domains. The later directions include changing training-example weights, learning structural correspondences, adapting to a target language, and sharing evidence across tasks. These connections establish where the research questions meet. The citation relationship alone does not establish that a particular later approach reused the Gaussian hierarchy.
In cross-language classification, the transfer problem arises when the input language changes. Cross-Language Text Classification Using Structural Correspondence Learning approaches text classification through correspondences that can support decisions across languages. The connection is the problem of making evidence gathered in one collection useful in another. Where hierarchical Bayesian adaptation connects weights for the corresponding feature across domains, the cross-language study makes the discovery of correspondences itself central to how classification transfers. This shifts attention from how far a local weight should move to what representation allows a decision cue to carry over. Cross-Language Text Classification Using Structural Correspondence Learning
Discriminative Instance Weighting for Domain Adaptation in Statistical Machine Translation works on another part of the training objective. Instance weighting determines how much an individual training example contributes. For machine translation, this makes the relevance of an example to the target domain the focus of adaptation. The earlier hierarchy also changes the effect one corpus can have on another, but its explicit penalty operates on parameter differences. The machine translation study’s contribution, as its title specifies, is a discriminative way of assigning importance to examples for domain adaptation. Discriminative Instance Weighting for Domain Adaptation in Statistical Machine Translation
Automatic Domain Adaptation for Parsing returns to parsing and puts the emphasis on automating adaptation. The connection is direct at the task level. Both papers ask how a parser can benefit from adapting to a domain, where a prediction has to be made for a whole syntactic analysis. Finkel and Manning’s parser already has labeled trees and a fixed domain identity for each training collection. Automation is the distinguishing aim of the later work as described in its title. The record of that aim alone does not specify which parts of the training process are automated. Automatic Domain Adaptation for Parsing
Target Language Adaptation of Discriminative Transfer Parsers puts the target language at the center of parser adaptation. This direction combines a structured prediction task with the question of what can be transferred across a language boundary. The earlier paper shows how evidence from several domains can shape a set of local parser weights when the features and converted annotation scheme can be shared. The later work’s focus is adaptation of discriminative transfer parsers to the target language, placing the issue of local fit in a cross-language setting. Target Language Adaptation of Discriminative Transfer Parsers
Regularization techniques for fine-tuning in neural machine translation revisits the relation between adaptation and control over weight changes. In fine-tuning, a previously trained system is fitted further for the setting of interest. Regularization governs the changes made in that process. This is related to the earlier paper’s distinction between having evidence for a shared setting and allowing the adapted weights to depart from it. The earlier objective estimates the root and the domain weights jointly. The later translation work studies regularization in the setting of fine-tuning. Regularization techniques for fine-tuning in neural machine translation
Overcoming Language Variation in Sentiment Analysis with Social Attention takes up variation in the cues used for sentiment. The earlier paper illustrated that a cue can carry different associations across collections even when the nominal prediction task stays fixed. In sentiment analysis, this raises the parallel question of how to interpret a cue when linguistic usage varies. The later work uses social attention to address that variation. The connection is through the problem of adapting to different language use, with attention named as the later approach. Overcoming Language Variation in Sentiment Analysis with Social Attention
Cross-Domain Label-Adaptive Stance Detection brings label adaptation into the cross-domain setting explicitly. This is closest to the recognition experiment’s question of what useful evidence can pass between collections whose output inventories differ. In the earlier experiment, some categories are common, while others are present only in one inventory. The paper varies whether these categories can enter the prediction process. The stance work names label adaptation as part of the prediction problem, linking the domain question to the outputs being predicted as well as to the evidence in the input. Cross-Domain Label-Adaptive Stance Detection
Hierarchical Joint Learning applies the sharing question to parsing and named entity recognition together. Its title specifies a hierarchy and collections that lack joint labels for the two tasks. This is a move from separate applications of a shared training principle to a joint learning problem, where a corpus can contribute annotation relevant to one task even when the other annotation is unavailable. The connection to the earlier paper lies in using hierarchical structure to make separately observed evidence useful. What differs is the unit for which evidence is incomplete. The earlier experiments divide examples by domain within a task. The later work addresses the availability of annotation across tasks. Hierarchical Joint Learning: Improving Joint Parsing and Named Entity Recognition with Non-Jointly Labeled Data
Cite
Cite as Jenny Rose Finkel and Christopher D. Manning. 2009. Hierarchical Bayesian Domain Adaptation. Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics.
@inproceedings{finkel2009hierarchical,
title = {{Hierarchical Bayesian Domain Adaptation}},
author = {Jenny Rose Finkel and Christopher D. Manning},
booktitle = {Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics},
year = {2009},
doi = {10.3115/1620754.1620842},
url = {https://doi.org/10.3115/1620754.1620842}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/finkel-2009-hierarchical-bayesian-domain-adaptation/