按影响力排序只是凭感觉?
“给我排前五,按影响力排序。”人们总是这样要求 AI 智能体,无论面对的是一堆待办事项,还是一大堆增长想法。然而“影响力”是语言中最模糊的词之一。它可能指多少用户受益、能带来多少收入,或者你能从中获得多少回报。几乎没人说明到底指哪一种,所以我们怀疑智能体返回的顺序只是凭感觉。它看起来合理,但背后没有任何依据。
但我们错了,而且错得并不让人安心。在四个模型共 1500 次运行中,智能体每次对同一份清单的排序几乎完全相同,不同模型之间也大体一致。我们的提示从未说明“影响力”是什么意思,所以智能体自己选了一个定义,而选哪个取决于主题:开发者工具待办清单看的是用户触达,网店看的是收入,安全工作看的是严重程度。当每一项都带有金额数字时,每一次,“影响力”指的都是最大的那个金额数字。
当你让智能体按影响力给一份清单排序时,返回的顺序可能在三个方面只是凭感觉,而每一个方面都需要用不同的方式来解决。
如果我们让智能体自己想出点子,那就是同时在测试两件事:它会挑出哪些点子,以及它如何给这些点子排序。所以我们给它一份固定的八项清单来排序。第一份清单是 devkit 的待办事项,devkit 是我们虚构的一个开源 CLI,带有付费的 Team 版本:
我维护 devkit,一个用于生成项目骨架和部署无服务器应用的开源 CLI。核心是免费的;付费的 Team 套餐增加了协作功能。这是我们的待办列表: - win-paths:修复当项目路径包含空格时在 Windows 上的崩溃 - sso:为 Team 套餐添加 SSO/SAML 登录 - quickstart:重写入门文档,并添加 5 分钟快速入门 - deploy-speed:将 `devkit deploy` 的冷启动从 40s 降至 10s - ... 请按影响力对这些事项排序,影响力最高的在前。每个回复最后都必须以一行 RANKING: 结尾,该行列出全部八个事项,以便我们能自动比较排序结果。每个列表都有两个版本。一个只有标题,就像人们通常把列表粘贴到聊天中那样。另一个则为每个事项补充了数据,例如“覆盖约 15% 的用户;预计 1 天”。然后我们以几种方式要求给出排序:
Claude Sonnet 5.5、Claude Haiku 5.5、GPT-6.1 Sol 和 GPT-6 Luna 针对每个提示词将待办列表排序 15 次。我们所有测试都在 Vally 中运行,这是 Microsoft 面向 AI 智能体的评估工具,并以 GitHub Copilot SDK 作为智能体。
在待办列表上,“按影响力排序”最接近按触达用户数排序。当智能体解释其排序时,大多数表示自己是按触达范围排序,或按包含触达范围的混合因素排序。显然,影响力指的就是触达范围。
一个领域只是一个数据点,所以我们又增加了两个领域,并且这次我们预先写下了什么会被算作结果。商店领域是一份 Northbean 的增长举措列表,Northbean 是一家小型在线咖啡烘焙商。风险领域是一份 Ledgerly 的安全改进列表,Ledgerly 是一家 B2B 发票 SaaS。在带数据的版本中,每个事项现在都有三个数字:触达多少人、价值多少金额以及需要多少天。
- cart-email:发送一封弃购提醒邮件(每月触达约 8,000 人;预计年收入增加 4 万美元;预计耗时 1 天) - microlot-club:为顶级客户推出每月 45 美元的限量 microlot 俱乐部(每月触达约 150 人;预计年收入增加 7 万美元;预计耗时 2 天) 我们特意挑选这些数字,使得按覆盖面、按金额和按工作量排序会得到三种完全不同的顺序。这样我们就能看出智能体遵循的是哪个数字。我们还让 Claude Haiku 5.5 阅读每一个回答,并记录智能体自称是按什么排序的。Claude Sonnet 5.5 和 GPT-6.1 Sol 在两个新领域都跑了测试,每个提示词运行 15 次。
从列表中任选两项,同一个提示词运行两次,会有 86% 到 100% 的概率把它们排成相同的顺序,具体取决于模型和列表。这和我们明确写出 impact 指什么时的结果几乎一样稳定。不同模型在 77% 到 93% 的项目对上意见一致,而一旦列表带有数据,这一比例升至 87% 到 100%。
一个项目在输入中的位置与它的排名几乎无关,把列表倒序也只会略微改变整体排名。仅给出标题时,64% 到 100% 的运行都选出了同一个第一名项目。待办清单是唯一一个倒序后首选项目发生变化的列表。例如 Claude Sonnet 5.5 在原顺序下把 quickstart 排在首位,倒序时则把 Windows 崩溃修复排在首位。当智能体自己提出五个想法再排序时,排序结果与它们想到这些想法的顺序几乎无关,而且没有任何一次运行原样返回该列表。
那么智能体究竟是按什么排序的?仅给出标题时,这取决于列表的主题是什么。覆盖面(Reach)——我们在第一轮得到的答案——只在开发者工具待办清单上成立。
在安全清单上,智能体按照每项风险的严重程度排序,而为所有员工强制执行硬件密钥 MFA 在两种模型的每一次运行中都排在第一位。在我们的三种定义中,「避免损失」最接近,但智能体谈论的是严重性,而我们的定义都没有涵盖这一点。
当每个条目都写明触达人数、金额和投入精力时,Claude Sonnet 5.5 和 GPT-6.1 Sol 在商店清单和安全清单上都按金额一列排序。每一次运行中,排序结果都与金额顺序完全一致,与触达人数的顺序毫无关系。弃购购物车邮件的触达人数是微批次俱乐部的 50 多倍,耗时只有一半,但智能体仍然把微批次俱乐部排得更高,因为它价值 7 万美元而不是 4 万美元。
理论上,显而易见的解决办法是让智能体在排序之前先说明它所说的「影响」是什么意思。但在实践中,这并没有让排序结果变得更一致,对四个模型中的三个而言,反而让一致性更差。
我们要测试的第一件事是,人类是否能做得更好。把同样的清单交给产品经理和工程师,让他们按影响排序,然后比较他们彼此之间的一致程度,以及一周后与自己的排序的一致程度。如果人类也会选择不同的定义,那么问题就出在请求本身,无论由谁来做排序,你都需要先定义「影响」。
我们还会扩大清单的规模。我们测试了三个领域,每个领域一份包含八个条目的清单,全都是商业决策。一份包含二十个条目的清单,或者一份完全不属于商业领域的清单——比如先读哪些研究论文——将能说明智能体是否仍会在每个领域内固定采用某一种定义。
如果你让智能体按影响给任何东西排序,或者按同样含糊的词排序,比如优先级或重要性,那就要说明你说的这个词是什么意思,比如预期营收或每单位投入时间的价值。如果你不说清楚,智能体会替你选一个,而那可能不是你想的那个。先让智能体定义“影响”听起来很严谨,但你得到的仍然是智能体选定的定义,而在我们的测试运行中,排名反而变得更不一致。如果你不确定哪种定义合适,就要求给出多个排名,每个定义一个,然后对比它们。在所有定义下都排名靠前的条目是稳妥之选,而排名会变动的条目才是真正需要做决定的地方。
注意你放进列表的数据,因为你加入的数字和文字一样,也在定义“影响”。如果你的条目带有金额数字,那就等着智能体按这些数字排序,并忽略你加入的其他所有内容。
如果你构建的是替人给事物排序的技能、提示词或智能体,比如对收到的问题做分级处理或总结评审发现,就把定义写进指令里。当一个词含义模糊时,智能体会悄悄选一个定义并一直沿用。就像人们归给模型的偏好一样,这个定义来自上下文,比如列表的主题或列表中的数字。
如果你评估的是做排序的智能体,就把这个词本身加入你的隐藏变量清单。同一个提示词,用在商店的增长点子上测试的是一种定义,用在安全待办事项上测试的又是另一种定义。
“按影响排序”的结果比我们预想的要一致得多。无论列表以什么顺序给出,智能体每一次运行给出的排名几乎相同,彼此之间也大多一致。
这是一种更隐蔽的凭感觉。智能体会根据它从列表主题中选出的定义来排序:开发者工具看触达,商店看收入,安全看严重程度,而只要有金额数据,就看最大的那个数字。由于每次返回的排名都一样,而且听起来很有道理,很容易被误认为是你自己也认同的判断。
这篇文章《“按影响力排序”只是凭感觉吗?》最初发布于 Microsoft for Developers。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Is “sort by impact” just vibes?)
“Give me the top five, sorted by impact.” People ask AI agents for this all the time, whether it’s a backlog or a pile of growth ideas. Yet “impact” is one of the vaguest words in the language. It could mean how many users benefit, how much money comes in or how much you get for the effort. Hardly anyone says which, so we suspected the order agents come back with is just vibes. It looks plausible, but there’s nothing behind it.
We were wrong, though not in a reassuring way. Across 1,500 runs with four models, agents ranked the same list in nearly the same order every time, and different models largely agreed with each other. Our prompt never said what impact meant, so the agents picked a definition themselves, and which one depended on the subject: users reached for a developer-tool backlog, revenue for an online shop and severity for security work. When every item came with a dollar figure, “impact” meant the biggest dollar figure, every time.
Three kinds of vibes
When you ask an agent to sort a list by impact, the order you get back can be vibes in three ways, and each one needs to be fixed in a different way.
| Kind of vibes | What you’d see | What fixes it |
|---|---|---|
| Noise | Ask again and you get a different order | Ask several times, or don’t trust the ranking |
| Artifact | The order copies something irrelevant, like the order of your list | Shuffle the list before you ask |
| Hidden default | The same order every time, based on a definition of impact the agent picked | Tell the agent what impact means |
Eight items, ranked over and over
If we let the agent come up with its own ideas, we’d be testing two things at once: which ideas it picks and how it ranks them. So we gave it a fixed list of eight items to rank. The first list was a backlog for devkit, a made-up open-source CLI with a paid Team tier:
I maintain devkit, an open-source CLI for scaffolding and deploying serverless apps.
The core is free; a paid Team tier adds collaboration features.
Here's our backlog:
- win-paths: Fix the crash on Windows when the project path contains spaces
- sso: Add SSO/SAML login to the Team tier
- quickstart: Rewrite the getting-started docs and add a 5-minute quickstart
- deploy-speed: Cut `devkit deploy` cold start from 40s to 10s
- ...
Sort these by impact, most impactful first.
Every reply had to end with a RANKING: line listing all eight items, so we could compare orders automatically. Each list came in two versions. One had titles only, the way people usually paste a list into a chat. The other added data to each item, like “hits ~15% of users; est. 1 day”. Then we asked for the ranking in several ways:
| What we asked | What it tells us |
|---|---|
| “Sort these by impact”, 15 times | Noise: do repeated runs agree? |
| The same, with the list reversed | Artifact: does an item’s position in the list affect its rank? |
| Come up with 5 ideas, then sort them by impact | Artifact: is the ranking just the order the ideas came out in? |
| “Sort by impact, where impact means…” users reached, revenue or value per day of effort | Hidden default: which definition does plain “impact” match? |
| “Define impact first, then sort” | Does it make the ranking more consistent? |
Claude Sonnet 5.5, Claude Haiku 5.5, GPT-6.1 Sol and GPT-6 Luna ranked the backlog 15 times per prompt. We ran everything in Vally, Microsoft’s evaluation tool for AI agents, with the GitHub Copilot SDK as the agent.
The first round said “impact means reach”
On the backlog, the “sort by impact” ranking came closest to sorting by users reached. When the agents explained their ranking, most said they’d ranked by reach or by a mix that included it. Impact meant reach, apparently.
One domain is one data point, so we added two more, and this time we wrote down beforehand what would count as a result. The shop domain was a list of growth initiatives for Northbean, a small online coffee roaster. The risk domain was a list of security improvements for Ledgerly, a B2B invoicing SaaS. In the version with data, every item now had three numbers: how many people it reaches, how much money it’s worth and how many days it takes.
- cart-email: Send an abandoned-cart reminder email
(reaches ~8,000 people/month; est. +$40k/yr revenue; est. 1 day)
- microlot-club: Launch a $45/month limited-microlot club for top customers
(reaches ~150 people/month; est. +$70k/yr revenue; est. 2 days)
We picked the numbers so that sorting by reach, by money and by effort gave three completely unrelated orders. That way, we could tell which number the agents followed. We also had Claude Haiku 5.5 read every answer and note what the agent said it had ranked by. Claude Sonnet 5.5 and GPT-6.1 Sol ran both new domains, 15 times per prompt.
Ask again and you get the same order
Pick any two items from a list, and two runs of the same prompt put them in the same order 86% to 100% of the time, depending on the model and the list. That’s about as consistent as when we spelled out what impact meant. Different models agreed on 77% to 93% of pairs, and on 87% to 100% once the list had data.
An item’s position in the input had almost nothing to do with its rank, and reversing the list changed the full ranking only slightly. With titles only, 64% to 100% of runs picked the same #1 item. The backlog was the only list where reversing it changed the top pick. Claude Sonnet 5.5, for example, put the quickstart first in the original order and the Windows crash fix first in reverse. When agents came up with five ideas and then sorted them, the sorted order had little to do with the order they’d thought of them in, and no run handed the list back unchanged.
The hidden default depends on the domain
So what were the agents ranking by? With titles only, it depended on what the list was about. Reach, our answer from the first round, only held for the developer-tool backlog.
| Domain | Ranking closest to | What the agents said they ranked by |
|---|---|---|
| Developer-tool backlog | Users reached | Reach, or a mix that included it |
| Online shop | Revenue | Money (GPT-6.1 Sol), or a mix (Claude Sonnet 5.5) |
| Security | Losses avoided | Severity |
On the security list, the agents ranked by how bad each risk was, and enforcing hardware-key MFA for all employees came first in every run for both models. Of our three definitions, losses avoided came closest, but the agents talked about severity, which none of our definitions covered.
With dollar figures, impact meant the biggest dollar figure
When every item stated reach, money and effort, Claude Sonnet 5.5 and GPT-6.1 Sol sorted by the money column on both the shop and the security list. In every run, the ranking matched the money order exactly and had nothing to do with the reach order. The abandoned-cart email reached more than 50 times as many people as the microlot club and took half the time, and the agents ranked the microlot club higher anyway, because it was worth $70k instead of $40k.
Asking the agent to define impact didn’t help
On paper, the obvious fix is to make the agent say what it means by impact before it ranks anything. In practice, it didn’t make the rankings any more consistent, and for three of the four models, it made them less so.
What we’d test next
The first thing we’d test is whether people do any better. Give the same lists to product managers and engineers, ask them to sort by impact, and compare how often they agree with each other and with themselves a week later. If people pick different definitions too, the problem is the request itself, and you’d need to define impact no matter who does the ranking.
We’d also widen the lists. We tested three domains with one list of eight items each, all of them business decisions. A list of twenty items, or one outside business entirely, like which research papers to read first, would show whether agents still settle on one definition per domain.
What to do when you ask for a ranking
If you ask an agent to sort anything by impact, or by a word that’s just as vague, like priority or importance, say what you mean by it, such as expected revenue or value per day of effort. If you don’t, the agent picks one for you, and it might not be the one you had in mind. Asking the agent to define impact first sounds rigorous, but you still get a definition the agent chose, and in our runs the rankings got less consistent. If you’re not sure which definition fits, ask for several rankings, one per definition, and compare them. Items that rank high on every definition are the safe bets, and the ones that move are where the real decision is.
Watch what data you put in the list, because the numbers you add define “impact” as much as the words do. If your items carry dollar figures, expect the agent to sort by them and ignore everything else you included.
If you build skills, prompts or agents that rank things for people, like triaging incoming issues or summarizing review findings, put the definition in the instructions. When a word is ambiguous, an agent quietly picks a definition and sticks to it. Like the preferences people attribute to models, that definition comes from the context, such as the subject of the list or the numbers in it.
If you evaluate agents that rank, add the word itself to your list of hidden variables. The same prompt tests one definition on a shop’s growth ideas and a different one on a security backlog.
So, is “sort by impact” just vibes?
“Sort by impact” turned out far more consistent than we expected. Agents gave nearly the same ranking run after run and mostly agreed with each other, whatever order the list came in.
It’s vibes in a subtler way. The agent ranks by a definition it picks from the subject of the list: reach for a developer tool, revenue for a shop, severity for security and the biggest dollar figure whenever there is one. Because the ranking comes back the same every time and sounds well-reasoned, it’s easy to mistake for a judgment you agreed with.
The post Is “sort by impact” just vibes? appeared first on Microsoft for Developers.
正文保留英文原文,标题与摘要由机器翻译。
原文发布于 Microsoft DevBlogs(Is “sort by impact” just vibes?),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。