Elamur Research

TextWorld: A Learning Environment for Text-based Games

Paper · 2018 · Marc-Alexandre Cote, Akos Kadar, Xingdi Yuan et al.

Summary

A locked door in a text adventure poses several problems at once. The player must work out which key fits, recall where it was seen, and phrase a command the game understands. The game may award points only much later, leaving a learning agent with little evidence about which decision helped. Adventures such as Zork combine these demands across large worlds whose descriptions reveal only part of what is happening. TextWorld gives researchers a way to build smaller versions of these problems and decide which demands to keep.

TextWorld is a Python framework that runs existing adventures and generates new ones. Its generator uses logical rules to build maps, place objects and obstacles, and construct quests with a known route to victory. It then uses a context-free grammar to produce descriptions, names, and instructions. A container can go by different names in different games while obeying the same rules. Researchers can change the language, the number of rooms, or the length of a quest, and can sample fresh games from a common specification.

The authors describe text adventures as partially observable decision problems. The player receives local descriptions and responses to commands, while the engine retains a complete record of the generated world. TextWorld can use that record to track the effects of each action, expose extra information, or reward progress before a quest ends. It can also supply the commands currently available, turning the task of writing a command into the task of choosing one. These options make it possible to design experiments about learning on progressively harder games, using prior experience in a new game, or handling unfamiliar names and layouts.

The paper evaluates existing agents on 50 hand-authored adventures and introduces a generated benchmark called Treasure Hunter. On the authored collection, agents earned some points in a few games, scored nothing in many, and completed none within the evaluation procedure. Treasure Hunter asks the player to retrieve a named object and tests BYU and Golovin on fresh games under a single-attempt rule. A random baseline receives admissible commands, giving it a different task from the agents that must write their own. The two evaluations illustrate the framework’s purpose. An authored adventure presents several interacting demands, while a generated benchmark lets the researcher specify the task, vary its difficulty, and control what the player gets to see.

Deep dive: TextWorld: A Learning Environment for Text-based Games

TextWorld generates text adventures with controllable maps, quests, and language to test how agents explore, plan, and act on written instructions. · about 41 minutes to read

The problem and its context

What a typed command has to accomplish

Text adventures use writing as their interface to a simulated world. A location description can tell the player about a passage or a closed container. The player responds in words, and the game reports what follows. Some text games display a list of responses or let the player follow links in a passage. TextWorld’s main subject is the parser-based adventure, where the player supplies the wording. The parser, or interpreter, is the part of the game that identifies an intended operation and the entities it refers to.

Typing a plausible instruction can fail for several reasons. The interpreter may lack the verb the player chose. It may recognize the verb but find the object out of reach. It may carry out the operation even though it has little bearing on the quest. An exploration procedure that sees only the resulting messages has to gather evidence about each of these possibilities. The distinction matters because the space of strings a player can type is vast, the strings a parser recognizes are comparatively scarce, and useful commands depend on the current situation.

Rooms are the discrete locations in these games, including outdoor sites as well as enclosed spaces. Their connections make up a map, and an exit need not be reciprocal. In the paper’s example from Zork, a trapdoor blocks the return route by locking behind the player. The word for a direction tells the player what passage to attempt from here. It cannot serve by itself as a record of how that passage connects to the rest of the map. A player who wants to revisit an object must retain information about both the object and how to reach its location.

Objects bring another kind of uncertainty. An object’s affordances are the things the player can do with it, given its properties and the game’s rules. Food may be carried and eaten, whereas a fixed surface may hold something the player can retrieve. Familiar words give the player clues about plausible actions. An invented word or an unfamiliar modifier can make those clues less useful. Agents need to extract enough information from descriptions and from the consequences of their own actions to form better guesses.

The world extends beyond the current message

A response from the interpreter is typically local. Asking for the room description can show what is nearby. Asking to see the player’s possessions can reveal what is being carried. Neither request ordinarily discloses the whole map, the contents of distant rooms, or every property of a nearby object. A locked chest might look the same to a player who encountered a matching key earlier and to one who has yet to find it. Those players have different grounds for deciding where to go next.

The game can also produce the same response for different events. An acknowledgment that something was taken may omit the item’s name, which the player can recover from the command that prompted it. A later turn may require linking a pronoun to an object previously mentioned. That relation between expressions referring to the same entity is coreference. The relevant information can be distributed across commands, replies, and the effects that an agent has inferred from them.

A player sometimes acts chiefly to learn what is possible. Opening a box can disclose something useful even when it brings no points. The appendix distinguishes clues that inform the player from clues whose examination also changes what happens in the world. In Sherlock, examining some clues is itself necessary for progress. Knowing the contents of a clue in advance and carrying out the corresponding investigation can therefore lead to different in-game situations. An action may have informational value, change which operations are available, or do both.

These properties make text games difficult for reinforcement learning, in which an agent chooses actions over time and receives rewards tied to their consequences. The authors describe many adventures as giving a positive reward only every 10-20 steps even when the player follows an optimal route. A switch operated earlier may be crucial to a later success despite producing little immediate evidence of its importance. This is the credit-assignment problem. The learner has to work out which decisions in a sequence contributed to a reward.

The state space is large as well. A room can contain several objects whose locations and conditions change independently, and the player’s inventory supplies another set of possible configurations. A table with a separate entry for every possible world or command quickly becomes impractical. Good exploration also calls for more than reacting to each new description. A player may need to leave a room, learn something elsewhere, and return with the means to act on the original observation.

This combination makes a full adventure hard to use as a diagnostic. A low score could follow from forgetting the goal, misunderstanding an expression, failing to discover a verb, or exploring the map inefficiently. Some authored games can even become unwinnable while continuing to accept commands. The authors propose a sandbox in which a small world can preserve the text interface while narrowing the set of difficulties that arise in a given experiment.

The earlier approaches discussed in the paper address different parts of this problem. LSTM-DQN, for instance, represents a description and estimates the value of verb and object choices separately. It builds a command from the two components. This gives the agent a more manageable decision than assigning a value independently to every possible string. The approach was tested in Homeworld and Fantasyworld, environments built with the Evennia toolkit. The earlier authors also studied what happens when an observation encoder learned in Homeworld is carried over to a version with rearranged rooms and paths. Language Understanding for Text-based Games Using Deep Reinforcement Learning

The Deep Reinforcement Relevance Network begins with a list of choices written in natural language. It evaluates each choice together with the current description. That interface makes it possible to learn associations between observations and actions without asking the agent to invent the wording of those actions. TextWorld’s authors point out that the versions of LSTM-DQN and the relevance network they discuss both base their decisions on the current observation. When a fact needed now appeared only in an earlier reply, the previous exchange is absent from the decision input.

Other approaches leave the parser interface in place and attempt to reduce the number of bad guesses. An Action Elimination Network learns from interpreter feedback to estimate which actions are likely to fail in a particular scene. It stores that feedback alongside the observations, actions, and rewards used for learning. Its predictions filter the candidates considered when the agent exploits its current estimates and can also reject some randomly proposed commands during exploration.

