Pith. sign in

REVIEW 4 cited by

AI-Assisted SQL Authoring at Industry Scale

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2407.13280 v2 pith:WESN3KKR submitted 2024-07-18 cs.SE cs.DB

classification cs.SEcs.DB
keywords modelssqlcomposesqlcomposefimdatadevelopinternalllamaoften
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

SqlCompose brings generative AI into the data analytics domain. SQL is declarative, has formal table schemas, and is often written in a non-linear manner. We address each of these challenges and develop a set of models that shows the importance of each problem. We first develop an internal SQL benchmark to perform offline tests at Meta. We evaluate how well the Public Llama model performs. We attain a BLEU score of 53% and 24% for single- and multi-line predictions, respectively. This performance is consistent with prior works on imperative languages. We then fine-tune Llama on our internal data and database schemas. SqlComposeSA substantially outperforms Llama by 16 percentage points on BLEU score. SQL is often written with multiple sub queries and in a non-sequential manner. We develop SqlComposeFIM which is aware of the context before and after the line(s) that need to be completed. This fill-in-the-middle model outperform SqlComposeFIM by 35 percentage points. We also measure how often the models get the correct table names, and SqlComposeFIM is able to do this 75% of the time. Aside from our scientific research, we also roll out SqlComposeFIM at Meta. SqlCompose is used on a weekly basis by over 10k users including data scientists and software engineers, less than 1% of users have disabled SqlCompose. We use the feedback from users to improve SqlCompose. Interesting positive themes include completing tedious or repetitive SQL clauses, suggesting boilerplate coding, and help in eliminate the need to remember difficult SQL syntax. The most significant negative themes was table and column name hallucinations, which has been reduced with the release of SqlComposeFIM. The SqlCompose models consistently outperform public and internal LLMs, despite being smaller (7 bn and 13 bn), which provides early indications that smaller specialist models can outperform larger general purpose models.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 4 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. AI-Assisted Fixes to Code Review Comments at Scale

    cs.SE 2025-07 conditional novelty 6.0 of 10

    Fine-tuned Llama models generate exact-match patches for 68% of internal code review comments, and a safety trial shows AI suggestions slow reviewers unless hidden from them.

  2. Improving FIM Code Completions via Context & Curriculum Based Learning

    cs.IR 2024-12 conditional novelty 6.0 of 10

    Fine-tuning FIM code models on curriculum examples with retrieved context improves completion quality and live acceptance, with the largest gains for small models.

  3. Chatting with Logs: An exploratory study on Finetuning LLMs for LogQL

    cs.DB 2024-12 conditional novelty 6.0 of 10

    A new 424-pair dataset, NL2LogQL, plus LoRA fine-tuning substantially improves LLM-generated LogQL queries for OpenSSH, OpenStack, and HDFS logs.

  4. A Comprehensive Survey of Deep Research: Systems, Methodologies, and Applications

    cs.AI 2025-06 conditional novelty 4.0 of 10

    A survey of 80+ Deep Research systems that proposes a four-layer taxonomy (foundation models, tool use, planning, synthesis) and compares commercial and open-source implementations.

Pith tools