SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_21432 · AAAI · 2022

DIALOGLM: Pre-trained Model for Long Dialogue Understanding and Summarization

Yang Liu, Chenguang Zhu, Yichong Xu, Michael Zeng, Ming Zhong

Open in the Atlas

Code that ran

8 of 8 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; 4 failures of our instrument; 0 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/aaai_21432.json · badge: /api/ran/aaai_21432.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/DialogLM canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
swish Ran
ran; our contract draft was wrong, not the code
microsoft/DialogLM/DialogLM_UniLM/DialogLM/s2s_ft/modeling_decoding.py
code served (permissive licence) · get_code("0f786c407fb1ee4c")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:33:52Z). 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

torch.manual_seed(0)

# The function swish takes a single parameter 'x' which is used with:
# - torch.sigmoid(x) - requires a tensor
# - x * ... - requires a tensor that supports multiplication
# So x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) 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
clean Ran
ran; our contract draft was wrong, not the code
microsoft/DialogLM/DialogLM_UniLM/DialogLM/evaluations/bs_pyrouge.py
code served (permissive licence) · get_code("bedeff473c33061f")
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

REMAP = {'-lrb-': '(', '-rrb-': ')', '-lcb-': '{', '-rcb-': '}', '-lsb-': '[', '-rsb-': ']', '``': '"', "''": '"'}

def clean(x):
    return re.sub("-lrb-|-rrb-|-lcb-|-rcb-|-lsb-|-rsb-|``|''", lambda m: REMAP.get(m.group()), x)

# The function takes a string x and applies regex substitution with REMAP dictionary
# We need to provide a string that contains some of the patterns that will be replaced

ARGS = {
    'x': "This is a test -lrb- with some -rrb- brackets and ``quotes'' and -lcb- braces -rcb- and -lsb- square -rsb- brackets"
}
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
count_tokens Ran
ran on a synthesized input
microsoft/DialogLM/DialogLM_UniLM/DialogLM/evaluations/eval_for_cnndm.py
code served (permissive licence) · get_code("7d0f0d30d5c3027f")
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

torch.manual_seed(0)

# The function count_tokens takes a collection of tokens and counts their occurrences
# It iterates through tokens, checks if each token is in a counter dict, and increments counts
# The tokens parameter should be an iterable of hashable items (strings, ints, etc.)

tokens = ['apple', 'banana', 'apple', 'cherry', 'banana', 'apple']

ARGS = {
    'tokens': tokens
}
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
detokenize Ran
ran; our contract draft was wrong, not the code
microsoft/DialogLM/DialogLM_UniLM/DialogLM/decode_seq2seq.py
code served (permissive licence) · get_code("633d1e424a09eb70")
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 torch

def detokenize(tk_list):
    r_list = []
    for tk in tk_list:
        if tk.startswith('##') and len(r_list) > 0:
            r_list[-1] = r_list[-1] + tk[2:]
        else:
            r_list.append(tk)
    return r_list

ARGS = {
    'tk_list': ['hello', '##world', 'foo', '##bar', '##baz']
}
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 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
gelu Ran
ran, honoured the contract we drafted
microsoft/DialogLM/DialogLM_UniLM/DialogLM/s2s_ft/modeling_decoding.py
pointer only (licence: MIT); the stored copy get_code serves, from shmsw25/qa-hard-em, is pointer only (licence: NONE) · get_code("40e9fee2e0b7e278")
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 shmsw25/qa-hard-em, 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.

get_best_sequence Ran
ran, honoured the contract we drafted
microsoft/DialogLM/DialogLM_UniLM/DialogLM/gen_seq_from_trace.py
pointer only (licence: MIT); the stored copy get_code serves, from tianhuizhang/concept_ordering, is pointer only (licence: NONE) · get_code("8130ddbbba17f308")
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 tianhuizhang/concept_ordering, 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.

read_traces_from_file Ran
ran; our contract draft was wrong, not the code
microsoft/DialogLM/DialogLM_UniLM/DialogLM/gen_seq_from_trace.py
pointer only (licence: MIT); the stored copy get_code serves, from tianhuizhang/concept_ordering, is pointer only (licence: NONE) · get_code("ba6e66dc83d560e4")
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 tianhuizhang/concept_ordering, 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.

