Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation
Paper · 2018 · Matt Post and David Vilar
Summary
A translation system may produce fluent text while ignoring a word that a user needs it to use. A specialist might require an approved term, or an editor might want a particular phrase included in a revised translation. Earlier phrase-based systems offered several ways to impose such choices. Neural translation made these interventions harder because the translation process no longer exposed the same intermediate decisions. This paper addresses one part of that problem: how to require specified target-language expressions without making decoding prohibitively expensive.
The starting point is lexically constrained decoding. A lexical constraint is a word or contiguous phrase that the finished translation must contain. The system still chooses the surrounding sentence, including where the required expression belongs. Earlier search procedures could enforce these requirements, but their computational demands increased with the constraint set. Grid beam search, or GBS, enlarged its collection of active translation candidates as constraints accumulated. Constrained beam search, or CBS, tracked combinations of satisfied requirements through finite-state machinery, with exponential growth. These costs became especially troublesome when sub-word segmentation expanded a short expression into several decoding tokens.
Post and Vilar introduce dynamic beam allocation, abbreviated DBA. Beam search retains a limited collection of unfinished translations, called hypotheses, while generating the next token. DBA keeps that collection at a fixed capacity and divides its space among groups called banks. Each bank represents a different amount of progress through the constraints. The allocation changes during decoding, and space reserved for banks without enough candidates moves to banks that can use it. The central contribution is therefore a change in how an existing search budget is distributed. The authors describe its additional decoding cost as constant with respect to constraint count, and their timing experiments show the corresponding flat trend.
The experiments use an attention-based recurrent translation network in Sockeye, principally translating English into German. On the reference-derived rand3 task, DBA with beam size 10 obtains BLEU 26.7, compared with 25.6 for a GBS configuration that reserves a base beam of 1 per bank. The authors report comparable runtime for that comparison. Their principal speed result is about 0.6 seconds per sentence for DBA with beam size 10 on a Tesla V100, with roughly the same time across constraint counts. Required expressions also tend to appear in plausible locations: the reported correlation between their relative positions in reference translations and generated output is Pearson’s r = 0.82, in spite of the absence of supplied source positions or alignments.
These findings establish a practical way to enforce known lexical requirements, instead of a general procedure for discovering useful requirements automatically. Much of the quality evaluation supplies words taken from the correct translations, giving the decoder information that ordinary translation would not have. Attempts to select constraints from a phrase table or an automatically extracted name dictionary did not improve translation. The paper also shows that search details matter: an undersized beam can satisfy every constraint while harming BLEU, aggressive pruning can discard useful alternatives, and waiting for every hypothesis to finish can waste substantial time. DBA makes lexical control cheaper, but the usefulness of that control still depends on the constraints and the surrounding search procedure.
Interesting ideas
Allocate a fixed budget by progress. DBA preserves hypotheses at different stages of satisfying the requirements, while keeping their combined search capacity bounded. This is useful whenever ordinary ranking would eliminate candidates that look temporarily weak but have made important progress towards a hard objective. The reusable principle extends to other sequential searches: organize candidates by a meaningful progress measure, then distribute a common resource budget across those groups. The grouping exposes a distinction that a single global score may obscure.
Separate candidate creation from candidate survival. DBA first makes sure that several kinds of next step receive consideration, then decides which candidates occupy the beam. High-scoring ordinary continuations, explicit constraint advances, and the strongest continuation of every current hypothesis all enter the candidate pool. These sources serve different purposes. A system that only changes the final ranking cannot preserve a useful action that was never proposed. This distinction applies broadly to search procedures in which essential but unlikely actions need an explicit route into consideration.
Treat partial commitments as reversible. Beginning a required phrase does not permanently establish progress toward satisfying it. If the next token breaks the phrase, DBA removes the partial credit. This permits an ordinary occurrence of a phrase prefix before the complete phrase appears elsewhere. The broader lesson is to distinguish provisional progress from completed obligations. That distinction is useful whenever matching a structured requirement unfolds over several steps and an early match can later fail.
Move unused capacity to live alternatives. Some banks cannot contain candidates early in a sentence because too little text has been generated. Other banks may become unhelpful later. DBA adjusts its allocation instead of leaving those reservations idle. This gives a general resource-management idea: reserve capacity to protect useful categories, but make the reservation transferable when its category cannot use it. The adjustment is important because a fixed allocation can otherwise waste much of a small search budget.
Measure the whole search lifetime. A decoder may already have found a good completed translation while continuing to expand poor unfinished alternatives. The paper’s runtime analysis traces this behavior to the interaction between stopping and pruning. For another system, the corresponding lesson is to inspect what keeps computation alive after an acceptable result exists. Output length alone may conceal the cause of latency; internal alternatives can consume time without changing the returned output.
Keep internal preference separate from external usefulness. Supplying reference words raises BLEU while lowering the network’s own sentence scores. This makes constrained search a useful diagnostic instrument: it can deliberately move generation into a region that the scoring function dislikes and test whether the output nonetheless improves. Elsewhere, the same approach can help distinguish a search failure from a scoring failure. Better optimization of an internal objective need not mean better performance on the task people care about.
Evaluate the source of requirements independently. Reference-derived constraints reveal what decoding can accomplish when useful lexical information is already available. The unsuccessful automatic-selection experiments show that obtaining such information is another problem. This separation is valuable for any pipeline that converts an external resource into mandatory output. Enforcing a requirement faithfully and choosing a correct requirement are different capabilities, and a strong result on the former cannot establish the latter.
Deep dive: Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation
How dynamic beam allocation makes required words and phrases practical in neural translation, with evidence on speed, quality, and search limits. · about 35 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, DBA offers a concrete design for future controlled generation. Its relevant contribution is a search structure that can be represented explicitly: a partial output, a score, a record of completed requirements, and a record of progress inside any active phrase. Nothing in the evidence about Mova establishes that this decoder is already implemented. The connection is therefore a proposed use of the paper’s method, with a clear boundary between an engineering possibility and demonstrated behavior.
A plausible application would let a caller supply expressions that must occur in generated text. Mova could retain several partial outputs and group them by completed constraint tokens. Ordinary continuations would compete alongside continuations that advance a requirement. A fixed beam capacity would bound the number of active outputs carried into the next generation step. This would make the cost of the main generation batch easier to control than an arrangement that reserves a complete beam for every possible level of progress.
The transparency benefit would come from exposing the constraint state alongside each candidate. A trace could show which expression a token advances, whether a phrase has been interrupted, and why a candidate belongs to a particular bank. If a candidate loses its place, the trace could distinguish a poor score from competition within its progress group. Those are proposed interface choices for Mova, rather than features evaluated by Post and Vilar, but they follow directly from the state that DBA needs to maintain.
Phrase handling would deserve particular attention. A requirement expressed as ordinary text might occupy several internal tokens, and completion would have to be checked against that token sequence. Starting the sequence would create provisional progress. Choosing an incompatible continuation would cancel that progress, while leaving the generated text itself intact. The requirement would remain available for a later attempt. Without this distinction, an early occurrence of a common prefix could either earn false credit or force the rest of the phrase into an unsuitable place.
The paper also suggests a disciplined way to assess such an implementation. Mova would need separate measures for whether requirements appear, whether the surrounding text remains useful, and how much search time is consumed. The translation experiments show why these questions cannot be collapsed into a single success flag. DBA can meet constraints with a small beam even when overall quality deteriorates. A transparent system should therefore make satisfaction visible without presenting it as evidence that the entire output is correct.
Constraint selection would remain outside the decoder’s responsibility. A user-approved expression and an automatically extracted expression should not be treated as equally reliable merely because both can be enforced. The failed phrase-table and name-dictionary experiments are especially relevant here. They show how an imperfect upstream resource can turn a reliable enforcement mechanism into an ineffective translation intervention. For Mova, a sensible proposed boundary is explicit: one component supplies and justifies requirements; the decoder reports how it incorporated them.
Finally, DBA would only fit a Mova generation path that can score and extend partial outputs token by token. The paper does not establish benefits for every kind of language-system component, nor does it show how a small Rust implementation would perform. Its contribution to Mova is an implementable allocation idea and a set of evaluation cautions. Actual usefulness would require evidence from Mova’s own generation process, requirement sets, and runtime behavior.
The problem and its context
Recovering a useful form of control
The paper’s motivating problem belongs to machine translation, but it concerns the interface between a user’s requirements and a statistical generation process. A system can choose a plausible translation that conflicts with an approved vocabulary. A domain dictionary may specify a preferred rendering, or an interactive editing workflow may require words selected by a person. In such situations, translation quality includes adherence to an explicit lexical decision.
Phrase-based translation offered relatively direct ways to intervene. The authors describe dictionary integration and forced translation choices as practical capabilities of that earlier approach. These interventions mattered for domain adaptation and interactive translation because they let an external resource or a user influence a particular part of the output. Neural translation made the route from such a decision to the finished sentence less direct.
The paper does not argue that all earlier forms of control should be reproduced. It concentrates on a narrower capability: specifying target-language expressions that must appear. This formulation leaves considerable freedom to the decoder. The caller need not determine the sentence position of an expression, construct the surrounding syntax, or supply a source-to-target alignment. The requirement constrains the finished text while allowing the generation process to choose how to accommodate it.
A hard lexical requirement differs from a preference. A preference changes which output is attractive; a requirement changes which output is acceptable. If an expression is mandatory, a fluent sentence that omits it cannot count as a completed solution. This distinction explains why ordinary beam search needs modification. Its usual ranking may discard every hypothesis containing an initially unlikely required word.
Why beam search needs protection for lexical progress
Beam search is an approximate way to explore possible translations. It retains several partial outputs instead of committing immediately to the strongest next token. Yet all retained candidates ordinarily compete by score. A candidate that begins an unusual approved term can lose to a more probable continuation before the full phrase has had a chance to become useful.
The authors connect neural beam search to work including Sequence to Sequence Learning. Their account emphasizes that each neural hypothesis carries its entire generated history. Unlike the recombination used in phrase-based decoding, hypotheses with different histories are not merged. This makes it straightforward to attach a record of lexical requirements to each partial output.
The difficulty is therefore not simply remembering which words have occurred. Search must preserve candidates with different degrees of constraint completion. If every candidate competes in a single undifferentiated pool, high-probability outputs that postpone all requirements can dominate. Conversely, forcing all requirements immediately could produce an awkward sentence. A useful procedure must leave room both for fluent continuation and for progress toward mandatory expressions.
Earlier approaches and their costs
Grid beam search addresses this by separating hypotheses according to how many constraint tokens they have produced. Each level receives its own beam. A candidate that has satisfied some requirements can therefore survive even if its score is worse than candidates at another level.
This arrangement offers a clear route to completion, but it also expands the effective beam. More requirements mean more banks, each carrying its own allocation of hypotheses. The paper describes the resulting decoding cost as linear in constraint count. The problem is both computational and operational: a sentence with a larger requirement set asks the decoder to work with a different total beam capacity.
Constrained beam search for image captioning represents completed subsets of requirements through a finite-state construction. The paper characterizes its growth as exponential in the number of constraints. It also notes that the previous papers did not report decoding speed, so the runtime concern initially follows from their algorithmic structures rather than directly comparable timing measurements.
Variable beam dimensions create difficulties for GPU computation. The authors explain that decoders commonly establish beam capacity when loading the network so that computation graphs can be optimized. Changing that capacity for each sentence complicates this arrangement. It also makes batching, in which several sentences share a decoding computation, harder to integrate.
DBA responds to this specific structural problem. It retains the progress banks but removes the need to provide every bank with a separate full beam. The total capacity stays fixed, while the allocation within that capacity changes. This preserves the reason for grouping hypotheses without allowing the main search batch to expand with every new requirement.
Related ways to influence translation
The paper places hard target-side requirements alongside source-linked interventions. In the work it attributes to Chatterjee and colleagues, decoding includes attention-based checks intended to ensure that glossary annotations on the input are realized. That approach also supports discontinuous expressions and alternative translations. DBA does not include those capabilities.
Another line treats lexical resources as suggestions. Incorporating Discrete Translation Lexicons is cited as an example of influencing word choices without making them compulsory. The authors also describe analogous work for phrases. These approaches address a different balance between external advice and the system’s own preferences.
The discussion includes prefix decoding, where an initial portion of the output is prescribed, and placeholder methods, where identifiable input elements are masked and restored afterwards. These alternatives help define DBA’s scope. It controls the presence of target expressions during search, while leaving their placement mostly to the translation system. It neither requires a prescribed output prefix nor relies on replacing placeholders after generation.
The method, step by step
DBA changes the selection of surviving hypotheses at each decoding step. The underlying translation network still scores possible next tokens. The new procedure determines which scored continuations deserve consideration, records their constraint progress, and divides the fixed beam among progress groups.
Generating text with dynamic beam allocation
The steps in order.
Begin with the translation objective
The paper defines translation as selecting a highly probable output sequence for a given input:
ŷ = argmaxᵧ∈𝒴 pθ(y | x)
Here, x is the input sentence, y is a possible translation, and ŷ is the selected output. The set 𝒴 contains possible target-language sequences. The symbol θ denotes the network’s learned parameters, and pθ(y | x) is the probability it assigns to y given x. The argmax operation selects the sequence with the greatest value.
The entire sequence space is too large to inspect exhaustively. Decoding therefore proceeds incrementally. At each step, the network assigns probabilities to tokens in the target vocabulary. Greedy decoding chooses the strongest token immediately. Beam search retains a collection of alternatives so that a locally weaker decision can remain available.
The beam capacity is denoted by k. A hypothesis includes the tokens generated so far and the state required to score its continuation. The maximum number of decoding steps is N. Generation ordinarily ends when the end-of-sentence marker appears or the length limit is reached.
Understand the ordinary score matrix
Every active hypothesis receives a distribution over the target vocabulary. Together, these distributions form a matrix whose dimensions are:
k × |V_T|
The symbol V_T denotes the target vocabulary, and |V_T| is its number of entries. The matrix has a row for each of the k retained hypotheses and a column for each vocabulary token. An entry represents extending a particular hypothesis with a particular token.
Ordinary beam selection chooses the strongest k continuations across this matrix. Several survivors may come from the same previous hypothesis, while another hypothesis may leave no survivor. This global selection efficiently concentrates the search on high-scoring continuations.
Lexical requirements complicate that selection because progress towards them may initially be expensive in probability. DBA changes how extraction is performed while preserving the matrix computation. The authors present it as replacing the usual kbest operation with a version that also manages constraints and banks.
This placement in the decoder matters. The method does not require retraining the network to recognize a separate constraint input. The requirements influence which continuations survive search. The network’s ordinary scores remain responsible for ranking those continuations within the resulting structure.
Define what counts as a constraint
At the decoding level, a word constraint occupies a single vocabulary token. A phrase constraint is an ordered sequence of contiguous tokens. A user-visible word can become a phrase constraint when subword tokenization divides it into several pieces.
The authors use byte-pair encoding, or BPE, following Neural Translation of Rare Words with Subword Units. Their examples include a multiword expression and a word split into sub-word pieces. In either case, the decoder must preserve the specified token order and adjacency for the phrase to count as satisfied.
The total constraint count C is measured in tokens across the requirements. It is not necessarily the number of expressions typed by a user. A collection of ordinary words can therefore become a substantially larger constraint set after segmentation.
This counting convention also explains an important experimental distinction. Several independent requirements leave their relative ordering open. A phrase containing the same amount of token material already specifies that ordering internally. DBA counts progress at the token level in both cases, but the search problems differ in difficulty.
Organize hypotheses by progress
Bank B_i contains hypotheses credited with satisfying i constraint tokens. The banks run from B_0, representing no completed progress, through B_C, representing all required tokens.
GBS gives each progress level a separate beam. The paper expresses its resulting effective capacity as:
k · (C + 1)
Here, k is the underlying beam allocation per progress bank, C is the token-level constraint count, and the additional bank accommodates hypotheses with no constraints met. The multiplication explains why increasing C enlarges the search computation.
For its GBS simulation, the paper uses a base-beam parameter b:
b(C + 1)
The symbol b is the capacity assigned to each bank in that experimental configuration. C again counts constraint tokens. This notation keeps the base allocation distinct from the total capacity that the decoder must process.
DBA instead reserves k slots for the entire search. Banks divide those slots. Their membership and their actual share of capacity can change after every generated token. A bank is therefore a grouping within a shared budget instead of an additional full beam.
Grouping by a count does not make the hypotheses inside a bank identical. They may have satisfied different expressions and may contain different sentence histories. Their detailed constraint records must remain attached to them. The count determines the allocation category; it does not replace the full record of what is still required.
Construct a candidate pool with several purposes
The candidate pool combines ordinary high-scoring continuations with explicit routes through the requirements. The first source is the global top-k selection from the score matrix. These candidates preserve the familiar behavior of beam search and allow naturally probable continuations to compete.
The next source considers each current hypothesis and adds continuations for its unmet constraints. These candidates make progress available even when a required token is too unlikely to enter the global top-k set. Without this source, merely creating banks would not ensure that the search could reach them.
The remaining source adds the strongest next token for every current hypothesis. A hypothesis that matters for constraint progress may have no continuation in the global top-k collection because other rows dominate that ranking. Keeping its own best extension gives it a chance to continue.
These sources overlap in purpose but are not interchangeable. Global selection protects the strongest overall alternatives. Constraint extensions protect required progress. Per-hypothesis selection protects continuation from each existing state. DBA combines them before deciding how much capacity each progress bank receives.
Each candidate is represented by its location in the score matrix. The row identifies its parent hypothesis, and the column identifies the proposed next token. The decoder can then associate that continuation with an updated history, updated constraint state, and resulting bank.
The fixed-capacity claim applies to the beam passed into subsequent decoding steps. Candidate construction still has to inspect and manage requirements. A careful implementation must distinguish the bounded neural scoring batch from the auxiliary work needed to assemble and sort possible survivors.
Cancel incomplete phrase matches when necessary
A phrase requirement needs more state than an isolated token. The decoder must know whether generation is currently partway through the phrase and which token should follow.
Suppose a hypothesis has produced the beginning of a required expression. If its next continuation matches the next required token, phrase progress advances. If the continuation breaks the sequence, the provisional progress must be withdrawn. The generated prefix remains in the sentence, but it no longer counts toward satisfying that requirement.
This reset is essential because an expression’s opening can appear naturally before the complete expression belongs. Treating the opening as a permanent commitment would create an unnecessary restriction on ordinary text. Treating it as completed progress would incorrectly accept an output that never contained the full phrase.
The same issue arises with segmented words. Producing an initial sub-word piece is not equivalent to producing the required word. Constraint accounting must follow the complete ordered token sequence rather than infer success from a partial match.
DBA therefore allows the search to abandon an attempted phrase and try again later. This flexibility preserves the hard requirement at completion while avoiding a rule that every accidental prefix must immediately become the whole expression.
Divide the beam and recover unused slots
The allocation problem is to distribute k total slots across C+1 possible progress banks. Some banks may be empty, and the constraint count can exceed the beam capacity. The paper proposes a simple initial allocation and then adjusts it according to candidate availability.
Its printed initial bin-size expression is:
⌊k/C⌋
Here, k is the overall beam capacity, C is the constraint count, and the floor brackets indicate rounding downward to an integer. The surrounding discussion describes C+1 banks and assigns leftover space to the bank representing complete satisfaction.
There is a notational tension in this presentation: the denominator shown in the expression is C, while the number of described banks is C+1. The illustrations communicate an even initial distribution across banks, but the prose does not supply a fully reconciled allocation specification. The main algorithmic idea remains clear, while an exact implementation needs to settle this indexing detail consistently.
The adjustment stage addresses a more fundamental practical problem. A bank can receive more reserved slots than it has candidates. Early in generation, advanced banks may be unreachable. Later, a low-progress bank may have few useful candidates. Leaving their reservations untouched would underfill the beam.
Banks with more candidates than available slots receive surplus reservations moved by DBA. The search for recipients begins nearby and extends outward. Redistribution continues until the available capacity has been assigned wherever candidates can use it.
This adjustment lets the method operate when the number of progress levels is larger than the beam. It also means that the actual allocation is responsive to the current search state. A nominal reservation does not require an empty or undersupplied bank to consume capacity indefinitely.
The authors describe this redistribution as a sketch rather than a complete specification. They establish its role and demonstrate its effect experimentally, but the written account leaves some implementation choices implicit. That distinction matters when translating the method into an independent decoder.
Admit only valid completed outputs
A hypothesis cannot emit the end-of-sentence marker while requirements remain unsatisfied. This is the direct enforcement rule. The decoder may continue ordinary generation, begin a phrase, or advance another constraint, but it cannot declare success prematurely.
Once search ends, the returned output is the strongest completed hypothesis. In the reported setup, decoding stops when every hypothesis still retained is complete or the maximum length N is reached.
The end-of-sentence restriction establishes what a valid completion must contain. It does not establish that any arbitrary constraint set will yield a fluent or semantically appropriate sentence. Nor does it remove the practical effects of a length limit, pruning, or insufficient search capacity.
Training and scoring around the decoder
The experiments train an English–German recurrent system using the complete WMT'17 training collection. Preprocessing preserves case, applies the Moses tokenizer, and uses a joint BPE vocabulary learned with 32k merge operations. The architecture has 4 recurrent layers and attention.
Training uses Adam with batch size 80. Development monitoring uses newstest2016. The stated stopping condition refers to development cross-entropy and 10 consecutive iterations, although its direction is described as cross-entropy ceasing to increase. That wording leaves the exact training stopping rule less clear than the decoder procedure.
Completed hypotheses receive length normalization: the cumulative sentence score is divided by the word count. Unless a comparison changes the setting, pruning uses threshold 20 relative to the best completed hypothesis. Both finished and unfinished hypotheses can be removed by this rule.
These surrounding choices are part of the experimental system, not incidental details. Constraint placement depends on the translation network’s scores; runtime depends on when search stops; and quality depends on which alternatives survive. DBA supplies the allocation mechanism within that larger procedure.
Experiments and results
Data and evaluation conditions
The main evaluation uses the developer version of newstest2014 for English–German translation, containing 2,737 sentences. The training data come from the collection described in the WMT17 findings. The development set used during training is newstest2016, so development monitoring and final evaluation use different named collections.
Translation quality is measured with BLEU. The authors score detokenized output through sacreBLEU and connect their reporting to A Call for Clarity in Reporting BLEU. Their scoring signature specifies mixed case, English–German translation, a single reference, exponential smoothing, and the named test collection. This documentation is intended to make their scores comparable with the corresponding WMT evaluation scores.
The experiments use neither batching nor ensembling. This matters because compatibility with efficient batching motivates the fixed beam, but the paper does not measure a batched implementation. Its timing results establish sentence-level decoding behavior under the reported setup.
The hardware description contains an inconsistency. The general setup names a Volta P100, while the detailed speed discussion associates its main runtime with a Tesla V100. The latter attribution is attached directly to the reported decoding time and is the appropriate context for interpreting that particular result.
Where the constraints come from
The principal validation task samples lexical material from reference translations. The sets named rand1 through rand4 contain increasing amounts of independently selected reference words. The phr4 condition instead selects a contiguous reference phrase. BPE is then applied to these expressions before decoding.
This design supplies reliable target-side content and tests whether search can incorporate it. It avoids confounding the algorithm with a potentially inaccurate automatic selector. At the same time, it gives the system information from the answer, so quality gains cannot be read as improvements available to ordinary translation without an additional information source.
The difference between independent words and a phrase is substantive. Independent requirements must be arranged into a suitable order. A phrase already supplies its internal order and adjacency. Post-BPE token counts may grow in both cases, but a larger count does not necessarily imply the same degree of placement difficulty.
The timing analysis focuses on rand3, with sentences grouped by their constraint counts after segmentation. A plotted group must contain at least 10 sentences. This condition limits the timing comparison to groups with the authors’ stated minimum amount of data.
How the GBS baseline is constructed
The GBS comparison is simulated within the same framework. After BPE, sentences sharing a constraint count C are decoded together. Their effective beam capacity is set by the base allocation multiplied across all progress banks.
The authors use base beam 10 to match the earlier GBS setting, and also examine base beams 5 and 1. They disable bank adjustment so that each progress group retains a fixed reservation. This reproduces the important resource-allocation difference while keeping the surrounding implementation shared.
A direct comparison remains difficult because the total GBS capacity varies by sentence. Matching a base-beam label does not match total search resources. The paper therefore emphasizes an informative comparison between DBA with capacity 10 and GBS with base beam 1.
Quality under the emphasized comparison
For rand3, the reported BLEU comparison favors DBA:
Reference-derived rand3 constraints on newstest2014, BLEU
DBA produces the higher BLEU score in the comparison emphasized by the authors.
The numbers
| System or setting | BLEU |
|---|---|
| GBS with base beam 1 | 25.6 |
| DBA with beam size 10 (this paper) | 26.7 |
The authors report the same runtime for this comparison. They also explain why its resource relationship changes with constraint count: GBS with base beam 1 has an effective beam of at least 10 when C is at least 9. DBA keeps its capacity fixed regardless of that variation.
The result is therefore evidence for a better use of a bounded beam in this setting. It does not establish that DBA dominates every GBS configuration under every possible resource budget. Larger GBS base beams allocate substantially more search capacity and incur the corresponding runtime cost.
The unconstrained baselines provide additional context:
Unconstrained decoding on newstest2014, BLEU by beam size
Increasing the unconstrained beam does not consistently improve BLEU.
The numbers
| System or setting | BLEU |
|---|---|
| Unconstrained beam size 5 | 22.3 |
| Unconstrained beam size 10 (this paper) | 22.3 |
| Unconstrained beam size 20 | 22.1 |
The starred setting is the unconstrained beam capacity corresponding to the paper’s emphasized DBA configuration. These baseline scores show that a larger search alone does not guarantee a better external metric. The constrained results must be understood as the interaction of extra lexical information and a search procedure able to use it.
Runtime and scaling
The main timing finding is about the shape of the relationship with constraint count. GBS runtime rises as post-BPE constraints accumulate. DBA runtime remains approximately level across the reported groups.
For DBA with beam size 10, the detailed discussion reports about 0.6 seconds per sentence on a Tesla V100. This timing includes decoding and excludes loading and setup. The authors characterize it as about 3x the unconstrained decoding time.
A footnote reports about 1.4 seconds per sentence on a K80. These hardware-specific measurements should remain attached to their devices. They are evidence that the method was practical in the reported implementation, rather than a device-independent latency guarantee.
The paper’s conclusion also emphasizes feasibility with 10+ constraints. This matters because segmentation can create such counts from a much shorter list of user-visible expressions. The bounded beam prevents the principal decoding computation from expanding in the way it does under GBS.
Placement beyond lexical presence
Merely inserting reference words could increase overlap scores without producing a sensible sentence. The authors therefore inspect placement separately.
Their quantitative check compares the position of a constraint’s initial word in the reference with its position in the generated translation. Each position is expressed relative to the corresponding sentence length. The resulting Pearson correlation is r = 0.82.
This is evidence that requirements tend to occur in similar regions of the reference and output. The decoder receives no supplied alignment or source position for the requirement. Its translation scores and search process determine where the expression appears.
The qualitative examples also include manually chosen paraphrases in a German-to-English illustration. Appropriate expressions generally fit their surroundings, while the semantically unsuitable requirement weak is placed awkwardly. These examples reinforce both sides of the finding: the decoder can frequently accommodate useful lexical information, but a mandatory expression can remain inappropriate.
What the ablations show
The paper offers controlled changes to beam capacity and pruning, comparisons between constraint structures, a placement analysis, a score analysis, and unsuccessful application experiments. It does not provide a complete component-by-component removal study of every candidate source or every bank-allocation decision.
Beam capacity affects quality even when requirements are met
The beam-size analysis separates lexical satisfaction from translation quality. DBA continues to satisfy the constraints with beam size 5, including situations where the constraint count exceeds the beam capacity. The bank-adjustment mechanism makes that possible.
However, quality suffers when little search space is available relative to the requirements. The difficult case is a collection of independent reference words. Their correct arrangement requires more than inserting each token somewhere: the decoder must discover suitable ordering and surrounding text.
The authors report that the only condition failing to beat the unconstrained baseline in their beam comparison is rand4 with beam size 5. This is an important qualification to the method’s practical appeal. A fixed beam makes computation manageable, but it does not make a crowded search problem easy.
Increasing the constrained beam improves the evaluated constraint sets. That result is compatible with the weaker unconstrained beam trend because the search spaces differ. Once requirements restrict the output, more capacity can help find a better arrangement within that restricted space.
A phrase is easier to organize than independent words
Phrasal constraints behave more favorably than independent constraints in the reported comparison. The authors describe no corresponding placement difficulty for the phrase condition, even where independently chosen words strain the small beam.
The reason is structural. A phrase supplies a local sequence that the decoder can place as a unit, although it still generates the tokens incrementally. Independent words leave more decisions unresolved, including their order and the grammatical material connecting them.
This comparison warns against treating the token count C as a complete measure of difficulty. C is useful for describing banks and computational scaling. It does not capture how much organization the constraint input has already supplied.
For an application, a coherent approved phrase may therefore impose a different burden from the same amount of disconnected lexical material. The evidence supports that distinction within the tested settings, instead of a universal ranking of all phrase and word requirements.
Placement correlation addresses a metric concern
The placement analysis tests a specific alternative explanation for BLEU gains: perhaps useful-looking scores arise simply because required reference words appear somewhere in the output.
The positional correlation makes that explanation less sufficient. Required expressions are not scattered without relation to their reference locations. Qualitative examples likewise show that the surrounding translation frequently accommodates them.
Still, position is a partial measurement. Similar relative location does not prove that a phrase has the correct grammatical role or that every associated meaning is preserved. The analysis supports intelligent placement while leaving room for more detailed judgments of adequacy and fluency.
Internal sentence scores and BLEU move apart
The authors also examine what happens to the system’s own sentence scores when pieces of the reference become mandatory. Adding reference material lowers those scores while generally improving BLEU. More lexical guidance increases the tension.
They call this behavior reference aversion. The term describes an observed preference pattern: the scoring function favors outputs that do not necessarily resemble the reference, even when introducing reference content improves the external metric.
The paper relates this to earlier observations that larger beams can find more highly scored outputs with worse BLEU. It cites Analyzing Uncertainty in Translation in discussing how generation can become unreliable away from familiar trajectories.
The constrained experiment contributes a complementary view. It deliberately narrows search using parts of a known translation, then shows that the resulting lower-probability region can contain better-scoring outputs under BLEU. The finding concerns a mismatch between objectives; it does not identify a complete causal explanation for that mismatch.
Pruning governs both speed and quality
The default pruning threshold is 20. Hypotheses too far below the best completed item are discarded, whether they are themselves finished or unfinished. The paper compares this with more aggressive settings and with disabling pruning.
Without pruning, constrained decoding takes almost twice as long. This slowdown affects both DBA and GBS. The computational advantage of fixed beam allocation therefore does not remove the importance of managing the beam’s lifetime.
Aggressive pruning damages BLEU because it removes alternatives that may still lead to useful constrained translations. In the reported analysis, the threshold must reach 20 before the pruned search improves on the unpruned quality baseline.
This result illustrates a tradeoff rather than a universal tuning rule. Pruning too little wastes computation; pruning too strongly harms the search. The reported threshold belongs to the particular network, scoring convention, and constraint conditions used in the experiments.
The slow behavior comes from unfinished alternatives
The runtime diagnosis rules out a simple explanation based on longer returned sentences. Mean output length remains roughly similar across the constraint conditions.
Instead, the decoder keeps working after good completed hypotheses are available. Sockeye waits for all retained hypotheses to finish. Without pruning, weaker alternatives continue producing unsuitable text until the maximum length N ends the search.
This distinction is operationally important. The returned translation can look normal while internal search behaves badly. Examining only final output length or final quality would miss the cause of the delay.
Stopping as soon as the first completed hypothesis appears resolves the runtime problem in the authors’ experiment. It also lowers BLEU. The comparison shows why the default cannot be replaced by a seemingly obvious early exit without evaluating its effect on the returned translation.
Automatic constraint selection fails to reproduce oracle gains
The appendix asks whether useful requirements can be obtained without reference access. The authors extract a phrase table with Moses and filter it using the significance-based method associated with Discarding Most of the Phrasetable.
They then select phrases using length, significance, probability, or combinations of those criteria. Forcing the selected phrases does not improve translation on the WMT or IWSLT data they examine.
A separate attempt targets named entities. The authors extract German–English correspondences from OpenSubtitles2016 using the Stanford named-entity system associated with Stanford CoreNLP. They retain selected entity categories, seek sentence pairs with a single corresponding occurrence, and choose frequent target renderings.
Those dictionary-derived constraints also fail to help. Manual inspection attributes the problem to noisy entries. A manually curated dictionary is suggested as a possible improvement, but the paper does not test that proposal.
Limitations
Limits the authors identify
The authors explicitly distinguish their algorithmic contribution from a new demonstration of every application previously explored with lexical constraints. They do not reproduce the earlier interactive-translation or domain-adaptation experiments. Faster enforcement makes those settings more plausible operationally, but the paper does not independently establish their application-level gains.
The empirical architecture scope is also limited. The reported experiments use recurrent networks. The authors state that the code can operate unchanged with architectures that generate target tokens sequentially, including the Transformer associated with Attention Is All You Need. That compatibility claim is broader than the experimental evidence: no Transformer quality or speed comparison is reported.
DBA lacks some capabilities discussed in related work. In particular, discontinuous phrase requirements and alternative translation options are not part of the presented method. The authors suggest that these could be incorporated, but such extensions remain proposals.
The failed application experiments are another stated boundary. Phrase-table constraints and automatically extracted entity translations do not produce improvements. The authors regard resource quality as a plausible obstacle, especially for names, instead of concluding that compulsory lexical guidance is always beneficial.
Limits visible in the evaluation design
Reference-derived constraints create an informed test of enforcement. They supply lexical material known to belong to an accepted translation. This is useful for isolating the decoder, but it is not a realistic automatic constraint-selection procedure.
The appendix reports that only about 18% of sampled reference unigrams already occur in unconstrained output. It also describes gains of 10+ BLEU points from a reference phrase. Those observations show the value of the information being supplied. They do not show that an application can obtain equally useful information at the same cost or reliability.
BLEU is the main quality measure. The placement study provides an additional behavioral check, but there is no reported human evaluation covering terminology correctness, adequacy, or editing effort. A higher BLEU score should therefore remain a statement about the reported metric under the reported conditions.
The principal quantitative task is English–German translation on a particular news test collection. A German-to-English example broadens the illustration, but it does not supply an equivalent quantitative evaluation in that direction. The evidence cannot establish performance across language pairs, domains, or writing systems.
Fixed capacity does not remove search difficulty
DBA controls the amount of active search carried into each decoding step. It does not guarantee that a small beam will discover the best arrangement of many independent requirements. The beam-size analysis directly demonstrates this distinction.
Similarly, satisfying all lexical requirements does not guarantee semantic suitability. The awkward weak example is a clear warning. A decoder can obey the caller while producing a worse sentence because the caller’s requirement conflicts with the intended meaning.
The lack of supplied source alignments is a capability and a boundary. It lets a caller specify expressions without marking their source counterparts. It also means that target-side occurrence alone does not explicitly verify which source content an expression translates.
Specification and reproducibility boundaries
The written allocation rule contains the mismatch between C in the divisor and C+1 progress banks. Redistribution is described operationally, but only as a sketch. These details do not negate the measured behavior of the released implementation, yet they limit how completely the prose specifies an independent reproduction.
The training stopping description is similarly unclear in its treatment of development cross-entropy. A faithful account should preserve that uncertainty rather than silently substitute a more familiar stopping rule.
The hardware naming also needs care because the setup and speed discussion use different device descriptions. The clearest runtime statement is the one explicitly tied to the Tesla V100. Treating all timing claims as though the device description were uniform would overstate the precision of the report.
Finally, batching compatibility is a structural motivation, not a measured throughput result. No batched experiment is reported. The fixed beam offers a route toward integration with such optimizations, but the realized gains would depend on an implementation and workload beyond those evaluated.
What came after
The later citation record places DBA in a broader conversation about controllable generation. Its strongest reusable contribution is the separation between a fixed search budget and progress through required lexical material. The named later works connect that problem to terminology, rewriting, logical requirements, prompting, and specialized applications.
A citation alone does not establish that a later system copied DBA’s candidate construction or bank adjustment. The later titles identify their subjects, but they do not support detailed claims about implementation, comparative results, or the size of DBA’s contribution to each system. The relationships below therefore distinguish direct continuity in the research problem from an unverified claim of algorithmic reuse.
Translation and rewriting under explicit requirements
Improved Lexically Constrained Decoding names the closest continuation: lexical enforcement for translation and monolingual rewriting. Its subject carries forward the same practical question of how required expressions can guide generated sentences. Its inclusion of rewriting also places the problem beyond translation between languages. The citation establishes a connection to DBA; it does not by itself identify which allocation decisions the later method retains.
Training Translation to Apply Terminology Constraints approaches lexical control through training, as its title indicates. That emphasis highlights a complementary design location. DBA changes decoding around an already trained translation system, while terminology-aware training asks how the system itself can learn to respond to such requirements. The available citation information does not establish a direct performance comparison between these choices.
Paraphrase Generation as Zero-Shot Multilingual Translation concerns the relationship between meaning preservation and lexical or syntactic variation. That is relevant to the same distinction DBA exposes between controlling surface expressions and evaluating the resulting sentence as a whole. The title supports this thematic connection, but not a claim that DBA’s banks are part of the paraphrase procedure.
Beyond lists of required words
Constrained Neural NLG from Compositional Representations places constrained generation in task-oriented dialogue systems. Its named setting moves the control question toward producing language from a structured representation. The connection to DBA is the need to coordinate generation with explicit obligations, while the title alone does not specify how those obligations are tracked.
NeuroLogic Decoding explicitly introduces predicate-logic constraints into the subject of neural generation. Required words are a comparatively simple form of a generation condition. The later title signals a broader language for expressing such conditions, making DBA part of the preceding work on search under hard requirements. It does not justify treating their constraint mechanisms as identical.
NeuroLogic A*esque Decoding names lookahead heuristics as part of constrained generation. This identifies another question beyond DBA’s allocation rule: how search can evaluate promising futures while deciding what to keep now. DBA’s own results show why future feasibility matters, especially when independent requirements compete for a small beam. The citation supplies continuity of subject, while details of the later heuristic remain outside the evidence described here.
Dictionaries, prompts, and adaptation
Dictionary-based Phrase-level Prompting and Chain-of-Dictionary Prompting both name dictionaries as instruments for guiding translation. They belong to the same broad problem of bringing external lexical knowledge into generation. Their titles place that intervention in prompting, whereas DBA makes lexical presence compulsory through search.
This distinction matters because a dictionary can enter a translation pipeline in several ways. It may supply a suggestion, appear in a prompt, or become a hard requirement. DBA evaluates the last of these and also demonstrates how noisy dictionary extraction can undermine it. The later citations show that dictionary-guided translation remains a research subject, without establishing that prompting and hard enforcement offer the same guarantees.
Adaptive Translation with Large Language Models names a broader adaptation setting. Its relationship to DBA lies in the continuing demand for translation that responds to information beyond a fixed default system. The citation does not specify whether DBA is used directly, compared experimentally, or discussed as prior work.
Broader reliability questions
The Survey of Hallucination in Natural Language Generation situates lexical control within a wider discussion of generated content. DBA’s evidence helps draw a useful boundary for that discussion: ensuring an expression appears is a precise output condition, but it does not establish the truth or semantic appropriateness of the sentence containing it.
The later title Balancing Fluency and Adherence explicitly names the tension between natural output and terminology compliance in low-resource translation. That tension is already visible in DBA’s small-beam results and its unsuitable-word example. The citation connects the research concerns, while supplying no grounds to claim that the later hybrid procedure uses DBA internally.
Finally, Lexical Conditioning through Uncertainty-gated Soft-Mixing names a softer probabilistic intervention. Alongside the prompting and training titles, it shows the range of places where lexical guidance can enter a generation system. DBA remains a clear reference point within that range because its promise is specific: enforce required target expressions by organizing search, keep the active beam bounded, and evaluate separately whether the imposed expressions actually help.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Machine translation · 1,109 works
Cite
Cite as Matt Post and David Vilar. 2018. Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation. Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers).
@inproceedings{post2018fast,
title = {{Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation}},
author = {Matt Post and David Vilar},
booktitle = {Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers)},
year = {2018},
doi = {10.18653/v1/n18-1119},
eprint = {1804.06609},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/n18-1119}
}References
- Peter Anderson, Basura Fernando, Mark Johnson, and Stephen Gould. 2017. Guided open vocabulary image captioning with constrained beam search (http://aclweb.org/anthology/D17-1098). In Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, pages 936–945. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Philip Arthur, Graham Neubig, and Satoshi Nakamura. 2016. Incorporating discrete translation lexicons into neural machine translation (https://doi.org/10.18653/v1/D16-1162). In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1557–1567. Association for Computational Linguistics. our card
- Ondřej Bojar, Rajen Chatterjee, Christian Federmann, Yvette Graham, Barry Haddow, Shujian Huang, Matthias Huck, Philipp Koehn, Qun Liu, Varvara Logacheva, Christof Monz, Matteo Negri, Matt Post, Raphael Rubino, Lucia Specia, and Marco Turchi. 2017. Findings of the 2017 conference on machine translation (wmt17) (http://aclweb.org/anthology/W17-4717). In Proceedings of the Second Conference on Machine Translation, pages 169–214. Association for Computational Linguistics. our card
- Rajen Chatterjee, Matteo Negri, Marco Turchi, Marcello Federico, Lucia Specia, and Frédéric Blain. 2017. Guiding neural machine translation decoding with external knowledge (http://aclweb.org/anthology/W17-4716). In Proceedings of the Second Conference on Machine Translation, pages 157–168. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Josep Crego, Jungi Kim, Guillaume Klein, Anabel Rebollo, Kathy Yang, Jean Senellart, Egor Akhanov, Patrice Brunelle, Aurelien Coquard, Yongchao Deng, Satoshi Enoue, Chiyo Geiss, Joshua Johanson, Ardas Khalsa, Raoum Khiari, Byeongil Ko, Catherine Kobus, Jean Lorieux, Leidiana Martins, Dang-Chuan Nguyen, Alexandra Priori, Thomas Riccardi, Natalia Segal, Christophe Servan, Cyril Tiquet, Bo Wang, Jin Yang, Dakun Zhang, Jing Zhou, and Peter Zoldan. 2016. Systran's pure neural machine translation systems (http://arxiv.org/pdf/1610.05540v1). CoRR. OpenAlex ↗ · Scholar ↗
- Felix Hieber, Tobias Domhan, Michael Denkowski, David Vilar, Artem Sokolov, Ann Clifton, and Matt Post. 2017. Sockeye: A toolkit for neural machine translation (http://arxiv.org/abs/1712.05690). Computing Research Repository, abs/1712.05690. OpenAlex ↗ · Scholar ↗
- Chris Hokamp and Qun Liu. 2017. Lexically constrained decoding for sequence generation using grid beam search (https://doi.org/10.18653/v1/P17-1141). In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1535–1546. Association for Computational Linguistics. our card
- Howard Johnson, Joel Martin, George Foster, and Roland Kuhn. 2007. Improving translation quality by discarding most of the phrasetable (http://www.aclweb.org/anthology/D07-1103). In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (EMNLP-CoNLL). our card
- Rebecca Knowles and Philipp Koehn. 2016. Neural interactive translation prediction (http://www.cs.jhu.edu/\textasciitilde phi/publications/neural-interactive-translation.pdf). In Proceedings of the Association for Machine Translation in the Americas, pages 107–120. OpenAlex ↗ · Scholar ↗
- Philipp Koehn and Rebecca Knowles. 2017. Six challenges for neural machine translation (http://aclweb.org/anthology/W17-3204). In Proceedings of the First Workshop on Neural Machine Translation, pages 28–39. Association for Computational Linguistics. our card
- Philipp Koehn, Franz J. Och, and Daniel Marcu. 2003. Statistical phrase-based translation (http://www.aclweb.org/anthology/N03-1017). In Proceedings of the 2003 Human Language Technology Conference of the North American Chapter of the Association for Computational Linguistics. our card
- Pierre Lison and Jörg Tiedemann. 2016. Opensubtitles2016: Extracting large parallel corpora from movie and tv subtitles. In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC 2016), Paris, France. European Language Resources Association (ELRA). our card
- Bruce T. Lowerre. 1976. The HARPY speech recognition system. Ph.D. thesis, Carnegie-Mellon University. OpenAlex ↗ · Scholar ↗
- Christopher Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven Bethard, and David McClosky. 2014. The stanford corenlp natural language processing toolkit (https://doi.org/10.3115/v1/P14-5010). In Proceedings of 52nd Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 55–60. Association for Computational Linguistics. our card
- Myle Ott, Michael Auli, David Grangier, and Marc'Aurelio Ranzato. 2018. Analyzing uncertainty in neural machine translation (http://arxiv.org/abs/1803.00047). CoRR, abs/1803.00047. our card
- Matt Post. 2018. A call for clarity in reporting bleu scores (http://arxiv.org/abs/1804.08771). Computing Research Repository, abs/1804.08771. our card
- Rico Sennrich. 2017. How grammatical is character-level neural machine translation? assessing mt quality with contrastive translation pairs (http://aclweb.org/anthology/E17-2060). In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 376–382. Association for Computational Linguistics. our card
- Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units (https://doi.org/10.18653/v1/P16-1162). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725. Association for Computational Linguistics. our card
- Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks (http://papers.nips.cc/paper/5346-sequence-to-sequence-learning-with-neural-networks.pdf). In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, and K. Q. Weinberger, editors, Advances in Neural Information Processing Systems 27, pages 3104–3112. Curran Associates, Inc. our card
- Yaohua Tang, Fandong Meng, Zhengdong Lu, Hang Li, and Philip L. H. Yu. 2016. Neural machine translation with external phrase memory (http://arxiv.org/pdf/1606.01792v1). CoRR. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need (http://arxiv.org/pdf/1706.03762v5). CoRR. our card
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Łukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, and Jeffrey Dean. 2016. Google's neural machine translation system: Bridging the gap between human and machine translation (http://arxiv.org/pdf/1609.08144v2). CoRR, abs/1609.08144. OpenAlex ↗ · Scholar ↗
- Joern Wuebker, Spence Green, John DeNero, Sasa Hasan, and Minh-Thang Luong. 2016. Models and inference for prefix-constrained machine translation (https://doi.org/10.18653/v1/P16-1007). In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 66–75. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/post-2018-fast-lexically-constrained-decoding-dynamic/