SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1906.05572 · 2019

Proactive Human-Machine Conversation with Explicit Conversation Goals

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, 0 violated it and 6 have no contract verdict; 0 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/1906.05572.json · badge: /api/ran/1906.05572.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
yangyucheng000/duconv_Ascend community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
yangyucheng000/ducon_GPU community (classifier label)
classifier basis not recorded on the link
3 ran · 0 no recorded run
FunctionStatusWhere it lives
calc_bp Ran
ran on a synthesized input
yangyucheng000/duconv_Ascend/src/eval_310.py
code served (permissive licence) · get_code("3403dd7254b3b71d")
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 float, 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.

import math

# The function expects pair_list which is a list of pairs
# Each pair contains (pred_tokens1, gold_tokens1)
# These are used with len(), so they need to be sequences (lists, tuples, etc.)

# Create sample token lists of different lengths to test the logic
pred_tokens_1 = ["the", "cat", "sat"]
gold_tokens_1 = ["the", "cat", "sat", "on"]

pred_tokens_2 = ["a", "dog"]
gold_tokens_2 = ["a", "dog", "runs"]

# Create the pair_list
pair_list = [
    (pred_tokens_1, gold_tokens_1),
    (pred_tokens_2, gold_tokens_2)
]

ARGS = {
    "pair_list": pair_list
}
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 float, 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
calc_cover_rate Ran
ran on a synthesized input
yangyucheng000/duconv_Ascend/src/eval_310.py
code served (permissive licence) · get_code("7ce802101946a654")
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 float, 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.

# Setup code for calc_cover_rate function

# Define the functions (copied from the problem statement)
def get_dict(tokens, ngram, gdict=None):
    """
    get dict
    """
    token_dict = {}
    if gdict is not None:
        token_dict = gdict
    tlen = len(tokens)
    for i in range(0, tlen - ngram + 1):
        ngram_token = ''.join(tokens[i:i + ngram])
        if token_dict.get(ngram_token) is not None:
            token_dict[ngram_token] += 1
        else:
            token_dict[ngram_token] = 1
    return token_dict

def count(pred_tokens, gold_tokens, ngram, result):
    """
    count
    """
    pred_dict = get_dict(pred_tokens, ngram)
    gold_dict = get_dict(gold_tokens, ngram)
    cur_cover_count = 0
    cur_total_count = 0
    for token, freq in pred_dict.items():
        if gold_dict.get(token) is not None:
            gold_freq = gold_dict[token]
            cur_cover_count += min(freq, gold_freq)
        cur_total_count += freq
    result[0] += cur_cover_count
    result[1] += cur_total_count

def calc_cover_rate(pair_list, ngram):
    """
    calc_cover_rate
    """
    result = [0.0, 0.0]
    for pair in pair_list:
        pred_tokens2, gold_tokens2 = pair
        count(pred_tokens2, gold_tokens2, ngram, result)
    cover_rate = result[0] / result[1]
    return cover_rate

# Create valid arguments
pred_tokens_1 = ['h', 'e', 'l', 'l', 'o']
gold_tokens_1 = ['h', 'e', 'l', 'l', 'o', 'w']

pred_tokens_2 = ['w', 'o', 'r', 'l', 'd']
gold_tokens_2 = ['w', 'o', 'r', 'l', 'd']

pair_list = [
    (pred_tokens_1, gold_tokens_1),
    (pred_tokens_2, gold_tokens_2)
]

ngram_value = 2

ARGS = {
    'pair_list': pair_list,
    'ngram': ngram_value
}
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 float, 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
convert_single_example Ran
ran on a synthesized input
yangyucheng000/ducon_GPU/src/reader.py
code served (permissive licence) · get_code("42ecf6e94739c7db")
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 InputFeatures. 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 numpy as np

# Create a simple InputExample class
class InputExample:
    def __init__(self, context_text, response_text, kn_text, label_text):
        self.context_text = context_text
        self.response_text = response_text
        self.kn_text = kn_text
        self.label_text = label_text