rouge_results_to_str Ran
ran on a synthesized input
microsoft/DialogLM/DialogLM_UniLM/DialogLM/evaluations/eval_for_cnndm.py
code served (permissive licence) · get_code("c19b75e22d2023fb")
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

torch.manual_seed(0)

results_dict = {
    'rouge_1_f_score': 0.75,
    'rouge_2_f_score': 0.68,
    'rouge_l_f_score': 0.72,
    'rouge_1_recall': 0.80,
    'rouge_2_recall': 0.70,
    'rouge_l_recall': 0.75
}

ARGS = {
    'results_dict': results_dict
}
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 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

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 8 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 6 later) and 0 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
swish 206 other papers
90 dated earlier, 79 later, 37 same year, order not determinable · 44 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1805.12114 (2018-05)
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models
1809.01357 (2018-09)
Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inference
and 203 more not named here
gelu 198 other papers
96 dated earlier, 69 later, 33 same year, order not determinable · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
clean 4 other papers
2 dated earlier, 1 later, 1 same year, order not determinable
1903.10318 (2019-03)
Fine-tune BERT for Extractive Summarization
1910.14142 (2019-10)
Discourse-Aware Neural Extractive Text Summarization
2212.10218 (2022-12)
GanLM: Encoder-Decoder Pre-training with an Auxiliary Discriminator
and 1 more not named here
detokenize 4 other papers
3 dated earlier, 1 later
1909.11059 (2019-09)
Unified Vision-Language Pre-Training for Image Captioning and VQA
2009.07032 (2020-09)
Noisy Self-Knowledge Distillation for Text Summarization
2021.findings-emnlp.347 (2021 (year only))
Attend, Memorize and Generate: Towards Faithful Table-to-Text Generation in Few Shots
and 1 more not named here
get_best_sequence 2 other papers
1 dated earlier, 1 later
2021.findings-emnlp.347 (2021 (year only))
Attend, Memorize and Generate: Towards Faithful Table-to-Text Generation in Few Shots
2309.06363 (2023-09)
Learning to Predict Concept Ordering for Common Sense Generation
read_traces_from_file 2 other papers
1 dated earlier, 1 later
2021.findings-emnlp.347 (2021 (year only))
Attend, Memorize and Generate: Towards Faithful Table-to-Text Generation in Few Shots
2309.06363 (2023-09)
Learning to Predict Concept Ordering for Common Sense Generation
count_tokens 1 other paper
1 same year, order not determinable
2212.10218 (2022-12)
GanLM: Encoder-Decoder Pre-training with an Auxiliary Discriminator
rouge_results_to_str 1 other paper
1 same year, order not determinable
2212.10218 (2022-12)
GanLM: Encoder-Decoder Pre-training with an Auxiliary Discriminator

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

Dialogue is an essential part of human communication and cooperation. Existing research mainly focuses on short dialogue scenarios in a one-on-one fashion. However, multiperson interactions in the real world, such as meetings or interviews, are frequently over a few thousand words. There is still a lack of corresponding research and powerful tools to understand and process such long dialogues. Therefore, in this work, we present a pre-training framework for long dialogue understanding and summarization. Considering the nature of long conversations, we propose a window-based denoising approach for generative pre-training. For a dialogue, it corrupts a window of text with dialogue-inspired noise, and guides the model to reconstruct this window based on the content of the remaining conversation. Furthermore, to process longer input, we augment the model with sparse attention which is combined with conventional attention in a hybrid manner. We conduct extensive experiments on five datasets of long dialogues, covering tasks of dialogue summarization, abstractive question answering and topic segmentation. Experimentally, we show that our pre-trained model DIALOGLM significantly surpasses the state-of-the-art models across datasets and tasks. Source code and all the pretrained models are available on our GitHub repository (https: //github.com/microsoft/DialogLM).

For agents

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

get_harvested_code_for_paper("aaai_21432")
get_code_for_paper("aaai_21432")
have("aaai_21432")

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

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

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

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

Connect an agent — have() is free.