The work behind BYU uses word embeddings, numerical representations of words, to suggest verbs that might apply to an object. Its starting point is a set of hand-selected noun and verb pairs that exemplify an affordance. It uses a relation derived from those pairs to look for suitable verbs for new nouns. Golovin draws on several kinds of prior material, including fantasy books and a command corpus assembled from sources such as solutions and tutorials. It proposes commands by relating important words in scene text to expressions in that corpus. Its procedures for activities such as map exploration and inventory management are organized separately.

From a collection to a family of games

A research interface can give agents access to a common collection of games. The Arcade Learning Environment serves that role for Atari games. TextWorld’s authors argue that the differences between individual games in that collection make it difficult to define what experience should carry over. They describe a common practice of training separate agents with the same architecture for different games. Such a protocol answers how broadly the architecture can be applied. A transfer experiment asks whether experience acquired in one task helps the agent in another. Arcade Learning Environment · Revisiting the Arcade Learning Environment

A sandbox can generate instances that share rules by construction. The paper describes MazeBase as a particularly close predecessor. Its grid games use objects such as switches or movable blocks and give the player a textual representation from their point of view. TextWorld pursues the same interest in reusing knowledge across related environments, with more elaborate quests and language. The authors also discuss CommAI, where generated curricula let an agent encounter tasks of increasing complexity. Interaction there takes place at the level of bits, while TextWorld makes a language interface one of the conditions to be varied.

The paper situates this work alongside efforts to ground language in simulated visual environments. A navigation setting can use language to tell an agent what to find and a visual world to show what is nearby. Text games make a different set of details explicit. Opening a door can provide access to another room without requiring the player to control the movements of a body or a handle. The paper uses that abstraction to motivate experiments on how language specifies decisions and how those decisions change the set of possible next actions. Grounded Language Learning in a Simulated 3D World · DeepMind Lab

The method, step by step

From a game specification to a playable world

Start with the sort of problem the authors use to explain the engine. The player is in a kitchen with a table, a fridge, and an apple. The fridge can contain the apple, and the table can support it. Opening the fridge is possible only under certain conditions. Taking the apple changes where it is. The description shown to the player can omit the apple while it is hidden, although the engine already records its location. To construct such a game, TextWorld needs rules about what the objects can do, a way to arrange them, and language that communicates selected facts about the arrangement.

A game specification describes the desired instance at a higher level. It can set the room count, the number of objects, the intended quest length, and the conditions for winning. It can also choose features of the prose, including the theme, the use of adjectives, and whether descriptions refer back to previously mentioned objects. The generator uses a knowledge base of types and rules to build the world. The interaction component runs the game and passes messages between it and an agent supplied by the researcher.

How TextWorld constructs and runs a generated adventure

The steps in order.

How TextWorld constructs and runs a generated adventureStep 1: Specify the world, quest, and language1. Specify the world, quest, and languageStep 2: Sample rooms, connections, and object placements2. Sample rooms, connections, and object placementsStep 3: Chain actions to establish a reachable goal3. Chain actions to establish a reachable goalStep 4: Write names, descriptions, and instructions4. Write names, descriptions, and instructionsStep 5: Translate the game into Inform 75. Translate the game into Inform 7Step 6: Compile and run the adventure6. Compile and run the adventureStep 7: Return feedback and track the resulting state7. Return feedback and track the resulting state

The generated game definition is expressed in Inform 7, a language for writing interactive fiction, then compiled to a Glulx executable. The paper describes Inform 6 as an intermediate stage in this toolchain. The resulting adventure is run with the Git-Glulx interpreter. Using an existing interactive-fiction parser gives generated games an established mechanism for accepting and interpreting typed input. TextWorld supplies the logic and generation procedures that determine what world the parser is operating on.

Describe the game from the player’s side

The authors use a partially observable Markov decision process, or POMDP, to describe the interaction. The underlying world has a complete state, and the transition law specifies what can follow from that state and a command. What the player sees is a separate matter. A reply can describe a consequence or reveal a fact while leaving most of the complete state unspoken. The formalism includes both the complete world and the channel through which the player learns about it.

(S, T, A, Ω, O, R, γ)

Here S is the set of complete environment states. T specifies the probabilities of transitions between states. A contains the elementary token actions with which the agent composes a command. Ω is the set of observations the player can receive, and O specifies their conditional probabilities. R assigns rewards, and γ controls how strongly future rewards are discounted. The parentheses group the components of the process.

T(sₜ₊₁ | sₜ, cₜ)

The symbol t is the current turn, sₜ is the state on that turn, and sₜ₊₁ is the state on the following turn. The completed command is cₜ. The vertical bar introduces the conditions on the probability: T gives the chance of reaching the indicated next state given the current one and the command. The general expression allows uncertain outcomes. In the generated games described in the paper, the transitions are deterministic.

O(oₜ | sₜ, cₜ₋₁)

The observation oₜ is the text available on turn t. Its probability under O depends on the current complete state sₜ and the command cₜ₋₁ from the preceding turn. The conditioning bar has the same role as in the transition expression. The same state can yield different disclosures depending on what was asked. Looking around and trying to open a container can draw attention to different properties, even if both commands leave the contents of the room where they were.

The paper assumes that observations can be treated as space-separated words. This gives an agent a tractable representation of interpreter feedback. It can discard information when the arrangement of characters carries meaning, as in the appendix’s examples of a picture made of characters or a sonar map. The distinction matters because the interpreter communicates through a display, while an agent’s input representation may retain only some of what a human reader would see.

Specify what a command can contain

An adventure parser can accept a string of arbitrary length as input, although only a small fraction of strings are understood. The authors simplify the learning problem with a length bound and a fixed vocabulary. They also assume a compact command syntax.

verb [noun phrase [adverb phrase]]

The verb gives the operation. The noun phrase identifies the object, and the adverb phrase adds context, such as the key to use. Square brackets mark optional material. Their nesting expresses that the additional phrase belongs with the object-bearing form of the command. The authors omit determiners for this representation and note that typical interpreters disregard them.

A = V ∪ {<return>}

Here V is the fixed vocabulary, A is the token set for composing commands, and ∪ joins the vocabulary with the singleton set in braces. The special token <return> marks the end of generation. The angle brackets are part of the token’s name. It tells the interface to submit the accumulated command.

cₜ = [aₜ¹, …, aₜⁿ]

The command cₜ belongs to turn t. Each aₜⁱ denotes the token in position i, and n is the number of tokens in the sequence. Square brackets collect the tokens in order, and the ellipsis covers the intervening positions.

n ≤ L

The paper uses L for the upper bound on command length. The inequality says that the sequence length n can reach that bound or be shorter.

aₜⁿ = <return>

The token at the final position n of the turn-t command must be the end marker. What the interpreter receives for execution is the resulting command, while the learner can be described as having made a sequence of token choices to construct it.

aₜⁱ = πθ(sₜ, aₜ⁰, …, aₜⁱ⁻¹)

The policy πθ is the agent’s decision rule, with θ denoting its parameters. Its output aₜⁱ is the token at position i on turn t. The sequence from aₜ⁰ to aₜⁱ⁻¹ represents the prefix in the paper’s notation, and sₜ is the state argument. The policy expression writes that argument with the same symbol used for complete state. In ordinary partially observed play, the agent has the observations the engine returns, along with whatever information it retains from them. That information determines what a policy can actually condition on unless the experiment supplies extra access.

