Datasets:
context stringlengths 290 66.5k | entity stringclasses 12
values | positive_state stringclasses 4
values | negative_state stringclasses 4
values |
|---|---|---|---|
-= Bedroom =-
Well, here we are in the bedroom.
Look out! It's a- oh, never mind, it's just a chest drawer. Were you looking for an antique trunk? Because look over there, it's an antique trunk. You can see a king-size bed. What a coincidence, weren't you just thinking about a king-size bed? But oh no! there's nothing ... | tomato plant | eaten | not eaten |
-= Bedroom =-
Look at that signboard! What does it say? It says Welcome to the bedroom? Well that's cool.
You can make out a closed chest drawer. You can make out an antique trunk. Hmmm... what else, what else? You see a king-size bed. The king-size bed is standard. Unfortunately, there isn't a thing on it.
There is a ... | tomato plant | eaten | not eaten |
-= Bedroom =-
You arrive in a bedroom. A normal one. The room is well lit.
You see a chest drawer. You scan the room for an antique trunk, and you find an antique trunk! You lean against the wall, inadvertently pressing a secret button. The wall opens up to reveal a king-size bed. I guess it's true what they say, if yo... | tomato plant | eaten | not eaten |
-= Bedroom =-
Well, here we are in the bedroom.
Look out! It's a- oh, never mind, it's just a chest drawer. Were you looking for an antique trunk? Because look over there, it's an antique trunk. You can see a king-size bed. What a coincidence, weren't you just thinking about a king-size bed? But oh no! there's nothing ... | tomato plant | eaten | not eaten |
-= Bedroom =-
You've entered a bedroom.
You make out a chest drawer. You lean against the wall, inadvertently pressing a secret button. The wall opens up to reveal an antique trunk. You see a king-size bed. But the thing is empty, unfortunately.
There is a closed wooden door leading east.
> inventory
You are carrying n... | tomato plant | eaten | not eaten |
-= Bedroom =-
You're now in the bedroom. Okay, just remember what you're here to do, and everything will go great.
You can make out a closed chest drawer. You hear a noise behind you and spin around, but you can't see anything other than an antique trunk, so there's that. You scan the room, seeing a king-size bed. The ... | tomato plant | eaten | not eaten |
-= Bedroom =-
Well, here we are in the bedroom.
Look out! It's a- oh, never mind, it's just a chest drawer. Were you looking for an antique trunk? Because look over there, it's an antique trunk. You can see a king-size bed. What a coincidence, weren't you just thinking about a king-size bed? But oh no! there's nothing ... | tomato plant | eaten | not eaten |
"-= Bedroom =-\nWell, here we are in the bedroom. Let's see what's in here.\nYou can see a closed ch(...TRUNCATED) | tomato plant | eaten | not eaten |
"-= Bedroom =-\nYou arrive in a bedroom. A normal one. The room is well lit.\nYou see a chest drawer(...TRUNCATED) | tomato plant | eaten | not eaten |
"-= Bedroom =-\nYou're now in the bedroom.\nYou bend down to tie your shoe. When you stand up, you n(...TRUNCATED) | tomato plant | eaten | not eaten |
TextWorld State Tracking Dataset
Dataset Description
This dataset contains 27,145 examples for evaluating language models' ability to track object states across narrative contexts. The data is derived from TextWorld, an interactive text-based game environment, and formatted for state tracking evaluation.
Dataset Summary
Each example presents a narrative context (a sequence of game observations and actions) along with:
- An entity (object) being tracked
- Its positive_state (the true current state)
- A negative_state (a mutually exclusive contrastive state)
The task is to determine which state correctly describes the entity given the context.
Key Statistics:
- Total examples: 27,145
- Train: 24,076 examples
- Dev: 3,069 examples
- Tracked properties: 3 (open, closed, eaten)
- Average context length: ~2,850 words (median: 2,064 words)
- Context length range: 53 - 12,855 words (25th-75th percentile: 950 - 4,180 words)
- Unique entities: 13 distinct objects tracked
- Entities tracked: Various objects from TextWorld environments (doors, containers, food items, etc.)
Supported Tasks
- Binary State Classification: Given context and entity, predict which of two states is correct
- State Tracking: Track state changes of entities across narrative sequences
- Reading Comprehension: Understanding implicit and explicit state information from text
Languages
The dataset is in English.
Dataset Structure
Data Instances
Each instance contains:
{
"context": "Text describing the game state and actions taken",
"entity": "Name of the object being tracked",
"positive_state": "The correct current state (e.g., 'closed', 'eaten', 'open')",
"negative_state": "A contrastive incorrect state (e.g., 'open', 'not eaten', 'closed')"
}
Example:
{
"context": "-= Bedroom =-\nYou see a closed chest drawer. You see an antique trunk...\n> open chest drawer\nYou open the chest drawer.",
"entity": "chest drawer",
"positive_state": "open",
"negative_state": "closed"
}
Data Fields
context(string): Progressive narrative showing the game state, observations, and actions taken. Includes room descriptions and action-response pairs.entity(string): The specific object whose state is being tracked (e.g., "wooden door", "apple", "refrigerator")positive_state(string): The ground truth current state of the entity. One of: "open", "closed", or "eaten"negative_state(string): A mutually exclusive state that does NOT describe the entity. One of: "closed", "open", or "not eaten"
Data Splits
| Train | Dev | |
|---|---|---|
| Examples | 24,076 | 3,069 |
The splits are based on distinct TextWorld game traces, ensuring no overlap in source trajectories.
Dataset Creation
Source Data
The dataset is derived from TextWorld game traces generated using the TextWorld framework. TextWorld creates procedurally generated text-based games with consistent world states.
Initial Data Collection
- Game Generation: TextWorld environments were generated with various objects and properties
- Trace Collection: Agent trajectories were collected, capturing sequences of actions and observations
- State Extraction: Ground truth entity states were extracted from the game engine's internal state
Data Processing
The raw TextWorld traces underwent several processing steps:
State Annotation: Each game step was annotated with the current states of all entities
Context Assembly: Progressive contexts were built by accumulating observations and actions
Quality Filtering:
- Minimum context length: 50 words (ensures non-trivial examples)
- Entity mention verification: Entity must be mentioned in context
- Property mention verification: State must be mentioned in context
- State balance filtering: Entities must appear with multiple states (prevents trivial learning)
Contrastive Pair Creation: For each entity-state pair, a mutually exclusive contrastive state was assigned
Annotations
Annotation process
Annotations are automatically extracted from TextWorld's game engine, which maintains perfect ground truth about entity states. No human annotation was required.
Who are the annotators?
N/A - Automatically generated from game engine state.
Personal and Sensitive Information
The dataset contains only synthetic text from procedurally generated games. No personal or sensitive information is present.
Considerations for Using the Data
Social Impact of Dataset
This is a synthetic dataset for research purposes, with no direct social impact concerns.
Discussion of Biases
The dataset reflects the structure and vocabulary of TextWorld environments:
- Limited to household/indoor settings
- Stereotypical room layouts and object placements
- Formulaic language patterns from the text generation templates
Other Known Limitations
- Limited Property Types: Only tracks 3 property types (open/closed/eaten)
- Limited Entity Diversity: Only 13 unique entities across all 27K examples
- Synthetic Language: Generated text has repetitive patterns and is not representative of natural language
- Domain-Specific: Focused on household objects and simple spatial relations
- State Simplicity: Real-world states are more complex and nuanced
- Long Contexts: Average of ~2,850 words may exceed context windows of smaller models
- Context Redundancy: Progressive contexts include many repeated observations and may allow shortcuts without full state tracking
Additional Information
Dataset Curators
Created as part of research on language model state tracking capabilities.
Licensing Information
MIT License
Citation Information
@dataset{textworld_state_tracking_2024,
title={TextWorld State Tracking Dataset},
author={Anonymous},
year={2024},
publisher={Hugging Face},
howpublished={\url{https://huggingface.co/datasets/YOUR_USERNAME/textworld-state-tracking}}
}
Contributions
Built using the TextWorld framework by Microsoft Research.
- Downloads last month
- 10