SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.06981 · NeurIPS · 2025

Deep RL Needs Deep Behavior Analysis: Exploring Implicit Planning by Model-Free Agents in Open-Ended Environments

John Vastola, Riley Simmons-Edler, Ryan Badman, Kanaka Rajan, Raymond Chua, Felix Berg, Joshua Lunger, William Qian

arXiv · PDF · Open in the Atlas

Code that ran

4 of 16 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 12 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2506.06981.json · badge: /api/ran/2506.06981.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
RileySE/Craftax-Foraging canonical (classifier label)
classifier basis not recorded on the link
2 ran · 11 no recorded run
flatironinstitute/nemos canonical (classifier label)
classifier basis not recorded on the link
2 ran · 1 no recorded run
FunctionStatusWhere it lives
achievement_mapping Ran
ran, honoured the contract we drafted
RileySE/Craftax-Foraging/craftax/craftax/constants.py
code served (permissive licence) · get_code("25c2020d2f7ef242")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from enum import Enum

class Achievement(Enum):
    COLLECT_WOOD = 0
    PLACE_TABLE = 1
    EAT_COW = 2
    COLLECT_SAPLING = 3
    COLLECT_DRINK = 4
    MAKE_WOOD_PICKAXE = 5
    MAKE_WOOD_SWORD = 6
    PLACE_PLANT = 7
    DEFEAT_ZOMBIE = 8
    COLLECT_STONE = 9
    PLACE_STONE = 10
    EAT_PLANT = 11
    DEFEAT_SKELETON = 12
    MAKE_STONE_PICKAXE = 13
    MAKE_STONE_SWORD = 14
    WAKE_UP = 15
    PLACE_FURNACE = 16
    COLLECT_COAL = 17
    COLLECT_IRON = 18
    COLLECT_DIAMOND = 19
    MAKE_IRON_PICKAXE = 20
    MAKE_IRON_SWORD = 21
    MAKE_ARROW = 22
    MAKE_TORCH = 23
    PLACE_TORCH = 24
    COLLECT_SAPPHIRE = 54
    COLLECT_RUBY = 59
    MAKE_DIAMOND_PICKAXE = 60
    MAKE_DIAMOND_SWORD = 25
    MAKE_IRON_ARMOUR = 26
    MAKE_DIAMOND_ARMOUR = 27
    ENTER_GNOMISH_MINES = 28
    ENTER_DUNGEON = 29
    ENTER_SEWERS = 30
    ENTER_VAULT = 31
    ENTER_TROLL_MINES = 32
    ENTER_FIRE_REALM = 33
    ENTER_ICE_REALM = 34
    ENTER_GRAVEYARD = 35
    DEFEAT_GNOME_WARRIOR = 36
    DEFEAT_GNOME_ARCHER = 37
    DEFEAT_ORC_SOLIDER = 38
    DEFEAT_ORC_MAGE = 39
    DEFEAT_LIZARD = 40
    DEFEAT_KOBOLD = 41
    DEFEAT_KNIGHT = 65
    DEFEAT_ARCHER = 66
    DEFEAT_TROLL = 42
    DEFEAT_DEEP_THING = 43
    DEFEAT_PIGMAN = 44
    DEFEAT_FIRE_ELEMENTAL = 45
    DEFEAT_FROST_TROLL = 46
    DEFEAT_ICE_ELEMENTAL = 47
    DAMAGE_NECROMANCER = 48
    DEFEAT_NECROMANCER = 49
    EAT_BAT = 50
    EAT_SNAIL = 51
    FIND_BOW = 52
    FIRE_BOW = 53
    LEARN_FIREBALL = 55
    CAST_FIREBALL = 56
    LEARN_ICEBALL = 57
    CAST_ICEBALL = 58
    OPEN_CHEST = 61
    DRINK_POTION = 62
    ENCHANT_SWORD = 63
    ENCHANT_ARMOUR = 64

