SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.22136 · 2026

Dynamic Commonsense Coordination for Empathetic Response Generation

Zhengyu Qi

arXiv · PDF

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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2607.22136.json · badge: /api/ran/2607.22136.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
Sahandfer/CEM canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
embedding_similarity Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Sahandfer/CEM/src/utils/common.py
pointer only (licence: NONE) · get_code("363d8ee069aaf1fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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_pairs Ran
ran; our contract draft was wrong, not the code
Sahandfer/CEM/utils/utils.py
pointer only (licence: NONE) · get_code("25c6742c7bb1e949")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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.

make_new_tensor_from_list Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Sahandfer/CEM/utils/utils.py
pointer only (licence: NONE) · get_code("78c233ae7a011f04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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.

position_encoding Ran
ran, honoured the contract we drafted
Sahandfer/CEM/src/models/common.py
pointer only (licence: NONE) · get_code("e6dc8a206c0c47a8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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.

text_standardize Ran
ran; our contract draft was wrong, not the code
Sahandfer/CEM/utils/utils.py
pointer only (licence: NONE) · get_code("ef966fc2741308b4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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.

trim_batch Ran
ran; our contract draft was wrong, not the code
Sahandfer/CEM/src/utils/comet.py
pointer only (licence: NONE) · get_code("eeb8dc60c6ef1fa4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Sahandfer/CEM 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.

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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 1 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
get_pairs 258 other papers
254 dated earlier, 2 the same month, 1 later, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
trim_batch 9 other papers
9 dated earlier
2005.01107 (2020-05)
Simplifying Paragraph-level Question Generation via Transformer Language Models
2104.08661 (2021-04)
Explaining Answers with Entailment Trees
2108.02866 (2021-08)
Dual Reader-Parser on Hybrid Textual and Tabular Evidence for Open Domain Question Answering
and 6 more not named here
position_encoding 5 other papers
5 dated earlier
1905.10033 (2019-05)
Personalizing Dialogue Agents via Meta-Learning
1908.07687 (2019-08)
MoEL: Mixture of Empathetic Listeners
2003.12738 (2020-03)
Variational Transformers for Diverse Response Generation
and 2 more not named here
text_standardize 1 other paper
1 dated earlier
2023.findings-emnlp.1023 (2023 (year only))
QADYNAMICS: Training Dynamics-Driven Synthetic QA Diagnostic for Zero-Shot Commonsense Question Answering

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Empathetic Response Generation (ERG) requires models to recognize users' emotions and generate empathetic responses. Commonsense knowledge has been shown to support such reasoning, yet existing approaches typically reuse fixed commonsense representations across understanding and generation, limiting their ability to coordinate such knowledge across different stages. We propose DCC, a Dynamic Commonsense Coordination Framework with three complementary modules: residual-based commonsense interaction (SCE-AttnRes) to integrate contextual and situational commonsense representations, Association-Guided Commonsense Filtering (AGCF) to down-weight lowrelevance commonsense relations, and Iterative Commonsense-Aware Decoding (ICAD) to dynamically retrieve commonsense memories during generation. Experiments on the Empathetic-Dialogues benchmark show that DCC improves emotion classification accuracy and response diversity over the CEM baseline while maintaining comparable perplexity. An LLM-based blind evaluation further demonstrates that DCC generates responses with better relevance, coherence, and informativeness. The code and implementation details will be publicly available at https://github.com/ Hanabi-Q/DCC-ERG.

For agents

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

get_harvested_code_for_paper("2607.22136")
get_code_for_paper("2607.22136")
have("2607.22136")

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

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

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

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

Connect an agent — have() is free.