SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.02227 · ACL · 2021

Conversations Are Not Flat: Modeling the Dynamic Information Flow across Dialogue Utterances

Jie Zhou, Zekang Li, Yang Feng, Jinchao Zhang, Zhengcong Fei, Tencent Feng, Transformer Block

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 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; 2 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 1 failure of our instrument; 4 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/2106.02227.json · badge: /api/ran/2106.02227.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
microsoft/DialoGPT canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
ictnlp/DialoFlow marked official in Papers with Code
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
build_input_from_dialogue Ran
ran; our contract draft was wrong, not the code
ictnlp/DialoFlow/FlowScore/flow_score.py
code served (permissive licence) · get_code("385589ef87a5a935")
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 tuple. 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
from unittest.mock import Mock

torch.manual_seed(0)

# Create a minimal tokenizer mock that satisfies the function's needs
class MockTokenizer:
    def tokenize(self, text):
        # Return a list of tokens (strings)
        if text in ['<bos>', '<eos>', '<info>', '<speaker1>', '<speaker2>', '<empty>', '<pad>']:
            return [text]
        # For regular text, split into simple tokens
        return text.split()
    
    def convert_tokens_to_ids(self, tokens):
        # Map tokens to simple integer IDs
        token_map = {
            '<bos>': 101,
            '<eos>': 102,
            '<info>': 103,
            '<speaker1>': 104,
            '<speaker2>': 105,
            '<empty>': 106,
            '<pad>': 107,
        }
        # For regular words, assign IDs starting from 1000
        ids = []
        for token in tokens:
            if token in token_map:
                ids.append(token_map[token])
            else:
                # Generate a simple ID based on token
                ids.append(1000 + hash(token) % 1000)
        return ids

tokenizer = MockTokenizer()

# Create a conversation: list of lists of token IDs
# Each conversation turn is a list of token IDs
conv = [
    [1000, 1001, 1002],      # Speaker 1's first turn
    [1003, 1004],             # Speaker 2's first turn
    [1005, 1006, 1007, 1008], # Speaker 1's second turn
]

ARGS = {
    'conv': conv,
    'tokenizer': tokenizer,
}
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 tuple — a tuple output has no array shape of its own; none is 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
extract_cells Ran
ran on a synthesized input
microsoft/DialoGPT/dstc/dstc.py
code served (permissive licence) · get_code("c094cc72d23d1e50")
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 temporary files for path_in and path_hash
temp_dir = tempfile.mkdtemp()
path_hash = os.path.join(temp_dir, "hash.txt")
path_in = os.path.join(temp_dir, "data.txt")

# Write hash file with keys
with open(path_hash, 'w') as f:
    f.write("key1\n")
    f.write("key2\n")
    f.write("key3\n")

# Write input data file with tab-separated values
with open(path_in, 'w', encoding='utf-8') as f:
    f.write("key1\tvalue1a\tvalue1b\tvalue1c\n")
    f.write("key2\tvalue2a\tvalue2b\n")
    f.write("key_not_in_hash\tskipped_value\n")
    f.write("key3\tvalue3a\tvalue3b\tvalue3c\tvalue3d\n")

ARGS = {
    "path_in": path_in,
    "path_hash": path_hash
}
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
tokenize Ran
ran, honoured the contract we drafted
ictnlp/DialoFlow/FlowScore/flow_score.py
code served (permissive licence) · get_code("ac28a2d89a01c888")
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

class SimpleTokenizer:
    def tokenize(self, text):
        """Convert text to tokens (simple split)"""
        return text.split()
    
    def convert_tokens_to_ids(self, tokens):
        """Convert tokens to token IDs"""
        token_to_id = {
            'hello': 101,
            'world': 102,
            'foo': 103,
            'bar': 104,
            'test': 105,
        }
        return [token_to_id.get(token, 100) for token in tokens]

torch.manual_seed(0)

# Create a tokenizer instance
tokenizer = SimpleTokenizer()

# Test with a string
test_obj = "hello world"