INTERMEDIATE_ACHIEVEMENTS = [Achievement.COLLECT_SAPPHIRE.value, Achievement.COLLECT_RUBY.value, Achievement.MAKE_DIAMOND_PICKAXE.value, Achievement.MAKE_DIAMOND_SWORD.value, Achievement.MAKE_IRON_ARMOUR.value, Achievement.MAKE_DIAMOND_ARMOUR.value, Achievement.ENTER_GNOMISH_MINES.value, Achievement.ENTER_DUNGEON.value, Achievement.DEFEAT_GNOME_WARRIOR.value, Achievement.DEFEAT_GNOME_ARCHER.value, Achievement.DEFEAT_ORC_SOLIDER.value, Achievement.DEFEAT_ORC_MAGE.value, Achievement.EAT_BAT.value, Achievement.EAT_SNAIL.value, Achievement.FIND_BOW.value, Achievement.FIRE_BOW.value, Achievement.OPEN_CHEST.value, Achievement.DRINK_POTION.value]

VERY_ADVANCED_ACHIEVEMENTS = [Achievement.ENTER_FIRE_REALM.value, Achievement.ENTER_ICE_REALM.value, Achievement.ENTER_GRAVEYARD.value, Achievement.DEFEAT_PIGMAN.value, Achievement.DEFEAT_FIRE_ELEMENTAL.value, Achievement.DEFEAT_FROST_TROLL.value, Achievement.DEFEAT_ICE_ELEMENTAL.value, Achievement.DAMAGE_NECROMANCER.value, Achievement.DEFEAT_NECROMANCER.value]

def achievement_mapping(achievement_value):
    if achievement_value <= 24:
        return 1
    elif achievement_value in INTERMEDIATE_ACHIEVEMENTS:
        return 3
    elif achievement_value in VERY_ADVANCED_ACHIEVEMENTS:
        return 8
    else:
        return 5

