arXiv · 2412.06107
Infusing Prompts with Syntax and Semantics
Abstract
Despite impressive success, language models often generate outputs with flawed linguistic structure. We analyze the effect of directly infusing various kinds of syntactic and semantic information into large language models. To demonstrate the value of our proposals, we focus on the translation of natural language queries to SQL, in particular dealing with languages with less resources than English, to better investigate how much help we can get from low cost syntactic and semantic information. We show that linguistic analysis can significantly boost language models, to the point that we have surpassed previous best systems.
Explore related subjects
Keep this discovery
Anton Bulle Labate, Fabio Gagliardi Cozman. 2024-12-08. Infusing Prompts with Syntax and Semantics. https://arxiv.org/abs/2412.06107
Cite the original work for its findings. Save a collection to share your selection of sources.