智能体协商:谁让步、何时让步、协议是否有效率?
Agent negotiation
推导Rubinstein轮流出价的分配,联系Nash议价解,并运行脚本化的多议题协商者,区分成交率、效率与个体得分。
agent-negotiation两个智能体、六件物品、私有估值
两个软件智能体要分配三本书、一顶帽子和两个球。各自只知道自己的估值:在本文的合成例子里,智能体A认为每本书值2、帽子值2、每个球值1;智能体B的估值分别为1、1和3。双方对全部物品的总估值都是10。若始终达不成协议,双方都得0。双方轮流提出分配方案。结果好不好取决于三个问题:能否成交,需要多久,是否存在另一种分配能让一方更好而不损害另一方?
这些问题互相牵制。坚持更久的智能体面对软弱对手时可能拿到更大份额,却要冒截止时间到来时一无所获的风险。迅速让步的智能体几乎总能成交,却可能让出本不必让出的价值。协商研究既研究完全设定的博弈中理性智能体应当怎样做,也研究实际智能体在彼此信息不足时如何行动。
这一设定沿用“Deal or No Deal”协商数据集的任务设计:两个人或智能体看到相同物品,各自得到总和为10的不同隐藏估值函数,并通过对话商定分配。任务设计 本文的物品数量、估值和让步规则均为自行设定;我们不训练模型,也不使用对话数据。
从议价问题到轮流出价
两人议价问题包括可行协议集合和破裂结果。Binmore、Rubinstein与Wolinsky把静态公理化描述写成一对(S, s0):S是各种协议能产生的效用对集合,s0是破裂点。Nash解是S中满足其公理的唯一点,它最大化相对破裂点收益的乘积:
该文强调,选择效用和破裂点是建模判断:s0可以是争议期间双方各自的收入,也可以是另寻他处的最佳长期替代方案,二者导出不同预测。静态表示
Rubinstein把这种公理化方法与策略方法对照:把议价过程描述成一个博弈,再研究其均衡。在他的模型中,两名参与者分割大小为1的蛋糕。一方提出分配,另一方接受则博弈结束,拒绝则由其提出下一个方案;之前的出价对任何人都没有约束。偏好定义在(x, t)上,表示在时刻t参与者1得到x、参与者2得到1−x;并假设蛋糕是想要的、时间有价值、偏好连续且平稳。模型与假设
在固定贴现因子δ1和δ2下,Rubinstein证明恰有一个完美均衡分配,先出价的参与者1得到(1−δ2)/(1−δ1δ2)。主要结果 这个值可以由两个无差异条件得出。设x⋆为参与者1出价时自己的份额,y⋆为参与者2出价时参与者1的份额。参与者2必须在现在接受1−x⋆与下一期自己出价之间无差异;参与者1必须在现在接受y⋆与下一期自己出价之间无差异:
这只是平稳性假设下的推导示意,不是论文完整的唯一性证明。它解释了Rubinstein强调的两个定性结论:结果对贴现因子连续且单调,并且对先出价的一方有利。贴现因子都等于δ时,先出价者得到1/(1+δ),大于一半。在固定议价成本的变体中,结果要极端得多:若参与者1每期成本更低,参与者1拿走整个蛋糕。成本与贴现变体
有限期界有助于建立直觉。若最后一期的出价者可以拿走全部,逆向归纳给每个更早的出价者留下“蛋糕减去回应者等待所能得到的部分”。设剩余k期时当前出价者的份额为vk:
其中δresp(k)是剩余k期时作为回应者那一方的贴现因子。Rubinstein提到Ståhl研究过一个相关的有限且已知期界模型。相关有限模型 我们的程序用数值检查:期界变长时,有限期界份额趋近无限期界的值;这一收敛检查是我们自己的计算,不是我们读到的定理。
Binmore、Rubinstein与Wolinsky让两次出价间隔Δ趋于零。其摘要指出,在不耐心模型和谈判破裂风险模型中,唯一完美均衡结果都会趋近某个Nash议价解,但所用效用要反映促成协议的动机,破裂点也要选对。他们把不耐心版本称为时间偏好Nash解,并强调它不同于通常理解的、基于风险态度的Nash解。引言与摘要 记δi=e−riΔ,ri为利率,我们自己的一个简短极限计算显示其形式:
更有耐心、利率更小的一方得到更多,先动优势在极限中消失。指数使它成为非对称Nash乘积;该文明确讨论了这种由程序或信念不对称产生的非对称解。非对称Nash解
实际智能体协商从两方面打破理论假设。第一,议题不止一个,因此协议集合是离散的,Pareto前沿变得重要:若任何一方都不能在不损害对方的情况下变得更好,该分配就是Pareto最优。第二,估值是私有的。在Deal or No Deal任务中,估值函数随机生成,各自总和为10,每件物品至少对一方有价值,且有些物品双方都看重,因此双方不可能同时拿到最大值。十轮之后,智能体可以选择不成交,双方得0分;若两个智能体输出相互冲突的最终决定,双方同样得0。任务约束
论文用三个数评估智能体:满分10的平均得分、成交率,以及成交协议中Pareto最优的比例。其报告的结果说明这三者必须分开。面对人类时,用强化学习加对话推演(rollouts)的模型在成交对话中得8.0分,似然训练基线为6.2分,但成交率只有57.2%,基线为76.5%;作者把这归因于更激进的策略,并指出人们常常宁愿不成交也不向寸步不让的对手屈服。他们还报告,模型学会了假装对自己不看重的物品感兴趣,以便之后把它当作“让步”。端到端评估与分析
因此,实用协商者会使用明确的让步策略。我们编写一个简单的时间依赖规则:截止轮次为T时,在第t轮,智能体i接受任何价值不低于其期望水平ai(t)的出价,自己出价时也绝不给自己更少:
β大于1时,智能体早早让步(“让步型”);β小于1时,它坚持到接近截止才让步(“Boulware型”)。这一族规则是我们的示例选择;我们没有读到定义它的来源,它也不是所引论文中任何模型的策略。
先算理论,再运行脚本化协商者
程序分两部分。第一部分计算Rubinstein公式、有限期界递推和间隔趋零的极限。第二部分枚举合成物品池的所有分配,找出Pareto前沿和破裂点为(0, 0)时的Nash点,并在第0到第8轮中、两种信息条件下运行轮流出价协商。“已知”估值时,出价者在满足自身期望的分配中选对对手最有利的一个。“私有”估值时,它无法按对手效用排序,于是选最接近自身期望的分配,并按固定物品顺序打破平局。两种条件都是确定性脚本。
"""Original deterministic bargaining calculations and scripted negotiators.
No dataset, no language model: item values and concession rules are synthetic."""
import itertools
import json
import math
COUNTS = (3, 1, 2)
VALUES_A = (2, 2, 1)
VALUES_B = (1, 1, 3)
def rubinstein_share(d1, d2):
"""Proposer 1's share in the unique subgame-perfect outcome."""
if not (0 <= d1 < 1 and 0 <= d2 < 1):
raise ValueError('discount factors must lie in [0, 1)')
return (1 - d2) / (1 - d1 * d2)
def finite_horizon_share(d1, d2, periods):
"""Backward induction: the last proposer takes the whole pie."""
share = 1.0
proposer = 1 if periods % 2 == 1 else 2
for _ in range(periods - 1):
responder_discount = d2 if proposer == 2 else d1
share = 1 - responder_discount * share
proposer = 2 if proposer == 1 else 1
return share
def utility(values, bundle):
return sum(v * n for v, n in zip(values, bundle))
def allocations():
for bundle in itertools.product(*(range(c + 1) for c in COUNTS)):
other = tuple(c - n for c, n in zip(COUNTS, bundle))
yield bundle, (utility(VALUES_A, bundle), utility(VALUES_B, other))
def pareto(points):
return sorted({u for _, u in points if not any(
v[0] >= u[0] and v[1] >= u[1] and v != u for _, v in points)})
def aspiration(t, deadline, beta, best, reserve):
"""Scripted time-dependent target: beta < 1 concedes late, beta > 1 concedes early."""
return best - (best - reserve) * (min(t, deadline) / deadline) ** (1 / beta)
def negotiate(beta_a, beta_b, deadline=8, reserve=(4, 4), knows_other=True):
"""Alternating offers. Each side accepts when the offer meets its own current target."""
space = list(allocations())
for t in range(deadline + 1):
proposer = 'A' if t % 2 == 0 else 'B'
me, them = (0, 1) if proposer == 'A' else (1, 0)
target_me = aspiration(t, deadline, beta_a if me == 0 else beta_b, 10, reserve[me])
target_them = aspiration(t, deadline, beta_b if me == 0 else beta_a, 10, reserve[them])
candidates = [(bundle, u) for bundle, u in space if u[me] >= target_me]
if knows_other:
bundle, offer = max(candidates, key=lambda c: (c[1][them], c[1][me]))
else:
bundle, offer = min(candidates, key=lambda c: (c[1][me], c[0]))
if offer[them] >= target_them:
return dict(agreed=True, round=t, proposer=proposer, a_bundle=list(bundle),
utilities=list(offer))
return dict(agreed=False, round=None, proposer=None, a_bundle=None, utilities=[0, 0])
if __name__ == '__main__':
space = list(allocations())
frontier = pareto(space)
nash = max(frontier, key=lambda u: (u[0] * u[1], u[0]))
utilitarian = max(frontier, key=lambda u: (u[0] + u[1], u[0]))
runs = {}
for name, (ba, bb) in {'conceder_vs_conceder': (3, 3), 'boulware_vs_conceder': (0.3, 3),
'boulware_vs_boulware': (0.3, 0.3)}.items():
for info in ('known', 'private'):
r = negotiate(ba, bb, knows_other=(info == 'known'))
r['pareto_optimal'] = tuple(r['utilities']) in frontier
r['nash_product'] = r['utilities'][0] * r['utilities'][1]
runs[f'{name}_{info}'] = r
no_zone = negotiate(0.3, 0.3, reserve=(7, 7))
rates = [(r1, r2) for r1, r2 in ((1, 1), (1, 2), (2, 1))]
limits = []
for r1, r2 in rates:
row = {'r1': r1, 'r2': r2, 'limit_r2_over_sum': r2 / (r1 + r2)}
for dt in (1.0, 0.1, 0.01):
row[f'dt_{dt}'] = round(rubinstein_share(math.exp(-r1 * dt), math.exp(-r2 * dt)), 6)
limits.append(row)
print(json.dumps(dict(
rubinstein_0_9_0_8=round(rubinstein_share(.9, .8), 6),
finite_horizon={T: round(finite_horizon_share(.9, .8, T), 6) for T in (1, 2, 3, 4, 10, 50)},
equal_discount_0_9=round(rubinstein_share(.9, .9), 6),
vanishing_period_limits=limits,
allocations=len(space), pareto_frontier=[list(u) for u in frontier],
nash_point=list(nash), nash_product=nash[0] * nash[1], utilitarian_point=list(utilitarian),
negotiations=runs, reserves_7_7=no_zone,
), indent=2))
查看记录的输出
{
"rubinstein_0_9_0_8": 0.714286,
"finite_horizon": {
"1": 1.0,
"2": 0.2,
"3": 0.92,
"4": 0.344,
"10": 0.576077,
"50": 0.714092
},
"equal_discount_0_9": 0.526316,
"vanishing_period_limits": [
{
"r1": 1,
"r2": 1,
"limit_r2_over_sum": 0.5,
"dt_1.0": 0.731059,
"dt_0.1": 0.524979,
"dt_0.01": 0.5025
},
{
"r1": 1,
"r2": 2,
"limit_r2_over_sum": 0.6666666666666666,
"dt_1.0": 0.909969,
"dt_0.1": 0.69939,
"dt_0.01": 0.669994
},
{
"r1": 2,
"r2": 1,
"limit_r2_over_sum": 0.3333333333333333,
"dt_1.0": 0.665241,
"dt_0.1": 0.367165,
"dt_0.01": 0.336672
}
],
"allocations": 24,
"pareto_frontier": [
[
0,
10
],
[
2,
9
],
[
4,
8
],
[
6,
7
],
[
8,
6
],
[
9,
3
],
[
10,
0
]
],
"nash_point": [
8,
6
],
"nash_product": 48,
"utilitarian_point": [
8,
6
],
"negotiations": {
"conceder_vs_conceder_known": {
"agreed": true,
"round": 3,
"proposer": "B",
"a_bundle": [
3,
1,
0
],
"utilities": [
8,
6
],
"pareto_optimal": true,
"nash_product": 48
},
"conceder_vs_conceder_private": {
"agreed": true,
"round": 5,
"proposer": "B",
"a_bundle": [
1,
1,
1
],
"utilities": [
5,
5
],
"pareto_optimal": false,
"nash_product": 25
},
"boulware_vs_conceder_known": {
"agreed": true,
"round": 6,
"proposer": "A",
"a_bundle": [
3,
1,
0
],
"utilities": [
8,
6
],
"pareto_optimal": true,
"nash_product": 48
},
"boulware_vs_conceder_private": {
"agreed": false,
"round": null,
"proposer": null,
"a_bundle": null,
"utilities": [
0,
0
],
"pareto_optimal": false,
"nash_product": 0
},
"boulware_vs_boulware_known": {
"agreed": true,
"round": 8,
"proposer": "A",
"a_bundle": [
1,
1,
0
],
"utilities": [
4,
8
],
"pareto_optimal": true,
"nash_product": 32
},
"boulware_vs_boulware_private": {
"agreed": false,
"round": null,
"proposer": null,
"a_bundle": null,
"utilities": [
0,
0
],
"pareto_optimal": false,
"nash_product": 0
}
},
"reserves_7_7": {
"agreed": false,
"round": null,
"proposer": null,
"a_bundle": null,
"utilities": [
0,
0
]
}
}当δ1=0.9、δ2=0.8时,先出价者的均衡份额为0.714286。有限期界的值随最后出价者而振荡:一期为1.0,两期0.2,三期0.92,四期0.344,十期0.576077,五十期0.714092。贴现因子都为0.9时,先出价者得到0.526316。在间隔趋零表中,利率相等时,Δ=1得0.731059,Δ=0.1得0.524979,Δ=0.01得0.5025,趋近一半;r1=1、r2=2时份额趋近2/3(Δ=0.01时为0.669994),利率互换后趋近1/3(0.336672)。
物品池共有24种分配。七个效用对是Pareto最优的:(0,10)、(2,9)、(4,8)、(6,7)、(8,6)、(9,3)和(10,0)。破裂收益为零时的Nash点是(8,6),乘积48,此处恰好与最大效用和14重合;A拿走全部书和帽子,B拿走两个球。两个准则重合是这组数字的性质,不是一般规律。
协商结果把成交、时机和效率分开:
| 配对与信息 | 成交 | 轮次 | 效用(A, B) | Pareto最优 | Nash乘积 |
|---|---|---|---|---|---|
| 让步型对让步型,已知 | 是 | 3 | (8, 6) | 是 | 48 |
| 让步型对让步型,私有 | 是 | 5 | (5, 5) | 否 | 25 |
| Boulware型A对让步型B,已知 | 是 | 6 | (8, 6) | 是 | 48 |
| Boulware型A对让步型B,私有 | 否 | — | (0, 0) | 否 | 0 |
| Boulware型对Boulware型,已知 | 是 | 8 | (4, 8) | 是 | 32 |
| Boulware型对Boulware型,私有 | 否 | — | (0, 0) | 否 | 0 |
估值已知时,所有协议都是Pareto最优的,越强硬的配对越晚成交。估值私有时,两个让步型仍能成交,但落在被(6,7)支配的(5,5):双方本可都更好,却都看不到这笔交换。A为Boulware型且估值私有时,B在第7轮提出(5,5),而A仍要求约6.16;A在第8轮的最后出价只给B 3分,低于B的保留值4。尽管(6,7)等分配同时满足双方保留值,仍未成交。把双方保留值都提高到7后,前沿上再没有双方都能接受的点,两个Boulware型理所当然地以不成交结束。
这些结果取决于我们的平局规则和唯一一组估值。它们说明机制,不是对真实协商者失败频率的估计。
均衡所需的假设,智能体很少具备
Rubinstein的唯一性结果假设偏好是完全信息。Rubinstein本人指出,当一方的议价成本是私有信息时,可以预期议价会持续不止一期,因为各方都试图了解或误导对方的类型。不完全信息评论 Deal or No Deal中的语言智能体正处于这种情形,我们的私有估值运行也显示,不需要任何非理性,仅仅缺少信息就会出现拖延和失败。
Nash乘积依赖效用尺度和破裂点。Binmore、Rubinstein与Wolinsky提醒,对相同的实际结果,标准Nash解和时间偏好Nash解会得出不同协议;把s0选为“争议期间收入”还是“最佳外部选择”,答案也会改变。建模歧义
我们的脚本策略完全忽略语言。在对话系统中,出价需要从文本中解析,两个智能体还必须输出相同的最终决定;论文对相互冲突的输出记0分。任务规则 假装感兴趣之类的策略行为还提出了得分之外的评估问题:即使赢了,会欺骗的协商者也可能并不可取。
最后,我们只读了1982年论文的前四页和1986年论文的前六页。本文的有限期界收敛和闭式极限是我们的计算,已经数值核对,并非引自这些页面的结果。
用数字让步
-
贴现因子相等时,为什么Rubinstein模型中先出价者得到超过一半?计算δ=0.9时的份额。
答案:拒绝会让回应者付出一期延迟的代价,所以出价者只需给回应者“下一期成为出价者”的贴现价值。δ相等时,x⋆=(1−δ)/(1−δ2)=1/(1+δ)=1/1.9≈0.526316。δ趋近1时,这一优势消失。
-
δ1=0.9、δ2=0.8,共三期,参与者1在第一期和第三期出价。用逆向归纳计算参与者1的份额。
答案:第三期参与者1拿走1。第二期参与者2必须给参与者1 0.9×1=0.9,自己留0.1。第一期参与者1必须给参与者2 0.8×0.1=0.08,自己留0.92,与程序在三期时的输出一致。
-
两个私有估值的让步型以(5,5)成交。说明这一协议无效率,并解释它们为何没找到更好的协议。
答案:分配(6,7)可行且让双方都得到更多,所以(5,5)被Pareto支配。在(5,5)中,A持有一本书、帽子和一个球。让A拿到另外两本书,同时把帽子和那个球交给B,就得到(6,7),因为A看重书、B看重球。每个出价者只按自身效用挑选分配,看不到这笔交换。在不了解对手估值的情况下,没有理由认为第一个可接受的出价会落在前沿上。
-
你要比较两个准备面向人类客户部署的协商智能体。一个对脚本对手的平均得分更高,另一个成交率更高。应报告哪些指标?对手应是谁?
答案:报告把不成交计为0的全部对话得分、成交对话得分、成交率和Pareto比例,并面向人类或现实的对手池评估。Deal or No Deal显示,对固定模型伙伴的提升可能伴随着面对人类时显著更低的成交率。还应检查对话记录中的欺骗策略,任何单一分数都反映不了它。
把博弈和评估都写清楚
Rubinstein的论文定义了轮流出价博弈及其在完全信息下的唯一完美均衡;策略模型 Binmore、Rubinstein与Wolinsky说明何时Nash乘积是恰当的静态概括,以及应使用哪个破裂点;Nash纲领 Lewis等人展示了智能体必须在私有估值下用语言协商时会发生什么变化,以及如何报告结果。对话协商
阅读协商智能体的结果时,要检查对手池、各方掌握的信息、截止时间和不成交收益、得分是否包含失败的协商,以及效率是否与个体收益分开报告。
先判断,再看解释
在Rubinstein轮流出价模型中,δ1=0.9、δ2=0.8,先出价的参与者1得到多少份额?
学习目标
- 推导轮流出价的Rubinstein分配,并说明其与Nash议价解及破裂点选择的关系。
- 分别报告成交率、Pareto效率与个体得分,解释私有估值与让步策略如何导致拖延或失败。
先修与延伸
查看知识关联图 →参考文献
- Perfect Equilibrium in a Bargaining Model — scoped author-hosted scan
Ariel Rubinstein · 1982 - The Nash Bargaining Solution in Economic Modelling — scoped author-hosted scan
Ken Binmore; Ariel Rubinstein; Asher Wolinsky · 1986 - Deal or No Deal? End-to-End Learning for Negotiation Dialogues — scoped arXiv v1
Mike Lewis; Denis Yarats; Yann N. Dauphin; Devi Parikh; Dhruv Batra · 2017
版本1 · 编写状态: 已完成记录中的技术复核
查看技术检查记录(AI)
Claude · 2026-12-02 · Independent AI check (Claude subagent, not the author); this is an automated AI technical check, not a human or expert review. Ran example.py and diffed against example.stdout.txt (identical); confirmed byte-identical code in en.mdx and zh.mdx; traced the Boulware-versus-conceder private-value run round by round to confirm the quoted 6.16 aspiration, the (5,5) offer at round 7 and the 3-point final offer. Re-derived by hand the Rubinstein share x*=(1−δ2)/(1−δ1δ2) from the two indifference conditions, the finite-horizon values 0.2, 0.92 and 0.344, the vanishing-interval limit r2/(r1+r2) as player 1's (first proposer's) share and its equality with the argmax of x^(1/r1)(1−x)^(1/r2), and the Pareto frontier, Nash point and exercise answers. Finite-horizon convergence holds because two backward steps map x to (1−δ2)+δ1δ2x, a contraction with fixed point x*; the article labels this, the closed-form limit and the aspiration rule as its own. Viewed the author-hosted scans as images (Rubinstein 1982 pp.97–100; Binmore–Rubinstein–Wolinsky 1986 pp.176–179) and re-read Deal or No Deal arXiv v1 sections 2.2, 6.4 and 7 with Tables 1–2. Not checked: Rubinstein's proofs, BRW pp.180 onward, the conference version of Deal or No Deal.
- 重推Rubinstein份额、有限期界逆向归纳(两步映射x→(1−δ2)+δ1δ2x为压缩映射,故收敛到x*)与Δ→0极限r2/(r1+r2);按文中记号,该极限是先出价者参与者1的份额,耐心者(r更小)得更多;这些均标为本文自己的推导。
- 目视核对两份扫描件:1982年摘要中唯一P.E.P.为(1−δ2)/(1−δ1δ2)、固定成本下c1<c2时参与者1得全部、Ståhl与Krelle的有限已知期界、不完全信息评论;1986年摘要的Nash解极限、(S,s0)与破裂点的建模判断、时间偏好Nash解及非对称Nash解。
- 核对Deal or No Deal表1:面对人类时RL+ROLLOUTS成交对话得分8.0对LIKELIHOOD 6.2,成交率57.2%对76.5%;估值约束、10轮后可不成交、冲突决定记0、假装感兴趣均有原文支持。Boulware/让步型期望规则明确标为示例选择,未归属任何来源。
- 逐节比较中英文;中文练习3缺少英文最后一句,已补齐。
核对的来源位置:
- Perfect Equilibrium in a Bargaining Model — scoped author-hosted scan · Scanned PDF viewed as images, pp.97–100 (PDF 1–4): abstract (fixed costs c1<c2 / c1>c2 results; P.E.P. (1−δ2)/(1−δ1δ2)), introduction (strategic vs axiomatic, Ståhl finite horizon, continuity/monotonicity/first-mover advantage, incomplete-information remark), assumptions A-1–A-5, section 2 game. Not read: pp.101–110 proofs. The indifference-condition derivation and finite-horizon recursion are our sketches.
- The Nash Bargaining Solution in Economic Modelling — scoped author-hosted scan · Scanned PDF viewed as images, pp.176–181 (PDF 1–6): abstract (limit approaches Nash solution with appropriate utilities and disagreement point), (S,s0) and Nash product p.177, time-preference Nash solution and distinction from standard p.178, asymmetric Nash solutions p.179, section 2 assumptions and Propositions 1–3 pp.179–181. Not read: section 3 onward; closed-form r2/(r1+r2) limit is our computation.
- Deal or No Deal? End-to-End Learning for Negotiation Dialogues — scoped arXiv v1 · pdftotext of arXiv v1: sections 1–3.3 (pp.1–3) and 6.4–7 opening with Tables 1–3 (pp.6–7). Numbers used: RL+ROLLOUTS vs human agreed score 8.0 vs LIKELIHOOD 6.2, agreement 57.2% vs 76.5%; dataset 5808 dialogues. Not read: sections 4–5 details, 7.x beyond first paragraphs, appendix; no code or data.
相关主题