SqlToViz:一种基于契约固定的可移植流水线,用于从SQL查询和结果集推荐图表
SqlToViz: A Contract-Pinned, Portable Pipeline for Recommending Chartsfrom SQL Queries and Result Sets
AI总结:
本文提出SqlToViz流水线,可从SQL查询和结果集推荐图表,经实验验证其在人工标注的nvBench数据集上准确率较低,仅宏F1值高于基线,模型仍为实验候选。
摘要:
图表推荐系统通常从表格、图表语料库或自然语言请求出发,但许多应用仅拥有SQL查询及其结果集。本文介绍SqlToViz,这一流水线可从查询文本和执行结果中推荐10种基础图表类别(经确定性扩展为20种可视化形式,外加表格备选方案)。该流水线围绕冻结的版本化特征契约构建,包含16个词法SQL特征、16个表级数据特征、28个逐列特征,搭配小型ONNX分类器、硬语义约束(失败时回退至表格),以及跨运行时一致性工具,确保Python、TypeScript和.NET实现计算出相同特征。我们报告已测量的内容:经泄漏审计的合成基准;对100个真实查询的保留评估,以LLM标注者(3个模型及1个未知模型的AI填充工作簿,彼此不独立)的一致性为参照;在nvBench上的外部评估,其标签为人工编写;角色监督的可行性研究;以及一致性、延迟和数值保真度测量。该100项评估的参照为LLM一致性,未进行人工验证,因此推荐结果无人工验证。在外部人工编写的nvBench标签上,实验模型未经验证,准确率表现不佳(已部署的带约束模型准确率为0.249,而始终预测柱状图的准确率为0.763),仅宏F1值高于基线。我们不主张其新颖性、优于现有系统或符合人类偏好,发布的模型仍为实验候选。
英文摘要:
Chart recommenders usually start from a table, a corpus of charts, or a natural-language request. Many applications, however, hold only a SQL query and its result set. We describe SqlToViz, a pipeline that recommends one of ten base chart classes (expanded deterministically to twenty visualizations plus a table fallback) from the query text and the executed result. The pipeline is built around a frozen, versioned feature contract (16 lexical SQL features, 16 table-level data features, 28 per-column features), a small ONNX classifier, hard semantic con- straints that fail closed to a table, and cross-runtime parity fixtures so that Python, TypeScript and .NET implementations compute identical features. We report what has been measured: a leakage-audited synthetic benchmark; a held-out evaluation of 100 real queries against the agreement of LLM annotators (three models and one AI-filled workbook of unknown model, not independent of one another); an external evaluation on nvBench, whose labels are human- authored; a feasibility study of role supervision; and parity, latency and numerical-faithfulness measurements. There is no human validation of the recommendations: the reference of the 100-item evaluation is LLM agreement, which is not human judgement. On the external human-authored nvBench labels the experimental models are not validated and perform poorly on accuracy (0.249 for the shipped constrained model against 0.763 for always pre- dicting bar); only macro-F1 is above the baseline. We make no claim of novelty, of superiority over prior systems, or of agreement with human preferences, and the released models remain experimental candidates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。