R: S × A → ℝ

R is the reward function. The product sign × forms state and action pairs from S and A, and the arrow gives the result type, ℝ, the real numbers. The paper uses this form both for the player-facing process and for the internal one. The meaning of A changes between the two. The complete command is the unit passed to the interpreter, where it can be associated with a world operation.

rₜ = R(sₜ, aₜ)

Here rₜ is the reward at turn t, and the expression uses sₜ and aₜ for the state and action supplied to R. At the level of world operations, the action can be taking a specific item, even though reaching that operation from the player’s side required several token choices.

γ ∈ [0, 1]

The symbol ∈ means belongs to. The brackets specify the inclusive range for the discount factor γ. A smaller discount factor assigns less weight to rewards farther into the future.

E[Σₜ γᵗ rₜ]

The objective is to maximize this quantity. E takes the expectation over possible trajectories. Σₜ adds the contributions across turns indexed by t, rₜ is the reward at each turn, and γᵗ is its discount weight. The exponent t applies the discount according to when the reward occurs. Scoring in an authored game can supply reward, and a completion event can supply it when ordinary points are unavailable. Interpreter messages can also contain clues about the immediate outcome of a command, whose meaning for eventual success may be less direct.

Represent the generated world from the engine’s side

The engine gives the generated world a fully specified internal representation. At this level, the actions include operations on particular entities. The interpreter links an expression typed by the player to one of those operations when it recognizes the command in context.

(S, A, T, R, γ)

This is the internal Markov decision process, or MDP. S is the complete state space, A is now the set of grounded operations, T is the transition function, R evaluates state and action pairs for reward, and γ is the discount factor. A grounded operation has concrete objects in each role. A rule for opening a container can be grounded as an operation on the particular fridge in the kitchen.

a ∈ Aₛₜ

The symbol Aₛₜ denotes the actions available in state sₜ on turn t. The membership relation says that a particular grounded action a satisfies the current requirements for execution.

T(sₜ, a, sₜ₊₁) = P(sₜ₊₁ | sₜ, a)

On the left, T names the transition function of the internal process. On the right, P is the probability of the next state sₜ₊₁ conditional on the current state sₜ and the grounded action a. Here P is a probability notation. In the game facts below, the same letter is used as a label for the player.

To represent states, TextWorld uses predicates describing properties and relations. An item can be inside a container, a person can be in a room, and a container can be open. Each assertion can be queried or changed according to the rules that refer to it.

p(v₁, …, vₘ)

The symbol p names a predicate from the predicate alphabet Σ. The sequence v₁ through vₘ contains its m arguments, with the ellipsis standing for the arguments between the endpoints. Variables in a rule are placeholders. Substituting actual game entities for all of them produces a logical atom. A state is a multiset of atoms, a collection that can retain multiplicity. The paper treats its members as resources so that an action can consume one fact and produce another.

sₜ = at(fridge, kitchen) ⊗ at(table, kitchen) ⊗ in(apple, fridge) ⊗ open(fridge) ⊗ at(P, kitchen)

In this kitchen state, sₜ labels the complete arrangement on turn t, and ⊗ joins the resources. The predicate at records the location of its first argument in the room named by its second. in records containment, and open records the condition of the fridge. The names fridge, kitchen, table, and apple refer to the individual entities, and P stands for the player. The paper initially describes this fridge as closed. Its displayed state and the ensuing list of available actions use the open condition, so those are the conditions used in the rule applications below.

G ⊂ S

G is the collection of winning states within the state space S, and ⊂ expresses the subset relation. Each state in G satisfies the designated winning facts. Reaching such a state ends a successful episode.

in(apple, I)

This possible winning condition requires the apple to be in the player’s inventory I. The predicate in gives the relation, and apple identifies the required entity. An objective of this kind can be satisfied with the player in different rooms or with the fridge in different conditions, since those facts are outside the stated condition.

Apply rules to the resources

TextWorld’s inference engine uses a small set of procedures suited to its generated games. Its treatment of changing resources draws on linear logic and takes inspiration from Ceptre. The rules in the knowledge base specify what has to be true beforehand and what becomes true afterward. A precondition used only to check accessibility can be preserved. A precondition describing a location or condition that changes can be consumed and replaced. In the rules below, ↑ marks preservation, :: introduces the body after the rule label, ⊗ joins resources, and ⊸ points from the required resources to the results.

open(C) :: ↑at(P, R) ⊗ ↑at(C, R) ⊗ closed(C) ⊸ open(C)

C stands for a container, R stands for a room, and P labels the player. The two at facts require the player and container to be in the same room, and the arrows preserve those facts. closed(C) is the consumed condition, while open(C) is the new one. The first open(C), before ::, is the name of the operation. Here R is a room variable, distinct from the reward function in the decision process.

close(C) :: ↑at(P, R) ⊗ ↑at(C, R) ⊗ open(C) ⊸ closed(C)

The rule close(C) has the same player P, container C, and room R. The preserved at facts again establish their shared location. The resource product ⊗ now includes open(C) as the changing condition. Executing the rule replaces that fact with closed(C), the effect to the right of ⊸.

take(F, C) :: ↑at(P, R) ⊗ ↑at(C, R) ⊗ ↑open(C) ⊗ in(F, C) ⊸ in(F, I)

F denotes a food item, C its container, R the room, P the player, and I the player’s inventory. In take(F, C), the three preserved resources say that the player and the container are in the room and that the container is open. The conjunction joins these with the resource saying that the food is inside C. The implication replaces this containment fact with membership in I. The open condition persists because taking the item does not close its container.

take(F, S) :: ↑at(P, R) ⊗ ↑at(S, R) ⊗ on(F, S) ⊸ in(F, I)

Here S is a supporter, a surface such as a table, distinct from the decision process’s state set. F is food, P is the player, R is the room, and I is the inventory. on(F, S) puts the food on the surface. The rule uses the shared location facts, marked for preservation, to allow the transfer. Its implication consumes the on fact and produces the in fact.

↑at(P, R) ⊗ ↑at(C, R) ⊗ ↑open(C) ⊗ in(F, I) ⊸ in(F, C)

This is the body of the rule for moving food F from inventory I into container C. P and C must share room R, and C must be open. The marked location and open facts survive. in(F, I) is consumed and in(F, C) replaces it. The rule as printed is labeled put(F, S), although its body uses C for the destination.

↑at(P, R) ⊗ ↑at(S, R) ⊗ in(F, I) ⊸ on(F, S)

In this body, S is the supporter in room R with player P. The preserved at facts allow the removal of food F from inventory I and its placement on the supporter. The joined inventory premise is the resource consumed by the implication. The paper labels this rule insert(F, C), although the destination in the body is S.

in(F, I) ⊸ eaten(F)

The eating rule requires food F to be in inventory I. The implication consumes that possession and produces the fact eaten(F). The printed label is eat(F, S). Its second argument plays no role in the displayed body.

