Papers

SignalCount:秒级回答含语义条件的 COUNT 估算,无需查询时调用 LLM

SignalCount: Approximate Counts with Structured and Semantic Predicates in Seconds

Why we picked it

做数据产品或分析工具的人可以看看这个:它用 LLM 的历史判定日志离线校准一个小分类器,查询时完全不调 LLM,p99 延迟 3.8 秒就能给出带置信区间的语义计数,比每次查询都跑 oracle 的方法快得多,还给出了 92% 覆盖率和偏高 15% 的实测数据。

MIT 等团队在 arXiv 发布 SignalCount 系统,用于对结构化列加文本文档的数据集回答带语义条件的 COUNT 查询,例如统计 40-70 岁、2 型糖尿病患者中因血糖持续偏高而停用 metformin 的人数。与以往查询时调用 LLM oracle 标注样本的方法不同,SignalCount 在查询时不调用任何 oracle,而是离线用生产 LLM 裁判的历史判定日志校准前置的快速分类器。

Body

查询时系统在一次列式扫描中对过滤集合精确计数,抽取最多 1,000 条记录的均匀样本,用分类器打分,并将校准后的平均概率乘以精确计数得到估计。其 90% 置信区间结合采样误差项与按比率变化的一侧校准误差边际,后者通过跨租户的 split conformal prediction 拟合。

在多租户生产部署中,p99 延迟为 3.8 秒,且随过滤集合增大保持稳定;在未参与拟合的租户上,区间在 92% 的估计中覆盖生产流水线返回的计数,但总体估计偏高约 15%,原因是逐条记录近乎无偏的校准在单个查询条件层面仍有偏。

Original · arXiv cs.AI

SignalCount: Approximate Counts with Structured and Semantic Predicates in Seconds

Many applications store records with structured columns and a text document, and ask how many records in a filtered set meet a criterion that only a reader of the text can judge, such as "How many patients with type 2 diabetes, aged 40 to 70, stopped metformin because their blood sugar stayed high?" An interactive application needs this count in seconds, as the user types the criterion, to decide whether the matching set is worth materializing with a batch pipeline in which an LLM judges the records. Prior approximate query processing over such semantic predicates has an expensive model, the oracle, label a sample at query time, so every query waits for the oracle. We present SignalCount, a production system that answers COUNT queries with structured and semantic predicates and calls no oracle at query time, even for ad-hoc criteria. Its oracle is the production LLM judge, and the judge's logged verdicts calibrate, offline, the fast classifier that already runs in front of the judge. At query time, SignalCount counts the filtered set exactly and draws a uniform sample of at most 1,000 records in one columnar scan, scores the sample with the classifier, and multiplies the average calibrated probability by the exact count. Its 90% interval combines a sampling term with one-sided, rate-dependent margins for calibration error, fitted by split conformal prediction across tenants. In a multi-tenant production deployment, latency has a p99 of 3.8 s and stays flat as the filtered set grows beyond the sample. On tenants held out from fitting, the interval covers the count that the production pipeline returns in 92% of estimates, although estimates run about 15% high in aggregate, because a calibration nearly unbiased per record is still biased per criterion.

Industry Coordinates & Source Verification

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 SignalCount, conformal prediction, RAG.

Source attribution: curated from arXiv cs.AI (@Matteo Agius-D'Arrigo, Zachary Zelner, Harrison Ju, Rushab Munot).