Cerebra: Aligning Implicit Knowledge in Interactive SQL Authoring

要旨

LLM-driven tools have significantly lowered barriers to writing SQL queries. However, user instructions are often underspecified, assuming the model understands implicit knowledge, such as dataset schemas, domain conventions, and task-specific requirements, that isn't explicitly provided. This results in frequently erroneous scripts that require users to repeatedly clarify their intent. Additionally, users struggle to validate generated scripts because they cannot verify whether the model correctly applied implicit knowledge. We present Cerebra, an interactive NL-to-SQL tool that aligns implicit knowledge between users and LLMs during SQL authoring. Cerebra automatically retrieves implicit knowledge from historical SQL scripts based on user instructions, presents this knowledge in an interactive tree view for code review, and supports iterative refinement to improve generated scripts. To evaluate the effectiveness and usability of Cerebra, we conducted a user study with 16 participants, demonstrating its improved support for customized SQL authoring. The source code of Cerebra is available at https://github.com/zjuidg/CHI26-Cerebra.

著者
Yunfan Zhou
Zhejiang University, Hangzhou, Zhejiang, China
Qiming Shi
Zhejiang University, Hangzhou, Zhejiang, China
Zhongsu Luo
Zhejiang University, Hangzhou, Zhejiang, China
Xiwen Cai
China Mobile, Shenzhen, China
Yanwei Huang
HKUST, Hong Kong S.A.R., China
Dae Hyun Kim
Yonsei University, Seoul, Korea, Republic of
Di Weng
Zhejiang University, Ningbo, Zhejiang, China
Yingcai Wu
Zhejiang University, Hangzhou, Zhejiang, China

会議: CHI 2026

ACM CHI Conference on Human Factors in Computing Systems

セッション: LLM-Assisted Writing and Authoring

P1 - Room 127
7 件の発表
2026-04-16 18:00:00
2026-04-16 19:30:00