ARGS = {
    "obj": test_obj,
    "tokenizer": tokenizer
}
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 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
warmup_constant Ran
ran, honoured the contract we drafted
microsoft/DialoGPT/lsp_model/optim.py
pointer only (licence: MIT); the stored copy get_code serves, from Yueeeeeeee/Self-Supervised-QA, is pointer only (licence: NONE) · get_code("e7d542062316094a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Yueeeeeeee/Self-Supervised-QA, 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.

warmup_linear Ran
ran on a synthesized input
microsoft/DialoGPT/lsp_model/optim.py
code served (permissive licence) · get_code("b9677405617b9ad6")
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 torch
import numpy as np

torch.manual_seed(0)

# The function warmup_linear takes two parameters:
# - x: a numeric value (float) representing progress (typically 0 to 1)
# - warmup: a float representing the warmup threshold (default 0.002)
# 
# The function performs a simple linear warmup schedule calculation.
# No complex objects are needed - just numeric values.

ARGS = {
    "x": 0.5,
    "warmup": 0.002
}
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 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
FlowScore Not yet run
unverified (harvested, no recorded run)
ictnlp/DialoFlow/FlowScore/flow_score.py
code served (permissive licence) · get_code("861f7ff4e297e382")
How it ran

no invocation recorded.

extract_hyp_refs Not yet run
unverified (harvested, no recorded run)
microsoft/DialoGPT/dstc/dstc.py
code served (permissive licence) · get_code("236b861359e463f4")
How it ran

no invocation recorded.

extract_linc_cells Not yet run
unverified (harvested, no recorded run)
microsoft/DialoGPT/dstc/dstc.py
code served (permissive licence) · get_code("433d721ced15e3bc")
How it ran

no invocation recorded.

warmup_cosine Not yet run
unverified (harvested, no recorded run)
microsoft/DialoGPT/lsp_model/optim.py
pointer only (licence: MIT); the stored copy get_code serves, from Yueeeeeeee/Self-Supervised-QA, is pointer only (licence: NONE) · get_code("35f7cddf90dd05d4")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Yueeeeeeee/Self-Supervised-QA, 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. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 3 later) and 2 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
warmup_constant 28 other papers
10 dated earlier, 15 later, 3 same year, order not determinable
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 25 more not named here
warmup_cosine 17 other papers
8 dated earlier, 6 later, 3 same year, order not determinable
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1903.09588 (2019-03)
Utilizing BERT for Aspect-Based Sentiment Analysis via Constructing Auxiliary Sentence
1906.01698 (2019-06)
Open Sesame: Getting Inside BERT's Linguistic Knowledge
and 14 more not named here
extract_cells 1 other paper
1 dated earlier
1911.00536 (2019-11)
DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation
extract_hyp_refs 1 other paper
1 dated earlier
1911.00536 (2019-11)
DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation
extract_linc_cells 1 other paper
1 dated earlier
1911.00536 (2019-11)
DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation
tokenize
brick of this paper's assembly: helper
1 other paper
1 later
2401.10353 (2024-01)
Inconsistent dialogue responses and how to recover from them
warmup_linear 1 other paper
1 dated earlier
1911.00536 (2019-11)
DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation

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

Nowadays, open-domain dialogue models can generate acceptable responses according to the historical context based on the large-scale pretrained language models. However, they generally concatenate the dialogue history directly as the model input to predict the response, which we named as the flat pattern and ignores the dynamic information flow across dialogue utterances. In this work, we propose the DialoFlow model, in which we introduce a dynamic flow mechanism to model the context flow, and design three training objectives to capture the information dynamics across dialogue utterances by addressing the semantic influence brought about by each utterance in large-scale pre-training. Experiments on the multi-reference Reddit Dataset and DailyDialog Dataset demonstrate that our DialoFlow significantly outperforms the DialoGPT on the dialogue generation task. Besides, we propose the Flow score, an effective automatic metric for evaluating interactive human-bot conversation quality based on the pre-trained DialoFlow, which presents high chatbot-level correlation (r = 0.9) with human ratings among 11 chatbots. Code and pre-trained models will be public. 1

For agents

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

get_harvested_code_for_paper("2106.02227")
get_code_for_paper("2106.02227")
have("2106.02227")

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

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

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

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

Connect an agent — have() is free.