Forward chaining means using the current facts to find rule instances whose requirements are satisfied and then applying those instances. A single application substitutes concrete entities for the variables and yields a successor collection of facts. The available operations can therefore be derived from the state. With the fridge open and the apple inside, two rule instances in the kitchen example are as follows.

close(fridge) :: ↑at(P, kitchen) ⊗ ↑at(fridge, kitchen) ⊗ open(fridge) ⊸ closed(fridge)

close(fridge) names the grounded action on this fridge. The positions of player P and fridge in the kitchen are joined with the open condition. The two marked facts stay in place and the implication changes the condition to closed(fridge).

take(apple, fridge) :: ↑at(P, kitchen) ⊗ ↑at(fridge, kitchen) ⊗ ↑open(fridge) ⊗ in(apple, fridge) ⊸ in(apple, I)

The action take(apple, fridge) uses the concrete apple and fridge. It keeps the locations and the fridge’s open condition, which have preservation marks, and transfers the apple from the fridge to inventory I. The consumed and produced in facts describe the same apple in different places. Closing the fridge first would remove the open premise on which this action depends.

(s, a, s′)

The paper describes each step of the resulting proof tree as a triple: s is the source state, a is the grounded rule applied there, and s′ is the resulting state. The prime marks the successor. Successive applications can explore the transition structure from the starting state. Expanding only previously unseen states and merging duplicates gives a graph of reachable states and actions. Discovering the immediate admissible operations requires only the single forward step from the current state. The authors discuss integration with established planning representations as future work. STRIPS

Build the map and choose a quest

The generator constructs room maps using a random-walk procedure. Room count, grid size, and whether connections can have doors are parameters of this procedure. Grid size affects how compact the layout can be. A smaller grid can produce a tighter arrangement with more opportunities for loops. Once the map is generated, the procedure distributes objects uniformly across the rooms. The objects’ types govern placement. A portable item can start on a surface, inside a container, on the floor, or in the player’s inventory.

A quest provides a route from an initial state to conditions that count as winning. It can be one of several routes to those conditions, and it can take more steps than the shortest solution. For forward quest generation, the starting layout supplies the initial facts. The generator looks for a sequence in which each action produces something the next action requires. It also rejects cycles. This narrows the search to sequences with a dependency between consecutive steps.

aₜ depends on aₜ₋₁ ⇔ outputs(aₜ₋₁) supply required inputs of aₜ

Here aₜ is a candidate action and aₜ₋₁ is its predecessor. The equivalence arrow ⇔ means the dependency is defined in both directions by the condition on the right. outputs denotes the resources produced on the preceding rule’s right side, and the required inputs are resources on the next rule’s left side. The final action supplies the facts that are designated as the winning condition. In the illustrated apple quest, gaining access through a door enables movement to the kitchen, where opening the fridge enables taking the apple. Possession then enables eating it.

When the desired end condition is specified in advance, searching forward can spend time on many sequences that lead somewhere else. The generator also works backward from a specified end state. It asks what action could have produced the required facts and what would have had to hold before that action. It preserves the condition linking adjacent steps and still rejects cycles. The resulting chain is executed forward by the player, from the initial conditions worked out during generation.

Fact creation can be used in either direction before the generator samples a step. It supplies an entity or fact needed to construct a longer sequence. In the backward illustration, the search works back from eating the apple to the apple being carried. It introduces a fridge and places the apple in it as it works back through retrieval. Another reversed step gives a closed fridge at the start. The playable quest then goes in the opposite order. The construction gives the starting world a known solution because the actions and their prerequisites were built together.

Render the part of the world that the player sees

The text-generation module has separate grammars for names, room descriptions, and instructions. A grammar expands categories into expressions, and templates provide places for facts or names chosen for the current observation. The paper describes the implementation as largely template-like while allowing richer grammatical productions. A final adjustment can handle details such as the form of the indefinite article before an object name.

Object names are drawn using the abstract type of each object to choose a starting category in the grammar. Names are unique within the game, and an optional adjective can make a noun phrase more specific. An adjective can also serve as a clue. The key and the object it opens receive matching adjectives. That convention ties a word in the description to a fact about the world, giving the player evidence about which operation to try.

A room description combines text about the objects that should be visible with information about exits. It can be returned on entering the room or on requesting a fresh look. The text changes with the objects’ current conditions. For instance, an open container can make its contents visible. The logic governs when that change takes place. The grammar determines how the new information appears in the description.

Instructions can walk the player through the quest, name its final action, or leave the goal to be discovered. A single instruction can also describe an outcome that takes several operations to achieve. Retrieving an item from a locked chest can require unlocking the chest and opening it before the retrieval is possible. The generator can vary whether those operations are spelled out. The underlying dependencies are present under either presentation.

The paper illustrates the same world with a house theme and a basic theme. The house grammar gives objects names and descriptions suited to a domestic setting. The basic grammar uses systematic type-based names and very little linguistic variation. Other options can group objects with a shared property or let successive sentences refer to the same object with different expressions. These settings offer control over what varies between games. The inhabitants of a room can be renamed while retaining the same relations and possible actions, or the physical arrangement can change while the naming scheme stays familiar.

Interact with the game and track progress

TextWorld launches compatible games and exposes a Python interface with a reset operation and a step operation. A reset produces the starting information. At a step, the agent supplies a command, the interpreter handles it, and the interface returns updated game information, reward, and a signal indicating whether play has ended. Existing adventures can be played through the Z-machine with Frotz or through the Glulx interpreter. The supported state information for those adventures is more limited than for games built by TextWorld. The authors released TextWorld’s code and documentation alongside the framework.

The basic game information can include interpreter feedback, a room description, inventory, the current location, and score. Generated games make it possible to supply the objective as text, reveal additional state facts, or expose a full state description. For instance, a game that would ordinarily mention only a nearby chest could reveal its locked condition and name the contents. This changes what must be discovered through interaction and what is available immediately.

A further option is a list of admissible commands. The paper uses admissible in the interface for commands understood by the parser that affect the state or return information about it. A request to inspect the room can be useful under this definition even when it leaves every object in place. An agent with the list can select a command by index. The paper counts this as choice-based play, since selecting from the list removes the need to formulate an acceptable string.

The engine can also maintain a winning sequence and use changes in that sequence to assign an intermediate reward. Initially the generator supplies a route to the goal. Following the next prescribed operation shortens the remaining sequence. A deviation can add corrective actions, and a change unrelated to the quest can leave the sequence unchanged. The reward is positive if the sequence gets shorter, negative if it gets longer, and 0 if its length stays the same. The reference sequence is a route to success, which can be longer than an optimal route.

This exposes several distinct training conditions. An agent can learn from terminal rewards alone, from feedback keyed to the maintained solution, or with more information about the current state. The environment also lets researchers generate many games with the same rules and different names or maps. A curriculum can be defined by changing generation settings over time. A transfer experiment can specify which settings are shared across earlier and later games. The framework establishes how such game sets and information conditions can be constructed. The paper’s initial evaluation uses existing agents to probe the authored collection and a particular generated task.

How earlier agents represent action choices

