SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2021.findings-emnlp.112 · EMNLP Findings · 2021

Improving End-to-End Task-Oriented Dialogue System with A Simple Auxiliary Task

Yohan Lee

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 5 have no contract verdict; 1 failure of our instrument; 0 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/2021.findings-emnlp.112.json · badge: /api/ran/2021.findings-emnlp.112.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
bepoetree/MTTOD canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
bspn_to_constraint_dict Ran
ran on a synthesized input
bepoetree/MTTOD/convert.py
code served (permissive licence) · get_code("56386b55cb61044f")
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
import numpy as np

# Analyze the function: bspn_to_constraint_dict takes a single parameter 'bspn'
# which is a string. The function:
# 1. Removes '<bos_belief>' and '<eos_belief>' markers
# 2. Splits into tokens
# 3. Parses tokens to build a nested constraint dictionary
# Tokens with '[' prefix denote domains or slots (value_*)
# Other tokens are appended to the current slot's value list

# Construct a valid BSPN string
bspn_example = '<bos_belief> [hotel] [value_name] the royal hotel [value_area] south [restaurant] [value_price] expensive </eos_belief>'

ARGS = {
    'bspn': bspn_example
}
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 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
clean_text Ran
ran on a synthesized input
bepoetree/MTTOD/utils/clean_dataset.py
code served (permissive licence) · get_code("d7e520c85b455eb3")
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 re

def clean_time(utter):
    utter = re.sub('(\\d+) ([ap]\\.?m)', lambda x: x.group(1) + x.group(2), utter)
    utter = re.sub('((?<!\\d)\\d:\\d+)(am)?', '0\\1', utter)
    utter = re.sub('((?<!\\d)\\d)am', '0\\1:00', utter)
    utter = re.sub('((?<!\\d)\\d)pm', lambda x: str(int(x.group(1)) + 12) + ':00', utter)
    utter = re.sub('(\\d+)(:\\d+)pm', lambda x: str(int(x.group(1)) + 12) + x.group(2), utter)
    utter = re.sub('(\\d+)a\\.?m', '\\1', utter)
    return utter

def clean_text(text, mapping_pair=None):
    text = text.strip()
    text = text.lower()
    text = text.replace('`', '')
    text = text.replace(u''', "'")
    text = text.replace(u''', "'")
    text = text.replace(';', ',')
    text = text.replace('"', ' ')
    text = text.replace('/', ' and ')
    text = text.replace("don't", "do n't")
    text = clean_time(text)
    baddata = {'c\\.b (\\d), (\\d) ([a-z])\\.([a-z])': 'cb\\1\\2\\3\\4', 'c.b. 1 7 d.y': 'cb17dy', 'c.b.1 7 d.y': 'cb17dy', 'c.b 25, 9 a.q': 'cb259aq', 'isc.b 25, 9 a.q': 'is cb259aq', 'c.b2, 1 u.f': 'cb21uf', 'c.b 1,2 q.a': 'cb12qa', '0-122-336-5664': '01223365664', 'postcodecb21rs': 'postcode cb21rs', 'i\\.d': 'id', ' i d ': 'id', 'Telephone:01223358966': 'Telephone: 01223358966', 'depature': 'departure', 'depearting': 'departing', '-type': ' type', 'b[\\s]?&[\\s]?b': 'bed and breakfast', 'b and b': 'bed and breakfast', 'guesthouse[s]?': 'guest house', 'swimmingpool[s]?': 'swimming pool', "wo n't": 'will not', " 'd ": ' would ', " 'm ": ' am ', " 're' ": ' are ', " 'll' ": ' will ', " 've ": ' have ', "^\\'": '', "\\'$": ''}
    for tmpl, good in baddata.items():
        text = re.sub(tmpl, good, text)
    text = re.sub('([a-zT]+)\\.([a-z])', '\\1 . \\2', text)
    text = re.sub('(\\w+)\\.\\.? ', '\\1 . ', text)
    if mapping_pair is not None:
        for fromx, tox in mapping_pair:
            text = ' ' + text + ' '
            text = text.replace(' ' + fromx + ' ', ' ' + tox + ' ')[1:-1]
    return text

# Setup code to construct valid arguments for clean_text function
text_input = "  Hello, this is a test don't worry! It's at 3pm today. "
mapping_pair_input = [("worry", "concern"), ("today", "this day")]

