SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.09954 · 2020

Improving Dialog Systems for Negotiation with Personality Modeling

arXiv · PDF · Open in the Atlas

Code that ran

2 of 5 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 2 have no contract verdict; 0 failures of our instrument; 3 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/2010.09954.json · badge: /api/ran/2010.09954.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
princeton-nlp/NegotiationToM canonical (classifier label)
classifier basis: census
2 ran · 3 no recorded run
FunctionStatusWhere it lives
entity_to_value Ran
ran on a synthesized input
princeton-nlp/NegotiationToM/cocoa/core/entity.py
code served (permissive licence) · get_code("b6670f487d40ccc1")
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 Entity. 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 collections import namedtuple

class CanonicalEntity(namedtuple('CanonicalEntity', ['value', 'type'])):
    __slots__ = ()

    def __str__(self):
        return '[%s]' % str(self.value)

class Entity(namedtuple('Entity', ['surface', 'canonical'])):
    __slots__ = ()

    @classmethod
    def from_elements(cls, surface=None, value=None, type=None):
        if value is None:
            value = surface
        return super(cls, Entity).__new__(cls, surface, CanonicalEntity(value, type))

    def __str__(self):
        return '[%s|%s]' % (str(self.surface), str(self.canonical.value))

def entity_to_value(x):
    if isinstance(x, Entity):
        return x.canonical.value
    elif isinstance(x, CanonicalEntity):
        return x.value
    else:
        return x

# Test case 1: Entity object
entity_obj = Entity.from_elements(surface="apple", value="fruit", type="noun")

# Test case 2: CanonicalEntity object
canonical_obj = CanonicalEntity(value="dog", type="noun")

# Test case 3: Regular value (string)
regular_value = "hello"

# Test case 4: Regular value (int)
regular_int = 42

# Test case 5: Regular value (tensor)
torch.manual_seed(0)
regular_tensor = torch.randn(2, 4)

ARGS = {
    "x": entity_obj
}
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 Entity — a Entity 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
is_entity Ran
ran on a synthesized input
princeton-nlp/NegotiationToM/cocoa/core/entity.py
code served (permissive licence) · get_code("79624785a930cf93")
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 bool, 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.

from collections import namedtuple

class CanonicalEntity(namedtuple('CanonicalEntity', ['value', 'type'])):
    __slots__ = ()

    def __str__(self):
        return '[%s]' % str(self.value)

class Entity(namedtuple('Entity', ['surface', 'canonical'])):
    __slots__ = ()

    @classmethod
    def from_elements(cls, surface=None, value=None, type=None):
        if value is None:
            value = surface
        return super(cls, Entity).__new__(cls, surface, CanonicalEntity(value, type))

    def __str__(self):
        return '[%s|%s]' % (str(self.surface), str(self.canonical.value))

def is_entity(x):
    return isinstance(x, Entity) or isinstance(x, CanonicalEntity)

# Test case 1: Entity instance
entity_obj = Entity.from_elements(surface="apple", value="FRUIT", type="noun")

# Test case 2: CanonicalEntity instance
canonical_obj = CanonicalEntity(value="book", type="noun")

# Test case 3: Non-entity object
non_entity = "random string"

ARGS = {
    'x': entity_obj
}
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 bool, 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
read_dataset Not yet run
unverified (harvested, no recorded run)
princeton-nlp/NegotiationToM/cocoa/core/dataset.py
code served (permissive licence) · get_code("7eeee9df93c5c882")
How it ran

no invocation recorded.

read_examples Not yet run
unverified (harvested, no recorded run)
princeton-nlp/NegotiationToM/cocoa/core/dataset.py
code served (permissive licence) · get_code("5872cb976f5fd95f")
How it ran

no invocation recorded.

tokenize Not yet run
unverified (harvested, no recorded run)
princeton-nlp/NegotiationToM/cocoa/core/tokenizer.py
code served (permissive licence) · get_code("702b27974999a98a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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, 2 later) and 3 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
is_entity 2 other papers
1 dated earlier, 1 later
1808.09637 (2018-08)
Decoupling Strategy and Generation in Negotiation Dialogues
2204.08426 (2022-04)
CHAI: A CHatbot AI for Task-Oriented Dialogue with Offline Reinforcement Learning
tokenize 2 other papers
1 dated earlier, 1 later
1808.09637 (2018-08)
Decoupling Strategy and Generation in Negotiation Dialogues
2204.08426 (2022-04)
CHAI: A CHatbot AI for Task-Oriented Dialogue with Offline Reinforcement Learning

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

In this paper, we explore the ability to model and infer personality types of opponents, predict their responses, and use this information to adapt a dialog agent's high-level strategy in negotiation tasks. Inspired by the idea of incorporating a theory of mind (ToM) into machines, we introduce a probabilistic formulation to encapsulate the opponent's personality type during both learning and inference. We test our approach on the CraigslistBargain dataset and show that our method using ToM inference achieves a 20% higher dialog agreement rate compared to baselines on a mixed population of opponents. We also find that our model displays diverse negotiation behavior with different types of opponents.

For agents

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

get_harvested_code_for_paper("2010.09954")
get_code_for_paper("2010.09954")
have("2010.09954")

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

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

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

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

Connect an agent — have() is free.