SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1506.02078 · 2015

Visualizing and Understanding Recurrent Networks

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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, 0 violated it and 9 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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.02078.json · badge: /api/ran/1506.02078.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
Chatha-Sphere/script-monkey community (classifier label)
classifier basis not recorded on the link
6 ran · 0 no recorded run
suyash/char-rnn community (classifier label)
classifier basis not recorded on the link
3 ran · 2 no recorded run
FunctionStatusWhere it lives
decode Ran
ran on a synthesized input
suyash/char-rnn/trainer/utils.py
code served (permissive licence) · get_code("acac44063c79b2c6")
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.

# Analyzing the function, it takes a single parameter 'c' which is compared against integers
# The function performs conditional logic on c and returns an integer
# c appears to be a scalar integer value

ARGS = {
    'c': 50
}
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 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
decode_one_hot Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/helpers.py
pointer only (licence: MIT) · get_code("2ac0924038c4e901")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

encode Ran
ran on a synthesized input
suyash/char-rnn/trainer/utils.py
code served (permissive licence) · get_code("6139f410cb6039fd")
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

def encode(c):
    if c == 9:
        return 1
    elif c == 10:
        return 127 - 30
    elif 32 <= c <= 126:
        return c - 30
    else:
        return 0

# The function takes a single character/integer parameter c
# and returns an encoded integer value based on the input

# Test with a few different values to understand the function behavior:
# c=9 -> 1
# c=10 -> 97
# c=65 (in range 32-126) -> 35
# c=5 (outside all conditions) -> 0

ARGS = {
    "c": 65
}
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
extract_kjv_data Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/corpora.py
pointer only (licence: MIT) · get_code("eaa271edb79d430e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_shakespeare_data Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/corpora.py
pointer only (licence: MIT) · get_code("24bb612d7a4d86c8")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_target_tensor Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/helpers.py
pointer only (licence: MIT) · get_code("dd8e25cb9ad839e4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_sequences Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/corpora.py
pointer only (licence: MIT) · get_code("3d62a16026ebc304")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

one_hot Ran
ran on a synthesized input
Chatha-Sphere/script-monkey/helpers.py
pointer only (licence: MIT) · get_code("cf92679c97ec2eaf")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, Chatha-Sphere/script-monkey, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample Ran
ran on a synthesized input
suyash/char-rnn/trainer/utils.py
code served (permissive licence) · get_code("5728f8170d8a1824")
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 int64, 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 numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create a probability distribution array
# The function expects an array of probabilities that sums to 1
# It has 98 choices, so we need 98 elements
p = np.random.dirichlet(np.ones(98))

# Construct ARGS dict
ARGS = {
    "p": p,
    "topn": 98
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int64, 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
create_iterator Not yet run
unverified (harvested, no recorded run)
suyash/char-rnn/trainer/input.py
code served (permissive licence) · get_code("4128a4e274ae454e")
How it ran

no invocation recorded.

create_model Not yet run
unverified (harvested, no recorded run)
suyash/char-rnn/trainer/model.py
code served (permissive licence) · get_code("713dd9651f20ddb3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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

Repositories linked to this paper

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

Abstract

Recurrent Neural Networks (RNNs), and specifically a variant with Long Short-Term Memory (LSTM), are enjoying renewed interest as a result of successful applications in a wide range of machine learning problems that involve sequential data. However, while LSTMs provide exceptional results in practice, the source of their performance and their limitations remain rather poorly understood. Using character-level language models as an interpretable testbed, we aim to bridge this gap by providing an analysis of their representations, predictions and error types. In particular, our experiments reveal the existence of interpretable cells that keep track of long-range dependencies such as line lengths, quotes and brackets. Moreover, our comparative analysis with finite horizon n-gram models traces the source of the LSTM improvements to long-range structural dependencies. Finally, we provide analysis of the remaining errors and suggests areas for further study.

For agents

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

get_harvested_code_for_paper("1506.02078")
get_code_for_paper("1506.02078")
have("1506.02078")

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

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

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

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

Connect an agent — have() is free.