Infusing Prompts with Syntax and Semantics

Anton Bulle Labate, Fabio Gagliardi Cozman
12/8/2024
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{labate2024infusing,
  title  = {Infusing Prompts with Syntax and Semantics},
  author = {Anton Bulle Labate and Fabio Gagliardi Cozman},
  year   = {2024},
  eprint = {2412.06107},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.06107v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.06107.svg)](https://codeofpaper.com/paper/2412.06107)

Discussion