SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1506.07285 · 2015

Ask Me Anything: Dynamic Memory Networks for Natural Language Processing

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 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; 0 honoured the contract we drafted, 1 violated it and 3 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1506.07285.json · badge: /api/ran/1506.07285.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
rgsachin/DMTN community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
Asteur/someChatbot reimplementation (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
acceptable Ran
ran, violated the contract we drafted
Asteur/someChatbot/do_make_db_from_reddit.py
code served (permissive licence) · get_code("4c6947bcd84b3628")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned bool, ndim 0, dtype family float, 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.

ARGS = {
    "data": "This is a sample text with less than fifty words and under one thousand characters."
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, 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
format_data Ran
ran; our contract draft was wrong, not the code
Asteur/someChatbot/do_make_db_from_reddit.py
code served (permissive licence) · get_code("8d6964bc65ba3a5d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned str. 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.

ARGS = {
    "data": "This is a test string.\nIt has newlines\r\nand \"quotes\" in it."
}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
read_model Ran
ran on a synthesized input
rgsachin/DMTN/server/utils.py
code served (permissive licence) · get_code("74ca9bfd068b5ba8")
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 dict. 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 os
import json
import tempfile
import codecs

# Create a temporary directory structure to simulate the file system
temp_dir = tempfile.mkdtemp()
networks_dir = os.path.join(temp_dir, 'networks')
os.makedirs(networks_dir)

# Create a specific network directory
network_name = 'test_network'
network_dir = os.path.join(networks_dir, network_name)
os.makedirs(network_dir)

# Create models subdirectory
models_dir = os.path.join(network_dir, 'models')
os.makedirs(models_dir)

# Create a sample model JSON file
model_name = 'test_model'
model_data = {
    'layers': [
        {'type': 'dense', 'units': 64},
        {'type': 'activation', 'function': 'relu'},
        {'type': 'dense', 'units': 10}
    ],
    'optimizer': 'adam',
    'learning_rate': 0.001
}

model_path = os.path.join(models_dir, model_name + '.json')
with codecs.open(model_path, 'w', 'utf-8') as f:
    json.dump(model_data, f)

ARGS = {
    'base_path': temp_dir,
    'network': network_name,
    'model': model_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
read_models Ran
ran on a synthesized input
rgsachin/DMTN/server/utils.py
code served (permissive licence) · get_code("424e57200c684027")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 os
import json
import tempfile
import shutil

# Create a temporary directory structure with test data
temp_dir = tempfile.mkdtemp()
base_path = temp_dir

# Create the directory structure: base_path/networks/network_name/models/
network_name = "test_network"
models_dir = os.path.join(base_path, 'networks', network_name, 'models')
os.makedirs(models_dir, exist_ok=True)

# Create some sample model JSON files
model1 = {
    'id': 'model_001',
    'name': 'Model One',
    'description': 'First test model'
}

model2 = {
    'id': 'model_002',
    'name': 'Model Two',
    'description': 'Second test model'
}

with open(os.path.join(models_dir, 'model1.json'), 'w') as f:
    json.dump(model1, f)

with open(os.path.join(models_dir, 'model2.json'), 'w') as f:
    json.dump(model2, f)

ARGS = {
    'base_path': base_path,
    'network': network_name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
read_networks Ran
ran on a synthesized input
rgsachin/DMTN/server/utils.py
code served (permissive licence) · get_code("40187d54cb967040")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 codecs
import os
import json
import tempfile
import shutil

# Create a temporary directory structure with networks and info.json files
temp_base = tempfile.mkdtemp()
networks_dir = os.path.join(temp_base, 'networks')
os.makedirs(networks_dir)

# Create a couple of network directories with info.json files
for i in range(2):
    network_dir = os.path.join(networks_dir, f'network_{i}')
    os.makedirs(network_dir)
    
    # Create info.json for each network
    info_data = {
        'name': f'network_{i}',
        'layers': 3 + i,
        'parameters': 1000 * (i + 1)
    }
    
    info_path = os.path.join(network_dir, 'info.json')
    with codecs.open(info_path, 'w', 'utf-8') as f:
        json.dump(info_data, f)

ARGS = {
    'base_path': temp_base
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 4 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
acceptable 1 other paper
1 later
1510.03055 (2015-10)
A Diversity-Promoting Objective Function for Neural Conversation Models

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-22.

Repositories linked to this paper

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

Abstract

Most tasks in natural language processing can be cast into question answering (QA) problems over language input. We introduce the dynamic memory network (DMN), a neural network architecture which processes input sequences and questions, forms episodic memories, and generates relevant answers. Questions trigger an iterative attention process which allows the model to condition its attention on the inputs and the result of previous iterations. These results are then reasoned over in a hierarchical recurrent sequence model to generate answers. The DMN can be trained end-to-end and obtains state-of-the-art results on several types of tasks and datasets: question answering (Facebook's bAbI dataset), text classification for sentiment analysis (Stanford Sentiment Treebank) and sequence modeling for part-of-speech tagging (WSJ-PTB). The training for these different tasks relies exclusively on trained word vector representations and input-question-answer triplets.

For agents

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

get_harvested_code_for_paper("1506.07285")
get_code_for_paper("1506.07285")
have("1506.07285")

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

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

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

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

Connect an agent — have() is free.