IterGen: Iterative Structured LLM Generation. Ugare, S., Gumaste, R., Suresh, T., Singh, G., & Misailovic, S. October, 2024. arXiv:2410.07295
Paper doi abstract bibtex Large Language Models (LLMs) are widely used for tasks such as natural language and code generation. Still, their outputs often suffer from issues like privacy violations, and semantically inaccurate code generation. Current libraries for LLM generation rely on left-to-right decoding without systematic support for backtracking, limiting the ability to correct or refine outputs mid-generation. To address this issue, we introduce IterGen, an intuitive framework for iterative, grammar-guided LLM generation that enables users to move both forward and backward within the generated output based on grammar symbols. By leveraging a symbol-to-position mapping, IterGen ensures efficient and structured generation while allowing for corrections during the process. We demonstrate IterGen's effectiveness in two important applications: reducing privacy leakage in LLM outputs and improving the accuracy of LLM-generated SQL queries. Our code is available at https://github.com/uiuc-arc/itergen
@misc{ugare2024,
title = {{IterGen}: {Iterative} {Structured} {LLM} {Generation}},
shorttitle = {{IterGen}},
url = {http://arxiv.org/abs/2410.07295},
doi = {10.48550/arXiv.2410.07295},
abstract = {Large Language Models (LLMs) are widely used for tasks such as natural language and code generation. Still, their outputs often suffer from issues like privacy violations, and semantically inaccurate code generation. Current libraries for LLM generation rely on left-to-right decoding without systematic support for backtracking, limiting the ability to correct or refine outputs mid-generation. To address this issue, we introduce IterGen, an intuitive framework for iterative, grammar-guided LLM generation that enables users to move both forward and backward within the generated output based on grammar symbols. By leveraging a symbol-to-position mapping, IterGen ensures efficient and structured generation while allowing for corrections during the process. We demonstrate IterGen's effectiveness in two important applications: reducing privacy leakage in LLM outputs and improving the accuracy of LLM-generated SQL queries. Our code is available at https://github.com/uiuc-arc/itergen},
urldate = {2024-11-24},
publisher = {arXiv},
author = {Ugare, Shubham and Gumaste, Rohan and Suresh, Tarun and Singh, Gagandeep and Misailovic, Sasa},
month = oct,
year = {2024},
note = {arXiv:2410.07295},
keywords = {Computer Science - Machine Learning, Computer Science - Software Engineering, Computer Science - Programming Languages},
}
Downloads: 0
{"_id":"RcnLA9TpRhkDL94xE","bibbaseid":"ugare-gumaste-suresh-singh-misailovic-itergeniterativestructuredllmgeneration-2024","author_short":["Ugare, S.","Gumaste, R.","Suresh, T.","Singh, G.","Misailovic, S."],"bibdata":{"bibtype":"misc","type":"misc","title":"IterGen: Iterative Structured LLM Generation","shorttitle":"IterGen","url":"http://arxiv.org/abs/2410.07295","doi":"10.48550/arXiv.2410.07295","abstract":"Large Language Models (LLMs) are widely used for tasks such as natural language and code generation. Still, their outputs often suffer from issues like privacy violations, and semantically inaccurate code generation. Current libraries for LLM generation rely on left-to-right decoding without systematic support for backtracking, limiting the ability to correct or refine outputs mid-generation. To address this issue, we introduce IterGen, an intuitive framework for iterative, grammar-guided LLM generation that enables users to move both forward and backward within the generated output based on grammar symbols. By leveraging a symbol-to-position mapping, IterGen ensures efficient and structured generation while allowing for corrections during the process. We demonstrate IterGen's effectiveness in two important applications: reducing privacy leakage in LLM outputs and improving the accuracy of LLM-generated SQL queries. Our code is available at https://github.com/uiuc-arc/itergen","urldate":"2024-11-24","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Ugare"],"firstnames":["Shubham"],"suffixes":[]},{"propositions":[],"lastnames":["Gumaste"],"firstnames":["Rohan"],"suffixes":[]},{"propositions":[],"lastnames":["Suresh"],"firstnames":["Tarun"],"suffixes":[]},{"propositions":[],"lastnames":["Singh"],"firstnames":["Gagandeep"],"suffixes":[]},{"propositions":[],"lastnames":["Misailovic"],"firstnames":["Sasa"],"suffixes":[]}],"month":"October","year":"2024","note":"arXiv:2410.07295","keywords":"Computer Science - Machine Learning, Computer Science - Software Engineering, Computer Science - Programming Languages","bibtex":"@misc{ugare2024,\n\ttitle = {{IterGen}: {Iterative} {Structured} {LLM} {Generation}},\n\tshorttitle = {{IterGen}},\n\turl = {http://arxiv.org/abs/2410.07295},\n\tdoi = {10.48550/arXiv.2410.07295},\n\tabstract = {Large Language Models (LLMs) are widely used for tasks such as natural language and code generation. Still, their outputs often suffer from issues like privacy violations, and semantically inaccurate code generation. Current libraries for LLM generation rely on left-to-right decoding without systematic support for backtracking, limiting the ability to correct or refine outputs mid-generation. To address this issue, we introduce IterGen, an intuitive framework for iterative, grammar-guided LLM generation that enables users to move both forward and backward within the generated output based on grammar symbols. By leveraging a symbol-to-position mapping, IterGen ensures efficient and structured generation while allowing for corrections during the process. We demonstrate IterGen's effectiveness in two important applications: reducing privacy leakage in LLM outputs and improving the accuracy of LLM-generated SQL queries. Our code is available at https://github.com/uiuc-arc/itergen},\n\turldate = {2024-11-24},\n\tpublisher = {arXiv},\n\tauthor = {Ugare, Shubham and Gumaste, Rohan and Suresh, Tarun and Singh, Gagandeep and Misailovic, Sasa},\n\tmonth = oct,\n\tyear = {2024},\n\tnote = {arXiv:2410.07295},\n\tkeywords = {Computer Science - Machine Learning, Computer Science - Software Engineering, Computer Science - Programming Languages},\n}\n\n","author_short":["Ugare, S.","Gumaste, R.","Suresh, T.","Singh, G.","Misailovic, S."],"bibbaseid":"ugare-gumaste-suresh-singh-misailovic-itergeniterativestructuredllmgeneration-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2410.07295"},"keyword":["Computer Science - Machine Learning","Computer Science - Software Engineering","Computer Science - Programming Languages"],"metadata":{"authorlinks":{}},"downloads":0},"bibtype":"misc","biburl":"https://bibbase.org/f/8yBxW5neHauDryu9w/LCNeuro Site.bib","dataSources":["ZHHpjMFTPYP8NqJif"],"keywords":["computer science - machine learning","computer science - software engineering","computer science - programming languages"],"search_terms":["itergen","iterative","structured","llm","generation","ugare","gumaste","suresh","singh","misailovic"],"title":"IterGen: Iterative Structured LLM Generation","year":2024}