The paper gives equations for earlier approaches that illustrate the difference between composing an action and scoring a supplied choice. For LSTM-DQN, an observation is a sequence of words.

o = w₁ … wₙ

The symbol o denotes the observation, w₁ through wₙ are its words in order, and n is the sequence length. The ellipsis stands for the words between the endpoints.

s = LSTM(o)

Here s is the agent’s representation of the observation, distinct from the complete world state in TextWorld’s formalism. LSTM refers to the recurrent encoder. The paper describes averaging its states to obtain the representation used for scoring.

Q(s, wₒ) = MLPₒ(s)

Q is a value estimate. The object word is wₒ, and MLPₒ is the object-scoring multilayer network applied to representation s. In these subscripts, ₒ marks the object component.

Q(s, wᵥ) = MLPᵥ(s)

The verb word is wᵥ. MLPᵥ is a separate verb-scoring network receiving the same s, and Q gives its estimate for that verb. The subscript ᵥ marks the verb component.

Q(s, (wᵥ, wₒ)) = (Q(s, wₒ) + Q(s, wᵥ)) / 2

The ordered pair on the left combines verb wᵥ with object word wₒ. The right side adds their separate values for s and divides by 2 to take the mean. Each network can evaluate its own vocabulary, with the command score assembled from those estimates.

Q(s, aⱼ) = g(fₛ(o), fₐ(aⱼ))

For the Deep Reinforcement Relevance Network, s is the state being evaluated through its observation o, and aⱼ is candidate action j from the supplied choices. The function fₛ represents the observation, fₐ represents the action text, and g combines the representations to give Q, the estimated value of choosing that action. The paper also describes comparing these estimates before and after participants paraphrased state and action text. When it writes the estimate with θ as an additional argument, θ stands for the learned parameters.

emb(noun) − emb(verb)

For the affordance approach behind BYU, emb gives the word embedding of its argument. noun and verb denote the members of a selected example pair, and the subtraction yields a vector representing their difference. Averaging such differences gives a direction the approach uses when looking for verbs applicable to an unfamiliar noun.

Experiments and results

Playing the inspected collection

The authors assembled an evaluation collection of 50 games written for human players. They started from an earlier list of 50 and replaced 20 entries that lacked scores or were parodies of the genre. The manual inspection checked that the selected games worked for evaluation and contained scoring and substantive quests. The accompanying game notes record features that can affect play, from unusual navigation to reliance on information supplied outside the game’s immediate room descriptions.

The evaluation uses BYU, Golovin, and Simple. BYU and Golovin bring the affordance and corpus-based command strategies discussed earlier. The paper notes that both had been submitted to a competition involving 20 hidden games. Simple samples uniformly at each step from a fixed collection of commands. That collection contains movement in the familiar directions, room and inventory queries, a broad taking command, a drop command, and an affirmative response. This makes it possible to see how much progress the game offers to a player with a small and generic command repertoire.

Each agent gets 1000 steps per game. A loss triggers a restart, with further play coming out of the same budget. A win would stop evaluation. An earlier protocol discussed by the authors had allowed 1000 plays of each game at up to 1000 steps per play. The smaller allowance in TextWorld’s evaluation fits its question about generalization. Prior knowledge is part of the starting point, while extensive rehearsal within a particular evaluation game would give the agent a different opportunity to learn its particulars.

The metric is the maximum score the agent achieved during evaluation divided by the maximum score possible in that game. This puts the scores on a common numerical scale while retaining whatever the game awards points for. The results figure leaves out games on which no score was obtained. Across the full collection, many games yielded zero, a few yielded low scores, and none of the evaluated agents won under the protocol. The paper gives explanations for selected individual games instead of a numerical overall ranking in its discussion.

Advent illustrates how the initial conditions can contribute to the measured result. The version used in the evaluation starts the player with 36 points. The authors use that fact to explain why the three agents have the same result on this game. Detective illustrates how Simple can do comparatively well. Most of the play is navigational, and movement commands make up much of Simple’s repertoire. The two examples account for score through different mechanisms: points already present at the start, and an action distribution suited to the particular requirements of a game.

Changing the demands in Treasure Hunter

Treasure Hunter adapts a maze retrieval task in which an indicator tells the player what to find. In TextWorld’s version, the world is a generated map of rooms, and the player and the candidate objects are placed at random. The randomly selected target is named in the welcome message. Success requires retaining that instruction during exploration and taking the corresponding object. A game can make retrieval depend on locating a key, navigating to the relevant door or container, and opening the way to the object.

The authors identify affordance extraction, navigation efficiency, and memory as the skills of interest. The player must work out which pairs of verbs and objects can change the world in useful ways. It must manage the cost of visiting and revisiting rooms within a limited interaction budget. It must also distinguish the requested object from the other candidate when it has a chance to take one. These demands are present together, although the settings change the amount of work involved in each.

Difficulty levelsModeRoomsQuest-length rangeAccess obstacles
1 to 10Easy51 to 5Connections have no doors
11 to 20Medium102 to 10Closed doors and containers can intervene
21 to 30Hard203 to 20Locked doors and containers can require keys

Quest length grows linearly within each mode’s stated range. In easy games, the candidate objects are the only objects in otherwise empty rooms. In medium games, a door may have to be opened to move between rooms, and a target may have to be obtained from a container. In hard games, the player may have to unlock a door or container before opening it. The length setting describes a constructed quest. The paper’s account of quest generation allows successful trajectories other than the route used to build the instance.

One illustrated game is at difficulty 20. The target is a passkey lying on a rack in a washroom. The player begins in the basement, separated from the target by rooms and closed doors. A compact description of the desired outcome gives the identity of the object. The world supplies the intervening access problem. This is the kind of difference the benchmark introduces when it adds closed obstacles to navigation.

Running each generated game once

The one-life evaluation uses 100 games generated at each difficulty level. Each agent sees a game only once, with a maximum of 1000 steps. The episode ends as soon as the agent takes either candidate object. The score is +1 for taking the target and -1 for taking the wrong object. It is 0 when the step budget expires without either object being taken.

Two statistics are specified for this evaluation: mean score and mean number of steps until the episode ends. A quick end can be correct retrieval or a quick mistake, while exhausting the allowance indicates that neither object was obtained. Mean score also pools outcomes with different causes. Accidental retrieval of a wrong object and timely retrieval of the target affect it in opposite directions. The metrics make most sense together and under the stated stopping rules.

BYU and Golovin are evaluated alongside a random agent that draws from the admissible commands at each turn. This random agent has already been helped with the parser problem. Its choices come from operations the interpreter understands and that act on the world or return information. The authors explicitly caution against direct comparison with the agents that supply their own text. The random agent gives a rough indication of the difficulty of choosing and exploring once viable commands are offered. The numerical entries for Treasure Hunter’s mean scores and episode lengths are not stated in the paper’s prose, so there are no exact per-level averages to report here.

A quantified comparison in the earlier research

The paper does state exact results for the earlier LSTM-DQN experiments that motivate its discussion of text-game benchmarks. Homeworld has 4 rooms, 4 quests, and a vocabulary of 84 words. Fantasyworld has a vocabulary of 1340 words and includes stochastic transitions. The outcomes below are the reported quest completion percentages in those earlier environments.

