SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.08069 · 2018

Unsupervised Discrete Sentence Representation Learning for Interpretable Neural Dialog Generation

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 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 4 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-21; 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/1804.08069.json · badge: /api/ran/1804.08069.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
snakeztc/NeuralDialog-LAED canonical (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
ShiminLei/LA-Dialog-Generation-System community (classifier label)
classifier basis: plan_row
2 ran · 0 no recorded run
FunctionStatusWhere it lives
add_argument_group Ran
ran; our contract draft was wrong, not the code
ShiminLei/LA-Dialog-Generation-System/dailydialog-utt-skip.py
code served (permissive licence) · get_code("6d80592fd6d47b2d")
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 _ArgumentGroup. 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 argparse

arg_lists = []
parser = argparse.ArgumentParser()

def add_argument_group(name):
    arg = parser.add_argument_group(name)
    arg_lists.append(arg)
    return arg

ARGS = {
    'name': 'test_group'
}
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 _ArgumentGroup — a _ArgumentGroup output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a _ArgumentGroup 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
load_config Ran
ran on a synthesized input
snakeztc/NeuralDialog-LAED/laed/utils.py
code served (permissive licence) · get_code("a06f85c086e49e42")
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 Namespace. 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 json
import tempfile
import os
from argparse import Namespace

# Create a temporary JSON file with sample config data
temp_config_data = {
    "model_name": "test_model",
    "learning_rate": 0.001,
    "batch_size": 32,
    "epochs": 10,
    "layers": [64, 128, 256]
}

# Write config to a temporary file
temp_dir = tempfile.gettempdir()
config_path = os.path.join(temp_dir, "test_config.json")
with open(config_path, 'w') as f:
    json.dump(temp_config_data, f)

ARGS = {
    "load_path": config_path
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
process_config Ran
ran on a synthesized input
snakeztc/NeuralDialog-LAED/laed/utils.py
code served (permissive licence) · get_code("b1a21e91c2873cda")
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 Namespace. 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
from argparse import Namespace

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a mock params.json file that will be loaded when forward_only is True
mock_params = {
    "forward_only": False,
    "vocab_size": 100,
    "hidden_size": 256,
    "num_layers": 2,
    "dropout": 0.1,
    "learning_rate": 0.001
}

# Create the log directory structure
log_sess = "test_session"
log_dir = temp_dir
sess_dir = os.path.join(log_dir, log_sess)
os.makedirs(sess_dir, exist_ok=True)

# Write the mock params.json file
params_path = os.path.join(sess_dir, 'params.json')
with open(params_path, 'w') as f:
    json.dump(mock_params, f)

# Create the config object to pass to process_config
config = Namespace(
    forward_only=False,
    load_sess=log_sess,
    backward_size=32,
    beam_size=5,
    gen_type="beam",
    log_dir=log_dir,
    batch_size=32,
    vocab_size=100,
    hidden_size=256,
    num_layers=2,
    dropout=0.1,
    learning_rate=0.001
)

ARGS = {
    "config": config
}
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 Namespace — a Namespace output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Namespace 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
str2bool Ran
ran, violated the contract we drafted
snakeztc/NeuralDialog-LAED/laed/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from haoran0301/amenunet, is pointer only (licence: NONE) · get_code("248284f69adfeaad")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from haoran0301/amenunet, and GitHub detected no licence in that repository when it was checked. 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.

summary Ran
ran on a synthesized input
snakeztc/NeuralDialog-LAED/laed/models/model_bases.py
code served (permissive licence) · get_code("b3fcadd509d8c1e8")
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 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.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Build a small model that will work with the summary function
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.relu = nn.ReLU()
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.relu(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model,
    'show_weights': True,
    'show_parameters': True
}
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 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
transfer Ran
ran on a synthesized input
ShiminLei/LA-Dialog-Generation-System/homogeneity.py
code served (permissive licence) · get_code("7aef250dd8c904c7")
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

torch.manual_seed(0)

# The function takes an array and iterates through it,
# building a number by treating each element as a digit.
# The array should contain integers.

array = [1, 2, 3, 4, 5]

ARGS = {
    "array": array
}
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

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 5 later) and 1 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
str2bool 33 other papers
8 dated earlier, 25 later
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1506.03134 (2015-06)
Pointer Networks
1611.09940 (2016-11)
Neural Combinatorial Optimization with Reinforcement Learning
and 30 more not named here
add_argument_group 27 other papers
7 dated earlier, 20 later
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1506.03134 (2015-06)
Pointer Networks
1609.04802 (2016-09)
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
and 24 more not named here
summary 2 other papers
1 dated earlier, 1 later
1710.03957 (2017-10)
DailyDialog: A Manually Labelled Multi-turn Dialogue Dataset
1805.04803 (2018-05)
Zero-Shot Dialog Generation with Cross-Domain Latent Actions
load_config 1 other paper
1 later
1805.04803 (2018-05)
Zero-Shot Dialog Generation with Cross-Domain Latent Actions
process_config 1 other paper
1 later
1805.04803 (2018-05)
Zero-Shot Dialog Generation with Cross-Domain Latent Actions

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

Repositories linked to this paper

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

Abstract

The encoder-decoder dialog model is one of the most prominent methods used to build dialog systems in complex domains. Yet it is limited because it cannot output interpretable actions as in traditional systems, which hinders humans from understanding its generation process. We present an unsupervised discrete sentence representation learning method that can integrate with any existing encoder-decoder dialog models for interpretable response generation. Building upon variational autoencoders (VAEs), we present two novel models, DI-VAE and DI-VST that improve VAEs and can discover interpretable semantics via either auto encoding or context predicting. Our methods have been validated on real-world dialog datasets to discover semantic representations and enhance encoder-decoder models with interpretable generation.

For agents

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

get_harvested_code_for_paper("1804.08069")
get_code_for_paper("1804.08069")
have("1804.08069")

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

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

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

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

Connect an agent — have() is free.