ARGS = {
    "achievement_value": 10
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
add_constant Ran
ran on a synthesized input
flatironinstitute/nemos/src/nemos/identifiability_constraints.py
code served (permissive licence) · get_code("7b38be70887ea35d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 2, dtype family float, shape (2, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Create a small input array
# The function expects x to be a JAX array with shape (batch_size, features)
# We'll create a 2x4 array (batch=2, features=4)
x = jnp.array([[1.0, 2.0, 3.0, 4.0],
                [5.0, 6.0, 7.0, 8.0]], dtype=jnp.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (2, 5) — shape (2, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
apply_alpha Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
RileySE/Craftax-Foraging/craftax/craftax/constants.py
code served (permissive licence) · get_code("4d0be89673d8cab0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 3, dtype family float, shape (2, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Create a small texture tensor with shape (height, width, channels)
# The function expects shape (..., 4) where last dim is RGBA
# Using distinct sizes: 2 for height, 3 for width, 4 for channels (RGBA)
texture_data = np.random.rand(2, 3, 4).astype(np.float32)
texture = jnp.array(texture_data)

ARGS = {
    "texture": texture
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (2, 3, 3) — shape (2, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
strip_metadata Ran
ran on a synthesized input
flatironinstitute/nemos/src/nemos/base_regressor.py
code served (permissive licence) · get_code("693bba1963fbe521")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from functools import wraps

torch.manual_seed(0)

class MockDataWithMetadata:
    """Mock object with _metadata and columns attributes."""
    def __init__(self):
        self._metadata = {'key': 'value'}
        self.columns = ['col1', 'col2', 'col3']

class MockDataWithoutMetadata:
    """Mock object without _metadata and columns attributes."""
    pass

class MockModule(nn.Module):
    """Mock module that uses the decorator."""
    
    @classmethod
    def create_decorated_method(cls):
        def decorator(func):
            @wraps(func)
            def wrapper(self, *args, **kwargs):
                arg_num = 0
                arg_name = 'data'
                if arg_name in kwargs:
                    inp = kwargs[arg_name]
                else:
                    inp = args[min(arg_num, len(args) - 1)]
                self._metadata = {
                    'metadata': inp._metadata if hasattr(inp, '_metadata') else None,
                    'columns': inp.columns if hasattr(inp, 'columns') else None
                }
                return func(self, *args, **kwargs)
            return wrapper
        return decorator
    
    def __init__(self):
        super().__init__()

def test_function():
    """Test function to decorate."""
    return "result"

# Create instances to use as arguments
mock_obj_with_metadata = MockDataWithMetadata()
mock_obj_without_metadata = MockDataWithoutMetadata()

ARGS = {
    'arg_num': 0,
    'arg_name': 'data'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
add_items_from_chest Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax/game_logic.py
code served (permissive licence) · get_code("452461fc56e8a3b9")
How it ran

no invocation recorded.

in_bounds Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/game_logic.py
code served (permissive licence) · get_code("69f869f3f372b3a9")
How it ran

no invocation recorded.

instantiate_observation_model Not yet run
unverified (harvested, no recorded run)
flatironinstitute/nemos/src/nemos/_observation_model_builder.py
code served (permissive licence) · get_code("041c3e0a0040e821")
How it ran

no invocation recorded.

is_game_over Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax/game_logic.py
code served (permissive licence) · get_code("f92b11ac53caaa07")
How it ran

no invocation recorded.

is_game_over Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/game_logic.py
code served (permissive licence) · get_code("79fc8ae7f8130cd9")
How it ran

no invocation recorded.

is_in_wall Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/game_logic.py
code served (permissive licence) · get_code("e0e34adbed9cddba")
How it ran

no invocation recorded.

load_all_textures Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/constants.py
code served (permissive licence) · get_code("ba9883e3164be49f")
How it ran

no invocation recorded.

load_texture Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax/constants.py
code served (permissive licence) · get_code("0e4f725c462b9425")
How it ran

no invocation recorded.

load_texture Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/constants.py
code served (permissive licence) · get_code("cca7f6b57e668ad3")
How it ran

no invocation recorded.

render_craftax_symbolic Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/renderer.py
code served (permissive licence) · get_code("460a9842c0d89a60")
How it ran

no invocation recorded.

render_pixels_empty Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax_classic/renderer.py
code served (permissive licence) · get_code("29c36adfd0931f6f")
How it ran

no invocation recorded.

update_plants_with_eat Not yet run
unverified (harvested, no recorded run)
RileySE/Craftax-Foraging/craftax/craftax/game_logic.py
code served (permissive licence) · get_code("7bb9713c73e31d70")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 10 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 2 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
apply_alpha 2 other papers
1 dated earlier, 1 later
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
2606.08340 (2026-06)
Benchmarking Open-Ended Multi-Agent Coordination in Language Agents
achievement_mapping 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
in_bounds 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
is_game_over 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
is_game_over 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
is_in_wall 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
load_texture 1 other paper
1 later
2606.08340 (2026-06)
Benchmarking Open-Ended Multi-Agent Coordination in Language Agents
render_craftax_symbolic 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
render_pixels_empty 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning
update_plants_with_eat 1 other paper
1 dated earlier
2402.16801 (2024-02)
Craftax: A Lightning-Fast Benchmark for Open-Ended Reinforcement Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Understanding the behavior of deep reinforcement learning (DRL) agentsparticularly as task and agent sophistication increase-requires more than simple comparison of reward curves, yet standard methods for behavioral analysis remain underdeveloped in DRL. We apply tools from neuroscience and ethology to study DRL agents in a novel, complex, partially observable environment, ForageWorld, designed to capture key aspects of real-world animal foraging-including sparse, depleting resource patches, predator threats, and spatially extended arenas. We use this environment as a platform for applying joint behavioral and neural analysis to agents, revealing detailed, quantitatively grounded insights into agent strategies, memory, and planning. Contrary to common assumptions, we find that modelfree RNN-based DRL agents can exhibit structured, planning-like behavior purely through emergent dynamics-without requiring explicit memory modules or world models. Our results show that studying DRL agents like animals-analyzing them with neuroethology-inspired tools that reveal structure in both behavior and neural dynamics-uncovers rich structure in their learning dynamics that would otherwise remain invisible. We distill these tools into a general analysis framework linking core behavioral and representational features to diagnostic methods, which can be reused for a wide range of tasks and agents. As agents grow more complex and autonomous, bridging neuroscience, cognitive science, and AI will be essential-not just for understanding their behavior, but for ensuring safe alignment and maximizing desirable behaviors that are hard to measure via reward. We show how this can be done by drawing on lessons from how biological intelligence is studied.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2506.06981")
get_code_for_paper("2506.06981")
have("2506.06981")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2506.06981.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2506.06981.svg)](https://syntology.ai/paper/2506.06981)

Connect an agent — have() is free.