LSTM-DQN quest completion in Homeworld and Fantasyworld

The earlier agent completed every Homeworld quest and most Fantasyworld quests.

LSTM-DQN quest completion in Homeworld and FantasyworldFantasyworld: 96Fantasyworld96Homeworld (this paper): 100Homeworld (this paper)100
The numbers
System or settingquest completion %
Fantasyworld96
Homeworld (this paper)100

The star marks the higher completion result in this comparison, which comes from the earlier study. The task and metric differ from those in the one-life Treasure Hunter evaluation. The earlier transfer experiment also reports faster learning in Homeworld2 when the LSTM component is carried over from Homeworld. Homeworld2 rearranges rooms and paths from the original game, giving that experiment a particular kind of related task. TextWorld makes such relationships configurable across generated game sets. Language Understanding for Text-based Games Using Deep Reinforcement Learning

What the ablations show

The paper reports no component ablation with matched performance measurements. Its evidence comes from comparing baselines, inspecting cases in the authored collection, and testing on a generated difficulty schedule. It also demonstrates how the generator can configure comparisons that the paper leaves unevaluated.

What the two interfaces make visible

Simple and the random Treasure Hunter agent are useful for different questions. Simple issues commands from a fixed collection whether or not they are appropriate to the current scene. If it does comparatively well in a game dominated by movement, its command coverage helps explain the result. The Treasure Hunter random agent draws from commands that apply to the current situation or can gather information about it. Its available choices change as the game unfolds.

Taken together, the baselines show why the action interface has to be part of the experimental description. In one interface, the agent may waste turns on commands that fail to match its surroundings. In the other, the game provides a filter that has access to its current state. The paper compares different agents under these conditions, so the results cannot quantify how much BYU or Golovin would gain from the same admissible-command list. That would require evaluating a comparable decision procedure with and without that information.

The case analysis of Advent identifies a separate influence on the measure. Maximum achieved score records a value that can include points present before the first action. The shared result there is explained by the starting score. Detective shows how action coverage and task structure can align without requiring a rich command-generation strategy. These observations depend on inspecting what the game awards points for and what the agent can attempt.

What the difficulty settings vary together

Within a Treasure Hunter mode, the generator lengthens quests while keeping the room count and available kinds of obstacles at the same settings. This is a more local comparison than moving from easy to medium or from medium to hard. At those boundaries, room count and kinds of obstacles change along with the quest-length range. A lock can add a search for a key, a new object relation to recognize, and more turns between receiving the objective and acting on it. Performance across modes therefore reflects several changes in the task together.

The single-attempt rule removes the opportunity to practice the exact game through repeated starts. It still leaves different reasons an agent might fail on that attempt. One agent might reach the right place but never issue the command for opening a container. Another might act competently on every item it finds but spend the budget repeatedly visiting an irrelevant area. The score and step count describe the outcome of each kind of episode. Identifying the underlying failure would require evidence about the decisions and messages along the way.

The comparisons the framework makes possible

The house and basic versions of the same game show that the text realization can change while the mechanics are held fixed. This is a demonstration of a generation control. The paper reports no performance comparison across those versions. Because the game can keep the same quest and layout, a later experiment could use that control to study whether differences in naming and description account for changes in behavior under a fixed task.

The same logic applies to revealing the world state or supplying intermediate rewards. Full state access would change the need for exploration and recall, while holding the world’s rules constant. Feedback based on the maintained solution would change when the agent receives information about progress. The paper specifies these interventions and shows what information each supplies. Its baseline evaluations leave their effects on learning and generalization open.

Limitations

Limits the authors identify

The generated quest is a chain of immediately dependent steps. This represents situations such as opening a container, taking an item, and then using that item. Authored quests can have several subproblems that are solved independently and later come together. The authors propose a directed dependency graph as a way to represent such structure. Under a graph representation, a step could depend on the results of separate branches, rather than obtaining its prerequisite from the step immediately before it in the sequence.

The implementation also lacks time-triggered changes independent of a corresponding action. An authored game can contain a door that locks after a period or an event that becomes available only at a particular time. Tasks of that kind place demands on decisions about when to act. A deterministic command transition is a useful simplification for constructing repeatable experiments. The paper’s authored examples show some of the temporal and stochastic challenges beyond the generated setting.

The generator has no autonomous or reactive non-player characters. The framework also supports single-agent play, which excludes simultaneous cooperation or competition among players. The collection of existing adventures includes examples of interaction with characters. Running a compatible authored game and constructing a new game with analogous character behavior are different capabilities of the framework.

The authors also point out that continuity between sentences is hard to maintain with their context-free generation. A grammar can choose a name, construct an object description, or introduce a reference back to something nearby in the prose. Maintaining coherence over successive sentences is a wider requirement. The generator’s control over words, modifiers, and sentence patterns gives a useful source of variation within those constraints.

Limits visible in the evaluation

Treasure Hunter gives the player a named retrieval goal. It therefore places a defined demand on recalling the instruction, navigating, and gaining access to an item. The appendix describes several other kinds of puzzles, including those that require interpreting clues or drawing on cultural knowledge. Performance on object retrieval under the generator’s rules would establish competence under those task conditions. The authored collection supplies examples of broader demands, though its games vary in several ways at once.

The curated score is also an imperfect substitute for winning. The paper notes that Zork III permits a high score without a win. Other games can differ in where they award points, how much early progress is possible, and what mistakes bring about a loss. Dividing by a game’s maximum makes the metric comparable as a fraction of available points. It leaves those differences in what a point represents. The authors’ analysis of the starting score in Advent is a concrete instance of this limitation.

For the generated benchmark, the reported metrics give different views of the outcome without identifying individual decision errors. Mean score can reflect different mixtures of correct retrieval, wrong retrieval, and exhausted play. Mean duration includes all of those endings. The one-life protocol restricts game-specific practice, while the prior knowledge of BYU and Golovin still shapes which commands they can generate. The paper establishes the evaluation conditions and describes the intended skills. It leaves open how performance would change with systematically varied training experience.

Information supplied by the framework is another condition on any interpretation. Knowing all object locations reduces the need to discover them. Seeing admissible commands changes the problem of producing a well-formed action. Receiving a winning sequence gives the agent information about the remaining plan itself. Those settings can help determine which requirement is troublesome. A finding under one setting pertains to the demands the setting retains.

Finally, the maintained solution is conditional on the current play trajectory and on the ability to correct deviations. A generated game starts with a route to victory. That construction alone is insufficient to establish that every reachable state has a recoverable route, especially in the presence of actions with irreversible effects. Even when the maintained route succeeds, its length is a property of that route. A reward for shortening it gives feedback tied to the engine’s current solution and cannot certify progress along a globally shortest plan.

The evaluation leaves a broader empirical question about training on generated distributions. Sampling related games makes it possible to define what is shared between practice and evaluation. The paper’s initial benchmark does not measure how a curriculum changes learning, which forms of variation transfer, or whether experience on generated games helps enough to solve the authored adventures. Those questions motivate the framework and delimit the claims of the reported experiments.

