Situated Dialogue Learning through Procedural Environment Generation
Paper · 2022 · Prithviraj Ammanabrolu, Renee Jia and Mark Riedl
Summary
An agent can learn how to finish a familiar quest and still struggle when the same kind of goal comes up in a different setting. This paper studies that gap in LIGHT, a fantasy text adventure where an agent reads descriptions, issues commands, and talks to another character. A quest gives the agent a persona and a motivation. To acquire an object, for example, the agent might pick it up or persuade its partner to hand it over. Success depends on what the situation makes possible and how the agent uses both words and actions. That makes LIGHT a test of how well goal-directed dialogue systems adapt when the situation changes.
The authors use the existing game data to build new training quests. Their pipeline picks a character and a starting location, writes a motivation and a sequence of game commands, and retrieves characters, places, and objects to make the quest fit its world. They classify each quest by the first verb in its motivation. Some objectives occur frequently in the original data, while others are scarce. The training schedule begins with the original pool and moves through pools in which the counts of common and rare objectives become more nearly equal. The agents learn through reinforcement learning, using rewards for achieving a game objective and producing speech suited to the situation.
The authors evaluate the agents on unseen LIGHT-Quests scenarios, allowing a single episode per quest without further training. With an encoder that had already received task-related pretraining, the rate of achieving both the action and the speech goal in the same episode was 0.303 without a curriculum, 0.344 with a schedule that repeated existing rare quests, and 0.373 with the procedural curriculum. The procedurally generated schedule also led on this combined measure for agents trained from scratch. Training exclusively on a more balanced pool gave less consistent gains, and curricula built from randomly assembled worlds performed substantially worse at full randomness.
The comparisons separate several aspects of training that can be easy to confuse. Repeating a rare objective changes how often the agent sees it. Generating new quests changes the situations in which it encounters that objective. Ordering the pools changes when the agent meets each mix of situations. The results favor combining a gradual schedule with environments assembled to support their quests. They establish improvement on unseen scenarios within LIGHT, where the game engine checks the action goal and a scorer trained on human examples helps define the speech goal.
Deep dive: Situated Dialogue Learning through Procedural Environment Generation
Situated Dialogue Learning trains fantasy game agents to act and speak on new quests by generating worlds and gradually increasing exposure to rare goals. · about 35 minutes to read
The problem and its context
Why learning a quest can teach too little
A text adventure uses language both to describe a world and to let the player change it. A room description says what is visible. A command can move the character or change who holds an object. A line of dialogue can give a partner a reason to act. To play effectively, an agent has to connect those uses of language across turns. It must interpret the current description, choose a response, and use what happens next to decide what to do.
A quest adds a reason to act. Two characters in the same room can have different motivations and therefore have reason to say or do different things. In LIGHT, a persona gives the character a background, and the motivation gives it an objective for the episode. The agent can read information about the current situation, but it has to act on that limited view. It sees descriptions and conversational turns as play unfolds. The complete state of the game sits behind those observations.
The gap the authors want to close appears when the agent is tested on a quest it has never played. Successful behavior during training can depend on details that recur there. A particular character may frequently start near an object, or a particular line of dialogue may regularly precede a useful command. An agent that comes to depend on such sequences can earn reward in training and then lose its bearings when a new quest rearranges the details. In the paper's terminology, the sequence of decisions and observations involved in playing an episode is a trajectory. Memorizing familiar trajectories is one proposed explanation for weak transfer to new episodes.
The paper locates that problem in the distribution of training experience. LIGHT-Quests contains many motivations involving obtaining an object or interacting with another character by hitting or hugging them. Other forms of objective occur less often. The common cases make up the head of the distribution, and the less frequent cases form its tail. With fewer examples of a rare objective, there are also fewer opportunities to encounter it under varied circumstances. The authors hypothesize that an agent can learn recurring patterns for the head while depending on particular trajectories for the tail.
This is a question about what experience adds to language learning. A string that looks plausible in a transcript may still contribute little to pursuing a goal. Conversely, the value of a simple utterance can depend heavily on who hears it and what that person can do next. The paper draws on the view that interaction and environmental grounding matter for learning language. LIGHT makes that view testable in a controlled setting because conversational choices can be followed by game events, and the game can check whether the desired change occurred. The authors connect this motivation to Experience Grounds Language.
The strands of earlier work
The paper describes earlier text-game research around several difficulties. Partial observability makes it useful to represent what the agent knows or believes about the world. Text interfaces also allow many possible commands or utterances, which makes the decision space large even when a particular scene is small. Work on commonsense priors tries to help the agent connect what the game says with what may plausibly happen next. A player told that an object belongs to another character, for example, must consider what that fact means for the actions available in the scene. Text games provide a way to study this kind of reasoning.
LIGHT already supplied fantasy settings, personas, objects, and interactions. The quest extension added motivations and goals, together with examples of people acting and speaking while pursuing them. Earlier work cited by the authors used interactive reinforcement learning in text games and provided evidence that it could learn goal-directed behavior with fewer samples than static supervised learning. The present paper takes up the remaining transfer problem. It asks what training situations the agent should encounter when seeing more interactions alone may still leave it rehearsing a narrow set of situations. The underlying setting comes from Learning to Speak and Act in a Fantasy Text Adventure Game.
The authors also distinguish their setting from earlier goal-oriented dialogue tasks. Reinforcement learning had been applied to dialogue state management and response generation. Negotiation was especially close to one part of the LIGHT task because the participants could try to persuade each other to do something. In LIGHT, persuasion takes place inside a world that constrains and records what the participants can do. A partner's willingness to give an object matters alongside whether the partner has the object and whether the game allows the transfer. That pairing of a conversational aim with an executable consequence gives the paper its specific form of situated dialogue.
Procedural content generation supplied another part of the approach. The paper describes game generation based on search or reinforcement learning, particularly for visual games, and research that built text-game worlds and quests using knowledge graphs grounded in existing material such as stories. Fan and colleagues' work on constructing interactive fiction worlds from LIGHT's characters, objects, and locations was particularly close to the world-building component. The question here is how to generate a quest and then assemble a world around it for use in training. The generated content has to work as a sequence of decisions with a goal the agent can potentially reach.
Other procedural reinforcement-learning benchmarks cited in the paper rely on game engines with built-in ways to create a range of environments. Here, much of the content to vary is textual. Choosing a new setting must go together with a suitable character and an objective that the setting can support. A generated sentence can mention an object that a retrieval step fails to place, or suggest an outcome that the available commands fail to bring about. The construction problem therefore includes both the language of the quest and the conditions under which it can be played.
Finally, the authors draw on curriculum learning, in which the training tasks change as learning proceeds. Earlier methods described in the paper often estimate difficulty from how well an agent performs or has performed on a task. Some search for goals that will challenge the learner. Such a search becomes difficult to scale when candidate goals are open-ended textual motivations. This paper obtains a training order from a property of the data that can be measured before the agent plays. It treats a pool with more weight on originally scarce quest types as a more demanding stage. That choice gives the authors an explicit way to vary the training experience and ask whether the resulting agent handles unfamiliar quests more effectively.
The method, step by step
What a quest needs
Start with a character who wants an object. For that quest to be playable, the agent needs a starting situation, the object must be obtainable somewhere in the world, and the game needs a way to register that the objective has been reached. Another character might make the same objective possible through dialogue. The paper's procedure composes these ingredients in an order that lets later choices depend on earlier ones. It first chooses who the quest is about and where it starts. Then it writes what the character wants and proposes commands for achieving it. It uses that information to populate the world.
LIGHT's underlying inventory contains 1775 characters, 663 locations, and 3462 objects. A character record includes a name and a persona description. A location also has a name and description. The game accepts actions through templates, such as a command to pick up an object or a command to give it to a character. These actions can modify the world state. Dialogue is represented as free-form text at the level of the game, while the trained agent in this study selects its lines from candidates. The distinction matters because the procedure can generate new descriptions of what a character wants while still training the player to choose from an existing speech repertoire.
From a LIGHT character to curriculum training
The steps in order.
Choosing a character and a starting place
The initial draw is uniform over the characters that occur in the LIGHT-Quests training set. Each eligible character thus has the same chance of being chosen for this step. The procedure retrieves a starting place for that character, using its name and persona to make the choice. The paper describes a StarSpace ranking approach for this association and relates the choice to earlier work on location retrieval in LIGHT.
A ranker orders existing candidates by how well they fit an input. For the association between a character and a place, training offers examples of a correct match and negative candidates drawn from the data. The ranking objective encourages a higher score for the correct pairing and lower scores for the alternatives. At prediction time the ranker can use what it learned to choose the candidate with the highest score. This approach lets the world reuse a location record with a description and an identity rather than relying on a newly written room description to supply everything the game needs from the location.
The StarSpace association described here uses word embeddings, learned numerical representations that support a similarity comparison. The words in each input contribute to a single representation. The paper calls this a bag-of-words representation because it pools information from the words without encoding their sequence in the way the quest generator does. The embeddings begin with random values. Training then makes the representation useful for distinguishing compatible character and location records from the negative pairings.
Writing the motivation and proposing game commands
The starting character and location become the input to the first of two BART generators. It writes a short motivation for that character in that situation. The other generator sees the same setting and character information together with the motivation. Its task is to produce a sequence of commands that the LIGHT engine can execute to realize the objective. The authors derive the target sequences for this stage from expert human demonstrations. The motivation says what outcome the character seeks and the command sequence offers a concrete way for the game to bring it about. The architecture used for both jobs is BART.
An encoder turns the input into a contextual representation. In BART it can use words on either side of a position while representing that input. The decoder generates the output from left to right. To decide what to write next, it uses the encoded input and the output prefix it has so far. This is autoregressive decoding. In the paper's notation, the probability of the output sequence is written as follows.
P(Y | X; θ) = ∏ᵢ₌₁ᴹ⁺¹ p(yᵢ | y₀:ᵢ₋₁, X; θ)
Here Y is the target output, with content tokens y₁ through yᴹ understood as the tokens indexed from 1 to M. X is the encoded input context and θ denotes the current network parameters. P gives the conditional probability of the whole output. The product ∏ combines the individual probabilities p for each position i. At that position, yᵢ is the token being predicted and y₀:ᵢ₋₁ is the prefix available before making that prediction. The prefix starts with the special start token at index 0. The upper endpoint M + 1 accommodates the output's ending after its M content tokens. The vertical bar reads as “given.”
The formula describes how an entire motivation or command sequence gets a probability from its individual steps. After the initial start marker, each prediction contributes to the context for the following one. At inference the authors use beam search, which considers promising prefixes as it builds the output. The first task can have many reasonable completions, since a persona and a place may support several plausible motivations. In the second task the explicit motivation gives the decoder a more specific target. The result is an action sequence associated with the quest. The agent later has to discover what to do from its own observations and rewards while playing.
Making the world support the quest
A motivation and a proposed solution place demands on the environment. A quest may involve another character or an object, and a proposed action may presuppose something beyond what the motivation names. This establishes the direction of the next steps. The procedure tries to retrieve world contents that fit the quest already written. It calls this alignment between the world and the quest.
The authors describe separate retrieval components for characters, neighboring locations, and objects. Their alignment description uses BERT-based biencoders. A biencoder has one encoder for the context and another for the candidate. Each produces a vector, a list of numerical features. The ranker scores a candidate with the inner product of the two vectors, multiplying entries in corresponding positions and adding their products. A higher score indicates a closer match under the learned representations. The alignment architecture follows earlier work on LIGHT and draws on BERT.
The character retrieval stage conditions on the initial character, the quest, and the starting location. It supplies the additional character needed for the scenario. The experiments cap the resulting world at 2 characters, which gives the learning agent a partner while keeping the social setting small. The neighboring-location stage uses the same conditioning information to retrieve 4 places to connect to the start. The result is a world of 5 locations, traversable with directional game commands. These surroundings give the agent opportunities to move during a quest and give the generator places to distribute its objects.
Once the characters and rooms are established, the object component predicts suitable contents for the locations using the character information present in each. This is the final population step. The order means the procedure can take account of who is in a room when choosing what to put there. A retrieval score remains an estimate of fit. A plausible room can lack something a quest requires, and a world can contain a needed object in circumstances that complicate the proposed solution. The paper evaluates the completed output as well as the accuracy of the component predictions.
Turning the generated quests into a curriculum
The authors give each quest a type by taking the first verb in its short motivation. Verbs matter in LIGHT because the engine links actions to routines that update the game state. The noun in a command can supply the object or character to which the routine applies. Picking up an object, for example, calls the same kind of routine across quests even when the name of the object changes. The motivation is written for the character, so mapping it to its first verb gives the authors a simple way to group quests by the intended activity.
They aggregate the counts of these types over a pool. The counts make visible how often the training distribution offers each form of objective. A pool dominated by familiar types resembles the imbalanced data the original learner would see. A flatter pool presents rare types more often relative to the common ones. The intended difficulty is consequently a property of a pool's composition and of the original data against which its types are judged. A quest can be rare even when its engine commands are simple.
To control the flatness, the authors use a parameter n, which bounds the gap between the counts of the most frequent and least frequent quest types in a pool. The pipeline is run iteratively to bring the counts within that gap. Smaller values tighten the condition and bring the distribution closer to uniformity over the types being counted. The amount of additional generated material is held fixed across curricula. The design varies how that material is allocated across quest types.
Making a verb distribution flatter can also change what the same verbs are used with. The authors inspect nouns in motivations because many of those words name people, places, or objects. They find that noun counts also become more evenly distributed in the procedural pools as the verb-count constraint tightens. The motivation is generated early, and subsequent choices depend on it. Changing which motivations are represented can therefore shift which entities appear during training. Verb balance and the spread of situations move together in this method, a point that becomes important when interpreting the curriculum comparisons.
The staged procedure starts with the original LIGHT-Quests training pool, which serves as the untuned starting stage. It then presents pools at n = 64, n = 16, and n = 2 in that order. Each parallel learner samples quests from its current pool for a fixed number of steps before advancing. The schedule is set by the pool construction and the interaction budget. The criterion for moving to the next stage is time spent training at the current one.
What the player observes and chooses
The appendix describes LIGHT as a partially observable Markov decision process, a formal setup for choosing actions and receiving observations and rewards over time. The world has a state, but the player acts on the text it can see. Its action can move the world into a new state, and the game can expose part of that state through a new observation. Formally, the paper gives the environment the following representation.
⟨S, T, A, Ω, O, R, γ⟩
The angle brackets group the components of the process. S is the set of world states, and T gives the conditional probabilities of transitions between states. A here denotes the vocabulary available for forming commands and utterances. Ω is the set of observations that the environment returns, and O gives conditional probabilities for those observations. R is the reward function. The discount factor γ governs the relative weight of future rewards.
The implementation uses separate sets of commands and utterances. The appendix uses A again for the set of executable textual actions in this factored description and U for the set of possible spoken lines. Both decision sets are built by enumerating the corresponding entries in the LIGHT-Quests human demonstrations. Factoring the space lets the agent make a choice about the kind of turn to take, then choose a candidate of that kind.
That division can also be made in a human demonstration. The full sequence records the actions and speech as they occurred together. The same record yields a sequence of actions and a sequence of utterances, with each retaining its own order. Using the paper's notation for the full record, the sequence is represented as follows.
D(q) = (α₀*, α₁*, …, αₙ*)
D(q) is the expert demonstration associated with quest q. An entry α stands for a command or an utterance in that record. The index marks its position and the star indicates that it came from an expert. The ellipsis stands for the intervening entries through the last indexed position n. In this expression n is an index within a demonstration, separate from the count gap used in constructing curriculum pools.
D_A(q) = (a₀*, a₁*, …, aₙ*)
D_A(q) denotes the action portion of the expert record for quest q, with the subscript A marking commands. An a with a star is a demonstrated action, and its index gives its position in the action subsequence. The ending index n in this subsequence denotes its own last position. The ellipsis represents the other demonstrated actions between the displayed entries.
D_U(q) = (u₀*, u₁*, …, uₘ*)
D_U(q) denotes the speech portion of the demonstration for quest q. The subscript U marks utterances, each starred u is a line produced by an expert, and the indices place those lines in order. Here m denotes the final index of that subsequence. Its length can differ from that of the action sequence.
At each step, an encoder reads the setting, persona, motivation, and dialogue history. A switch decides whether the agent should use a command or speak. The switch is trained to imitate the balance of acting and speaking in the human demonstrations. The command policy then selects an action if the switch chooses to act, or the speech policy selects an utterance if it chooses to speak. Both policies use the current context, and a shared critic estimates the expected value of that situation. The encoder uses a transformer.
The other character is operated by a partner trained to respond to agents pursuing motivations. After the learner takes a turn, the partner can act or speak and the environment processes what follows. The authors keep the partner fixed during training episodes. They use its stable language behavior to constrain the learner's communication. If both sides learned together, they could develop mutually understood signals whose meanings had drifted from ordinary English. With a fixed partner, the learner has to get results using the responses that partner already knows how to give. The choice also means that the experiment studies adaptation under a specific kind of social interaction.
Learning from action and speech rewards
The training algorithm is advantage actor–critic, abbreviated A2C. The actors are the policies that choose behavior. The critic's value estimate supplies a baseline for judging the behavior in a particular state. The paper writes the critic's estimate as V(sₜ), where V denotes the value function and sₜ is the state at time t. It writes the advantage of an action as A(sₜ, aₜ*), where A in this expression denotes advantage, and aₜ* is the action being assessed at that step. The advantage describes how the action compares with the value expected in that state. The training objective is long-term expected reward, so useful preparation can matter even when the goal is completed by a later turn.
For action goals, the engine checks the outcome of actions taken by either participant. Suppose the agent must obtain an object. It can bring about the desired inventory state by picking the object up. It can also speak in a way that prompts the partner to transfer it. Both routes can reach the game state required by the quest. Consequently, the game outcome gives credit for some effects of dialogue without forcing the agent to reproduce the expert's exact sequence.
A learned scorer called the Dungeon Master supplies a second kind of feedback. Trained on human quest demonstrations and original LIGHT conversations, it ranks candidate utterances for the current context, taking the motivation into account along with information such as the persona. This gives the training procedure a way to reward speech that looks appropriate to the character and situation. It can produce feedback on individual speaking turns, while the act reward depends on reaching the required state.
For a quest with a human demonstration, a line used in that demonstration earns a reward the first time the agent uses it in the episode. A line that ranks among the Dungeon Master's most likely candidates earns another reward of the same size. The appendix expresses the size of either increment as follows for a demonstration of length n.
rᵤ = 1 / (2n)
rᵤ is the reward increment associated with an utterance u. The numerator 1 is divided by twice n, where n here measures the length of the human dialogue demonstration. The 2 gives the scale for the two available contributions. For the rank-based contribution, k is the cutoff for how many of the highest-ranked utterances qualify. The scorer also supplies M candidates considered valid for the current context, where M denotes the size of that candidate set. Generated quests have no matching human transcript, so the rank-based contribution supplies their speech reward during training.
Starting with or without prior training
The scratch agent uses a randomly initialized 3-layer transformer as its encoder. It learns that representation along with the policies during reinforcement learning. At the outset, the adaptive agent uses a transformer whose 12 layers contain 256 million parameters in total. It is first trained with cross-entropy, an objective that favors the correct target in a prediction task. Its learned weights are then transferred and held fixed during reinforcement learning, with 3 randomly initialized layers appended.
The adaptive encoder's preparation includes conversation data from Reddit and the fantasy commonsense resource ATOMIC-LIGHT. The commonsense task involves predicting part of a relation in a knowledge graph, such as what a character would need in order to pursue an intended outcome. The encoder then undergoes fine-tuning in LIGHT. The original LIGHT interactions provide examples for predicting the next action or line given a persona, a setting, and the preceding interaction.
The quest data add predictions about goal-driven behavior. One task asks the encoder to identify an action belonging to a quest's demonstration timeline from the quest information. Another asks for the next action after seeing the actions that precede it. A further task predicts the next line of dialogue in a human quest demonstration. These tasks expose the encoder to the form of a quest before interactive training starts. The experiment uses the two encoder setups to see whether the effect of a generated curriculum depends on already having such a representation.
Experiments and results
The data and the two evaluations
The authors evaluate the construction of training worlds and the performance of agents trained in them. These are distinct tests. Component evaluation asks whether a retriever finds annotated content or a generator produces text resembling a held-out target. The agent evaluation asks whether a learner can use what it experienced during training to accomplish a goal in a new episode. A strong score on a component can help the training pipeline without directly predicting what a learner gains from the completed world.
LIGHT-Quests contains 5982 training quests, 756 validation quests, and 748 test quests. The matching splits contain 1800 training demonstrations, 100 validation demonstrations, and 211 test demonstrations. An expert demonstration averages 12.92 entries. The average action sequence has length 2.18, and the average dialogue sequence has length 10.74. Human play therefore supplies substantially more speech than commands in these records. The distinction helps explain why the agent needs a policy for deciding when to speak as well as separate mechanisms for command selection and speech selection.
The procedural components are trained using the original LIGHT and LIGHT-Quests training data. The retrieval components are tested on LIGHT's unseen test split, and motivation and action generation are tested on the LIGHT-Quests test split. These split choices reflect what the annotations cover. LIGHT supplies examples relating characters, locations, and objects. LIGHT-Quests adds the motivations and goal behavior needed to judge the generators.
How well the components construct quests
For retrieval, Hits@10 indicates whether the expected candidate is recovered among the highest-ranked 10 positions, and the paper also gives an F1 score for the ranking predictions. For character retrieval, the component table reports Hits@10 of 0.653 and F1 of 0.289 on the unseen LIGHT test split. Location retrieval scores 0.543 on Hits@10 and 0.153 on F1. Object retrieval scores 0.563 and 0.154 on the same metrics. The table labels the character row StarSpace and the location and object rows biencoder. The method description assigns StarSpace to the initial association of a character with a starting place and describes the alignment retrievers as BERT-based biencoders. The component scores here follow the table's task and system labels.
For text generation, the paper defines its reported F1 as the harmonic average of BLEU-1 and ROUGE-1. These are measures of agreement with reference wording at the level of individual words, approached through the match in the generated text and the coverage of the reference. Taking a harmonic average gives more weight to a weak result on either side than taking a simple average would. The paper cites the original work on the BLEU score and ROUGE.
The authors also report perplexity, which reflects how much probability the generator assigns to the held-out output. Lower perplexity indicates that the reference tokens were less surprising to the generator. On the LIGHT-Quests test set, short motivation generation has F1 of 0.488 and perplexity of 7.55. Goal-action generation has F1 of 0.763 and perplexity of 3.75. Formulaic commands provide a more constrained target than a statement of what a character wants. The action generator also receives the motivation itself, giving it information that is unavailable when a motivation first has to be composed.
The authors report an overall achievable-quest proportion of 0.89 for a procedurally generated curriculum pool. They use it as an indicator of how well the stages work together. A quest that cannot be completed is costly for an agent that needs experience of reaching the goal to learn from it. At the same time, the paper's entity-match analysis is explicitly approximate. It checks for the presence of entities rather than following every possible trajectory to verify success. The achievability figure should be read as the paper's pipeline estimate.
How the training conditions were compared
The agent evaluation uses the 211 held-out human demonstrations associated with the LIGHT-Quests test set. Each quest is played for a single episode in each evaluation run, without adapting the agent to that quest. The authors average results across 3 random seeds. The main evaluation gives three goal-achievement rates. Act Goals measures whether the required change in the game was achieved. Speech Goals measures performance against the speech objective. All Goals counts the episode only when both kinds of goal were satisfied within it. The last measure asks whether successful behavior and suitable dialogue coincide on the same quest.
In every main condition, a batch consists of 16 A2C agents running in parallel, each with a budget of 10⁷ interactions. In the sequential curriculum the budget is divided into 2.5 × 10⁶ interactions per pool. The agent starts from the untuned pool and continues through the stages at n = 64, n = 16, and n = 2. Comparisons include training with no curriculum, training on individual tuned pools, and using the ordered stages. The experiment thus compares ways of spending a fixed total interaction budget.
The sampled curriculum gives existing rare quests higher sampling weight when episodes begin. The resulting types can appear at frequencies similar to those of a generated pool, while the agent can encounter the same specific quests repeatedly. The paper cites work including SMOTE as inspiration for oversampling. The experiment itself uses repeated sampling of existing episodes.
The randomly generated curriculum follows the broad construction sequence but makes entity choices at random. Its motivations are conditioned on the resulting random worlds. This creates variation in what the agent encounters, including combinations that are unlikely to fit together. The procedural curriculum uses the learned components to choose content that fits the character, place, and quest. Together, the controls give a comparison with frequency adjustment through repetition and with variation through random assembly.
Goal achievement on unseen quests
The combined measure gives the clearest view of the main curriculum result. For the adaptive encoder, the generated schedule leads the main comparison on achieving both goals. It also has the highest result in that comparison on each goal type separately. The same pattern appears in the main comparison with a scratch encoder.
Adaptive encoder training conditions on LIGHT-Quests test All Goals
The procedural curriculum leads the main comparison for meeting both goals in the same episode.
The numbers
| System or setting | All Goals rate |
|---|---|
| No curriculum | 0.303 |
| Randomly generated curriculum | 0.207 |
| Sampled curriculum | 0.344 |
| Procedurally generated curriculum (this paper) | 0.373 |
On the LIGHT-Quests test set, the adaptive encoder trained without a curriculum reaches 0.420 on Act Goals and 0.330 on Speech Goals. With the sampled curriculum, it reaches 0.473 on Act Goals and 0.358 on Speech Goals. The procedurally generated curriculum reaches 0.506 and 0.382 on these respective measures. At full randomness the corresponding rates are 0.335 and 0.221. The procedural schedule's advantage in the combined measure therefore accompanies higher rates for both of its component outcomes in this comparison.
With a scratch encoder, training without a curriculum gives 0.418 on Act Goals, 0.118 on Speech Goals, and 0.103 on All Goals on the same unseen quests. The sampled curriculum gives 0.460, 0.145, and 0.138 across those measures. The procedural curriculum gives 0.477, 0.163, and 0.155. The fully random curriculum yields 0.263, 0.024, and 0.017. Across both encoder setups, the schedule using new quests assembled with learned retrieval produces the highest joint goal achievement among the main curriculum conditions.
The main results table reports standard deviations no higher than 0.02 across its random seeds. The authors report statistical significance for the pairwise comparisons they make and describe the gains from sequential curricula as significant. The reported rankings also have a practical interpretation in the test setting. Completing an act can coexist with weak speech performance, particularly for the scratch encoder. The joint rate captures how often the same episode clears both requirements, so improvements in the joint rate carry information beyond a high act score alone.
What the ablations show
Pool composition and order answer different questions
A single tuned pool changes which kinds of quests the agent repeatedly encounters. A sequence of pools changes that mix over time. The paper evaluates each arrangement because balancing the supply of goals and staging the exposure to them are distinct interventions. The results show that exposure to a flatter pool can help in some conditions, while the full schedule gives the strongest result among the procedural settings.
For the adaptive encoder trained in procedurally generated pools, training exclusively at n = 64 gives an All Goals rate of 0.330 on the LIGHT-Quests test episodes. Training exclusively at n = 16 gives 0.359, and training exclusively at n = 2 gives 0.357. The full procedural schedule gives 0.373. The two tightest settings are close on the joint measure, and their order varies with what is scored. Act Goals is 0.469 at n = 16 and 0.471 at n = 2. Speech Goals is 0.367 at n = 16 and 0.366 at n = 2. A pool's position on the rarity scale thus gives a way to organize training, while the ordering of isolated pools by test performance depends on the metric.
The scratch encoder illustrates why the schedule matters to the paper's interpretation. Training in the n = 64, n = 16, and n = 2 procedural pools separately yields 0.107, 0.112, and 0.112 respectively on All Goals. The original-data baseline gets 0.103, and the full procedural schedule gets 0.155. An agent can see a balanced mix for the entire interaction budget and gain relatively little on the joint task in this setup. The larger result appears when different mixes are presented over time.
The authors interpret this as evidence for a gradual progression. Early training on familiar types can supply experience with the game and the partner before the agent sees a greater concentration of originally scarce objectives. The results establish the advantage of the tested sequence over the tested individual pools. A pooled mixture shown throughout training, a reversed sequence, or a different allocation of interactions would answer further questions about which property of the order produces the gain. The reported comparison combines the experience of visiting multiple distributions with the particular order in which the learner visits them.
Repeating a goal and varying its setting
Sampling existing quests more often can provide a more even distribution of verbs. The sampled schedule also improves the combined test measure for both encoder setups. That comparison shows that repeated access to rare examples can have value within the staged procedure. The procedural schedule gives a further improvement in the main results, even though both approaches target imbalance in the same way at the level of quest types.
The difference the authors emphasize is variation within a type. If the same quest is sampled repeatedly, the positions, partner, objects, and available ways forward can recur together. A newly constructed quest can share the objective verb and put it in a different world. The agent then has more occasions to use a familiar kind of action in a different context. On a new test quest, that experience can help when the surface situation differs from a training example. The experiment measures the resulting change in transfer. It does not trace the agent's internal representation or directly measure how many specific trajectories it remembers.
The verb and noun distribution plots help explain the comparison. Reweighting existing examples can flatten a distribution of verbs. It can also affect the frequency of nouns because the resampled examples contain their original names and objects. Procedural generation can change the entity combinations themselves. A distribution plot of aggregated nouns can show whether a few words dominate, but it cannot reveal whether two quests with the same key words organize their worlds or solutions differently. The comparison of agent performance supplies evidence alongside these descriptive statistics.
What happens as random assembly increases
The appendix tests mixtures from 0% to 100% random generation in increments of 20%, keeping the full schedule for each comparison. The random proportion changes how much training material comes from the random construction process. Each point therefore asks what happens when part of a coherent procedural curriculum is replaced by worlds whose ingredients were selected at random. Both encoder setups show declining joint performance as that portion increases.
Random assembly in adaptive curricula on LIGHT-Quests test All Goals
Joint goal achievement falls as randomly assembled quests make up more of the curriculum.
The numbers
| System or setting | All Goals rate |
|---|---|
| Procedurally generated curriculum (this paper) | 0.373 |
| 20% randomly generated | 0.369 |
| 40% randomly generated | 0.330 |
| 60% randomly generated | 0.293 |
| 80% randomly generated | 0.269 |
| 100% randomly generated | 0.207 |
For the scratch encoder, the All Goals rates on unseen LIGHT-Quests episodes are 0.143 at 20% random generation, 0.109 at 40%, 0.093 at 60%, 0.062 at 80%, and 0.017 at 100%. The procedural endpoint is 0.155. In the adaptive condition the joint measure follows the same ordering, but the action measure has a small exception. At 20% random generation, adaptive Act Goals is 0.508, compared with 0.506 for the procedural curriculum. Adaptive Speech Goals at those settings is 0.371 and 0.382 respectively. This example illustrates why the claim about increasing randomness is most straightforward for the joint outcome. The appendix reports standard deviations of at most 0.02 across the 3 random seeds.
The authors interpret randomly paired places and entities as a source of less coherent experience. Their example of a desert linked directly to a swamp illustrates one way to expand the set of combinations while weakening the regularities a learner can use. Randomization can also leave the goals less well supported. An episode where a required object is absent offers a different kind of training experience from an episode where the object exists but must be obtained under unfamiliar circumstances. Since the randomization changes several pieces of the world at once, this ablation reveals the value of learned assembly as a package.
The appendix estimates how often entities extracted as nouns from the motivation or goal can be found among the generated world objects and characters. For the procedural pool at n = 2, the hit measure is 0.91 for short motivations and 0.94 for goal text. For the fully random pool at the same setting, the corresponding values are 0.30 and 0.14. These are scores on a world-content check, so they help explain the gap in what the different curricula offer. A high score means that the noun check often found matching entities. It can still miss an unmentioned precondition, an inaccessible object, or a sequence that the engine will fail to execute.
The paper also counts distinct entities and distinct sequences of words. These measurements are informative precisely because they can move in different directions. At n = 64, the short motivations in the 40% random condition have 762 unique unigrams and 1695 unique bigrams. At the same n, the procedural motivations have 446 unique unigrams and 1173 unique bigrams. A unigram is an individual unit of text in the count, and a bigram is an adjacent pair. This comparison shows that a randomized condition can cover more different words and pairs while the full curriculum containing those pools yields weaker joint quest performance. Lexical variety is one property of training material. The opportunities to use it in solvable, coherent episodes are another. The counts are instances of n-gram diversity.
What changes with pretraining
The procedural curriculum improves joint success with either encoder. The adaptive encoder's largest advantage over the scratch setup is visible in speech. For the procedural schedule, the adaptive and scratch All Goals rates are 0.373 and 0.155 on the held-out quests. Their Speech Goals rates are 0.382 and 0.163, and their Act Goals rates are 0.506 and 0.477. The no-curriculum conditions show the same wider separation on speech than on action. The adaptive encoder starts with exposure to conversation, fantasy commonsense, and LIGHT-specific prediction, all of which can contribute to what it represents before the first reinforcement-learning episode.
The authors suggest that the larger adaptive encoder has more capacity and that pretraining helps it form representations that transfer across generated environments. This comparison changes the size and training history of the encoder together. It can establish that the particular adaptive setup performs better and that the curriculum also works with the smaller scratch setup. Attributing the gap to one preparation task, the number of layers, or another architectural choice would require varying those ingredients separately.
What the component comparisons explain
The retrieval results follow the authors' account of which clues tend to be explicit. Names of characters can occur in a motivation or proposed action, giving the character retriever a cue. An object needed for a command may be implicit. A quest involving a confrontation, for example, may name the other character while leaving the need for suitable equipment unstated. This is a proposed explanation for the stronger character scores. The paper reports task differences and reasons about their likely causes without masking the clues in a controlled retrieval test.
The generation results similarly compare outputs with different constraints. The motivation generator has to choose a plausible objective given a character and a place. The action generator sees that objective and renders a relatively compact command sequence. Its output can therefore share more phrasing with the expert reference and be more predictable under the generator. These observations explain why better action-generation scores are compatible with substantial uncertainty about whether a whole generated quest will work. The action sequence, the assembled world, and an agent's decisions during play are evaluated at different levels.
Limitations
Limits the authors identify
The authors characterize the Dungeon Master's speech score as noisy. It is learned from human dialogue and provides evidence that an utterance suits the context. The reported speech objective consequently measures performance against a particular operational definition of naturalness. It can reward a fitting line and encourage speech in character, while allowing uncertainty about how a human partner would assess the conversation as a whole.
The authors also call attention to the restricted range of output speech. Their agent retrieves lines from a candidate collection, and this allows the possible dialogue to be filtered in advance. They discuss free-form generation as an extension. The results therefore apply to an agent choosing from available lines in a game setting that represents dialogue as text. Broader speech production would raise a separate question about whether the curriculum still helps when the agent must compose and evaluate arbitrary utterances during play.
LIGHT comes from crowdsourced data. The paper notes that the resulting material can reflect the biases of the people who produced it, including an uneven gender distribution among characters. The authors say they follow prior mitigation work during generation and training. Balancing quest types addresses the frequency of objectives. The broader-impact discussion connects the separate issue of data bias to Queens Are Powerful Too.
The paper limits generated worlds to 2 characters and gives the learner a fixed trained partner. The authors describe the world construction method as extendable to more characters. The reported experiment concerns interactions where that one partner can help bring about the desired outcome. Interactions with more participants could change how the agent has to track responsibilities and choose whom to address. The authors also acknowledge that a portion of the procedural quests are estimated to be unachievable and suggest that raising the usable proportion could improve the efficiency of training.
Limits visible in the experimental design
Rarity is defined through a linguistic feature rather than through the mechanics of completing a quest. The first verb can capture the intended activity and still tell little about the number of steps, which objects are accessible, what the partner is likely to do, or how much exploration is required. Two motivations with the same opening verb can differ along all of these dimensions. Two different verbs can also mask similar solutions. The positive result provides evidence for this proxy as a way to organize training in LIGHT. Ranking individual quests by actual difficulty would require a different measurement.
The joint goal rates summarize the test set as a whole. The paper's explanation centers on learning from the tail, but a higher overall rate can arise through better performance on any mixture of frequent and infrequent objectives. The reported comparisons leave open how the gains are distributed among the original verb categories. They also leave open how much they come from a better command policy, a better way to use the partner, or greater robustness to a change in setting. The aggregate measure answers whether the trained agent gets both goals more often. Showing which rare objectives account for that gain calls for a breakdown by type.
The world checks have a similar distinction between an indicator and the outcome it estimates. Finding the relevant nouns in the world is a prerequisite check. It does not establish where an object can be reached from, whether an engine precondition is satisfied, or whether a partner will take the needed action. Generation scores based on reference overlap and token probabilities have their own scope. They characterize the output relative to a reference sequence. They cannot determine on their own whether a different but plausible sequence would reach the intended state. Episode outcomes directly test completion, while component scores help diagnose what may have made completion possible.
The sequential comparisons give evidence for the tested schedule without isolating everything that changes in it. The full curriculum visits several pools, whereas the isolated-pool conditions stay with one type of distribution at a time. Equal interaction budgets help control the total experience. They leave room for a benefit from moving among pools, from the specific order of movement, or from the cumulative variety of situations available across the stages. The random baselines likewise change semantic fit and entity availability together. They support the claim that learned world construction is better training material in this experiment, while leaving the individual contributions of its retrieval stages unresolved.
Finally, the unseen quests belong to the same LIGHT setting. The evaluation uses its command templates, entity inventories, fantasy conventions, partner policy, and speech criterion. Zero-shot performance here means playing a new LIGHT-Quests episode without training on it. A claim about transfer to another game, a different population of interlocutors, or an application outside text adventures would need evidence from that setting. The study's scope is narrow enough to measure whether the curriculum changes the ability to act and speak on unfamiliar quests under a common set of rules.
What came after
No later citing work is documented for this paper, so subsequent adoption of the method is unverified. The paper itself leaves open whether verb frequency is a useful basis for a curriculum in other interactive settings, how the procedure behaves with larger groups of characters, and whether the gains carry over when the agent composes its own dialogue.
Cite
Cite as Prithviraj Ammanabrolu, Renee Jia and Mark Riedl. 2022. Situated Dialogue Learning through Procedural Environment Generation. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{ammanabrolu2022situated,
title = {{Situated Dialogue Learning through Procedural Environment Generation}},
author = {Prithviraj Ammanabrolu, Renee Jia and Mark Riedl},
booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2022},
doi = {10.18653/v1/2022.acl-long.557},
url = {https://doi.org/10.18653/v1/2022.acl-long.557}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/ammanabrolu-2022-situated-dialogue-learning-through-procedural/