那么Burstiness又是什么呢
- User
那么Burstiness又是什么呢
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
那么Burstiness又是什么呢
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Burstiness(爆发性) 是一个用来衡量文本中语言风格“起伏程度”的指标,特别是在判断一段文本是人类写的还是由大语言模型生成时非常有用。
Burstiness 衡量的是文本中句子之间的“困惑度波动”:如果一个人写的句子有的简单、有的复杂,有高有低,就有高的 burstiness;如果每句话都差不多流畅或平淡(如 GPT),那 burstiness 就低。
假设你用一个语言模型(例如 GPT-2)去评估文本中每一句或每个 token 的困惑度,得到一个序列:
句子1:PP = 40
句子2:PP = 90
句子3:PP = 15
句子4:PP = 60
这时:
🧮 通常用标准差(standard deviation)或变异系数(coefficient of variation)来衡量。
Burstiness = std(perplexity_list)
或更稳定的版本:
Burstiness = std(perplexity_list) / mean(perplexity_list)
| 特征 | 人类写作 | GPT 类生成模型写作 |
|---|---|---|
| Perplexity | 偏高,语言多样 | 偏低,表达中规中矩 |
| Burstiness | 偏高,波动性较大 | 偏低,语风稳定单调 |
人类有灵感的人写一段文字时,有时解释清晰、有时突然幽默、有时复杂转折,所以 PP 高低起伏很明显,而模型通常每句话都优化得语言简洁、平均稳定。
所以,很多 AI 检测器(如 GPTZero)同时引用 PP 和 Burstiness:
🥱 GPT 版本的莎士比亚会像这样写整篇文章:
"The cat sat on the mat. Then it saw a bat. The bat flew away. The cat was sad."
🔀 人类写作会有长句短句混杂,有顿挫感:
"The cat was resting quietly on the patterned mat — until, suddenly, its eyes caught a glimpse of motion: a bat, flapping frantically by the window. What a surprise!"
两者 average perplexity 或许相似,但第二段 burstiness 明显更高。
def calc_burstiness(perplexities):
import numpy as np
return np.std(perplexities) / np.mean(perplexities)
| 问题 | 说明 |
|---|---|
| 对短文本不稳定 | 太短的段落很难准确衡量 burstiness,建议至少几百词以上。 |
| 对润色文本失效 | 经过人工编辑的 AI 写作可能刻意加入语言起伏,使 burstiness 变高,从而逃脱检测。 |
| 跟模型相关 | 用哪个模型计算 perplexity 会直接影响 burstiness,需统一标准。 |
| 名称 | 含义 | 应用作用 |
|---|---|---|
| Perplexity | 模型对一段文字的“平均预测难度” | 检测是否语言太顺滑 |
| Burstiness | 文本困惑度的“波动性”(写作风格起伏) | 检测文风是否过“平” |
✍️ 更像人的文字 → “略难预测 + 起伏节奏多”
🤖 更像机器的文字 → “容易预测 + 全程平稳”
如果你正在做 AI 生成文本检测任务,Perplexity + Burstiness 是目前最简单但有效的两个指标组合。需要我提供完整的代码示例或者工具推荐,可以随时说!