外部审计方法检测带网络搜索的 LLM 的查询扇出行为
An Approach to the External Auditing of Query Fan-Out: Derived Queries, Sources, and Observability in Web-Search-Enabled LLM APIs
想知道 ChatGPT 搜索时到底替你搜了什么?研究者花 22 美元实测四家模型,发现衍生查询几乎不按你的原话搜,来源偏好也各家不同。做搜索类产品的开发者值得照着这套 7 原则自己复现一遍。
一篇 arXiv 论文提出通过公开 API 从外部审计 LLM 查询扇出(query fan-out)的方法,围绕字面性、可观测性、可追溯性等 7 项原则设计。研究者在 GPT-5.6 Luna、Claude Sonnet 5.5、Gemini 3.6 Flash 和 DeepSeek V4 Flash 四个系统上做了成对实验:12 个来自 Google 2025 Year in Search Brazil 的主题,葡语和英语双语提示词,模拟巴西和美国用户来源,每个组合执行 5 次,共 960 次 API 调用。
结果显示:2,015 条衍生查询中只有 9% 与用户原始查询字面一致,OpenAI 系统中这一比例为 0;相同执行之间只有 13% 的查询原样重现,192 个组合中有 18 个出现是否搜索的决策翻转。Gemini 的 11% 来源来自 Google 自家视频平台,DeepSeek 的 11% 来源为中国域名且多为官方媒体。提示词语言对查询和来源的影响远大于用户地理位置。各 API 仅暴露 13 个过程维度中的 3 到 9 个,没有厂商公开来源选择机制。
整个审计仅花费 US$22.61,无需与厂商达成任何协议,作者还提出了 API 需要返回哪些字段才能使查询扇出可被外部审计。
An Approach to the External Auditing of Query Fan-Out: Derived Queries, Sources, and Observability in Web-Search-Enabled LLM APIs
When a large language model (LLM) with web search answers a question, it usually does not search for what the user wrote: it decides whether to search, writes its own queries (derived queries), and synthesizes an answer from the sources it selects, a process known as query fan-out. We propose an approach for the external audit of query fan-out through providers' public APIs, organized around seven principles: literalness, observability as data, noise floor, self-comparison, calibration, pre-commitment, and traceability. We apply it to GPT-5.6 Luna, Claude Sonnet 5.5, Gemini 3.6 Flash, and DeepSeek V4 Flash in a paired design: 12 topics from Google's 2025 Year in Search for Brazil, prompts in Brazilian Portuguese and English, simulated user origin in Brazil and the United States, and five identical executions per combination (960 API calls). Only 9% of 2,015 derived queries match the literal query, and none do in OpenAI's system; only 13% reappear verbatim across identical executions, and the decision to search flips in 18 of 192 combinations. Each system draws on its own repertoire of sources, including the provider's own video platform in Google's case (11% of sources) and Chinese domains, mostly state media, in DeepSeek's (11%). Prompt language shifts queries and sources far more than user origin does. The origin hypothesis, tested by a rule fixed before collection, remained inconclusive because the negative control reacted. The APIs expose between 3 and 9 of 13 dimensions of the process, and no provider exposes or documents how sources are selected. The full application cost US$22.61 and required no agreement with the providers. We document the design for re-application and propose the fields an API would need to return to make query fan-out auditable from the outside.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include GPT-5.6, Claude Sonnet 5.5, Gemini 3.6 Flash, DeepSeek V4.
Primary source verification: published directly by arXiv: OpenAI with first-party authority. Cross-source corroboration: 11 independent sources have covered this development (including IT之家, 爱范儿, 宝玉), confirming industry-wide signal strength.