---
title: "ScienceWorld: Is your Agent Smarter than a 5th Grader? (2022)"
description: "ScienceWorld tests whether agents can use elementary science to run experiments in a text simulator, from melting ice to testing conductivity."
canonical: "https://research.elamur.ai/free/en/papers/wang-2022-scienceworld-is-your-agent-smarter/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/wang-2022-scienceworld-is-your-agent-smarter/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / ScienceWorld: Is your Agent Smarter than a 5th Grader?

# ScienceWorld: Is your Agent Smarter than a 5th Grader?

Paper · 2022 · Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté et al.

**Authors:** Ruoyao Wang, [Peter Jansen](https://md.research.elamur.ai/free/en/authors/peter-jansen/), [Marc-Alexandre Côté](https://md.research.elamur.ai/free/en/authors/marc-alexandre-cote/) and [Prithviraj Ammanabrolu](https://md.research.elamur.ai/free/en/authors/prithviraj-ammanabrolu/) · **Year:** 2022 · **Venue:** Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **107** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/wang-2022-scienceworld-is-your-agent-smarter/cited-by/) · Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2022.emnlp-main.775/)
- [PDF](https://aclanthology.org/2022.emnlp-main.775.pdf)
- [DOI 10.18653/v1/2022.emnlp-main.775](https://doi.org/10.18653/v1/2022.emnlp-main.775)
- [arXiv 2203.07540](https://arxiv.org/abs/2203.07540)

## Summary

Knowing that metal conducts electricity is different from finding out whether an unfamiliar object does. The second task requires an experiment. Someone has to gather the equipment, make the right connections, and decide what the result means. ScienceWorld turns this distinction into a test of [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/). Its agents read descriptions of a virtual world in [English](https://md.research.elamur.ai/free/en/topics/english/) and act by issuing text commands. In a conductivity task, they can put the test object into a circuit and observe whether a bulb lights. The authors can then inspect what an agent did and use the simulator to check what those actions accomplished.

The environment covers 30 tasks drawn from 10 elementary science topics, including changes of state, measurement, chemical mixtures, pollination, and Mendelian inheritance. A house and its surroundings provide 10 connected locations, with up to 200 kinds of objects and 25 high-level actions. The authors estimate roughly 200k possible action–object combinations per step before accounting for what is meaningful in the current situation. The simulator handles processes such as heat transfer, electrical circuits, chemical changes, and plant development. It is implemented in 40k lines of Scala and exposes a Python interface. Task variants change key objects, starting locations, and surrounding contents so that a memorized route or a familiar name may be insufficient on a test run.

A successful run can serve as an explanation of how the agent accomplished the task. For example, the simulator can recognize that ice has melted after it has been heated or left to warm, so a valid solution can differ from the authors’ demonstration. This kind of explanation has a precise scope. The record establishes which actions produced an outcome in the simulated world. A scientific account of why the outcome followed would require information that the action record alone does not supply.

The authors evaluate 5 learned agents spanning reinforcement learning and imitation from expert demonstrations. The best, the Deep Reinforcement Relevance Network, or DRRN, earns a mean normalized score of 0.17 across all 30 subtasks on held-out variations. It has 1.5 million parameters and learns through interaction. It outperforms agents built around an 11 billion parameter T5 network initialized for scientific [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/) and trained offline on expert examples. The authors compare the overall difficulty with that of medium-difficulty text adventures such as Zork. Even with access to a simulator-supplied list of currently valid actions, which most tested approaches used, agents struggled with ordinary steps such as finding their way around and handling objects. The results support the authors’ case for interactive training while showing how much successful experimentation depends on those everyday skills.

## Deep dive: ScienceWorld: Is your Agent Smarter than a 5th Grader?

ScienceWorld tests whether agents can use elementary science to run experiments in a text simulator, from melting ice to testing conductivity. · about 35 minutes to read

**In this deep dive**

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

### The problem and its context

#### What a correct answer establishes

The paper starts from a difficulty in interpreting strong results on school science exams. These exams were attractive benchmarks because they ask for more than isolated definitions. A student may need to combine knowledge of a scientific process with ordinary knowledge about objects and situations. The [AI2 Reasoning Challenge](https://md.research.elamur.ai/free/en/papers/clark-2018-think-have-solved-question-answering/) is among the examples the authors cite. The authors report that by the time ScienceWorld appeared, the best systems described in prior work could correctly answer over 90% of multiple-choice questions. Work such as [UNIFIEDQA](https://md.research.elamur.ai/free/en/papers/khashabi-2020-unifiedqa-crossing-format-boundaries-single/) represents the progress in answering that motivated the change in emphasis.

A correct response establishes that the system selected or produced the accepted answer. Its usefulness as a measure of reusable science knowledge depends on what the question demanded. Familiar wording may point towards a familiar answer. A system may also assemble an answer from pieces that occur frequently together. Those abilities can be valuable in their own right. The authors ask whether the same knowledge helps when an agent has to decide what to do in a particular situation and the consequences depend on those decisions.

Consider the paper's example of ice on a stove. Predicting that the ice will melt calls for an association between heat and a change of state. Accomplishing the change requires the agent to identify the intended substance, determine what equipment is available, and arrange for heat to reach it. The task may then require time to pass before the relevant change can be observed. The scientific fact guides the procedure, while details of the world determine how that procedure can be carried out. ScienceWorld makes both demands part of a single assessment.

This is also a distinction between recognizing an outcome someone has described and creating the conditions under which it will occur. An exam question can supply a working setup in its opening sentence. The agent in ScienceWorld may have to construct that setup before the scientific part of the question becomes answerable. For the authors, putting knowledge to work means bridging the gap between a general statement and a sequence of actions whose feasibility depends on the current state of the environment.

#### Why explanations are difficult to grade

As exam answers improved, researchers increasingly asked systems to supply explanations. The paper discusses resources such as [WorldTree](https://md.research.elamur.ai/free/en/papers/jansen-2018-worldtree-corpus-explanation-graphs-elementary/) and [Entailment Trees](https://md.research.elamur.ai/free/en/papers/dalvi-2021-explaining-answers-entailment-trees/), which give structure to explanations involving several pieces of information. Such resources create a second evaluation problem. An explanation may be sound even when the author of the reference explanation used another chain of reasoning or expressed a relevant step differently.

The ScienceWorld authors cite prior work in which comparison with a single reference underestimated explanation performance by up to 40%. Collecting alternative explanations can make the evaluation more inclusive, but the paper notes the expense of that work and describes efforts that added only one or two alternatives per question. The underlying difficulty is that a collection of references represents selected examples of what could count as a good explanation. Even a carefully constructed collection may leave out a legitimate path.

In ScienceWorld, the action record can be executed and checked against the goals of the task. Ice can melt after the use of a stove, over a campfire, or through exposure to a warmer room. A reference transcript might show only one of those procedures. The simulator can still check whether the specified material changed state in a particular run. This shifts the comparison from similarity to a reference to consequences in an environment with explicit rules.

The shift addresses the part of explanation that concerns how to obtain a result. Earlier work cited by the paper also concerns [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) in the sense of explaining a classifier's decision, as in [LIME](https://md.research.elamur.ai/free/en/papers/ribeiro-2016-why-should-i-trust-explaining/), or explaining why an answer follows from scientific premises. A record of actions answers a different question. It may be easier to verify because the relevant behavior can be replayed, while leaving the agent's rationale and the general scientific principle implicit.

#### What text environments already offered

ScienceWorld also builds on a tradition of treating text adventures as environments for learning to act. A world represented through text can offer actions such as going through a door or picking up an object without requiring a visual rendering or a detailed account of how to move a hand. The authors argue that this makes it possible to represent tasks at a useful level of abstraction and at lower development cost than detailed 3D worlds. They also recognize that a large textual simulation is still substantial work.

The paper distinguishes several kinds of earlier environment. Interactive fiction such as Zork supplies already constructed worlds through a common interface like Jericho. Purpose-built environments such as Kitchen Cleanup and TextWorld Common Sense connect knowledge to action by asking agents to put objects where they normally belong. Choosing where to put a hat calls for ordinary knowledge. Getting it there calls for a procedure. The paper identifies TextLabs as the closest predecessor because it represents scientific protocols, with operations such as pipetting and centrifuging.

The proposed extension is in the dynamics of the world and the range of phenomena available for tasks. An object that has been picked up and put down may stay where it was placed. A substance undergoing a change of temperature has a state that can continue to evolve as the agent does other things. A growing plant has requirements that must be met over time. A circuit works only when its components and connections satisfy the simulated electrical conditions. These processes give the authors a way to pose tasks whose outcomes depend on a changing world as well as on the immediate effects of commands.

The distinction mattered for implementation. The paper describes earlier tooling as centered largely on changes caused by the agent. [TextWorld](https://md.research.elamur.ai/free/en/papers/cote-2018-textworld-learning-environment-text-based/) can specify what must hold before an action and what holds afterwards, using linear logic and generating Inform7 code. The ScienceWorld authors wanted physical processes such as heat exchange to evolve even when they were incidental to the current command. They therefore built a simulator that could update those processes alongside ordinary actions.

The paper situates its evaluated agents in an equally varied tradition. Some earlier systems learned to choose among available commands through reinforcement learning, using rewards from the environment. Others added relational representations or generated candidate actions from text. Imitation learning offered another route, treating expert play as data from which to predict the next command. The latter approach had already been applied to situated action and dialogue. [How to Motivate Your Dragon](https://md.research.elamur.ai/free/en/papers/ammanabrolu-2021-how-motivate-your-dragon-teaching/) is the precedent the authors follow when adapting behavior cloning. ScienceWorld brings these approaches to the same collection of experiments, where recognizing relevant words is only one part of getting a result.

### The method, step by step

#### What happens during a run

A run starts with a task description and a particular version of the world. In a conductivity task, the description tells the agent what to classify. The agent receives text about its surroundings and can ask the simulator to perform actions. It might need to move to another room, open a container, or collect relevant equipment before it can test anything. In the paper's example, a metal fork becomes part of a circuit with a red bulb. The light provides an observable result, and the task can require the object to be put into an answer container to register the classification.

The simulator maintains the complete state. An agent encounters it through local descriptions, the text produced by actions, and information such as what it is carrying. After a command, the world may change in ways relevant to later steps. A container that was closed can now expose its contents. A component can become active when the circuit is complete. The state recorded by the simulator also allows it to recognize progress that the agent may describe imprecisely or fail to describe at all.

How a ScienceWorld episode works The steps in order.

The diagram describes the common interaction loop, including agents that request help choosing valid commands. In that case, the agent can obtain a current candidate list before it selects a command. For another agent, the parser may be the first point at which a generated command is checked against the world. The point at which validity is resolved matters because the language needed to describe an action and the state needed to carry it out present separate problems.

#### How objects and commands fit together

The map is fixed in its connections, but ScienceWorld can populate it differently on each initialization. A living room may have a bookcase in one variation and lack it in another. Even where a bookcase appears, its contents can differ. The environment includes familiar locations such as a kitchen and workshop, as well as a greenhouse and an outdoor area. The stable map supports learning useful routes, while changes to objects, their locations, and the agent's starting point help keep a practiced route from being a complete solution.

The appendix gives a more specific inventory of up to 195 object types, excluding variations within a type. Changing the color of a wire, for example, does not create a new type for that count. Objects are implemented as classes with properties for features such as material, behavior as a device, or progress through a life cycle. Containment is represented as a tree. An object's parent is its immediate container, and the objects it holds are its children. This lets a room hold furniture and a piece of furniture hold further objects, while keeping each object's location available to the simulator.

An object can supply different names depending on its state. Solid water, for instance, can be referred to as ice. This ties language to a continuing object in the simulation even when one of its important properties changes. An agent may likewise encounter several visible objects that share a name. The parser checks the referents currently available from the agent's point of view. If a command to take an apple could refer to an apple on a table or to another in a bowl, the system can ask which one the agent means.

Actions are specified through templates with slots for objects or locations. A movement command can have more than one wording, while commands to pour or connect things require the agent to identify what is being acted on. The appendix gives a rough estimate of 200,000 possible actions at a step when the templates are combined with object choices without checking their usefulness. The meaningful choices in a particular room or situation are far fewer. A list of valid actions can remove many infeasible choices, though the agent still has to decide which legal move is relevant to the task.

#### Why the world changes between commands

The simulation engines give collections of objects behavior over time. Heat flows between objects in thermal contact within a container, using a simplified treatment in which material properties affect how much is transferred at each step. The temperature of the surrounding room can also affect objects. Devices such as ovens and freezers add or remove heat. Materials have thresholds for changes of state and for combustion, so the consequences of placing an object somewhere depend on its material, the surrounding conditions, and what happens afterward.

This design makes the phase change a consequence of the state of the substance. In a melting episode, moving something onto a heat source can start the process, but the required result is a change from solid to liquid in the selected substance. The agent can pursue that result by different means. In a task that disables a familiar appliance, knowledge of the usual solution still has to be adapted to the equipment that works in the current world.

The electrical engine represents simple series circuits. Powered components such as bulbs and motors depend on a correctly connected source and conducting path. The agent makes connections between specific terminals. Polarized components distinguish anode and cathode, and ordinary objects have virtual terminals so that they can be inserted into a test circuit. This representation is what turns a fork into a possible component of an experiment. Its conductivity affects the outcome through the simulated circuit, independently of what its name suggests.

The rules for devices can also depend on their setting. A solar panel produces power outdoors, for instance, and a thermometer can be used on another object to obtain its temperature. Chemical mixtures have rules for particular sets of inputs within a container. Where a task supplies a recipe, the agent can obtain some of the information it needs by finding and reading it. It still has to identify the ingredients and create the conditions under which the mixture will change.

For organisms, the simulator represents growth as stages. A plant can develop as its needs continue to be met and die if conditions fail. Flowers can exchange pollen through a pollinator and later produce fruit containing seeds. For selected plants, the simulator represents inheritance with a Punnett square, combining alleles from the parents and using dominance to determine traits visible in the descendants. This lets a genetics task ask the agent to work with the appearance of successive generations as evidence about a trait.

The engine for forces takes a narrower approach. It represents movement along an inclined plane, with the block's progress affected by the plane's angle and the friction of its surface. The agent can read descriptions of where a block has reached. Some tasks ask it to compare how long blocks take to move down different planes, using either elapsed steps or a stopwatch available in the world. The implementation gives a textual agent something observable to measure without asking it to judge a scene from a picture.

#### How the authors turn phenomena into tasks

The authors select 10 broad topics from a classification containing 400 fine-grained science curriculum topics. They favor topics that can be represented in text and whose essential steps do not rely on precise spatial judgment. Each selected topic contributes between 2 and 4 tasks. The resulting collection includes relatively direct requests, such as measuring the temperature of an object, and requests that depend on finding materials, carrying out several operations, or monitoring a change.

One task format asks the agent to produce a measurable state. Growing a fruit is an example. An agent can work toward it by cultivating plants and arranging pollination, while the simulator checks whether the result appeared. Another format asks for a choice after an inference. For a melting-point measurement, an agent might need to heat a substance and monitor it, then indicate whether its melting point lies above or below a threshold by focusing on the corresponding answer box. In the conductivity example, the answer is registered by moving the test object into the appropriate container.

There are also tasks that assess identification and ordering. In object classification, the agent finds something that belongs to a specified category and takes it to an answer box. In the life-span tasks, it has to find the animals present and identify the longest-lived, shortest-lived, or the requested ordering of these. In the life-stage tasks, the agent focuses on the stages of a named organism in sequence. These tasks share the same text interface as the experiments but distribute difficulty differently between recognizing the answer, locating the relevant objects, and completing the required actions.

Some subtasks deliberately give an agent a choice of scientific route. A particular change of state may be required, or any phase change to the named substance may satisfy the goal. The second version leaves more of the planning to the agent. Other tasks specify a constraint on the method, such as powering a component with a renewable source. Such a constraint changes what counts as a successful outcome even if an unconstrained circuit would light the same bulb.

The role of object names is controlled more directly in paired tasks. An object can have an ordinary name associated with a known property, or the world can supply a label that says little about the property. In the masked version, the authors also generate the relevant properties, so learning that a familiar material has some usual behavior does not answer the new instance. The corresponding test can still be carried out with the same kinds of observations and controls. The pair is designed to expose whether knowledge associated with a name offers a shortcut and whether the agent can proceed when that shortcut is unavailable.

#### What the scoring procedure checks

The authors distinguish required goals from optional milestones. A phase-change task may require the agent to focus on the substance before acting on it, and then to cause the required change. The focus command gives the simulator an explicit record of the agent's selection. Otherwise, a change somewhere in the environment could be attributed to the task even when the agent had selected no target. The end-state check connects the action sequence to the particular intervention it is supposed to demonstrate.

Tasks contain anywhere from 2 to 15 optional subgoals apiece. These can reward useful intermediate progress, such as activating a stove or raising the temperature of a substance by 10C. The extra rewards address sparsity. If the agent received feedback only after the entire experiment succeeded, many partly productive attempts would return the same reward as aimless action. Intermediate milestones make it possible for an agent to receive a learning signal before it has mastered the whole procedure.

Meeting required and optional goals increases the score, and task scores are normalized to the interval from 0 to 1. The completion conditions allow different routes to the required outcome, while the optional goals can favor recognizable steps from standard procedures. This difference matters when interpreting an average. A score can record progress on a task whose final result was never obtained. The scoring procedure therefore serves both as a measure of behavior and as feedback that helps shape that behavior during training.

The authors also supply expert traces generated by 30 hand-coded oracles. An oracle here is a scripted agent that demonstrates a standard method for a particular subtask and its variations. It can show how a sensible sequence adapts when the target object or the surrounding setup changes. These traces supply concrete actions for imitation learning. The simulator's goal checks have a wider role than the traces because they can recognize successful episodes that take routes outside the scripted demonstrations.

#### The formal decision problem

The paper represents interaction as a partially observable Markov decision process, abbreviated POMDP. Partial observability means that the simulator has information about the full world that the agent may need to uncover. The decision process links the state of that world, the command the agent chooses, the information it receives, and the reward it earns.

```
⟨S, T, A, R, O, Ω, γ⟩
```

The angle brackets group the components. S is the set of possible world states, and T specifies conditional probabilities for transitions between states. A is the set of text commands, and R assigns a reward to a state and action. O is the set of possible textual observations, and Ω describes how states give rise to observations. The discount factor γ gives future rewards their weight in the learning objective. The task description accompanies this process as a separate input.

```
R: S × A → ℝ
```

R is the reward function. S and A denote the state and command sets. The multiplication sign forms the set of state–command pairs. The arrow gives the output type, and ℝ is the set of real numbers from which the reward is drawn.

```
Ω: S → O
```

Ω denotes the observation rule, S the possible world states, and O the possible observations. The arrow shows the direction from the underlying world to the text available to the agent. The paper describes this part of the process in terms of conditional observation probabilities. From the agent's perspective, seeing a cupboard in a room can establish part of the state while leaving its closed contents unknown.

```
γ ∈ [0, 1]
```

Here γ is the discount factor and ∈ means that its allowed values belong to the closed interval shown. The endpoints are 0 and 1. In the discounted objective, a smaller γ places more emphasis on nearer rewards, while a value of 1 applies no discount for delay.

```
πθ(o) → a
```

The symbol π denotes the policy, meaning the rule the agent uses to pick a command. The subscript θ denotes the parameters learned by that policy, and o is the current textual observation in the paper's general notation. The output a is a command from A. Specific agents can also use the task description d or include recent interaction history and other available text.

```
𝔼[∑ₜ γᵗ R(sₜ, aₜ)]
```

The expectation 𝔼 averages over possible trajectories. The summation ∑ₜ adds contributions over timesteps indexed by t. At step t, sₜ is the world state and aₜ is the command the agent takes. The reward function R gives the reward for that pair, and γᵗ applies the discount factor raised to the time index. A learned policy aims to make this expected total large. A command can contribute to that objective by setting up a later action even when its immediate reward is small.

#### How the agents learn what to do

The random baseline draws a command from the simulator's valid list at each step. It provides a reference for what legal but undirected behavior can accomplish. In the paper's notation, Aₜ is the set of valid commands at step t. Access to Aₜ means the baseline can act on the world. Its selection procedure has no learned preference for moving an experiment forward.

DRRN also chooses from Aₜ. It learns separate representations of the observation and the available commands, allowing it to estimate which command is valuable in the current situation. Its input includes information about the room and inventory. The connection between the estimated value and eventual consequences comes from feedback gathered during interaction. The appendix reports an embedding size and hidden size of 128 each, a learning rate of 0.0001, a memory size of 100k, and a priority fraction of 0.50. The input is segmented with a unigram [subword tokenizer](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) adapted from [Subword Regularization](https://md.research.elamur.ai/free/en/papers/kudo-2018-subword-regularization-improving-neural-network/).

KG-A2C represents the observed situation as a [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/). A relation can connect a bottle to the water it contains, for instance. The general approach the paper describes uses open [information extraction](https://md.research.elamur.ai/free/en/topics/information-extraction/) of the kind discussed in [Leveraging Linguistic Structure for Open Domain Information Extraction](https://md.research.elamur.ai/free/en/papers/angeli-2015-leveraging-linguistic-structure-open-domain/). For these experiments the authors replace that extractor with regular expressions applied to the room and inventory text. The resulting triples represent what is observable to the agent. The policy chooses an action template and object types to fill its slots, then grounds those types in visible objects. If several visible objects match the same chosen type, the implementation picks one at random. KG-A2C shares the DRRN tokenizer and uses a learning rate of 0.003.

[CALM](https://md.research.elamur.ai/free/en/papers/yao-2020-keep-calm-explore-language-models/) divides action selection into proposing and ranking. The authors use the expert transcripts to [fine-tune](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) a pretrained GPT-2 generator, which proposes commands. A separate reinforcement learning policy scores those proposals and selects one to try. Thus the system can acquire a preference for commands that resemble useful actions in the demonstrations and can learn from simulated rewards which of its candidates to choose. The ranker can only act on the candidates it receives.

The appendix specifies this generator input as a sequence of fields.

```
[CLS] d [SEP] oₜ [SEP] oₜˡᵒᵒᵏ [SEP] oₜⁱⁿᵛ [SEP] oₜ₋₁ [SEP] aₜ₋₁ [SEP]
```

The square brackets are part of the special token names. CLS begins the input, and each SEP marks a boundary. The task description is d. The current observation oₜ excludes the separately supplied room description oₜˡᵒᵒᵏ and inventory oₜⁱⁿᵛ. The preceding observation is oₜ₋₁ and the preceding action is aₜ₋₁. Here t is the current step and t − 1 is the immediately preceding step. The target is aₜ, the action taken at the current step in the demonstration.

The 12-layer GPT-2 generator uses a hidden size of 768 and has 12 attention heads. Training runs for 20 epochs with 12 samples per batch and a learning rate of zero.00002. The CALM ranking policy uses 0.0001. The main methods description gives a shortlist of 30 possible actions, while the appendix specifies beam search with 16 beams and a diversity penalty of 50.0. Beam search keeps several candidate continuations in play during generation. The diversity penalty encourages the generator to explore different continuations so the ranking policy has alternatives to consider. The paper gives both candidate settings without explaining their relation.

Behavior Cloning also learns from demonstrations. The authors take 211,092 examples from the same training transcripts and use them to train a text-to-text [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) with the [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/) architecture. The initial weights and tokenizer come from Macaw, which had already been trained for scientific question answering. Each example comes from a step of an expert run, so the supervised problem is to reproduce the action the expert chose after receiving the input.

```
(d, oₜ₋₁, aₜ₋₁, oₜ) → aₜ
```

The parentheses group the input fields and the arrow points to the training target. The task is described by d. The observation and action at the previous step are oₜ₋₁ and aₜ₋₁, while oₜ is the observation at the current step. The desired output aₜ is the expert command at step t. The subscripts specify the order of these events within a trajectory.

The Text Decision Transformer retains this action prediction setup and adds information about how much reward remains in the expert trajectory. The authors extract 224,902 examples for that variant. A command seen in a trajectory with a high remaining return can thereby be associated with the future results of the demonstration. The agent still has to generate a command appropriate for its current observation.

```
R̂ = ∑ₜ′₌ₜᵀ rₜ′
```

R̂, read as return-to-go, is the sum of rewards still to come along the expert trajectory from the indexed step. The summation starts at t, the current step, and ends at T, the last step in this formula. Here T is an endpoint, while T in the POMDP tuple refers to the transition rule. The index t′ ranges over the steps in the sum, and rₜ′ is the reward the expert receives at the indexed step. This sum counts the rewards along the recorded trajectory without the discounting in the general policy objective.

```
(d, oₜ₋₁, R̂ₜ₋₁, aₜ₋₁, oₜ, R̂ₜ) → aₜ
```

The parentheses delimit the input and the arrow identifies the action target. The symbols d, o, and a denote the task description, observations, and actions, with subscripts indicating the current step t or the preceding step t − 1. R̂ₜ₋₁ and R̂ₜ are the returns-to-go from those respective steps in the expert data. The target aₜ is again the command the expert performed at step t. The added quantities make reward remaining in the trajectory an explicit part of the prediction problem.

According to the appendix, both T5 agents train for 100k gradient update steps on a v3-32 TPU pod using 32-way parallelism and batches of 16. During test episodes, the agents use a beam size of 16 and a diversity penalty of 50.0 to generate a ranked set of candidates. The simulator's valid list is then used to choose the highest-ranked candidate that can be executed. The paper relates this idea to the alignment of generated action text with executable choices in [Zero-Shot Planners](https://md.research.elamur.ai/free/en/papers/huang-2022-language-models-zero-shot-planners/). The T5 weights remain fixed as the agent acts during a test episode. The authors released the ScienceWorld code, with the simulator and its Python interface, and made scripted expert trajectories available for imitation learning.

### Experiments and results

#### What the test set holds out

The authors construct 7200 variations across the 30 subtasks, with between 10 and 1400 variations for any one subtask. Differences include which object is involved, where the agent starts, and what the surrounding world contains. For phase-change tasks, a variation can also remove the use of a common appliance. A trace that works in one setup may therefore need revision even when the wording of the objective appears familiar.

Within a subtask, 50% of the variations go into training, 25% into development, and 25% into testing. The authors organize the split to put critical unseen substances, plants, or animals into development and test. This provides a stronger test than replaying a scene the agent saw during training. The goal structure and the general world still belong to the same benchmark. The central generalization question is whether a learned procedure can be applied to a new instance of a familiar task family.

The reinforcement learning runs use 8 parallel environment threads at 100k steps per thread, with a limit of 100 steps per episode. Episodes also reset on success or failure. For KG-A2C and CALM, the appendix specifies an additional reset after 100 invalid attempts when an agent becomes stuck, since the simulator does not count invalid commands as ordinary steps. This distinction prevents a stalled policy from remaining indefinitely in an episode that is making no progress through the environment.

The authors evaluate the reinforcement learning agents every 1000 steps on each thread. They sample 10 test variations per evaluation and run 1 episode on each sampled variation. The headline comparison averages performance over the last 10% of those evaluation episodes. For the offline T5 agents the authors run an episode on each test variation of a subtask and average the resulting task scores. Both procedures measure behavior on held-out variations, with different coverage and sources of variation in the reported averages.

The main results caption describes a 5-seed protocol for the reinforcement learning results and reports that 80% of the standard deviations across seeds are below 0.05, with 95% below 0.10. The appendix specifies 5 seeds for DRRN and KG-A2C and 3 for CALM. The reported summary of variance describes variation between runs. It gives no direct measure of how evenly the agent performed across tasks or across individual world configurations.

#### The strongest agent and the scale of the comparison

DRRN achieves the best reported result, a mean normalized score of 0.17 on held-out variations across all 30 subtasks. The score incorporates partial progress, so it cannot be read as the fraction of tasks the agent finished. The authors characterize the result as modest, comparing it with the performance they cite for agents in medium-difficulty interactive fiction. The comparison with Zork situates the difficulty of the benchmark. The study uses elementary school topics as a reference for the subject matter rather than reporting a matched experiment with schoolchildren.

The random baseline receives valid choices and supplies the reference for undirected action. Among learned agents, the paper reports that using the simulator's validity aid generally gave an advantage over having to produce legal commands. CALM and the two T5 agents were hampered by their candidate lists. These lists often contained few commands the environment could execute. That creates a bottleneck before any scoring of the actions' scientific usefulness can help. When the needed action is absent from the list, a good ranker has no way to recover it at that step.

The parameter counts show the resources represented by different approaches. The CALM total of 131M includes its pretrained GPT-2 generator, with only 6.9 million policy parameters updated during reinforcement learning. The 770m count is the size of each smaller T5 variant used in the appendix comparison. The larger T5 agents have 11 billion parameters. The chart compares counts reported in millions. The outcome of the benchmark is the mean task score above, while parameter count describes system size.

ScienceWorld agent and network sizes for selected benchmark settings The strongest agent used the smallest network in this comparison.

**The numbers**

| System or setting | million parameters |
| --- | --- |
| DRRN (this paper) | 1.5 |
| CALM including the GPT-2 generator | 131 |
| Macaw-Large T5 network | 770 |

The pattern matters because the T5 agents entered the benchmark with scientific question-answering training and then learned from expert actions. Their poor results could arise in ordinary places, such as an inability to reach an object, as well as in the science-specific parts of an experiment. DRRN demonstrates that a comparatively small system can make better use of task feedback and an explicit set of available actions in this environment. The entire difference in score cannot be assigned to its smaller size or to interaction alone, since those features occur alongside differences in how the agents represent and choose commands.

The authors also identify concrete instances of ordinary world knowledge becoming a practical obstacle. Terms such as container and room are easy to understand in a short narrative, but an agent has to use them consistently over many steps. It must know what can hold liquid, remember which room it needs to reach, and find its way back while carrying the relevant object. When these steps fail, the episode may reveal little about whether the agent could have made the scientific inference at the end.

### What the ablations show

#### Finding an object and finishing the delivery

The paper examines reward curves for selected tasks and supplies curves for the wider task set in its appendix. These traces chart performance on held-out variations as the reinforcement learning agents acquire more training experience. They show where episode scores begin to rise and where further interaction gives little visible improvement. The authors also look at action histories to see which parts of the tasks account for those patterns.

Task 4-2, which asks the agent to find something nonliving and put it in a designated container, is the best-performing task highlighted in the results. The agents can choose from many suitable objects. The reported curves and action traces suggest that the reinforcement learning agents often learn much of the task quickly, while picking up the object and delivering it to the final container remain difficult. The classification question is comparatively simple. Completing the run can still require object handling and movement between locations.

Task 1-4 offers a different kind of choice. Almost any object will do in the nonliving classification task, whereas in the phase-change task the substance is fixed and the agent can choose which phase change to produce. The agents perform poorly on this more open task. The comparison illustrates that offering multiple acceptable outcomes can still demand substantial planning. In this case the agent has to find a plausible intervention for the available substance and apparatus, then carry it through until the state changes. The comparison gives examples of contrasting task structures. It does not isolate openness as the cause of the performance difference.

#### What masking a name tests

Tasks 3-3 and 3-4 make a more targeted comparison. In Task 3-3, an ordinary name such as metal fork can supply a clue about conductivity before any experiment. An agent that can use that clue may be able to choose the right answer in fewer steps. In Task 3-4, the unfamiliar name is paired with a generated property, so the agent has to obtain evidence from the world to classify the substance reliably.

The authors expected the pair to distinguish the use of familiar properties from successful experimentation. They did not observe a clear demonstration of the anticipated shortcut. The agents frequently struggled with prerequisites such as navigation, leaving them unable to exploit relevant knowledge even when familiar names were available. This makes the pair informative about the setup as well as the agents. Once both variants encounter the same early obstacle, the final scores reveal little about which source of evidence an agent would use after overcoming it. Conductivity is the question that distinguishes the pair, but ordinary action is the condition that allows the distinction to be measured.

The appendix incorporates a similar idea into tasks about friction and inheritance. A named surface or known plant can carry clues from earlier reading. A generated variant reduces the value of those clues while preserving a way to gather evidence through interaction. These are comparisons between task conditions. The paper's reported conductivity analysis gives an example of what happens when the shared demands of a task are already difficult, so the presence or absence of the name cue does less explanatory work than intended.

#### What size and prior science training change

The appendix compares different sizes of the T5 agents and contrasts general T5 pretraining with the science question-answering initialization from Macaw. The science-specific initialization performs better in the reported comparison. That result suggests a role for external scientific knowledge even though the full benchmark measures action. Starting with knowledge that is useful for answering science questions appears to help the agent extract value from demonstrations or observations. The comparison measures the outcome of the initialization choices together with the subsequent agent training. It does not identify which facts or abilities account for the gain.

The smaller T5-Large and Macaw-Large variants, at 770m parameters each, outperform the 11 billion parameter variants by approximately a factor of two in the appendix comparison of mean ScienceWorld task performance. The authors describe the smaller variants as having 14 times fewer parameters. The direction of this comparison differs from the expectation that a larger network will necessarily perform better on the downstream task. A larger generator can still produce commands that the environment cannot execute or fail to generate the useful option at the moment it is needed.

The paper treats the result as suggestive evidence of inverse scaling, meaning that performance can fall as size rises. The authors explicitly leave open the role of different hyper-parameters. They cite the cost of retraining and testing these systems as a reason they cannot resolve that question. The comparison establishes an ordering for the tested configurations. It leaves the ordering under separately tuned or more tightly matched conditions undetermined.

Access to valid actions and the comparison between online and offline learning provide further evidence about the task, but both combine several design differences. The validity aid can remove unusable commands before selection. The systems that rely on it also differ in what they learn from and how they score a move. Similarly, DRRN gathers rewards from the trajectories it actually visits, whereas the offline agents learn from expert trajectories and then use different action-selection machinery at test time. These comparisons expose points of failure and support the value of interacting with the environment. They do not measure the independent effect of switching a single component in an otherwise fixed agent.

### Limitations

#### Limits identified by the authors

The authors point out that an agent can find a plausible phrase for an action and still produce a command that fails in the current world. Most of the evaluated agents depend on the valid-action aid at test time, which makes the search much easier. The list reflects information about what can be done in a particular state. A policy allowed to choose directly from the list faces a narrower problem than one responsible for producing the command from text alone. The paper's results therefore describe performance under specific kinds of access to the simulator, including access that many unconstrained text interfaces might lack.

The authors also limit the fidelity of the environment on purpose. Heat transfer is simplified, biological changes occur in stages, and the electrical engine covers simple series circuits without advanced effects such as resistance and inductance. The text seen by the agent is comparatively short to fit the input lengths of the systems the authors evaluated. Episodes can involve rich internal state, while a description intended for practical use by a text agent presents a much smaller view of that state.

The simulator also omits some hazards a person would face when doing similar activities. A virtual agent can manipulate heating equipment without injury. The authors describe the work as exploratory and caution that the trajectories are unsuitable as demonstrations of safe real-world practice. They point to [ALFWorld](https://md.research.elamur.ai/free/en/papers/shridhar-2020-alfworld-aligning-text-embodied-environments/) as an example of how related textual and 3D environments can be used to study transfer. ScienceWorld measures the behavior of agents inside its own environment.

A further limitation concerns explanation. An executable action sequence describes a way to arrive at a result. The authors note that it may leave out why a step was chosen, what causal principle it uses, or how the agent decomposed the goal. A trace involving a stove may show successful melting without stating why heating helps or how that choice generalizes to a different setup. The authors suggest that higher-level explanatory steps could make procedures more intelligible to a person and might also help the agent organize its behavior. That possibility is a direction raised by the paper.

#### Limits that follow from the design

The first interpretive limit is that the task score combines progress of several kinds. It reflects interaction with the parser, navigation, common knowledge about objects, and the scientific procedure. A low score can result from failing early in any of those stages. It can also result from finding the evidence and failing to register the answer in the prescribed way. Trajectories and selected contrasts help locate these failures, but the overall mean cannot tell a reader which competence is missing.

Conversely, the presence of optional goals means that partial success can affect the aggregate even when the main scientific objective is unmet. The optional milestones are useful for training, and a successful alternative procedure can satisfy the method-independent required goals. Yet a reward that favors a conventional intermediate step may influence which solution the agent learns and how much credit an incomplete episode receives. It is possible to learn to make measurable progress without learning how to finish. That possibility is part of the reason the benchmark's score and its traces answer complementary questions.

The demonstration data impose a related constraint. The scripts show canonical solutions adapted to variations. A policy trained to copy those solutions sees expert choices along the routes the scripts take. It sees less of the situations brought about by its own earlier mistakes, such as reaching a room without the object that the next action presupposes. The study's offline comparison therefore concerns imitation under the demonstration and generation setup the authors used. Other ways of collecting or using trajectories could change the comparison, and the experiment leaves their effects open.

The split establishes transfer within designed task families more directly than transfer to wholly new scientific problems. New objects and arrangements can make a procedure harder to apply, especially when their names provide no useful clue. The episodes still share a simulator, an action language, and goal structures with the training environment. The study can examine whether an agent adapts an experiment to unfamiliar conditions within that world. It leaves questions about inventing an completely new experiment or transferring the procedure to another world unanswered.

Finally, some implementation details merit care when comparing budgets and performance. The appendix describes 100k gradient update steps for T5 training, while the discussion gives 10⁶ as a matched update count with respect to the ScienceWorld training tasks. The paper does not reconcile those figures. The appendix also reports that a prompt error was discovered in CALM. Pilot experiments suggested a change of ±0.01 in performance, and the authors kept the full runs, which they say would have required up to 6000 GPU hours to regenerate. Together with the different test averaging procedures and the separate seed count for CALM, these details make the comparison clearest as an evaluation of the complete systems under their reported protocols.

### What came after

#### Environments for scientific work

The later work includes several extensions of the question ScienceWorld posed about evaluating agents through scientific tasks. [DiscoveryWorld](https://md.research.elamur.ai/free/en/papers/jansen-2024-discoveryworld-virtual-environment-developing/) develops a virtual environment for automated scientific discovery agents. The shift in stated scope is from carrying out experiments drawn from a curriculum to developing and evaluating systems concerned with discovery. The shared idea is that a scientific capability can be studied in a world where an agent has decisions to make and where consequences can be examined.

[Aviary](https://md.research.elamur.ai/free/en/papers/narayanan-2024-aviary-training-language-agents/) takes training on challenging scientific tasks as its focus. It connects to the ScienceWorld question about how agents acquire the skills for scientific work. Scene descriptions, task goals, and opportunities to act can be used to develop a system as well as to measure it. The title gives the direction of the contribution, while leaving open which results from the elementary science setting transfer to its tasks.

[PaperBench](https://md.research.elamur.ai/free/en/papers/starace-2025-paperbench-evaluating-ai-s/) takes replication of AI research as the activity to evaluate. The connection is the emphasis on carrying out a scientific procedure and evaluating what was accomplished. ScienceWorld tests bounded experiments whose outcomes can be checked in a custom simulator. Replication puts the emphasis on reproducing work associated with a research paper. [SciExplore](https://md.research.elamur.ai/free/en/papers/tang-2026-sciexplore-evaluating-autonomous-agents-scientific/) points to another part of scientific work through its focus on navigation and information integration. These works broaden the range of scientific activities used to pose questions about autonomous performance.

#### Action, adaptation, and evaluation

Several citing works take up problems that are visible in ScienceWorld even outside the science domain. [Executable Code Actions](https://md.research.elamur.ai/free/en/papers/wang-2024-executable-code-actions-elicit-better/) addresses the form in which agents express their actions by exploring executable code. In ScienceWorld, generation helps only when the system's candidates include a command that is both executable and appropriate to the current situation. Changing the action representation is one way of approaching the gap between expressing an intention and producing something an environment can carry out.

[SwiftSage](https://md.research.elamur.ai/free/en/papers/lin-2023-swiftsage-generative-agent-fast-slow/) brings fast and slow thinking to complex interactive tasks. That distinction addresses a question raised by the benchmark's long procedures. Some moves follow directly from a familiar local situation. Others require working out what observations are needed, which equipment to use, and in what order to do things. [CLIN](https://md.research.elamur.ai/free/en/papers/majumder-2023-clin-continually-learning-language-agent/) focuses on continual learning for rapid adaptation and generalization. Its focus connects to the need to adjust procedures when a material, the available apparatus, or a starting location changes.

[AgentBoard](https://md.research.elamur.ai/free/en/papers/ma-2024-agentboard-analytical-evaluation-board-multi/) takes multi-turn evaluation as its subject. ScienceWorld illustrates the motivation for that perspective because the answer at the end of a run can depend on a series of earlier actions whose contributions differ. Intermediate progress may show that an agent found the right object or set up an experiment even when the run falls short. An analytical evaluation of multi-turn agents puts those distinctions at the center of the assessment.

The citing surveys extend the discussion to wider questions about how to characterize agents. [Understanding the Planning of LLM Agents](https://md.research.elamur.ai/free/en/papers/huang-2024-understanding-planning-llm-agents-survey/) concerns the problem of organizing actions toward goals, which ScienceWorld makes observable through the steps of an experiment. [A Survey on Evaluation of LLM-Based Agents](https://md.research.elamur.ai/free/en/papers/yehudai-2026-survey-evaluation-llm-based-agents/) places evaluation itself at the center. Across these strands, the concrete problem posed by ScienceWorld remains recognizable. An agent's final response is only part of the evidence when reaching it requires a sequence of decisions, observations, and actions in a changing environment.

## Cite

Cite as Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté and Prithviraj Ammanabrolu. 2022. ScienceWorld: Is your Agent Smarter than a 5th Grader?. Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2022.emnlp-main.775](https://doi.org/10.18653/v1/2022.emnlp-main.775) · [arXiv 2203.07540](https://arxiv.org/abs/2203.07540)

```bibtex
@inproceedings{wang2022scienceworld,
  title = {{ScienceWorld: Is your Agent Smarter than a 5th Grader?}},
  author = {Ruoyao Wang, Peter Jansen, Marc-Alexandre Côté and Prithviraj Ammanabrolu},
  booktitle = {Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.775},
  eprint = {2203.07540},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2022.emnlp-main.775}
}
```

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