# Create a minimal vocabulary dictionary
vocab_dict = {
    '[CLS]': 101,
    '[SEP]': 102,
    '[UNK]': 100,
    'hello': 1,
    'world': 2,
    'this': 3,
    'is': 4,
    'a': 5,
    'test': 6,
    'context': 7,
    'response': 8,
    'knowledge': 9,
    'example': 10,
}

# Create label list
label_list = ['positive', 'negative', 'neutral']

# Create an InputExample instance
example = InputExample(
    context_text='hello world this is a test',
    response_text='this is a response',
    kn_text='knowledge example test',
    label_text='positive'
)

# Set parameters
max_seq_length = 128

# Build ARGS dictionary
ARGS = {
    'example': example,
    'label_list': label_list,
    'max_seq_length': max_seq_length,
    'vocab_dict': vocab_dict,
}
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 InputFeatures — a InputFeatures output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a InputFeatures 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
convert_tokens_to_ids Ran
ran on a synthesized input
yangyucheng000/ducon_GPU/src/reader.py
code served (permissive licence) · get_code("1718677c69026164")
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 int; 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 torch
import numpy as np

# Create a small vocabulary dictionary
vocab_dict = {
    'hello': 0,
    'world': 1,
    'python': 2,
    'code': 3,
    '[UNK]': 4
}

# Create a list of tokens to convert
tokens = ['hello', 'world', 'unknown_token', 'python', 'code', 'another_unk']

ARGS = {
    'tokens': tokens,
    'vocab_dict': vocab_dict
}
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 list, ndim 1, dtype family int — 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
get_dict Ran
ran on a synthesized input
yangyucheng000/duconv_Ascend/src/eval_310.py
code served (permissive licence) · get_code("b841f2e16375f10e")
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 torch

torch.manual_seed(0)

# Analysis of get_dict function:
# - tokens: a list/sequence that supports indexing and slicing
# - ngram: an integer representing the n-gram size
# - gdict: optional dictionary (can be None or a dict)
# The function iterates through tokens, creates n-grams by joining them,
# and counts occurrences in a dictionary.

# Setup valid arguments
tokens = ['a', 'b', 'c', 'd', 'e']
ngram = 2
gdict = None

ARGS = {
    'tokens': tokens,
    'ngram': ngram,
    'gdict': gdict
}
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 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
load_dict Ran
ran on a synthesized input
yangyucheng000/ducon_GPU/src/reader.py
code served (permissive licence) · get_code("51d4a578cea83293")
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 tempfile
import os

# Create a temporary vocabulary file
temp_dir = tempfile.mkdtemp()
vocab_path = os.path.join(temp_dir, "vocab.txt")

# Write sample vocabulary to the temporary file
with open(vocab_path, 'w') as f:
    f.write("hello\n")
    f.write("world\n")
    f.write("python\n")
    f.write("test\n")

ARGS = {
    "vocab_path": vocab_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 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

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

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

Though great progress has been made for human-machine conversation, current dialogue system is still in its infancy: it usually converses passively and utters words more as a matter of response, rather than on its own initiatives. In this paper, we take a radical step towards building a human-like conversational agent: endowing it with the ability of proactively leading the conversation (introducing a new topic or maintaining the current topic). To facilitate the development of such conversation systems, we create a new dataset named DuConv where one acts as a conversation leader and the other acts as the follower. The leader is provided with a knowledge graph and asked to sequentially change the discussion topics, following the given conversation goal, and meanwhile keep the dialogue as natural and engaging as possible. DuConv enables a very challenging task as the model needs to both understand dialogue and plan over the given knowledge graph. We establish baseline results on this dataset (about 270K utterances and 30k dialogues) using several state-of-the-art models. Experimental results show that dialogue models that plan over the knowledge graph can make full use of related knowledge to generate more diverse multi-turn conversations. The baseline systems along with the dataset are publicly available

For agents

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

get_harvested_code_for_paper("1906.05572")
get_code_for_paper("1906.05572")
have("1906.05572")

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

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

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

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

Connect an agent — have() is free.