ARGS = {
    "text": text_input,
    "mapping_pair": mapping_pair_input
}
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 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
clean_time Ran
ran; our contract draft was wrong, not the code
bepoetree/MTTOD/utils/clean_dataset.py
code served (permissive licence) · get_code("4c62f23ce8135bda")
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 re

def clean_time(utter):
    utter = re.sub('(\\d+) ([ap]\\.?m)', lambda x: x.group(1) + x.group(2), utter)
    utter = re.sub('((?<!\\d)\\d:\\d+)(am)?', '0\\1', utter)
    utter = re.sub('((?<!\\d)\\d)am', '0\\1:00', utter)
    utter = re.sub('((?<!\\d)\\d)pm', lambda x: str(int(x.group(1)) + 12) + ':00', utter)
    utter = re.sub('(\\d+)(:\\d+)pm', lambda x: str(int(x.group(1)) + 12) + x.group(2), utter)
    utter = re.sub('(\\d+)a\\.?m', '\\1', utter)
    return utter

ARGS = {
    'utter': 'The meeting is at 3 p.m. tomorrow at 2:30am'
}
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 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
load_json Ran
ran on a synthesized input
bepoetree/MTTOD/utils/io_utils.py
code served (permissive licence) · get_code("6699a992b525f720")
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 json
import tempfile
import os

# Create a temporary JSON file for testing
temp_dir = tempfile.mkdtemp()
json_file_path = os.path.join(temp_dir, "test.json")

# Create a valid JSON file with mixed case content
test_data = {"Key": "Value", "NAME": "TestObject"}
with open(json_file_path, 'w', encoding='utf-8') as f:
    json.dump(test_data, f)

# Define arguments for load_json function
ARGS = {
    'load_path': json_file_path,
    'lower': True
}
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
load_pickle Ran
ran on a synthesized input
bepoetree/MTTOD/utils/io_utils.py
code served (permissive licence) · get_code("4bc1d22c6974d224")
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 pickle
import tempfile
import os

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

# Create a simple pickle file with test data
test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "dict"}
}

pickle_file_path = os.path.join(temp_dir, "test.pkl")
with open(pickle_file_path, 'wb') as f:
    pickle.dump(test_data, f)

ARGS = {
    "load_path": pickle_file_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
load_text Ran
ran on a synthesized input
bepoetree/MTTOD/utils/io_utils.py
code served (permissive licence) · get_code("aa8b26ce285ba4e7")
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 tempfile
import os

# Create a temporary file with test content
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt', encoding='utf-8')
temp_file.write("Hello World\nTHIS IS LINE TWO\nthird line\n")
temp_file.close()

load_path = temp_file.name

ARGS = {
    'load_path': load_path,
    'lower': True
}
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 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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 5 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
clean_time 7 other papers
1 dated earlier, 5 later, 1 same year, order not determinable
2009.12005 (2020-09)
MinTL: Minimalist Transfer Learning for Task-Oriented Dialogue Systems
2109.14739 (2021-09)
Multi-Task Pre-Training for Plug-and-Play Task-Oriented Dialogue System
2204.00763 (2022-04)
Metaphorical User Simulators for Evaluating Task-oriented Dialogue Systems
and 4 more not named here

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

The paradigm of leveraging large pretrained language models has made significant progress on benchmarks on task-oriented dialogue (TOD) systems. In this paper, we combine this paradigm with multi-task learning framework for end-toend TOD modeling by adopting span prediction as an auxiliary task. In end-toend setting, our model achieves new stateof-the-art results with combined scores of 108.3 and 107.5 on MultiWOZ 2.0 and MultiWOZ 2.1, respectively. Furthermore, we demonstrate that multi-task learning improves not only the performance of model but its generalization capability through domain adaptation experiments in the few-shot setting. The code is available at github.com/bepoetree/MTTOD.

For agents

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

get_harvested_code_for_paper("2021.findings-emnlp.112")
get_code_for_paper("2021.findings-emnlp.112")
have("2021.findings-emnlp.112")

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

curl https://syntology.ai/api/ran/2021.findings-emnlp.112.json

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

[![Syntology run record](https://syntology.ai/api/ran/2021.findings-emnlp.112.svg)](https://syntology.ai/paper/2021.findings-emnlp.112)

Connect an agent — have() is free.