What came after

Extending the role of the environment

Later papers citing TextWorld pursue several of the problems it puts in view. Some make the environment itself the research contribution. ALFWorld addresses alignment between textual and embodied environments for interactive learning. That focus gives a concrete counterpart to TextWorld’s argument for abstracting away physical execution. In TextWorld, access to a room can be represented as a consequence of opening a door. Placing text and embodied environments in correspondence makes it possible to ask how decisions stated at that level relate to acting in a world with an embodied interface. ALFWorld

The fantasy adventure study makes both speaking and acting part of its subject. TextWorld’s initial retrieval benchmark uses language for describing the situation, specifying the goal, and issuing commands to the interpreter. With speaking itself included among the activities of interest, an adventure also provides a situation in which an utterance can be considered as behavior within the world. This broadens the question from how to control a game through text to how language figures in what an agent does there. Learning to Speak and Act in a Fantasy Text Adventure Game

DISCOVERYWORLD applies the idea of an interactive environment to developing and evaluating agents for scientific discovery. The connection concerns how a research environment defines the activities and outcomes to be evaluated. TextWorld’s first generated benchmark specifies navigation, access, and retrieval as the work of an episode. DISCOVERYWORLD’s stated aim places scientific discovery at the center of the environment. Each makes performance within a setting the object of evaluation. DISCOVERYWORLD

Focusing on particular demands of interaction

Keep CALM and Explore studies action generation in text-based games. This is the specific bottleneck that comes into view when TextWorld distinguishes typing commands from choosing among admissible options. An agent generating actions must turn a scene description and an intended operation into candidate expressions before it can learn from their consequences. The later study takes that generation problem as its subject, keeping the form of the action central to the study of exploration. Keep CALM and Explore

Work on graph-based deep reinforcement learning for text adventures puts a graph representation into the study of game-playing agents. TextWorld makes the underlying relations explicit on the environment side, including where entities are located and what objects contain. A graph-based approach to play takes relationships as part of how the agent addresses the task. This connects to the problem of accumulating and organizing information as observations arrive from different parts of the world. Playing Text-Adventure Games with Graph-Based Deep Reinforcement Learning

The work on automated quest generation takes up the problem of constructing the tasks themselves. In TextWorld, a generated quest links each step to a predecessor and ends at a condition derived from the last action. The authors identify richer dependency structures as an open direction. Quest generation as a research subject keeps attention on which situations and objectives an environment can create, and on the kind of planning that those constructed tasks can demand. Toward Automated Quest Generation in Text-Adventure Games

Carrying the evaluation question beyond adventure games

MINT evaluates agents over multiple turns with tools and language feedback. The relationship to TextWorld lies in the unit of evaluation. An agent’s next action depends on information returned after an earlier one, and an episode measures how the agent uses that feedback over time. A tool and a game interpreter have different roles, while both create a setting in which choosing an operation and responding to its result are part of the same assessment. MINT

AgentBench takes agent evaluation as its broader subject. TextWorld supplies one concrete formulation of what has to be specified for an interactive test: the information available on each turn, the actions the system can express, and the conditions that end play. The later benchmark’s stated focus on agents carries that evaluation question beyond the particular navigation and retrieval task introduced here. These later directions range from studying the production of a single command to defining the environment in which a whole course of action is judged. AgentBench

 Institutions

 Fields, topics and concepts

 Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works

Appears in

Mentioned in articles aboutCanada

Cite

Cite as Marc-Alexandre Cote, Akos Kadar, Xingdi Yuan, Ben Kybartas, Tavian Barnes, Emery Fine, James Moore, Ruo Yu Tao, Matthew Hausknecht, Layla El Asri, Mahmoud Adada, Wendy Tay and Adam Trischler. 2018. TextWorld: A Learning Environment for Text-based Games. arXiv:1806.11532.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1806.11532 · arXiv 1806.11532

@misc{cote2018textworld,
  title = {{TextWorld: A Learning Environment for Text-based Games}},
  author = {Marc-Alexandre Cote, Akos Kadar, Xingdi Yuan, Ben Kybartas, Tavian Barnes, Emery Fine, James Moore, Ruo Yu Tao, Matthew Hausknecht, Layla {El Asri}, Mahmoud Adada, Wendy Tay and Adam Trischler},
  year = {2018},
  doi = {10.48550/arxiv.1806.11532},
  eprint = {1806.11532},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1806.11532}
}

References

