SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.19071 · 2024

EmPO: Emotion Grounding for Empathetic Response Generation through Preference Optimization

arXiv · PDF · Open in the Atlas

Code that ran

9 of 11 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 0 have no contract verdict; 9 failures of our instrument; 2 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/2406.19071.json · badge: /api/ran/2406.19071.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
justtherightsize/empo canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
FunctionStatusWhere it lives
args_generate_path Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/evaluate_from_local.py
pointer only (licence: NONE) · get_code("6a0afca1adf01a5d")
How it ran

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

compute_averages Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/average_diff.py
pointer only (licence: NONE) · get_code("75f766fb37d5251d")
How it ran

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

dialog2chat Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/ed_load.py
pointer only (licence: NONE) · get_code("e96e9041d54eacc6")
How it ran

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

The body of this sample is withheld: GitHub detected no licence in this paper's repository, justtherightsize/empo 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_progressive_chunks Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/ed_load.py
pointer only (licence: NONE) · get_code("797be47ec69176a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, justtherightsize/empo 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_sys_msg Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/base_metrics.py
pointer only (licence: NONE) · get_code("7607b1c1a349fac2")
How it ran

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

preprocess Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/evaluate_from_local.py
pointer only (licence: NONE) · get_code("e82f1463f52bf3ed")
How it ran

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

select_by_category Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/evaluate_from_local.py
pointer only (licence: NONE) · get_code("695530d48ac5a937")
How it ran

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

to_epi_format Ran
ran; our contract draft was wrong, not the code
justtherightsize/empo/src/diff_epitome.py
pointer only (licence: NONE) · get_code("5232dde5c7e8644c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, justtherightsize/empo 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_opposite_ed_keys Not yet run
unverified (harvested, no recorded run)
justtherightsize/empo/src/emotions.py
pointer only (licence: NONE) · get_code("c667dd98492e114c")
How it ran

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

load_preprocess_ed Not yet run
unverified (harvested, no recorded run)
justtherightsize/empo/src/ed_load.py
pointer only (licence: NONE) · get_code("51d47732f869b389")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, justtherightsize/empo 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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.

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

Empathetic response generation is a desirable aspect of conversational agents, crucial for facilitating engaging and emotionally intelligent multi-turn conversations between humans and machines. Leveraging large language models for this task has shown promising results, yet challenges persist in ensuring both the empathetic quality of the responses and retention of the generalization performance of the models. We propose a novel approach where we construct theory-driven preference datasets based on emotion grounding and use them to align LLMs with preference optimization algorithms to address these challenges. To evaluate empathetic response generation, we employ the EmpatheticDialogues dataset, assessing empathy with the diff-Epitome and BERTscore metrics and with multi-dimensional human evaluation. Additionally, we measure diversity and emotional valence using feature-based methods. We also evaluate the impact of training on the generalization performance using the MMLU benchmark and tasks from the Open LLM Leaderboard. The results show that LLMs can be aligned for empathetic response generation by preference optimization while retaining their general performance and that emotion grounding can guide preference dataset creation. We make all datasets, source code, and models publicly available. https://github.com/justtherightsize/empo

For agents

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

get_harvested_code_for_paper("2406.19071")
get_code_for_paper("2406.19071")
have("2406.19071")

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

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

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

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

Connect an agent — have() is free.