Conditional Random Fields for Responsive Surface Realisation using Global Features
Paper · 2013 · Nina Dethlefs, Helen Hastie, Heriberto Cuayáhuitl et al.
Summary
A spoken dialogue system has to do more than turn facts into grammatical sentences. Its next phrase should fit what it has already said, avoid unnecessary repetition, and remain useful when the information behind the response changes. A restaurant recommendation illustrates the difficulty. A system may need to mention a venue’s location, cuisine, quality and price, while deciding whether to combine those properties in a sentence or distribute them across several sentences. During an interaction, it may also receive a correction before it has finished speaking. The work whose title begins “Conditional Random Fields for Responsive Surface Realisation” and ends “using Global Features” tackles linguistic cohesion and responsiveness together.
The paper treats surface realisation—the choice of wording for an intended meaning—as a sequence-labelling problem. A semantic tree represents the information to express, while a conditional random field, or CRF, selects phrases associated with that information. The important distinction is the context available when making a choice. A local version considers the current tree branch. The authors’ global version also uses lexical, semantic and syntactic information from the accumulated generation history. This makes earlier wording relevant to later decisions, including whether to repeat a restaurant’s name, use a pronoun, add a phrase to an existing sentence, or begin another sentence.
The system operates in the domain of restaurant advice for a pedestrian seeking information about places in a city. A separate reinforcement-learning component arranges semantic attributes before surface realisation. The CRF therefore works from a structured input instead of deciding independently what the system should recommend. Its training material consists of 552 restaurant recommendations from The List. An induced grammar supplies alternative realisations, with more than 800 rules. Preparing this material requires limited but substantial human annotation: heuristics identify about 45% of the relevant semantic attributes, while the remainder are annotated manually.
The central evaluation asks whether people prefer the results when the CRF has access to the broader history. In a study involving 44 participants and 1,830 ratings, the global CRF receives higher scores than its local counterpart for naturalness, phrasing and the reported repetition-related measure. The paper describes the improvement from broader context as reaching up to 14%. It also compares the approach with a restaurant generator based on SPaRKy and with a 5-gram baseline. The global CRF performs better across the reported rating categories, although its phrasing advantage over the SPaRKy-based system is not statistically significant. These findings support the value of the broader context in this particular generation task; they do not establish that a CRF is always preferable to other generation methods.
A separate proof-of-concept explores incremental generation, where partial inputs arrive before the user’s turn is complete and may later be revised. The semantic tree supports expansion, updating and deletion, allowing the realiser to change affected material rather than regenerate everything. The authors report an average realisation time of 100ms on their stated hardware and around 50% fewer generation updates than restarting for each changed hypothesis. Their qualitative inspection finds output comparable to the non-incremental case. This is preliminary evidence of feasibility, rather than an end-to-end demonstration that users complete dialogue tasks more successfully.
Interesting ideas
Let the decision see the relevant history. A phrase can be acceptable in isolation yet awkward after the preceding material. The paper makes earlier lexical choices, semantic attributes and syntactic categories available when choosing subsequent wording. The reusable idea is to define context according to the dependency being managed, instead of according to the nearest input fragment. This applies to response generation, explanation assembly and other processes in which individually reasonable steps must form a coherent whole. The important qualification is that broader context still needs an explicit representation; merely retaining everything does not show that a decision uses it effectively.
Separate admissible outputs from preferences among them. The induced grammar specifies possible phrase expansions, while the CRF learns which alternatives fit a particular context. This division gives structure and statistical preference different jobs. A grammar can preserve the relationship between an intended semantic attribute and its available expressions, while learned weights help choose among those expressions. Elsewhere, the same design can support systems that need flexibility within a controlled space: structured reports, domain-specific explanations, or interfaces whose responses must remain tied to explicit input fields.
Treat representation changes as operations. The incremental demonstration distinguishes adding information, revising an earlier hypothesis and removing invalid material. That is more informative than treating every incoming message as an entirely new task. An application can preserve unaffected structure and focus work on the changed portion. This idea extends beyond speech to document processing, live analysis and other workflows where evidence arrives gradually. Its value depends on knowing which earlier decisions rely on the changed information, and on distinguishing material that can still be revised from material already communicated.
Move from whole-output selection to coordinated local decisions. The authors choose a sequence of phrases rather than first producing a large collection of complete utterances and then selecting one. The phrase decisions remain coordinated through the CRF’s sequence score and observation features. This offers a useful middle ground between isolated choices and expensive whole-output search. The broader lesson is to choose a decision unit that is small enough for efficient inference but large enough to carry useful linguistic structure.
Induce reusable structure from ordinary text. Restaurant reviews provide examples of how people package several properties into natural descriptions. The induction procedure replaces semantic values with variables, parses the resulting sentences and collects reusable expansions. This transforms domain text into a structured candidate inventory without requiring every expression to be written as a template. The transferable idea is not that annotation disappears: the paper still needs manual semantic identification. It is that human effort can focus on meaning distinctions while repeated surface structure is collected automatically.
Evaluate the property that motivates the architecture. The paper argues that broader context should improve cohesion, then asks people about naturalness, wording and repetition in dialogue settings. It also compares the same CRF approach under different context scopes. That combination is more informative than reporting only an aggregate score against unrelated systems. For another application, the corresponding lesson is to identify the predicted behavioural benefit, construct a comparison that changes the relevant mechanism, and measure both perceived quality and operational cost.
Keep preliminary feasibility separate from established benefit. The human-rating study and the incremental demonstration support different claims. The former tests preferences over generated utterances; the latter examines whether structured updates can be processed quickly and selectively. Neither automatically answers the other’s question. This distinction is useful whenever a system combines a new decision method with a new deployment setting. A fast implementation may still need a user study, while a preferred static output may still need evidence that its quality survives real-time revisions.
Deep dive: Conditional Random Fields for Responsive Surface Realisation using Global Features
How conditional random fields use generation history and semantic trees to produce cohesive restaurant recommendations and revise partial responses. · about 37 minutes to read
How Mova uses it
Mova is a small language system written in Rust, with explicit linguistic rules, learned parameters, structured worlds and bounded operational interfaces. The connections below distinguish mechanisms already present in Mova from proposed extensions. The status marks describe the closest match in Mova’s documented mechanisms; they do not claim that this paper has already been implemented or evaluated there. In particular, the available evidence does not establish a CRF surface realiser in Mova or any measured transfer from these experiments.
Idea: Make relevant history available to each decision. Where: Sections 3.2–3.3. Area: discourse and generation. Mova: частково є (the prag frames and world context state). Mova already retains structured information about entities, events and changing states. A proposed realisation layer could consult both that state and an explicit record of earlier wording before choosing the next expression. The distinction matters because knowing that an entity exists is different from knowing how it was just mentioned. The paper supports investigating this separation, but the effect on Mova’s output quality is unknown.
Idea: Separate admissible expressions from their ranking. Where: Sections 3.2 and 3.4. Area: syntax and statistical selection. Mova: частково є (compiled seeds, explicit rule boundaries and checked proposals). Mova could define a finite inventory of expressions for a supported answer type, then compare a transparent statistical selector with deterministic preferences over the same inventory. That would preserve a reviewable relationship between meaning and wording. Existing rule and admission mechanisms provide a related separation between what is allowed and what is preferred, but they do not establish the paper’s generation architecture.
Idea: Represent revisions as explicit operations. Where: Section 5.1 and Figure 3. Area: incremental state management. Mova: частково є (world tracks changes, while operational interfaces retain bounded outcomes). A proposed generation state could distinguish extension, replacement and removal instead of discarding the entire response whenever an input changes. This might preserve useful work during a developing request. The documented ability to update a world does not itself establish selective repair of a partially generated utterance; that additional dependency tracking would need implementation and measurement.
Idea: Coordinate phrase-sized choices through a sequence objective. Where: Section 3.2. Area: statistical inference. Mova: нове. A candidate experiment could choose phrases for a bounded class of explanations using an explicit sequence score, comparing that score with the existing style of rule-driven decisions. This is a proposed addition, not a confirmed absence across all Mova code. Why Mova: it could test whether modest statistical coordination improves fluent explanations while leaving the available phrases and their semantic roles inspectable.
Idea: Build a reusable expression inventory from parsed text. Where: Section 3.4 and Algorithm 1. Area: corpus processing and syntax. Mova: частково є (dictindex indexes existing parses, while enrichment prepares source-bound teaching proposals). Mova could collect candidate constructions around reviewed semantic attributes without admitting them directly as dictionary meanings or generation rules. Existing provenance and review boundaries are useful here: an attested expression is evidence of usage, rather than proof that it is suitable for every context. Its usefulness as a realisation inventory remains unmeasured.
Idea: Evaluate the quality predicted by the mechanism. Where: Sections 4.1–4.2. Area: evaluation. Mova: вже є (held-out checks, negative controls and traceable assessment in the school and training paths). The paper suggests a specific extension of this principle: compare a history-aware realiser with the same realiser deprived of that history, and ask about the properties history should improve. Mova’s current assessment discipline supports this kind of design, but existing school results do not answer whether generated explanations become more cohesive.
Idea: Keep feasibility evidence separate from user benefit. Where: Sections 4–5. Area: evaluation and evidence typing. Mova: вже є (the hybrid-system distinction between receipts, proofs, annotations and admitted knowledge). Mova already distinguishes different kinds of operational and learning evidence. The same discipline should apply to a proposed realiser: successful execution would establish that an operation ran, a timing result would establish performance under its conditions, and a controlled evaluation would address linguistic usefulness. None should be silently substituted for another.
Idea: Track mentions separately from world facts. Where: Section 3.3. Area: discourse and coreference. Mova: частково є (coref provides reasoned links, and world stores entities). The paper’s pronoun example suggests maintaining a generation-side mention record: which entity has been named, by which expression, and in what preceding structure. That could help choose between a name and a pronoun when explaining a world state. Existing coreference resolution interprets references in input; choosing a safe outgoing reference is a distinct task whose implementation status and quality are unknown.
Idea: Treat aggregation as a contextual choice. Where: Sections 3.1, 3.3 and 4.2. Area: sentence planning. Mova: нове. A bounded answer generator could compare expressing related facts in a shared construction with presenting them as separate sentences. The choice should preserve the facts and their evidential relationships rather than merely shorten the response. Why Mova: its structured frames and explicit explanations could supply a controlled setting for testing whether aggregation reduces repetition without obscuring who did what or why an answer follows.
Idea: Preserve the boundary between meaning selection and wording. Where: Section 3.1 and Figure 1. Area: architecture. Mova: вже є (the documented en → prag → world pipeline separates linguistic interpretation and world-based answers). The paper places attribute ordering upstream of phrase selection. For Mova, the corresponding design principle is that a stylistic preference must not change the supported answer, its uncertainty or its justification. A future realiser should receive an admitted meaning representation rather than infer a more convenient answer from the words it prefers.
Idea: Preserve uncertainty when information enters generation. Where: Sections 3.1 and 5.1. Area: uncertainty representation. Mova: частково є (explicit gaps, routing decisions and unsupported-request outcomes). The restaurant architecture carries confidence in attribute hypotheses before wording is chosen. Mova could similarly distinguish a confirmed world fact, a tentative interpretation and a missing referent in the input to a proposed realiser. Existing gap reporting gives a related boundary, but it does not establish probabilistic dialogue-state handling or calibrated generation choices.
Idea: Distinguish a complete phrase from complete knowledge. Where: Sections 3.3 and 5.1. Area: pragmatics. Mova: частково є (configured native planning retains failures such as missing_context). A system may be able to produce a grammatical phrase from a partial input while still lacking enough information to act or answer. Mova should retain that distinction if it experiments with incremental wording. A fluent continuation must not erase the reason that a request remains unresolved. This is consistent with its existing operational boundaries, but an incremental realisation policy is unverified.
Idea: Invalidate wording when its supporting meaning changes. Where: Section 5.1 and Figure 3. Area: dependency tracking. Mova: частково є (world changes and source-bound observations retain explicit evidence). The paper deletes obsolete expansions before generating replacements. A Mova extension could associate each response fragment with the facts or interpretations that support it, making later invalidation selective and explainable. Current provenance mechanisms are relevant foundations; the evidence does not establish a complete dependency structure between changing inputs and already prepared response fragments.
Idea: Distinguish prepared text from delivered text. Where: Section 5.1 and the correction example. Area: operational dialogue. Mova: нове. A proposed interactive realiser would need an explicit distinction between wording that is still editable and wording already sent to a user. The paper’s interruption scenario motivates this requirement, although it does not provide a full policy for every delivery state. Why Mova: preserving that distinction would help its bounded operational interfaces report corrections honestly instead of treating an internal deletion as if earlier communication had never occurred.
Idea: Learn reusable forms without turning narrative content into facts. Where: Section 3.4. Area: data admission. Mova: вже є (the enrichment boundary keeps fiction from becoming factual knowledge without independent evidence). Grammar induction extracts ways of expressing attributes rather than establishing the truth of every restaurant description. Mova can borrow this distinction when mining prose: a construction may be useful linguistic evidence even when the sentence’s proposition is not admitted into a world or knowledge graph. Source rights and provenance would still remain attached to derived material.
Idea: Make incomplete automation visible. Where: Section 3.4. Area: annotation and workflow design. Mova: вже є (dictindex discovery reports missing or pending coverage, and enrichment separates proposals from admission). The paper states which semantic attributes heuristics identify and where manual annotation remains necessary. A comparable Mova pipeline should expose unresolved mappings rather than label an entire collection as processed. This reinforces its existing rule that a partial pass must not count as complete consumption of a source.
Idea: Reuse expansions while retaining their semantic conditions. Where: Algorithm 1. Area: grammar storage. Mova: частково є (dictindex retains structural features and source-specific evidence). The induction procedure recognises an existing expansion instead of repeatedly adding it. For Mova, a proposed construction store could similarly distinguish a repeated surface pattern from a genuinely different semantic or syntactic condition. Existing indexing can supply witnesses, but a generation grammar would need its own compatibility and admission checks; occurrence frequency alone would not establish correctness.
Idea: Combine lexical, syntactic and semantic evidence explicitly. Where: Section 3.3. Area: feature engineering. Mova: вже є (en supplies linguistic structure, prag reads roles, and global supplies declared knowledge). The paper is a useful example of giving different evidence types distinct features instead of reducing the decision to word overlap. Mova already combines these kinds of structure for interpretation. A proposed generation experiment should preserve their identities so that failures can be traced to wording history, structural analysis or semantic selection.
Idea: Keep context scope bounded and declared. Where: Section 5.1. Area: computational cost. Mova: вже є (bounded native capabilities, explicit recursive interfaces and capped reading workflows). The authors recognise that the restaurant context is limited and that longer text would require further restrictions. Mova can apply the same discipline to a proposed history-aware generator by declaring what material it considers and what it discards. Existing execution bounds support this principle, but no universal cost bound for discourse-aware generation follows from them.
Idea: Compare against a strong contextual baseline. Where: Sections 4–4.2. Area: experimental design. Mova: вже є (paired comparisons and negative controls are part of the documented measurement principles). The SPaRKy-based baseline matters because it also has context-sensitive features, making it a more demanding comparison than the local baseline alone. A Mova evaluation should likewise include the strongest relevant existing rule or heuristic system, rather than demonstrate improvement only over an intentionally restricted alternative.
Idea: Present generated language in its interaction context. Where: Section 4.1 and Table 2. Area: human evaluation. Mova: нове. A proposed study of Mova explanations could show the preceding request and relevant conversational material alongside alternative responses. This would make references, repetition and appropriateness assessable in the setting where they occur. Why Mova: its traceable world and request state could support controlled contextual examples, while the resulting judgments would measure a quality that isolated sentence inspection can miss.
Idea: Counterbalance the order of compared responses. Where: Section 4.1. Area: statistics and study design. Mova: нове. Human comparisons of Mova wording could vary the presentation order so that a preferred position is less easily confused with a preferred system. The available Mova evidence does not establish such a human-rating procedure. Why Mova: this is a small, concrete control that would make a proposed language-quality study easier to interpret.
Idea: Report quality dimensions separately. Where: Sections 4.1–4.2 and Table 3. Area: evaluation. Mova: частково є (reading analyses distinguish different failure causes, and assessment retains reasons). Mova could evaluate factual fidelity, clarity, reference choice and repetition separately rather than hide tradeoffs in a single preference score. The paper’s differing significance results illustrate why separate dimensions matter. Any new questionnaire would also need a clear direction for every scale, avoiding ambiguity over whether a higher repetition-related score is favourable.
Idea: Count revision work as well as latency. Where: Section 5.2. Area: efficiency measurement. Mova: частково є (job tooling and prospective-cost tooling distinguish estimates from measured runs). A proposed incremental workflow could record both time spent and the amount of work invalidated by an update. The paper’s update comparison motivates measuring retained work directly. Existing execution measurements are relevant, but they do not establish savings for incremental wording or explain how those savings would scale across Mova tasks.
Idea: Test whether training text matches the intended interaction. Where: Section 4.2. Area: corpus analysis. Mova: частково є (dictindex retains declared source domains and enrichment remains source-bound). The paper raises the possibility that professional restaurant reviews are less well matched to dialogue generation than text collected specifically for that purpose. Mova could similarly separate evidence that a construction occurs in a corpus from evidence that it suits a concise answer or operational report. Any benefit from domain-matched material would need a controlled comparison.
Idea: Keep modular realisation replaceable. Where: Figure 1 and Section 6. Area: system architecture. Mova: частково є (explicit interfaces separate language, combinatorial and operational responsibilities). The authors’ architecture and proposed comparisons suggest treating phrase selection as a component whose alternatives can be tested against the same semantic inputs. For Mova, that would allow a rule selector and a statistical selector to be compared without changing the interpretation or answer underneath them. No such interchangeable realisation experiment is established by the current evidence.
The problem and its context
The paper concerns text generation inside dialogue systems, where an answer must fit an ongoing exchange. The intended meaning may already be available as structured information. The remaining problem is to decide how to say it: which phrases to use, how to connect them, and how much information to place in a sentence. This is surface realisation, although the authors deliberately allow some decisions typically associated with sentence planning to be handled in the same mechanism.
Cohesion is central to their motivation. A sequence of sentences can be grammatically acceptable while still sounding disconnected. Repeating an entity’s name unnecessarily, presenting every property in an identical construction, or failing to connect a new phrase to preceding material can make an answer feel mechanical. The authors describe several kinds of linguistic resources that help tie material together, including reference, omission, substitution and connecting expressions. Their common requirement is access to context beyond the immediate piece being generated.
In a static document, relevant context may extend across a long passage. A spoken interaction adds a different complication: the input itself may change while generation is underway. The dialogue manager may send information early because waiting until every interpretation is settled would delay the response. Early information can be incomplete because the user is still speaking, or mistaken because speech recognition has not yet resolved the intended words. A useful realiser must therefore cope with both a growing output history and a revisable input.
Earlier approaches as the authors describe them
The closest predecessor in the paper is the work of Lu and colleagues, who also use CRFs to generate language from semantic trees. Their automatic evaluation supports modelling dependencies over a wider range than a narrow local mechanism. Dethlefs and colleagues identify a further step: extending the relevant context beyond the current utterance and allowing the result to change when input is updated. Their contribution is therefore not simply introducing CRFs into generation. It is adapting this style of structured phrase selection to a broader generation history and a responsive dialogue setting.
The paper also situates its approach among graphical methods based on hidden Markov structures, Bayesian networks and dynamic Bayesian networks. In the authors’ account, these methods provide different ways to relate semantic input and linguistic output. They highlight the appeal of an undirected representation when the appropriate direction of influence among observations is unclear. That motivation should be read as an architectural argument, rather than as an experimental comparison with every graphical alternative mentioned.
Mairesse and colleagues provide a particularly relevant restaurant-generation comparison. Their system uses active learning during interaction, requesting a new description when it is uncertain how to express a concept. This tackles a problem of acquiring useful language for the task. The present paper takes a different route: it learns from an existing collection of restaurant recommendations and uses the resulting phrase inventory and context-sensitive scoring at generation time.
An earlier n-gram approach by Oh and Rudnicky generates alternatives and scores them with penalties. Those penalties discourage inappropriate length, repetition and mismatches between the requested information and the produced utterance. The authors recognise its execution speed but argue that its context representation is inadequate for dependencies spanning more distant material. Their own n-gram baseline belongs to this general family, although the comparison implementation has its own stated constraints.
SPaRKy supplies the stronger contextual alternative. It first creates possible sentence realisations and then ranks them using a learned relationship between sentence plans and human ratings. Its features distinguish nearby tree information from information about the utterance more broadly. The authors therefore do not present context sensitivity as unique to their system. Instead, they argue that their own history representation reaches beyond the utterance scope available to that baseline and that its inference is suitable for rapid response.
Why incremental generation changes the requirements
The paper’s discussion of incremental processing draws on work including A General, Abstract Model of Incremental Dialogue Processing. The essential idea is to start processing before a complete user turn is available and to revise hypotheses as more evidence arrives. The reference list identifies the cited work under an earlier date than the linked entry, so the architectural connection is more useful here than treating those entries as identical bibliographic records.
For a generator, incremental processing changes the unit of work. Rather than receiving a finished dialogue act and returning a finished sentence, it may receive fragments that later combine, conflict or disappear. The surface realiser must connect output generated from those fragments without assuming that each fragment deserves a separate sentence. It must also avoid treating an early interpretation as permanently settled.
The authors describe earlier incremental generation as often relying on pre-defined templates. They also discuss a constraint-based approach associated with SPUD, which can adapt output by pausing, repeating or rephrasing when a listener has difficulty. They recognise this as progress toward greater flexibility, while pointing to the human work involved in specifying constraints and the risk of restricting cohesion to nearby material. Their own proposal aims to learn phrase preferences while preserving a structured account of the changing meaning.
The method, step by step
The method has two connected preparations: constructing a space of available expressions and learning how to choose within it. At runtime, a semantic tree supplies the content and structure, while the CRF assigns a sequence of phrases. The tree is also the object that changes in the incremental demonstration.
From restaurant descriptions to responsive wording
The steps in order.
Establishing what the system should express
The domain uses 10 semantic slots. These cover the venue’s identity and kind, its location and contact details, and descriptive properties such as food, quality, price and specialities. More specifically, the inventory includes name, venue type, address, area, phone number, postcode, cuisine, quality, price range and signature offering. An input can require different combinations of these attributes.
The surface realiser does not independently decide which restaurant is appropriate. It receives a semantic form created by an earlier component. In the authors’ architecture, a reinforcement-learning agent orders attributes according to dialogue confidence. This reflects the possibility that the system is uncertain about the user’s preferences because the speech input has been interpreted imperfectly.
The paper illustrates that uncertainty with alternative cuisine hypotheses. An Indian-food value can carry confidence 0.6, while an Italian-food value carries 0.4. These are input-side alternatives, rather than scores assigned to competing phrases by the realiser. The distinction matters: selecting a confident-sounding expression is not the same operation as establishing which cuisine the user intended.
For the surface-realisation study, the semantic form is assumed to exist. The ordering component is part of the surrounding architecture, but the paper’s main technical and empirical attention falls on expressing the resulting tree. This helps locate the contribution. It is a method for choosing linguistic realisations under structured input, not a complete learned policy for every dialogue decision.
Representing meaning as a tree
The authors describe the input through context-free grammar structure. A tree contains semantic categories and available phrase expansions, with a distinguished start symbol.
G = {S, T, N, H}
Here, G names the representation being described. S is the start symbol, generally associated with the root. T is the collection of terminal symbols, which correspond to phrases. N contains non-terminal symbols associated with semantic categories. H contains the production rules that permit expansions. The paper presents these components as the defining tuple for its context-free representation; this notation should not be mistaken for a separate learned probability distribution.
A production rule describes how a semantic category can be expanded.
n → α
The symbol n is a non-terminal from N. The symbol α denotes the terminal or non-terminal material available in an expansion. In practical terms, a branch can offer several ways of expressing a required attribute or combination of attributes. The CRF helps select among those permitted alternatives.
Each tree node carries semantic information from the input and a syntactic parse category. Those annotations provide a bridge between intended content and linguistic form. A name-bearing phrase, for example, can be recognised as expressing the venue’s identity while also having a syntactic category relevant to the surrounding construction.
The tree is not simply a completed sentence parse that the system reads aloud. It describes choices available during generation. Its semantic labels identify what must be communicated, and its expansions provide candidate linguistic material. This lets the same intended information support different forms according to what has already been generated.
Learning phrase choices with a CRF
The sequence to be labelled consists of semantic input positions and their observations. The labels are phrases that express the relevant information. A linear-chain CRF assigns a conditional probability to a phrase sequence given the observations.
P(y | x) = (1 / Z(x)) ∏ₜ₌₁ᵀ exp(∑ₖ₌₁ᴷ θₖ Φₖ(yₜ, yₜ₋₁, xₜ))
P(y | x) is the probability of an output phrase sequence y given observations x. The sequence contains labels such as yₜ, the phrase selected at position t. The preceding label is yₜ₋₁. T is the sequence length in this equation, distinct from the terminal-symbol collection named in the grammar notation. K is the number of feature functions. Each Φₖ measures some property of a label transition and its observations, and θₖ is that feature’s learned weight. exp converts the weighted feature score into a positive quantity. Z(x) normalises over the possible label sequences so that their probabilities add to one.
The paper’s example of a feature function is deliberately concrete: a particular transition between phrases may activate the feature, giving it a value of 1.0, while other transitions receive 0.0. Learning then determines how strongly that feature should affect the relative preference for sequences. The method is not restricted to that example; its observation features also encode semantic and syntactic information.
A crucial distinction is between dependencies among output labels and the scope of the observed information. The displayed expression links a label with its predecessor. Its observation features can nevertheless represent a much wider generation context. Therefore, calling the approach a linear chain does not mean that the only available evidence is the immediately preceding word or phrase.
The authors estimate the feature weights by maximising conditional likelihood on the training phrase sequences, using gradient ascent. They use Mallet for parameter estimation and inference. The paper does not supply a full optimisation configuration, so it would be unwarranted to infer particular stopping rules, regularisation settings or search budgets beyond what it states.
At prediction time, the objective is to select the most probable available sequence.
y* = arg maxᵧ P(y | x)
y* is the selected phrase sequence. arg maxᵧ means choosing the sequence y that gives the largest conditional probability for the given observations. The authors use the Viterbi algorithm to perform this decoding. “Best” here therefore means highest-scoring under the learned CRF and its candidate space, not an unrestricted guarantee of the best possible wording.
Defining the context features
The feature inventory combines words, semantic labels and syntactic categories. Lexical observations come from parent and sibling material. Semantic observations identify the expansion and related tree nodes. Parse categories likewise describe the expansion and its structural surroundings. The Stanford parser supplies the syntactic categories used in preparing the trees.
The global condition accumulates this information across the generation history. Early in a response, the available history is small. Once the venue has been named and described, later decisions can use those earlier words, semantic attributes and categories. A subsequent expression of location can therefore be selected with knowledge of the preceding description.
This offers a way to model coreference in generated text. If the restaurant’s identity has already been introduced, a later phrase may use a pronoun instead of repeating the name. The claim is about learned preference under available context: the architecture makes the earlier mention visible, and the training can favour a corresponding continuation. The paper does not provide a separate pronoun-resolution evaluation.
The same mechanism can influence packaging. A property might be expressed through an added phrase or through another sentence. The authors treat such decisions as part of surface realisation, although they note that these are frequently classified as sentence planning. Their method therefore covers more than replacing a semantic slot with a fixed string.
The local comparison restricts the features to the current branch. That restriction is important because it leaves the general CRF framework in place while reducing the evidence it can use. The comparison consequently targets the value of context scope more directly than a comparison between entirely unrelated architectures would.
Inducing the candidate grammar
The training source contains 552 restaurant recommendations from The List. These descriptions were written as restaurant reviews, rather than collected specifically as dialogue responses. They provide examples of natural attribute combinations, but the difference between review prose and conversational wording later becomes relevant to the interpretation of results.
The induction procedure begins by finding semantic attributes in each description and replacing their concrete values with variables. Cuisine names, location descriptions and prices are among the kinds of information that can be recognised heuristically. The paper reports automatic identification for about 45% of the relevant attributes. Manual annotation handles the rest, including difficult cases such as venue names and evaluative descriptions.
The next step parses the modified sentences and derives expansions from their constituent structure. Non-terminal names reflect the semantic attributes expressed by their expansions, and associated parse categories retain syntactic information. A construction can therefore be reused with different attribute values while preserving the relationship between its meaning and form.
The algorithm traverses each parse from the top down, using depth-first order. An expansion already present is left unchanged. A new expansion for an existing non-terminal is added to that non-terminal’s alternatives. A previously unseen non-terminal receives a new rule. This procedure builds the grammar incrementally across the collection rather than storing every description as an unrelated template.
The resulting inventory contains more than 800 rules. That figure describes the available grammar, not the number of output sentences or a measure of linguistic coverage. The grammar determines the alternatives the CRF can consider; scoring cannot recover an expression that never enters the permitted space.
Revising an input during generation
The incremental application uses the same semantic-tree foundation. Partial dialogue acts can add nodes before a full user request has been settled. Some nodes represent a single attribute, while others group attributes that will be decomposed later. The currently active portion of the tree is expanded into phrases using the available context.
When new information agrees with the current interpretation, generation can continue through expansion. When it conflicts, the corresponding hypothesis is updated and obsolete material is deleted. Replacement wording is then generated from the revised tree. The important operational property is that a change can be localised to affected structure instead of requiring every earlier decision to be repeated.
The dialogue example includes a mistaken cuisine interpretation and a user interruption. Its role is to demonstrate the kinds of changes the architecture supports. It is not evidence that the realiser itself detects the interruption or corrects speech recognition. Those events are communicated through the dialogue manager, which remains responsible for its own actions and hypotheses.
Experiments and results
The paper separates its main human-rating experiment from its exploratory incremental demonstration. The rating experiment tests perceived output quality in dialogue context. The incremental study reports execution behaviour and a qualitative quality comparison. These are complementary forms of evidence, with different strengths.
Systems and human judgments
The main comparison includes the global CRF, the local CRF, CLASSiC and the n-gram baseline. CLASSiC is the restaurant-recommendation system associated with Rieser and colleagues and uses SPaRKy-derived generation. The paper limits this comparison to its recommendation outputs instead of including its other presentation strategies.
The n-gram baseline uses a 5-gram approach. Its generation procedure selects likely slot realisations while excluding repetition and requiring the specified slot values. It therefore has explicit safeguards for content coverage and repeated material. The authors still characterise its context as local, distinguishing these safeguards from the ability to condition phrase choice on the wider history.
Participants see a portion of an actual human–system interaction from the CLASSiC evaluation, with alternative versions of an utterance inserted into that context. Each presented comparison draws on two of the systems, and the order of alternatives is counterbalanced. This makes the evaluation more relevant to discourse fit than an assessment of disconnected sentences would be.
The study recruits fluent English speakers from the United States through CrowdFlower. There are 44 participants, who provide 1,830 ratings across the systems. The questionnaire uses a 5-point Likert scale, with 5 indicating strong agreement and 1 strong disagreement. Its questions address whether an utterance sounds natural, whether its wording is good, and whether it is repetitive.
Restaurant dialogue outputs rated for naturalness
The global CRF receives the highest naturalness rating among the compared systems.
The numbers
| System or setting | Mean Likert rating |
|---|---|
| n-grams | 3.01 |
| CRF local | 3.10 |
| CLASSiC | 3.53 |
| CRF global (this paper) | 3.65 |
The authors use a one-sided Mann–Whitney U-test. For the comparisons between the global CRF and either the local CRF or the n-gram baseline, they report significance across the categories at p < 0.001. This supports the central hypothesis that the richer context improves the assessed output under this setup.
CLASSiC is the stronger competitor. The global CRF’s naturalness advantage over it is significant at p < 0.05. The distinction is useful: outperforming a restricted local baseline supports the role of context, while outperforming a contextual rank-and-boost approach addresses the competitiveness of the broader method.
Restaurant dialogue outputs rated for phrasing
The global CRF leads numerically, while its phrasing comparison with CLASSiC is not statistically significant.
The numbers
| System or setting | Mean Likert rating |
|---|---|
| n-grams | 3.09 |
| CRF local | 3.19 |
| CLASSiC | 3.59 |
| CRF global (this paper) | 3.64 |
For phrasing against CLASSiC, the paper reports p < 0.16 and does not treat the difference as significant. It would therefore be misleading to describe every comparison with that system as a demonstrated improvement. The numerical ordering favours the global CRF, but the statistical conclusion differs by category.
Interpreting the repetition results
The repetition-related column gives 3.65 for the global CRF, 3.13 for the local CRF, 3.48 for CLASSiC and 3.32 for the n-gram baseline. The authors interpret this pattern as favouring the global CRF and report a significant comparison with CLASSiC at p < 0.005.
There is, however, a reporting ambiguity. The questionnaire statement asks whether an utterance is repetitive, and the scale description makes higher values indicate greater agreement. Taken literally, that direction would conflict with the authors’ interpretation of the reported column. The paper does not explain whether the repetition responses were reverse-scored before presentation.
The appropriate reading is to preserve both parts of the report: the authors conclude that the global CRF is less repetitive, and the table contains the stated scores, but the scale transformation is not documented. This does not erase the independently interpretable naturalness and phrasing results. It does limit how confidently the repetition numbers can be read on their own.
Qualitative output differences
The authors observe that CLASSiC often produces longer responses with more separate sentences. The global CRF more frequently combines properties within a shared sentence. Their explanation is that the broader history permits phrase choices to respond to material beyond the current utterance, encouraging more integrated presentation.
That explanation is plausible within the architecture, but the analysis is qualitative. The paper does not report a dedicated aggregation metric or a controlled experiment holding sentence count constant. It therefore shows a characteristic difference in the inspected outputs instead of proving that shorter or more aggregated wording caused the rating advantage.
The n-gram examples illustrate another problem: a response can express the required facts through a series of short statements that remain monotonous or weakly connected. Avoiding exact repetition at sampling time is not equivalent to modelling discourse cohesion. The comparison is useful because it separates a simple repetition constraint from richer contextual selection.
Comparisons with earlier reported studies
The authors also discuss results reported by Rieser and colleagues and by Mairesse and colleagues. These are contextual comparisons across studies, rather than additional conditions in the same rating experiment.
For phrasing, Rieser and colleagues report 3.58 after rescaling from a 1–6 scale. The paper compares that with its own 3.64 and finds no significant difference. This is consistent with the close phrasing results for CLASSiC in the direct comparison.
For naturalness, Mairesse and colleagues report 4.05, compared with 3.65 for the global CRF. The paper reports that difference as significant at p<0.05. The authors suggest a possible explanation: the earlier system used descriptions elicited specifically for its target task, whereas their own training material came from professional reviews. They do not experimentally isolate that explanation.
Incremental processing results
The incremental proof-of-concept reports average realisation time of 100ms on a MacBook with an Intel Core 2.6 Duo and 8GB of RAM. This is a hardware-specific average, not a worst-case latency guarantee or a measurement of complete conversational response time.
The authors also report around 50% fewer generation updates than a setting that starts again after every changed input hypothesis. The stated reason is that changes act on partial dialogue acts and their corresponding tree material. Their qualitative inspection finds generation quality comparable to the non-incremental condition, but no separate human-rating experiment is reported for that comparison.
What the ablations show
The main controlled comparison changes context scope while retaining the CRF approach. It is the paper’s clearest ablation-like test: the local condition sees the current branch, while the global condition receives the accumulated generation context. Because the broad method remains the same, the resulting preference supports the value of the added contextual information more directly than the other baseline comparisons do.
This comparison does not identify which part of the added context is decisive. Lexical history, semantic history and syntactic history are introduced together in the broader condition. The paper does not separately remove each feature family. It therefore cannot tell us whether earlier words contribute more than semantic labels, whether parse categories are indispensable, or whether a smaller subset would achieve similar quality.
The result also does not establish that every decision requires the complete available history. Some choices may depend on a recent mention, others on an earlier sentence, and others on the structure of the current expansion. The global condition makes these observations accessible, but the reported evaluation does not break improvements down by dependency distance or phenomenon.
The CLASSiC comparison answers a different question. Since that system uses broader utterance features, its results show that the experiment is not merely comparing context sensitivity with no context sensitivity. However, several architectural aspects differ at once: candidate production, ranking strategy, context scope and output packaging. Its comparison cannot isolate the causal contribution of any individual CRF feature.
Similarly, the n-gram condition provides evidence against a practical local alternative but is not a clean feature ablation. The phrase-selection mechanism and its context assumptions differ from those of the CRF. The authors’ examples make the limitations understandable, yet the evaluation does not establish that every possible n-gram implementation would behave identically.
The qualitative comparison between aggregated and separately stated attributes offers a candidate explanation for the human judgments. More integrated wording may sound smoother and less repetitive. But the paper does not independently manipulate aggregation while holding other choices fixed. That leaves aggregation as an observed tendency associated with the global CRF, not a separately established cause.
The incremental study offers an operational comparison between selective updating and restarting generation. It supports the usefulness of maintaining a revisable structure. It does not isolate the contribution of global linguistic features to update savings, because selective revision and context-aware wording are distinct mechanisms. A generator could retain structure without having the same phrase preferences, or use broad context while still regenerating more than necessary.
Finally, the paper does not ablate the induced grammar, the amount of manual annotation or the upstream attribute ordering. These components shape the available inputs and expressions, but their individual effects remain unknown. The experiments establish a useful combination and a meaningful context comparison, instead of a complete causal account of every architectural choice.
Limitations
Limits the authors acknowledge
The authors describe the incremental application as a proof-of-concept and its results as preliminary. Their planned next step is a task-based evaluation within a complete spoken dialogue system, comparing incremental and non-incremental operation. That future direction is important because the current evidence does not establish how the approach affects task success during live conversation.
They also propose assessing understandability and informativeness. The existing questionnaire focuses on naturalness, phrasing and repetition, which are relevant to cohesion but do not exhaust communicative quality. An utterance can sound smooth while omitting useful information, or be informative while requiring more effort to understand. The paper does not claim that its current rating study resolves those dimensions.
Portability remains unfinished. Though grammar induction reduces the need to write every expression by hand, semantic annotation is only partly automated. The authors identify unsupervised labelling as future work. Their method therefore offers a route towards reduced development effort, rather than evidence of effortless transfer to another domain.
The authors also recognise that broader contexts create computational pressure. Their application has a maximum context of 9 preceding semantic attributes when all 10 domain attributes are expressed. They suggest that longer text or paragraph generation would likely require restricting context. The restaurant experiment consequently does not demonstrate unrestricted discourse-length processing.
Other future directions include comparing sequence-labelling algorithms, considering segmented CRFs and moving to more demanding generation tasks such as summarisation. These are proposed investigations. Their appearance in the conclusion should not be read as evidence that those alternatives were implemented or evaluated in this work.
Limits visible in the experimental setup
The evidence comes from restaurant recommendations. The semantic inventory is bounded, and the phrase grammar is induced from a specific collection of descriptions. That is a useful setting for testing context-sensitive selection, but it differs from unrestricted explanation, open-domain dialogue or long-form writing. The study does not establish how well the same representation would cover those tasks.
The training corpus contains 552 recommendations, and the paper describes the induced rule inventory, but it does not provide a fully specified training, development and test partition for the CRF in the account of the method. A reader can understand the learning procedure without being able to reconstruct every experimental boundary. This limits detailed reproducibility claims.
The phrase inventory is another substantive constraint. The CRF selects among expressions admitted by the grammar. If a needed construction is absent, contextual scoring cannot invent it. Similarly, a semantic identification or parsing error during induction can affect the available rules. The reported human study does not separately quantify those sources of failure.
The human-rating study has a defined participant population: fluent English speakers recruited from the United States. Its judgments provide evidence about those participants and the displayed dialogue materials. They do not establish that preferences are identical across dialects, languages, interaction styles or accessibility needs.
The statistical reporting gives mean ratings and significance tests, but the account does not detail every dependency among ratings. Participants contribute multiple judgments, and utterance variants appear within dialogue contexts. Without further analysis of that structure, the reported tests should be interpreted as the authors’ stated evidence rather than as a complete account of all possible sources of variation.
The repetition scale has the directional ambiguity described above. A reverse transformation may explain the presentation, but the paper does not state one. A careful account must therefore distinguish the authors’ qualitative conclusion from an independently transparent interpretation of that column.
What broad context does and does not imply
The paper sometimes motivates CRFs through freedom from restrictive independence assumptions. The displayed linear-chain formulation nevertheless has a defined factorisation involving neighbouring labels. Its flexibility concerns the observation features that can be included without requiring a generative probability account of those observations. It should not be understood as an unrestricted dependency structure among every output decision.
There is also a difference between using a generation history and proving that all choices are globally optimal in a broader linguistic sense. Viterbi decoding finds the highest-scoring sequence under the specified representation and candidate set. It does not establish optimality against every possible sentence, every possible discourse strategy or every interpretation of human preference.
The description of observations includes lexical material already generated. This is intuitively appropriate for responsive selection, but it leaves some implementation detail implicit: how changing history-dependent observations and alternative phrase sequences are coordinated through the entire runtime process is not fully developed in the mathematical presentation. The paper explains the architecture and gives examples without supplying a complete formal account of every update case.
The incremental demonstration likewise does not solve every consequence of speaking before interpretation is settled. Deleting an internal tree node is straightforward compared with repairing something a user has already heard. The examples include interruption and correction, but the results do not evaluate a comprehensive policy for deciding what to retract, repeat or explicitly acknowledge after delivery.
Finally, the latency and update figures have limited scope. The reported average time does not isolate recognition, dialogue management, attribute ordering, speech synthesis and delivery as separate end-to-end costs. The update reduction lacks a detailed distribution across different revision types. These results support the feasibility of the presented implementation, while leaving broader performance and robustness questions open.
What came after
The later citing works identify continued interest in trainable generation for spoken interaction. The available citation information supports that connection, but it does not establish that either later system adopted this paper’s global feature inventory, grammar-induction procedure or incremental tree operations. Their relationship should therefore be described at the level the evidence permits.
Stochastic Language Generation in Dialogue using Recurrent Neural Networks with Convolutional Sentence Reranking, from 2015, addresses dialogue generation through recurrent neural networks and convolutional sentence reranking, as its title specifies. It cites the CRF paper and belongs to the same broader problem of learning how to express dialogue content. Its named approach differs from the earlier paper’s phrase labelling over semantic trees. The citation record alone does not show which specific contextual or incremental mechanism it reused, nor does it supply a direct performance comparison.
Sequence-to-Sequence Generation for Spoken Dialogue via Deep Syntax Trees and Strings, from 2016, places sequence-to-sequence generation alongside deep syntactic trees and string output. That stated scope connects naturally with the earlier paper’s interest in the relationship between structured meaning, linguistic structure and realised language. It also indicates a different technical framing. The available information does not establish that the later work preserves the CRF objective, the same training procedure or selective revision of semantic-tree branches.
These later citations are evidence that the paper remained part of the discussion around learned dialogue generation. They are not evidence that all subsequent methods converged on its architecture. The more durable research question is how to connect structured content, contextual appropriateness and efficient production without confusing their separate roles.
The original paper leaves a particularly useful experimental pattern for that discussion. It compares broader and narrower context within a shared approach, tests perceived quality in dialogue surroundings, and treats incremental execution as a separate claim requiring further evidence. Its strongest established finding is that the broader generation history improves the assessed restaurant outputs under the reported conditions. Its incremental application shows a promising way to preserve and revise structured work, while leaving full conversational evaluation to the next stage.
Cite
Cite as Nina Dethlefs, Helen Hastie, Heriberto Cuayáhuitl and Oliver Lemon. 2013. Conditional Random Fields for Responsive Surface Realisation using Global Features. Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{dethlefs2013conditional,
title = {{Conditional Random Fields for Responsive Surface Realisation using Global Features}},
author = {Nina Dethlefs, Helen Hastie, Heriberto Cuayáhuitl and Oliver Lemon},
booktitle = {Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2013},
url = {https://aclanthology.org/P13-1123/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dethlefs-2013-conditional-random-fields-responsive-surface/