44 references, from the paper's own bibliography.

  1. Douglas Adams and Steve Meretzky. The hitchhiker’s guide to the galaxy, 1984. URL http://ifdb.tads.org/viewgame?id=ouv80gvsl32xlion. OpenAlex ↗ · Scholar ↗
  2. Timothy Atkinson, Hendrik Baier, Tara Copplestone, Sam Devlin, and Jerry Swan. The text-based adventure ai competition. arXiv preprint arXiv:1808.01262, 2018. OpenAlex ↗ · Scholar ↗
  3. Marco Baroni, Armand Joulin, Allan Jabri, Germàn Kruszewski, Angeliki Lazaridou, Klemen Simonic, and Tomas Mikolov. Commai: Evaluating the first steps towards a useful general ai. arXiv preprint arXiv:1701.08954, 2017. OpenAlex ↗ · Scholar ↗
  4. Bob Bates. Sherlock: The riddle of the crown jewels, 1987. URL http://ifdb.tads.org/viewgame?id=j8lmspy4iz73mx26. OpenAlex ↗ · Scholar ↗
  5. Charles Beattie, Joel Z Leibo, Denis Teplyashin, Tom Ward, Marcus Wainwright, Heinrich Küttler, Andrew Lefrancq, Simon Green, Víctor Valdés, Amir Sadik, et al. Deepmind lab. arXiv preprint arXiv:1612.03801, 2016. OpenAlex ↗ · Scholar ↗
  6. Marc G Bellemare, Yavar Naddaf, Joel Veness, and Michael Bowling. The arcade learning environment: An evaluation platform for general agents. J. Artif. Intell. Res.(JAIR), 47:0 253–279, 2013. our card
  7. Yoshua Bengio, Jérôme Louradour, Ronan Collobert, and Jason Weston. Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41–48. ACM, 2009. OpenAlex ↗ · Scholar ↗
  8. Michael Berlyn. Infidel, 1983. URL http://ifdb.tads.org/viewgame?id=anu79a4n1jedg5mm. OpenAlex ↗ · Scholar ↗
  9. Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym. arXiv preprint arXiv:1606.01540, 2016. OpenAlex ↗ · Scholar ↗
  10. Devendra Singh Chaplot, Kanthashree Mysore Sathyendra, Rama Kumar Pasumarthi, Dheeraj Rajagopal, and Ruslan Salakhutdinov. Gated-attention architectures for task-oriented language grounding. arXiv preprint arXiv:1706.07230, 2017. OpenAlex ↗ · Scholar ↗
  11. N. Chomsky. Three models for the description of language. IEEE Transactions on Information Theory, 20 (3):0 113–124, sep 1956. . OpenAlex ↗ · Scholar ↗
  12. William Crowther and Donald Woods. Aventure, 1976. URL http://ifdb.tads.org/viewgame?id=fft6pu91j85y4acv. OpenAlex ↗ · Scholar ↗
  13. Brian Desilets. The enterprise incidents, 2002. URL http://ifdb.tads.org/viewgame?id=ld1f3t5epeagilfz. OpenAlex ↗ · Scholar ↗
  14. Richard E Fikes and Nils J Nilsson. Strips: A new approach to the application of theorem proving to problem solving. Artificial intelligence, 20 (3-4):0 189–208, 1971. our card
  15. Nancy Fulda, Daniel Ricks, Ben Murdoch, and David Wingate. What can you do with a rock? affordance extraction via word embeddings. arXiv preprint arXiv:1703.03429, 2017. OpenAlex ↗ · Scholar ↗
  16. Stu Galley and Jim Lawrence. Seastalker, 1984. URL http://ifdb.tads.org/viewgame?id=56wb8hflec2isvzm. OpenAlex ↗ · Scholar ↗
  17. Michael Genesereth, Nathaniel Love, and Barney Pell. General game playing: Overview of the aaai competition. AI magazine, 260 (2):0 62, 2005. OpenAlex ↗ · Scholar ↗
  18. Michel Gentry. Anchorhead, 1998. URL http://ifdb.tads.org/viewgame?id=op0uw1gn1tjqmjt7. OpenAlex ↗ · Scholar ↗
  19. Russell Glasser. Reverberations, 1996. URL http://ifdb.tads.org/viewgame?id=dop7nbjl90r5zmf9. OpenAlex ↗ · Scholar ↗
  20. J.J. Guest. Goldilocks is a fox!, 2002. URL http://ifdb.tads.org/viewgame?id=59ztsy9p01avd6wp. OpenAlex ↗ · Scholar ↗
  21. Matan Haroush, Tom Zahavy, Daniel J Mankowitz, and Shie Mannor. Learning how not to act in text-based games. International Conference on Learning Representations - Workshop, 2018. OpenAlex ↗ · Scholar ↗
  22. Ji He, Jianshu Chen, Xiaodong He, Jianfeng Gao, Lihong Li, Li Deng, and Mari Ostendorf. Deep reinforcement learning with a natural language action space. arXiv preprint arXiv:1511.04636, 2015. OpenAlex ↗ · Scholar ↗
  23. Matthew Henderson, Blaise Thomson, and Jason D Williams. The second dialog state tracking challenge. In Proceedings of the 15th Annual Meeting of the Special Interest Group on Discourse and Dialogue (SIGDIAL), pages 263–272, 2014. OpenAlex ↗ · Scholar ↗
  24. Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojtek Czarnecki, Max Jaderberg, Denis Teplyashin, et al. Grounded language learning in a simulated 3d world. arXiv preprint arXiv:1706.06551, 2017. our card
  25. Infocom. Zork I, 1980. URL http://ifdb.tads.org/viewgame?id=0dbnusxunq7fw5ro. OpenAlex ↗ · Scholar ↗
  26. Infocom. Zork III, 1982. URL http://ifdb.tads.org/viewgame?id=vrsot1zgy1wfcdru. OpenAlex ↗ · Scholar ↗
  27. Leslie Pack Kaelbling, Michael L Littman, and Anthony R Cassandra. Planning and acting in partially observable stochastic domains. Artificial intelligence, 1010 (1-2):0 99–134, 1998. OpenAlex ↗ · Scholar ↗
  28. Michał Kempka, Marek Wydmuch, Grzegorz Runc, Jakub Toczek, and Wojciech Jaśkowski. Vizdoom: A doom-based ai research platform for visual reinforcement learning. In Computational Intelligence and Games (CIG), 2016 IEEE Conference on, pages 1–8. IEEE, 2016. OpenAlex ↗ · Scholar ↗
  29. Bartosz Kostka, Jaroslaw Kwiecieli, Jakub Kowalski, and Pawel Rychlikowski. Text-based adventures of the golovin ai agent. In Computational Intelligence and Games (CIG), 2017 IEEE Conference on, pages 181–188. IEEE, 2017. OpenAlex ↗ · Scholar ↗
  30. Marlos C Machado, Marc G Bellemare, Erik Talvitie, Joel Veness, Matthew Hausknecht, and Michael Bowling. Revisiting the arcade learning environment: Evaluation protocols and open problems for general agents. arXiv preprint arXiv:1709.06009, 2017. our card
  31. Chris Martens. Ceptre: A language for modeling generative interactive systems. In Eleventh Artificial Intelligence and Interactive Digital Entertainment Conference, 2015. OpenAlex ↗ · Scholar ↗
  32. Roger McFarlane. A survey of exploration strategies in reinforcement learning. 2003. URL http://www.cs.mcgill.ca/∼cs526/roger.pdf. OpenAlex ↗ · Scholar ↗
  33. Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 5180 (7540):0 529–533, 2015. OpenAlex ↗ · Scholar ↗
  34. Brian Moriarty. Wishbringer, 1985. URL http://ifdb.tads.org/viewgame?id=z02joykzh66wfhcl. OpenAlex ↗ · Scholar ↗
  35. Karthik Narasimhan, Tejas Kulkarni, and Regina Barzilay. Language understanding for text-based games using deep reinforcement learning. arXiv preprint arXiv:1506.08941, 2015. our card
  36. Emilio Parisotto and Ruslan Salakhutdinov. Neural map: Structured memory for deep reinforcement learning. arXiv preprint arXiv:1702.08360, 2017. OpenAlex ↗ · Scholar ↗
  37. Karl Pearson. The problem of the random walk. Nature, 720 (1867):0 342, 1905. OpenAlex ↗ · Scholar ↗
  38. Andrew Plotkin. Inhumane, 1985. URL http://ifdb.tads.org/viewgame?id=wvs2vmbigm9unlpd. OpenAlex ↗ · Scholar ↗
  39. Martin L. Puterman. Markov Decision Processes: Discrete Stochastic Dynamic Programming. John Wiley & Sons, Inc., New York, NY, USA, 1st edition, 1994. ISBN 0471619779. OpenAlex ↗ · Scholar ↗
  40. Stuart J Russell and Peter Norvig. Artificial intelligence: a modern approach. Malaysia; Pearson Education Limited,, 2016. OpenAlex ↗ · Scholar ↗
  41. James Ryan, Ethan Seither, Michael Mateas, and Noah Wardrip-Fruin. Expressionist: An Authoring Tool for In-Game Text Generation, pages 221–233. Springer International Publishing, Cham, 2016. ISBN 978-3-319-48279-8. OpenAlex ↗ · Scholar ↗
  42. Sainbayar Sukhbaatar, Arthur Szlam, Gabriel Synnaeve, Soumith Chintala, and Rob Fergus. Mazebase: A sandbox for learning from games. arXiv preprint arXiv:1511.07401, 2015. OpenAlex ↗ · Scholar ↗
  43. Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press Cambridge, 2018. OpenAlex ↗ · Scholar ↗
  44. Will Wright. SimCity. Erbe, 1996. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cote-2018-textworld-learning-environment-text-based/