SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.13190 · ACL · 2022

Other Roles Matter! Enhancing Role-Oriented Dialogue Summarization via Role Interactions

Haitao Lin, Yu Zhou, Chengqing Zong, Jiajun Zhang, Junnan Zhu, Lu Xiang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 7 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; 2 failures of our instrument; 0 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/2205.13190.json · badge: /api/ran/2205.13190.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
AIPHES/emnlp19-moverscore canonical (classifier label)
classifier basis not recorded on the link
7 ran · 0 no recorded run
FunctionStatusWhere it lives
bert_encode Ran
ran on a synthesized input
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/MoverScore.py
code served (permissive licence) · get_code("8a02fb56e8167074")
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 4, 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
import torch.nn as nn

torch.manual_seed(0)

class MockBertModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embedding = nn.Embedding(100, 4)
        self.encoder = nn.Linear(4, 4)
    
    def forward(self, input_ids, token_type_ids, attention_mask=None, output_all_encoded_layers=False):
        # Simulate BERT encoder behavior
        x = self.embedding(input_ids)
        encoded = self.encoder(x)
        
        # Return tuple of (encoded_layers, pooled_output)
        # encoded_layers should be a list of tensors for each layer
        encoded_layers = [encoded]
        pooled_output = encoded[:, 0, :]  # [batch_size, hidden_dim]
        
        return encoded_layers, pooled_output

# Create model
model = MockBertModel()

# Create input tensors
# batch_size=2, sequence_length=3
x = torch.randint(0, 100, (2, 3), dtype=torch.long)
attention_mask = torch.ones((2, 3), dtype=torch.long)

ARGS = {
    "model": model,
    "x": x,
    "attention_mask": attention_mask
}
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 4, 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
collate_idf Ran
ran on a synthesized input
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/MoverScore.py
code served (permissive licence) · get_code("38f0b26da32826f1")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

torch.manual_seed(0)

# Define mock functions for tokenize and numericalize
def tokenize(text):
    """Simple tokenizer that splits on spaces"""
    return text.split()

def numericalize(tokens):
    """Convert tokens to token IDs"""
    token_to_id = {
        '[CLS]': 0,
        '[SEP]': 1,
        '[PAD]': 2,
        'hello': 3,
        'world': 4,
        'foo': 5,
        'bar': 6,
    }
    return [token_to_id.get(token, 7) for token in tokens]

# Create a mock idf_dict
idf_dict = {
    0: 1.0,  # [CLS]
    1: 1.0,  # [SEP]
    2: 0.0,  # [PAD]
    3: 0.5,  # hello
    4: 0.7,  # world
    5: 0.6,  # foo
    6: 0.8,  # bar
    7: 0.4,  # unknown
}

# Create sample batch data - list of text strings
arr = [
    "hello world",
    "foo bar"
]

ARGS = {
    'arr': arr,
    'tokenize': tokenize,
    'numericalize': numericalize,
    'idf_dict': idf_dict,
    'pad': '[PAD]',
    'device': 'cpu'
}
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
get_len Ran
ran on a synthesized input
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/utils.py
code served (permissive licence) · get_code("39e34f0e2c1eb362")
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.

from nltk.tokenize import RegexpTokenizer

tokenizer = RegexpTokenizer('\\w+')

def get_len(element):
    return len(tokenizer.tokenize(element))

ARGS = {
    "element": "hello world this is a test string"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — 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
normalize_word Ran
ran on a synthesized input
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/utils.py
code served (permissive licence) · get_code("5991dab5f3e534fe")
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 numpy as np

torch.manual_seed(0)

# The function normalize_word takes a single parameter 'word' which is a string
# It calls .lower() on it, so it must be a string
word = "HELLO"

ARGS = {
    "word": word
}
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
padding Ran
ran; our contract draft was wrong, not the code
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/MoverScore.py
pointer only (licence: MIT); the stored copy get_code serves, from yuhui-zh15/nlg_metrics, is pointer only (licence: NONE) · get_code("13ef8eeae8570519")
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 yuhui-zh15/nlg_metrics, 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.

set_logger Ran
ran; our contract draft was wrong, not the code
AIPHES/emnlp19-moverscore/webservice/server/server/summ_eval/server/helper.py
code served (permissive licence) · get_code("71752ba3f13d7d84")
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 Logger. 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 logging
import os

class NTLogger:

    def __init__(self, context, verbose):
        self.context = context
        self.verbose = verbose

    def info(self, msg, **kwargs):
        print('I:%s:%s' % (self.context, msg), flush=True)

    def debug(self, msg, **kwargs):
        if self.verbose:
            print('D:%s:%s' % (self.context, msg), flush=True)

    def error(self, msg, **kwargs):
        print('E:%s:%s' % (self.context, msg), flush=True)

    def warning(self, msg, **kwargs):
        print('W:%s:%s' % (self.context, msg), flush=True)

def set_logger(context, verbose=False):
    if os.name == 'nt':
        return NTLogger(context, verbose)
    logger = logging.getLogger(context)
    logger.setLevel(logging.DEBUG if verbose else logging.INFO)
    formatter = logging.Formatter('%(levelname)-.1s:' + context + ':[%(filename).3s:%(funcName).3s:%(lineno)3d]:%(message)s', datefmt='%m-%d %H:%M:%S')
    console_handler = logging.StreamHandler()
    console_handler.setLevel(logging.DEBUG if verbose else logging.INFO)
    console_handler.setFormatter(formatter)
    logger.handlers = []
    logger.addHandler(console_handler)
    return logger

ARGS = {
    'context': 'test_module',
    'verbose': False
}
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 Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger 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
stem_word Ran
ran on a synthesized input
AIPHES/emnlp19-moverscore/webservice/server/server/metrics/utils.py
code served (permissive licence) · get_code("6a9125d06b645b4c")
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.

from nltk.stem.snowball import SnowballStemmer

stemmer = SnowballStemmer('english')

def normalize_word(word):
    return word.lower()

def stem_word(word):
    return stemmer.stem(normalize_word(word))

ARGS = {
    'word': 'Running'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — 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 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 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
padding 6 other papers
5 dated earlier, 1 later · 1 only as an assembly brick
1904.09675 (2019-04)
BERTScore: Evaluating Text Generation with BERT
1908.05739 (2019-08)
Abductive Commonsense Reasoning
1909.02622 (2019-09)
MoverScore: Text Generation Evaluating with Contextualized Embeddings and Earth Mover Distance
and 3 more not named here
set_logger 1 other paper
1 dated earlier
1908.08962 (2019-08)
Well-Read Students Learn Better: On the Importance of Pre-training Compact Models

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

Role-oriented dialogue summarization is to generate summaries for different roles in the dialogue, e.g., merchants and consumers. Existing methods handle this task by summarizing each role's content separately and thus are prone to ignore the information from other roles. However, we believe that other roles' content could benefit the quality of summaries, such as the omitted information mentioned by other roles. Therefore, we propose a novel role interaction enhanced method for role-oriented dialogue summarization. It adopts cross attention and decoder self-attention interactions to interactively acquire other roles' critical information. The cross attention interaction aims to select other roles' critical dialogue utterances, while the decoder self-attention interaction aims to obtain key information from other roles' summaries. Experimental results have shown that our proposed method significantly outperforms strong baselines on two public role-oriented dialogue summarization datasets. Extensive analyses have demonstrated that other roles' content could help generate summaries with more complete semantics and correct topic structures. 1

For agents

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

get_harvested_code_for_paper("2205.13190")
get_code_for_paper("2205.13190")
have("2205.13190")

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

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

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

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

Connect an agent — have() is free.