---
title: "Unified Expectation Maximization — Samdani 2012"
description: "Unified Expectation Maximization explains how to tune the weight given to uncertain predictions when learning from data with missing labels."
canonical: "https://research.elamur.ai/free/en/papers/samdani-2012-unified-expectation-maximization/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/samdani-2012-unified-expectation-maximization/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2012](https://md.research.elamur.ai/free/en/papers/2012/) / Unified Expectation Maximization

# Unified Expectation Maximization

Paper · 2012 · Rajhans Samdani, Ming-Wei Chang and Dan Roth

**Authors:** [Rajhans Samdani](https://md.research.elamur.ai/free/en/authors/rajhans-samdani/), [Ming-Wei Chang](https://md.research.elamur.ai/free/en/authors/ming-wei-chang/) and [Dan Roth](https://md.research.elamur.ai/free/en/authors/dan-roth/) · **Year:** 2012 · **Venue:** Proceedings of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**34** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W122926584) · [Cited by **16** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/samdani-2012-unified-expectation-maximization/cited-by/) · [Proceedings of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies](https://aclanthology.org/volumes/N12-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/N12-1087/)
- [PDF](https://aclanthology.org/N12-1087.pdf)
- [OpenAlex](https://openalex.org/W122926584)

Citations: OpenAlex, 2026-10-14.

## Summary

When a sentence has no [part-of-speech tags](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), a learning algorithm can still use it for training by estimating which tags belong on the words. The difficulty is deciding how much to trust those estimates. Standard expectation maximization, or EM, trains on a probability distribution over possible taggings. Hard EM trains on its current best guess. The first procedure can give considerable weight to unlikely guesses when there are many of them. The second can commit to a mistake early in training. Unified Expectation Maximization, or UEM, makes the degree of commitment adjustable. A parameter controls how strongly the algorithm favors concentrating its training weight on the most plausible outputs.

The change occurs in the expectation step, when the algorithm constructs the distribution it will use as training evidence. The parameter update that follows uses the same rules as the corresponding form of EM. UEM also allows researchers to specify constraints on the estimated outputs. For example, a proposed relation between two entities can require a particular entity type, and [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) data can be used to learn word links whose estimated probabilities agree in both translation directions. The authors show how standard EM, hard EM, Posterior Regularization, and the hard-constraint form of Constraint-Driven Learning fit into the same framework. They give an algorithm that enforces constraints on expected values by adjusting the scores used during inference.

The experiments show why the choice of setting matters. On a Penn Treebank subset, standard EM worked best when the tagger began with uniform probabilities over its allowed tags. Intermediate settings frequently worked better when the starting parameters came from a small labeled sample. In semisupervised [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/), tuned UEM improved relation prediction over supervised training alone and over Posterior Regularization at each labeled-data size tested. The difference from the Constraint-Driven Learning proxy was small, and entity prediction showed no improvement over the supervised baseline. In word alignment, tuned UEM had the lowest reported Alignment Error Rate in both directions for both language pairs at every training size shown. The evidence supports choosing the degree of commitment for the task and training conditions. In the constrained experiments, the hard comparison used a relaxation of Constraint-Driven Learning, and the alignment results measure word links themselves.

## Deep dive: Unified Expectation Maximization

Unified Expectation Maximization explains how to tune the weight given to uncertain predictions when learning from data with missing labels. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Learning when the output is missing

A training example can contain everything a system will see at prediction time and still leave out the thing it must predict. A bilingual sentence pair contains words in both languages, but the links between the words may be unknown. A sentence contains tokens, but the tags that describe their grammatical roles may be unknown. The observed material is fixed. The proposed explanation of that material changes as the system learns.

EM gives this process a repeating structure. With its current parameters, the system estimates which hidden outputs could go with the observation. It then updates the parameters using those outputs as training evidence. A distribution over candidate outputs serves as an accounting device. Each candidate contributes in proportion to its probability, so several plausible interpretations can influence the update even when the algorithm would choose only one of them if asked for a prediction.

This use of a distribution can matter for structured prediction. A tagging assigns a category at each position, and an alignment specifies links across a pair of sentences. Each complete tagging or alignment is a distinct candidate. A large collection of individually unlikely candidates can therefore carry appreciable probability in aggregate. A training update that uses the full distribution gives that aggregate probability a role. Its effect depends on which decisions the less likely structures share and how much support the current parameters already give to better structures.

Hard EM makes the other choice. It selects a highest-scoring output and lets that output determine the update for the example. A complete tagging, for instance, contributes as though the selected tags had been supplied. If the current scoring procedure already identifies good structures, a hard decision preserves their influence without sharing it among competing candidates. If the scoring procedure has little basis for distinguishing them, a narrow lead can acquire the force of an observed label in the next update.

The authors place this choice in a body of work that had already used EM in [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), translation, and [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/). They cite [Text Classification from Labeled and Unlabeled Documents using EM](https://md.research.elamur.ai/free/en/papers/nigam-2000-text-classification-labeled-unlabeled-em/) as an example of using the same learning procedure with both kinds of documents. They also discuss earlier work on [dependency parsing](https://md.research.elamur.ai/free/en/topics/dependency-parsing/) in which hard assignments were advantageous. In that work, ordinary EM moved farther away from a good supervised starting point, accompanied by a greater loss of accuracy. The observation motivates a question about the reliability of the starting distribution as well as the choice of update.

#### An analogous choice when there are constraints

A prediction can be plausible by the system’s statistical scores and still conflict with a rule about the task. Entity and relation prediction supplies a straightforward example. An entity type describes what a mention refers to, while a relation type describes a connection between mentions. A relation such as LOCATED IN imposes a condition on the type of its second argument. If the entity and relation predictors are fit separately, their scores can favor combinations that violate this condition.

The paper describes several precedents for using rules to coordinate structured predictions. [Global inference with linear constraints](https://md.research.elamur.ai/free/en/papers/roth-2004-linear-programming-formulation-global-inference/) uses such constraints to express compatibility between entities and relations. Other examples in the paper include rules about what can be retained in sentence compression and agreement between separate analyses. The common feature is that local or separately computed preferences need to be reconciled with a condition stated over several parts of the output.

With [Constraint-Driven Learning](https://md.research.elamur.ai/free/en/papers/chang-2007-guiding-semi-supervision-constraint-driven/), the hard-constraint version considered by the authors, the expectation step chooses a single output that obeys the rules. Its prediction then acts as a training label. The constrained decision can be substantially harder to compute than the best output under the original scores. A rule may connect choices that the original scoring procedure could optimize separately.

Posterior Regularization applies the rules to a distribution. It seeks a distribution close to the current conditional probabilities that satisfies constraints on expected quantities. A limit might apply to the expected number of predictions of a particular type across a corpus. An agreement rule might apply to the probability of a link that is assessed by separate predictors. These quantities are averages under a distribution. They can be constrained without designating one complete assignment as the answer for every example.

The resulting choice resembles the original choice between standard and hard EM, with an extra distinction. A hard constraint on a structure asks whether the structure itself is permitted. A constraint on an expectation asks whether a weighted average is permitted. A probability distribution can meet an expectation bound even when some outputs to which it assigns weight would violate the corresponding structural bound. This becomes important when the expectation step is made as hard as possible while still being allowed to return a mixture.

#### Why the authors wanted a common objective

The paper treats the choice as a question about the evidence used in the update. A distribution can retain many alternatives, concentrate sharply on a short list, or put all its weight on one. Entropy quantifies this degree of spread. A point mass, which assigns all probability to a single outcome, has zero entropy. A distribution that divides its weight among several possible outputs has positive entropy. The authors use the weight on that quantity to move between different expectation steps.

They distinguish this aim from the earlier use of temperature in deterministic annealing. In the annealing approach they discuss, training begins with a smoother distribution and proceeds towards the ordinary EM objective. The schedule is a way to address poor local solutions while ultimately solving the standard problem. In UEM, a value between hard and ordinary EM can define the procedure used for training. Varying it changes which objective the expectation step is trying to optimize.

This distinction also clarifies what it means to compare the variants. With the same task, representation, and parameter update, one can change the sharpness of the distribution used as evidence. With constraints present, one can also examine how the same change affects the compromise between the scores and the expected values required by the rules. The paper develops both comparisons from a common mathematical form.

### The method, step by step

#### From observations to weighted training evidence

Each observed input is written as `x`. The candidate outputs for that input form a finite set, written as `H(x)`. A member of that set is `h`. In tagging, `x` is a sentence and `h` is an assignment of tags to it. In word alignment, `x` consists of paired sentences and `h` specifies their links. The parameters, written as `θ`, determine the probability of each observed input and hidden output in a generative setting, or the conditional probability of the output in a discriminative setting.

UEM begins with initial parameters. From their predictions it obtains a distribution `q` over the possible hidden outputs. This is the distribution used for learning, so it can differ from the conditional probabilities implied directly by the current parameters. Its construction is the expectation step, typically called the E-step. The parameter update is the maximization step, or M-step. After the update, the next E-step uses the revised conditional probabilities.

If there are no task constraints, the E-step only has to produce a valid probability distribution. With task constraints, it must also satisfy bounds on quantities calculated under that distribution. UEM lets those requirements coexist with a preference for a sharper or softer assignment. The M-step then sees the result through its weighted training terms. It does not need a separate parameter-fitting rule for each choice of sharpness.

A training cycle in Unified Expectation Maximization The steps in order.

The steps for weighting and enforcing constraints describe parts of the same optimization. A constrained run does not have to select a sharp distribution and accept whatever violations follow. It adjusts the distribution within the chosen objective, taking account of what the rules allow. In particular, a constraint can keep weight on several candidates even at a setting that would favor one choice in an unconstrained problem.

#### The ordinary EM objective

For a generative procedure, the probability of the observed input includes the probability of all the ways its hidden output could have been assigned. The paper writes the observed-data objective for an input as follows.

```
L(θ) = log Pθ(x) = log [Σ_{h ∈ H(x)} Pθ(x, h)]
```

`L(θ)` is the log-likelihood of the observation as a function of the parameters `θ`. `Pθ(x)` is the probability of `x`, and `Pθ(x, h)` is the joint probability of `x` and a candidate output `h`. The sum, marked by `Σ`, ranges over `H(x)`, the set of possible outputs for `x`. The logarithm, `log`, is applied after summing the joint probabilities.

EM works with a lower-bound objective that can be optimized by alternating between the distribution and the parameters.

```
F(θ, q) = L(θ) − KL(q, Pθ(h | x))
```

`F(θ, q)` is the objective with both parameters and distribution as arguments. `L(θ)` is the observed-data log-likelihood. `Pθ(h | x)` denotes the conditional distribution over `h` at the observed `x`, and `q` is a distribution over the same outputs. `KL` is Kullback–Leibler divergence, with `q` as its first argument and the conditional distribution as its second. It is non-negative and becomes zero when the distributions coincide. Subtracting it makes `F` a lower bound on `L`, and matching the distribution makes that bound tight at the current parameters.

The standard unconstrained E-step can therefore be written directly in terms of this divergence.

```
q = arg min_{q′ ∈ Q} KL(q′, Pθ(h | x))
```

`q′` denotes a candidate training distribution. `Q` is the set of allowed distributions, and `arg min` means to take a candidate attaining the smallest objective value. The resulting distribution is `q`. In standard unconstrained EM, `Q` contains all distributions over `H(x)`, so `q` can equal `Pθ(h | x)`. The vertical bar in the conditional probability indicates that the observation `x` is held fixed.

Hard EM can also be expressed in distributional terms. It first identifies a highest-probability hidden output.

```
h* = arg max_{h ∈ H(x)} Pθ(h | x)
```

`h*` is a maximizing candidate output, `arg max` selects a maximizer, and `h ∈ H(x)` limits the search to candidates for the current input. The corresponding `q` is the point mass at `h*`. Its probability is `1` for `h*` and `0` for the other candidates. When several outputs tie, choosing a single maximizing output supplies a hard assignment.

For semisupervised discriminative training, the paper gives a related objective. Here the observed inputs are used to predict outputs conditionally, and some of the training outputs are known.

```
F(θ, q) = Lc(θ) − c₁‖θ‖² − c₂ KL(q, Pθ(h | x))
```

`Lc(θ)` is the conditional log-likelihood on the labeled data. `‖θ‖²` is the squared norm of the parameters, and `c₁` controls its penalty. `c₂` sets the weight of the divergence term, which the paper applies to the unlabeled data. The symbols `F`, `θ`, `q`, `KL`, and `Pθ(h | x)` play the same roles as before. During parameter fitting, a labeled example contributes its given output, while an unlabeled example contributes the outputs weighted by `q`. This lets the same fitting procedure use observed and estimated labels while preserving their different origins.

#### Making the E-step adjustable

The UEM E-step replaces ordinary divergence with a function that changes the weight on the term involving the log of `q`.

```
KL(q, p; γ) = Σ_{h ∈ H(x)} [γ q(h) log q(h) − q(h) log p(h)]
```

`p` is the reference distribution, taken to be `Pθ(h | x)` in training. `q(h)` and `p(h)` are the probabilities assigned to candidate `h` by the two distributions. The sum runs over `H(x)`. `γ`, gamma, sets the weight on the term containing `log q(h)`. The semicolon in the notation separates this setting from the two distribution arguments. The paper uses the familiar `KL` notation for the modified objective and cautions against treating it as a mathematical distance.

The second term inside the sum favors candidates with high conditional probability under the current parameters. The first term gives a benefit to spreading probability when `γ` is positive. Shrinking `γ` reduces that benefit while leaving the scoring term in place. This is why the setting changes how much the current front-runners dominate the training evidence.

The same objective can be expressed as ordinary divergence plus an entropy term.

```
KL(q, p; γ) = KL(q, p) + (1 − γ) H(q)
```

`KL(q, p)` on the right is ordinary Kullback–Leibler divergence. `H(q)` is the entropy of `q`, the negative of the sum of each probability times its logarithm. It is distinct from `H(x)`, which names the set of outputs. `1 − γ` is the additional weight on entropy in this form. At `γ = 1` the added term vanishes. Below `1`, reducing divergence must be weighed against the cost of retaining entropy. A large group of weak candidates can consequently carry less training weight than it would under ordinary EM.

#### Writing the constraints

The authors express their rules as linear bounds on an output representation. An output `h` can encode several component decisions, for instance whether particular pairs of words are linked. A linear rule assigns coefficients to those components and compares the resulting quantity with a bound.

```
uₖᵀ h ≤ bₖ
```

`k` indexes a constraint. `uₖ` contains its coefficients, and the superscript `ᵀ` denotes transpose, so `uₖᵀ h` is the coefficient-weighted sum for output `h`. `bₖ` is the upper bound and `≤` allows equality. The coefficients can depend on the observed input. Linearity concerns the representation of `h`, which is the variable the rule restricts.

Putting the coefficient rows in a matrix `U` and the bounds in a vector `b` yields a compact test. A feasible hard output belongs to `H(x)` and satisfies `Uh ≤ b`, component by component. This is a test on a discrete structure. For an expectation constraint, the corresponding test is on the average across structures.

```
E_q[Uh] = Σ_{h ∈ H(x)} q(h) Uh
```

`E_q` denotes expectation under `q`. `Uh` is the vector of rule quantities for candidate `h`. Each such vector is multiplied by the probability `q(h)`, and the sum combines the results across the allowable outputs. If `q` is a point mass, the average is exactly the rule vector of the selected output. For a general distribution, an individual `Uh` can lie outside the bounds even when the average meets them.

The full constrained E-step is then the following minimization.

```
minimize over q   Σ_{h ∈ H(x)} [γ q(h) log q(h) − q(h) log Pθ(h | x)]
subject to       E_q[Uh] ≤ b
                 q(h) ≥ 0 for every h ∈ H(x)
                 Σ_{h ∈ H(x)} q(h) = 1
```

`q` is the unknown distribution, `γ` determines the entropy weight, and `Pθ(h | x)` supplies the current conditional probability. `U` and `b` define the bounds on `E_q[Uh]`. The `≥` inequality and the final equality require that all weights be non-negative and sum to `1`. If there are no task rules, the expected-value row is absent and only the probability requirements apply. These probability requirements define the simplex, the space of non-negative weights with unit total mass.

The relation-extraction experiment illustrates what such bounds mean. Suppose the candidate relation from `e₁` to `e₂` is LOCATED IN. The rule requires the second entity to be a location. The experiment puts a corresponding bound on the estimated probabilities.

```
q(LOCATED IN; e₁, e₂) ≤ q(LOC; e₂)
```

`e₁` and `e₂` are entity mentions, with the argument order identifying which mention must be a location. `q(LOCATED IN; e₁, e₂)` is the probability assigned to the relation for that pair, and `q(LOC; e₂)` is the probability assigned to the location type for `e₂`. `LOCATED IN` and `LOC` are labels from different prediction spaces. The inequality requires at least as much support for the implied entity type as for the relation. For hard indicator values it expresses the original implication, and for probabilities it gives a constraint on the corresponding expected indicators.

The same experiment bounds the total weight assigned to each named relation across candidate pairs.

```
Lρ ≤ Σ_{(e₁, e₂) ∈ Dᵣ} q(ρ; e₁, e₂) ≤ Uρ
```

`ρ` is a relation type other than NONE, `Dᵣ` is the collection of candidate entity pairs across the corpus, and `(e₁, e₂)` is one such pair. The sum is the expected count of relation `ρ`. `Lρ` and `Uρ` are its lower and upper bounds. Here `Uρ` is a count bound, separate from the matrix `U` used in the general formulation. The authors estimate relation frequencies from labeled examples and perturb the estimates by `+/- 20%` to set the bounds, under the assumption that labeled and unlabeled examples come from the same distribution.

#### What the settings recover

With no task constraints and `γ = 1`, the E-step is the ordinary divergence minimization. With expectation constraints and the same setting, it is Posterior Regularization. The E-step then looks for the allowed distribution closest to the conditional distribution in the ordinary divergence. An already feasible conditional distribution can be retained exactly.

At `γ = 0`, the E-step maximizes the expected log conditional probability over the allowed distributions.

```
maximize over q   Σ_{h ∈ H(x)} q(h) log Pθ(h | x)
subject to        E_q[Uh] ≤ b
                  q(h) ≥ 0 for every h ∈ H(x)
                  Σ_{h ∈ H(x)} q(h) = 1
```

The score `log Pθ(h | x)` is fixed for each output, so the objective is linear in the weights `q(h)`. The bounds on their expectations, `E_q[Uh] ≤ b`, are linear as well. The remaining requirements keep the weights non-negative and normalized. This is a linear program, meaning that it optimizes a linear objective under linear restrictions. On the unconstrained simplex, some optimum is a point mass on a highest-scoring output. Tied maximizers can also support an optimal mixture, with hard EM obtained by selecting one maximizing output.

With expectation constraints, a mixture can be optimal because the extra bounds change which points are feasible. A mixture can also have a better objective than any admissible point mass. The authors therefore describe the constrained `γ = 0` problem as a linear programming relaxation of hard constrained inference. Its feasible set includes the point masses that pass the hard rules and may include additional fractional assignments. A solver for the relaxed problem can provide a useful approximation without certifying that the corresponding hard problem has been solved.

To obtain the exact hard-constraint form of Constraint-Driven Learning, the paper considers the limit `γ → −∞`. An arbitrarily strong penalty on positive entropy forces a point mass when a feasible point mass is available. The resulting E-step directly chooses a permitted structure.

```
h* = arg max_{h ∈ H(x), Uh ≤ b} log Pθ(h | x)
```

`h*` is the selected output, and the subscript of `arg max` says that `h` must belong to `H(x)` and pass all the bounds in `Uh ≤ b`. The objective orders feasible structures by their conditional probability because `log` preserves that ordering. After selecting `h*`, the E-step places all its weight there. The authors note that a problem with suitable structure can use Viterbi inference, the procedure for finding the highest-scoring state sequence, while a general formulation can use integer linear programming.

Intermediate settings give a different E-step. For `γ ∈ (0, 1)`, entropy still has a role, but the highest-scoring outputs receive more emphasis than under ordinary EM in the unconstrained case. With constraints, the optimizer must also allocate enough weight to meet the bounds. The authors focus their experiments on `γ ∈ [0, 1]`, where the E-step is a convex problem. Convexity here concerns optimization over `q` with the current parameters fixed. For negative `γ`, a penalty for spreading weight leads to a generally non-convex constrained objective. Without task constraints, nonpositive settings can still be handled by choosing a highest-scoring point mass.

#### Updating the parameters

Once the E-step has supplied the training distribution, the generative update fits the joint probabilities to the resulting weighted examples.

```
θ_{t+1} = arg max_θ E_{q_{t+1}}[log Pθ(x, h)]
```

`t` indexes the outer iterations, `θ_{t+1}` denotes the new parameters, and the subscript of `arg max` identifies `θ` as the quantity being optimized. `q_{t+1}` is the E-step distribution computed from the previous parameters. `E_{q_{t+1}}` takes the average of the log joint score `log Pθ(x, h)` over the outputs using those fixed weights. The generative fit thus rewards statistical explanations of the observed inputs together with their estimated hidden parts.

The paper also writes the update in conditional form for discriminative training.

```
θ_{t+1} = arg max_θ [E_{q_{t+1}}[log Pθ(h | x)] − c₁‖θ‖²]
```

The iteration indices, `θ`, and `q_{t+1}` have the same meanings as in the generative update. `Pθ(h | x)` is now a conditional probability. `c₁‖θ‖²` is the parameter penalty. The earlier semisupervised objective clarifies how the training contributions are assembled: given labels enter through `Lc(θ)`, and inferred labels enter through an expected conditional log score with the unlabeled weight `c₂`. In either setting, the E-step’s distribution is held fixed while the parameters change. Gamma affects that fit through the training weights it produces.

#### Solving the constrained expectation step

A direct optimization over `q` would require a weight for every complete output. That can be manageable for a classification decision with a short list of labels. For structured outputs, it can be impractical even to enumerate the candidates. The paper instead moves the expectation bounds into a Lagrangian, an objective that adds weighted constraint residuals. It assigns a multiplier to each bound and optimizes those multipliers in the dual problem.

The idea is to adjust how costly it is to exceed each bound. When the expected quantity under the current distribution exceeds its allowed value, the corresponding multiplier increases. That raises the penalty on outputs contributing heavily to the violation. When there is slack, the multiplier can decrease. A multiplier for an upper bound stays non-negative, so a step that would make it negative is projected back to zero.

```
λ ← max(λ + ηₜ(E_q[Uh] − b), 0)
```

`λ` is the vector of non-negative multipliers, `ηₜ` is the step size at the current inner iteration `t`, and `E_q[Uh] − b` is the vector of expected values minus their bounds. The arrow replaces the old multiplier vector with the updated one, and `max` is evaluated component by component with `0` as the lower limit. The residual supplies the direction for projected subgradient ascent, the procedure that updates the multipliers to improve the dual objective while keeping them in their allowed range. In this inner loop the predictor parameters are fixed.

At positive gamma, a given multiplier vector defines a normalized distribution. The following form combines the paper’s proportionality and its normalization into a single expression.

```
q(h) = [Pθ(h | x)^(1/γ) exp(−λᵀUh/γ)]
       / [Σ_{h′ ∈ H(x)} Pθ(h′ | x)^(1/γ) exp(−λᵀUh′/γ)]
```

`Pθ(h | x)` is the current reference probability and `q(h)` is the adjusted weight for `h`. `exp` denotes the exponential, `λᵀUh` is the multiplier-weighted rule quantity, and `1/γ` is the power applied to the reference probability. The denominator sums the same score across candidate outputs `h′` in `H(x)` so that the weights add to `1`. As the multipliers change, the penalty reshapes the relative scores. Without a dual correction, exponentiation and normalization alone sharpen the reference probabilities at intermediate gamma.

At zero gamma, the paper uses a highest-scoring output in the dual computation. It can be described by the following selection rule, followed by putting all the weight for that inner step on the selected output.

```
h* = arg max_{h′ ∈ H(x)} [Pθ(h′ | x) exp(−λᵀUh′)]
```

`h*` is the maximizing output, `h′` ranges over `H(x)`, and `Pθ(h′ | x)` is its reference probability. The exponential factor uses the same multiplier vector `λ` and rule matrix `U`. The score inside the brackets is taken before applying the exponent `1/γ` from the positive-gamma case. Choosing a maximizer gives the inner solver an output from which it can compute a constraint residual. The chosen structure can violate a bound along the way. Also, a point mass used to calculate a dual subgradient is distinct from a possibly fractional optimum of the constrained linear program.

The authors initialize the multipliers at zero and alternate between adjusting them and recomputing the training distribution. They stop at convergence or at an iteration limit. The calculation that governs practicality is the expectation under the adjusted distribution. If the candidate set is small, explicit summation is possible. With a structured output, the authors show how the calculation can still be efficient if the scores and constraint terms factor over compatible pieces of the output.

#### Coordinating separate alignment directions

Word alignment gives an example with two coupled outputs. Scoring links from source to target and from target to source gives distinct directional predictions. The authors want their estimates to agree on the quantities shared by the two directions. They formulate a general version that can include both equalities and inequalities between component distributions.

```
A(q₁, q₂; γ) = KL(q₁, P₁; γ) + KL(q₂, P₂; γ)
```

`A` is the sum of the modified divergence objectives. `q₁` and `q₂` are the distributions used for the two components, while `P₁` and `P₂` stand for their respective conditional distributions at the current parameters and input. `γ` is the shared entropy setting. The sum separates the score of one distribution from the score of the other. Their interaction enters through the constraints.

```
minimize over q₁, q₂   A(q₁, q₂; γ)
subject to            E_{q₁}[Uₑh₁] = E_{q₂}[Uₑh₂]
                      E_{q₁}[Uᵢh₁] ≤ E_{q₂}[Uᵢh₂]
```

`h₁` and `h₂` are the component outputs. `Uₑ` identifies the quantities whose expectations must agree and `Uᵢ` identifies the quantities subject to a directional bound. The subscripts on `E` specify which distribution supplies each expectation. Both `q₁` and `q₂` must also be valid probability distributions. With only agreement constraints, as in the word-alignment experiment, the inequality row is absent.

A shared multiplier changes the scores of the two components in opposite directions. The components can each recompute their distributions using their own scores and the current adjustment. The dual update then compares the expected quantities they return. The equality multipliers can take either sign, which lets them respond to disagreement in either direction. The multipliers for inequalities are projected to the non-negative range. This separation into local inference and a shared update is the dual decomposition used by the authors. In the agreement-only case, the endpoints connect the construction to prior work on [dual decomposition and linear programming relaxations](https://md.research.elamur.ai/free/en/papers/rush-2010-dual-decomposition-linear-programming-relaxations/) and to earlier agreement-based inference for alignment.

The alignment predictors are based on a hidden Markov structure, abbreviated HMM. At each position a hidden state contributes an observation score and participates in a transition to the next state. An initial-state term supplies the starting weight. The relevant factorization can be written as a score proportional to the conditional probability for a fixed input.

```
Pθ(h | x) ∝ θ_S(h₀) ∏ᵢ [θ_E(xᵢ | hᵢ) θ_T(hᵢ₊₁ | hᵢ)]
```

`θ_S` supplies the initial-state probability at `h₀`, `θ_E` supplies the emission probability of observed item `xᵢ` in state `hᵢ`, and `θ_T` supplies the transition probability to the next state `hᵢ₊₁`. `i` indexes positions and `∏` multiplies the factors across those positions. The proportionality sign allows for normalization over state sequences at the fixed input `x`. The factorization matters because it lets the solver sum over or maximize across sequences by passing information along the chain.

When a constraint correction also decomposes across positions, it can be folded into these local factors. For positive gamma, this gives the following form for the weight of a complete sequence.

```
q(h) ∝ θ_S(h₀)^(1/γ) ∏ᵢ [(θ_E(xᵢ | hᵢ) exp(aᵢ(hᵢ)))^(1/γ)
                           θ_T(hᵢ₊₁ | hᵢ)^(1/γ)]
```

`aᵢ(hᵢ)` denotes the signed contribution of the dual multipliers to the score at position `i` and state `hᵢ`. The sign depends on the component being scored. `exp` turns that additive contribution into a multiplicative factor. The initial, emission, and transition terms have the meanings given above, and `1/γ` applies to the resulting factors. The complete sequence weights are normalized across possible sequences. The correction therefore preserves the chain structure required for the computation. Forward–backward computes expected quantities by summing over sequences using this structure, while Viterbi finds a highest-scoring sequence for the zero-gamma calculation.

### Experiments and results

#### Part-of-speech tagging with different starting points

The tagging experiment uses a Penn Treebank subset containing 24,115 tokens. The allowable tags for words come from a dictionary derived from the entire Penn Treebank. A tag sequence receives its scores from a first-order HMM, so the transition at a position depends on the preceding tag. The dictionary narrows the allowed outputs. In particular, the procedure can start with a distribution on the tags the dictionary allows for each token.

The authors compare a posterior-uniform initialization with starting parameters obtained from a supervised tagger. In the uniform case, the allowable tags at each token start with equal probability. In the supervised cases, the starting tagger is fitted on held-out labeled data, with the number of examples varied over 5, 10, 20, 40, and 80. Each of these starting points is then used by different UEM settings. The setup varies the initial evidence while holding the tagging representation and dictionary assumption in place.

The authors report that their ordinary EM run on this dataset achieves 84.9% accuracy across all tokens and 72.3% on ambiguous tokens. The latter group contains tokens with competing tag possibilities under the tagging setup. Overall accuracy describes performance on the full subset. Accuracy on ambiguous items concentrates the comparison on cases where the available tags leave a decision for the procedure to make.

The figure comparing gamma settings uses the relative change in ambiguous-token accuracy from standard EM.

```
rel(γ) = [Acc(UEMγ) − Acc(UEM_{γ=1.0})] / Acc(UEM_{γ=1.0})
```

`rel(γ)` is the reported relative performance of the UEM run at gamma `γ`. `Acc` measures accuracy on ambiguous words in the tagging data. `UEMγ` identifies the run being evaluated, while `UEM_{γ=1.0}` is the ordinary EM comparator for the initialization in question. The numerator takes the change in accuracy and the denominator expresses it relative to the EM accuracy. A positive value favors the chosen UEM setting, and a negative one favors ordinary EM. Thus the comparison follows each setting against its own initial-condition baseline.

The posterior-uniform initialization favors standard EM by a substantial margin in the reported comparison. With starting points from 5 or 10 labeled examples, standard EM is already displaced as the best setting. The best setting falls between hard and ordinary EM in most of the tested cases. The result gives the paper a direct example in which a change to the initial parameters affects how useful it is to commit to the current high-scoring outputs.

#### Entity and relation prediction with limited labels

The extraction experiment uses 1437 sentences from the setting of Roth and Yih. Mention boundaries are given. The task is to assign types to mentions and to predict relations between mention pairs in the same sentence. The entity types are PER, ORG, LOC, and OTHERS. Named relations in the data include LIVE IN, KILL, and ORG BASED IN, as well as WORKS FOR and LOCATED IN. The authors add NONE for candidate pairs without one of the named relations.

The entity and relation predictors use log-linear scoring, so features contribute weighted terms to the scores for possible labels. They are fitted with discriminative UEM. Given labels anchor the training, while the unlabeled part contributes estimated labels subject to the type and expected-count constraints. The majority of candidate pairs can be assigned NONE, which motivates bounding the expected counts of the other relation types. The type rules provide a different correction by coupling particular relation decisions to particular entity decisions.

In the fully supervised comparison, an 80-20 split gives average F1 of 56% for relation prediction and 88% for entity prediction. F1 combines precision, the share of predicted items that are correct, with recall, the share of reference items recovered. These supervised scores characterize the feature-based predictors when they use the labeled training side of that split. The semisupervised comparisons use a smaller labeled fraction and put the remaining training examples to work as unlabeled data.

For the semisupervised experiments, 20% of the data is held for testing, and the labeled fraction, `κ`, takes values of 5%, 10%, and 20%. A classifier trained on the available labeled examples provides the initial parameters. Within each trial, the authors divide the labeled examples in half to tune gamma. The paper reports average results over 10 random splits and tests paired differences at `p = 0.05`. Pairing compares systems on the same split, so the comparisons reflect differences between procedures under shared labeled and test selections.

The tuned settings were usually intermediate. In the same order as the labeled fractions, mean gamma was 0.52, 0.6, and 0.57. The corresponding medians were 0.5, 0.6, and 0.5. These are values of the tuning parameter selected within the trials. The performance comparison itself is in average relation F1.

At every labeled fraction in this experiment, tuned UEM achieved higher relation F1 than supervised training on the available labels alone and higher relation F1 than Posterior Regularization. The authors report both advantages as statistically significant. The difference between tuned UEM and the harder Constraint-Driven Learning proxy was small. The comparison identifies a benefit over the fully soft constrained update and over staying with supervised training at those label budgets. The evidence for separating the tuned procedure from the hard proxy is weaker.

Entity prediction gives a different comparison on the same sentences. The EM-based approaches did not improve on the supervised entity baseline. At `κ = 10%`, UEM outperformed the two constrained endpoints among the EM-based approaches. At 20% labeled data, the supervised entity baseline was significantly better than Posterior Regularization. These outcomes distinguish an improvement in predicting links between entities from an improvement in assigning entity types.

#### Word alignment in both directions

The alignment experiments use English–French data from Hansards and English–Spanish data from Europarl. The Spanish–English evaluation uses EPPS [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/). The authors fit an HMM-based alignment procedure in each direction and use constraints to coordinate link probabilities. They acknowledge receiving alignment code and data from João Graça.

The training comparisons use unlabeled data sizes of 10k, 50k, and 100k. A development set of size 50 is used for tuning. For the constrained E-step the authors set the dual iteration limit `R` to 5. They choose gamma from 0.0 through 1.0 with steps of 0.1, based on the development set. The reported French–English settings are either 0.5 or 0.6 across the training sizes, while the Spanish–English settings use 0.7.

At test time, the authors use the agreement procedure to obtain adjusted probabilities and then decode links by a rule based on their marginal probabilities. The marginal for a word pair adds the probability of every alignment in which that pair is linked. The decoding rule retains pairs whose marginals exceed a threshold tuned on development data. The paper describes this as minimum Bayes risk decoding. In this setup the final output is a set of links chosen from marginal evidence.

The test metric is Alignment Error Rate, or AER, with lower values preferred. The paper directs readers to the [systematic comparison of statistical alignment methods](https://md.research.elamur.ai/free/en/papers/och-2003-systematic-comparison-various-statistical-alignment/) for its definition. Its results compare standard EM, Posterior Regularization, the Constraint-Driven Learning proxy, and tuned UEM. Each direction has its own reported scores.

English–French Hansards alignment at 100k unlabeled training size, English-to-French test AER Tuned UEM has the lowest alignment error among the compared procedures.

**The numbers**

| System or setting | AER |
| --- | --- |
| Standard EM | 16.31 |
| Posterior Regularization | 8.16 |
| Constraint-Driven Learning proxy | 9.17 |
| Tuned UEM (this paper) | 7.05 |

On Hansards at 10k, English-to-French AER is 9.10 with tuned UEM, 10.63 with Posterior Regularization, 14.76 with the Constraint-Driven Learning proxy, and 23.54 with standard EM. At 50k in the same direction, the values are 7.34 for UEM, 8.30 for Posterior Regularization, 10.08 for the hard proxy, and 18.02 for standard EM. The chart gives the comparison at 100k. The relative order of the procedures is consistent across the reported sample sizes in this direction.

For French-to-English on Hansards, tuned UEM has an AER of 9.21 at 10k, 7.40 at 50k, and 6.87 at 100k. Posterior Regularization gives 10.71, 8.40, and 8.09 at those same training sizes. The hard proxy gives 14.68, 10.09, and 8.93, and standard EM gives 20.80, 18.93, and 18.75. The agreement objective links training in the two directions, while the reported errors still describe directional performance.

English–Spanish Europarl alignment at 100k unlabeled training size, English-to-Spanish test AER Tuned UEM has the lowest error and Posterior Regularization is the nearest comparator.

**The numbers**

| System or setting | AER |
| --- | --- |
| Standard EM | 24.48 |
| Posterior Regularization | 19.49 |
| Constraint-Driven Learning proxy | 21.62 |
| Tuned UEM (this paper) | 15.03 |

On English-to-Spanish alignment at 10k, UEM reaches 19.63 AER, Posterior Regularization reaches 22.24, the hard proxy reaches 28.19, and standard EM reaches 33.92. At 50k, the same direction yields 16.17 for UEM, 19.84 for Posterior Regularization, 22.99 for the hard proxy, and 25.31 for standard EM. The ranking also persists at 100k, as shown in the chart.

Spanish-to-English results again favor UEM. At 10k, its AER is 20.83, compared with 22.00 for Posterior Regularization, 28.13 for the hard proxy, and 31.94 for standard EM. At 50k, UEM records 18.95, Posterior Regularization records 20.08, the hard proxy records 23.01, and standard EM records 24.46. At 100k, the results are 18.64, 19.70, 21.60, and 23.78, respectively. Across the alignment tests, the advantage of tuning remains visible in the reverse directions even though the absolute error and the margins depend on the corpus and direction.

The comparison with Posterior Regularization is particularly informative for the stated objective of the experiment. Both procedures use agreement, while the tuned procedure changes the weight on entropy. Its advantage holds at every reported training size. The comparison with the hard proxy also favors an intermediate setting. Taken together, the alignment experiments show that keeping uncertainty in the assignments can help while still leaving room to discount the least plausible alignments more strongly than standard EM would.

### What the ablations show

#### The tagging experiment isolates the starting conditions

The paper’s most direct controlled analysis varies the initial tagging distribution and the gamma setting. All runs use the same tagging corpus, dictionary assumption, and kind of tagger. Starting with uniform probabilities over the dictionary’s allowable tags produces a setting in which standard EM makes better use of the available evidence. As the initialization draws on labeled examples, a sharper update becomes competitive and often preferable. This is an interaction between two decisions: the amount of information in the starting point and the degree of commitment in subsequent training.

The intermediate results add something to a simple comparison of hard and soft assignments. With a better starting point, the authors need not commit every ambiguous sentence to its current top tagging to gain the benefit of a sharper E-step. The best tested configuration often places more weight on high-scoring structures while preserving some contribution from alternatives. The experiment supplies evidence that the continuum matters in practice because both endpoints can miss the better setting under the same initialization.

The finding is about the combinations tested. The manipulation changes how much labeled data produces the starting parameters, which the authors use as a means of improving initialization. The evaluation then examines ambiguous-token accuracy relative to ordinary EM. The paper does not derive a rule mapping a starting tagger’s quality to gamma. Its figure shows that the uniform case and the cases with labeled initialization can favor different degrees of sharpness, even though the subsequent learner has access to the same tag dictionary and kind of unlabeled observations.

#### The extraction comparisons distinguish two outputs and several training choices

The extraction study compares supervised learning, Posterior Regularization, the hard constrained proxy, and tuned UEM as the amount of labeled training data varies. Supervised training establishes the performance achieved by fitting the available labels. The constrained variants assess whether adding estimated labels helps, and their different E-steps assess how strongly to trust the higher-scoring estimates. The supervised comparison changes several ingredients together, including the contribution of the unlabeled data. The comparison of tuned UEM with Posterior Regularization more directly addresses the effect of changing the entropy setting within constrained training.

The relation results consistently favor tuning over the soft constrained endpoint. The amount of labeled data changes across experiments, yet the selected settings stay inside the range and the reported relation advantage persists. The small difference from the hard proxy suggests that the main empirical contrast in this experiment is between the softer endpoint and procedures that concentrate more strongly on their preferred relation assignments. The paper supports this interpretation with relation F1 and selected gamma values. It does not report a direct measurement of how much probability mass moved between specific candidate labels.

The entity comparison qualifies the mechanism one might otherwise infer. The constraints tie relation estimates to entity estimates, but the improvements do not appear uniformly on both outputs. Type agreement can change the evidence each predictor sees without making each evaluation score better. A gain in relation F1 is therefore evidence of better recovery of the evaluated relations under this setup, while the entity metric supplies a separate test of whether the entity assignments improved.

The paper uses the type rules and the expected-count rules together in the semisupervised runs. It does not report removing either group while keeping the other settings fixed. As a consequence, the experiments establish performance for the combined constraint system. They leave open whether the relation gains depend on correcting type incompatibilities, limiting the dominance of NONE, or an interaction between those effects. The explanation for each set of rules follows from its design, while the individual empirical contribution remains unresolved.

#### The alignment comparisons test whether the setting travels across data sizes

The alignment results compare procedures over growing amounts of unlabeled data, across two language pairs and in both directions. Tuned UEM continues to beat the constrained soft and hard alternatives as the training sample increases. The selected value is also stable enough within a language pair that the results do not depend on a different reported setting for every size. This is evidence that the alignment gains recur across several configurations of the experiment.

Training size is a useful check here because the hard-versus-soft comparison could otherwise be peculiar to one amount of evidence. Both endpoints improve as more alignment data is available in the reported comparisons, and the intermediate settings preserve their advantage. The finding concerns the tested range of training sizes and the specific development and decoding procedure. It does not imply that the same gamma would be appropriate for other corpora or for a substantially different alignment setup.

The alignment table compares tuned UEM with fixed endpoint families, but it does not give test AER for each intermediate setting tried on development data. It therefore establishes the performance of the tuned procedure without showing how sensitive held-out AER is to nearby values. Nor is there an independent comparison that removes agreement only at the tuned intermediate setting. Comparing UEM with standard EM reflects the overall differences between the procedures. Comparing it with Posterior Regularization, where agreement is also available, better supports the narrower claim about the use of intermediate entropy.

### Limitations

#### Limits the authors state

The authors substitute a Lagrangian relaxation at zero gamma for exact hard constrained inference in both constrained experiments. This matters when reading the baseline labeled CoDL. The original hard-constraint procedure selects the highest-scoring feasible discrete output. The relaxed procedure solves a different problem in which expectations can satisfy the constraints through fractional assignments, and its dual calculations use relaxed inference. The experiments establish a comparison with that practical proxy. The behavior or cost of exact Constraint-Driven Learning at the same scale remains unmeasured.

The authors also distinguish tractable inner optimization from arbitrary structured inference. Their dual approach relies on being able to calculate the necessary expected quantities or most probable outputs. A classifier with enumerable labels can do this directly. An HMM can use chain inference when the constraint adjustments decompose along its states. General linear rules can express a broad range of conditions, but that expressiveness does not ensure that the adjusted scores can be handled by the same efficient computation. The expense of the E-step depends on both the rules and the underlying structure.

For word alignment, the authors say that their use of labeled data differs from that of several published approaches. Their development set supports tuning, and their scores are intended for comparison with the baselines in their own setup. The paper warns against direct comparison with approaches using more labeled data, including the [discriminative matching approach to word alignment](https://md.research.elamur.ai/free/en/papers/taskar-2005-discriminative-matching-approach-word-alignment/). Its conclusion also leaves combinations with other EM variants for future work, including the feature-based approach in [Painless Unsupervised Learning with Features](https://md.research.elamur.ai/free/en/papers/kirkpatrick-2010-painless-unsupervised-learning-features/).

#### Limits visible in the design

The tagging result is conditional on a dictionary from the entire Penn Treebank. An initialization can use no labeled training examples for fitting its initial parameters while still relying on that dictionary to define the allowed tag candidates. The experiment therefore studies how to learn tag preferences when those candidates are available. It does not measure how the same procedure would perform if it also had to discover the label inventory or infer which tags could apply to each word. The favorable settings found with supervised starting points similarly depend on access to the held-out labels used to construct those points.

The extraction task begins after mention boundaries are known and only considers candidate pairs within a sentence. Its relation improvements concern type prediction under those conditions. A complete extraction system would also have to find the mentions if their boundaries were unavailable. That upstream source of error has no role in this evaluation. The count bounds also use a same-distribution assumption for labeled and unlabeled examples. Since the experiment obtains its labeled and unlabeled portions through random splits of one dataset, the evidence concerns that setting. A frequency shift could make the estimated count bounds less representative, a possibility the experiment does not quantify.

In alignment, agreement is used during testing, and the rule that converts marginal probabilities to final links has a development-tuned threshold. The reported AER therefore evaluates the resulting inference and decoding procedure. It offers no independent estimate of how much of a gain persists if one decodes the two directions separately or uses another thresholding rule. The metric also concerns the quality of links against alignment annotations. There is no downstream translation evaluation establishing that the observed AER reductions produce a corresponding change in translation quality.

The paper gives statistical significance tests for extraction. Its alignment table gives point comparisons across settings and its tagging analysis gives performance curves relative to ordinary EM. These forms of evidence answer different questions. Recurring alignment gains across sizes and directions show consistency within the reported runs. They do not supply the variability across repeated runs that the paired extraction analysis is designed to address.

Finally, convexity for the E-step at non-negative gamma is a statement about choosing `q` at fixed parameters. The complete training algorithm alternates that choice with an update of the parameters. The paper does not establish a global optimum for this alternating procedure at every gamma, and its finite inner iteration limit in alignment does not certify that every expectation constraint is met exactly at every update. The practical evidence rests on the measured scores under the chosen inference budget. The study shows how to expose the tuning choice and evaluate it, leaving the best setting dependent on the problem and the evidence available for selection.

### What came after

[A Constrained Latent Variable Model for Coreference Resolution](https://md.research.elamur.ai/free/en/papers/chang-2013-constrained-latent-variable-model-coreference/) cites UEM in the context of [coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/), the task of deciding which mentions refer to the same entity. The later paper’s stated topic brings constraints and hidden variables to that task. This connects it to the broader question addressed by UEM about how to use constraints when some of the output structure has to be inferred during learning.

The citation establishes that connection. Whether the later work uses UEM’s entropy parameter, adopts its projected dual solver, or draws on its treatment of constraints more generally remains unspecified. The documented continuation is the consideration of constrained latent structure in coreference, where the hidden decisions concern relationships among mentions.

## Cite

Cite as Rajhans Samdani, Ming-Wei Chang and Dan Roth. 2012. Unified Expectation Maximization. Proceedings of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

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

```bibtex
@inproceedings{samdani2012unified,
  title = {{Unified Expectation Maximization}},
  author = {Rajhans Samdani, Ming-Wei Chang and Dan Roth},
  booktitle = {Proceedings of the 2012 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
  year = {2012},
  url = {https://aclanthology.org/N12-1087/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
