Enregistré dans:
Détails bibliographiques
Auteurs principaux: Shankar, Shreya, Li, Haotian, Asawa, Parth, Hulsebos, Madelon, Lin, Yiming, Zamfirescu-Pereira, J. D., Chase, Harrison, Fu-Hinthorn, Will, Parameswaran, Aditya G., Wu, Eugene
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:https://arxiv.org/abs/2401.03038
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916185387302912
author Shankar, Shreya
Li, Haotian
Asawa, Parth
Hulsebos, Madelon
Lin, Yiming
Zamfirescu-Pereira, J. D.
Chase, Harrison
Fu-Hinthorn, Will
Parameswaran, Aditya G.
Wu, Eugene
author_facet Shankar, Shreya
Li, Haotian
Asawa, Parth
Hulsebos, Madelon
Lin, Yiming
Zamfirescu-Pereira, J. D.
Chase, Harrison
Fu-Hinthorn, Will
Parameswaran, Aditya G.
Wu, Eugene
contents Large language models (LLMs) are being increasingly deployed as part of pipelines that repeatedly process or generate data of some sort. However, a common barrier to deployment are the frequent and often unpredictable errors that plague LLMs. Acknowledging the inevitability of these errors, we propose {\em data quality assertions} to identify when LLMs may be making mistakes. We present SPADE, a method for automatically synthesizing data quality assertions that identify bad LLM outputs. We make the observation that developers often identify data quality issues during prototyping prior to deployment, and attempt to address them by adding instructions to the LLM prompt over time. SPADE therefore analyzes histories of prompt versions over time to create candidate assertion functions and then selects a minimal set that fulfills both coverage and accuracy requirements. In testing across nine different real-world LLM pipelines, SPADE efficiently reduces the number of assertions by 14\% and decreases false failures by 21\% when compared to simpler baselines. SPADE has been deployed as an offering within LangSmith, LangChain's LLM pipeline hub, and has been used to generate data quality assertions for over 2000 pipelines across a spectrum of industries.
format Preprint
id arxiv_https___arxiv_org_abs_2401_03038
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SPADE: Synthesizing Data Quality Assertions for Large Language Model Pipelines
Shankar, Shreya
Li, Haotian
Asawa, Parth
Hulsebos, Madelon
Lin, Yiming
Zamfirescu-Pereira, J. D.
Chase, Harrison
Fu-Hinthorn, Will
Parameswaran, Aditya G.
Wu, Eugene
Databases
Software Engineering
Large language models (LLMs) are being increasingly deployed as part of pipelines that repeatedly process or generate data of some sort. However, a common barrier to deployment are the frequent and often unpredictable errors that plague LLMs. Acknowledging the inevitability of these errors, we propose {\em data quality assertions} to identify when LLMs may be making mistakes. We present SPADE, a method for automatically synthesizing data quality assertions that identify bad LLM outputs. We make the observation that developers often identify data quality issues during prototyping prior to deployment, and attempt to address them by adding instructions to the LLM prompt over time. SPADE therefore analyzes histories of prompt versions over time to create candidate assertion functions and then selects a minimal set that fulfills both coverage and accuracy requirements. In testing across nine different real-world LLM pipelines, SPADE efficiently reduces the number of assertions by 14\% and decreases false failures by 21\% when compared to simpler baselines. SPADE has been deployed as an offering within LangSmith, LangChain's LLM pipeline hub, and has been used to generate data quality assertions for over 2000 pipelines across a spectrum of industries.
title SPADE: Synthesizing Data Quality Assertions for Large Language Model Pipelines
topic Databases
Software Engineering
url https://arxiv.org/abs/2401.03038