Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio
Despite rapid advancement in the field of Constrained Natural Language Generation, little time has been spent on exploring the potential of language models which have had their vocabularies lexically, semantically, and/or phonetically constrained. We find that most language models generate compellin...
Gespeichert in:
Veröffentlicht in: | arXiv.org 2023-06 |
---|---|
Hauptverfasser: | , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | |
---|---|
container_issue | |
container_start_page | |
container_title | arXiv.org |
container_volume | |
creator | Roush, Allen Basu, Sanjay Moorthy, Akshay Dubovoy, Dmitry |
description | Despite rapid advancement in the field of Constrained Natural Language Generation, little time has been spent on exploring the potential of language models which have had their vocabularies lexically, semantically, and/or phonetically constrained. We find that most language models generate compelling text even under significant constraints. We present a simple and universally applicable technique for modifying the output of a language model by compositionally applying filter functions to the language models vocabulary before a unit of text is generated. This approach is plug-and-play and requires no modification to the model. To showcase the value of this technique, we present an easy to use AI writing assistant called Constrained Text Generation Studio (CTGS). CTGS allows users to generate or choose from text with any combination of a wide variety of constraints, such as banning a particular letter, forcing the generated words to have a certain number of syllables, and/or forcing the words to be partial anagrams of another word. We introduce a novel dataset of prose that omits the letter e. We show that our method results in strictly superior performance compared to fine-tuning alone on this dataset. We also present a Huggingface space web-app presenting this technique called Gadsby. The code is available to the public here: https://github.com/Hellisotherpeople/Constrained-Text-Generation-Studio |
format | Article |
fullrecord | <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_2831115034</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2831115034</sourcerecordid><originalsourceid>FETCH-proquest_journals_28311150343</originalsourceid><addsrcrecordid>eNqNyj0KwkAQQOFFEAzqHQashWQ3UbEL4h8oCAqWspoxbJAZ3ZmAx9fCA1i94nsdk1jnsvEst7ZnhiJNmqZ2MrVF4RKDexaFnae69TXCnit8CNw8wRXhwKgCyjyHkqDcwjkGDVRDKRJEPSl4qmDBJBp9IKzghG-FNRJGr4EJjtpWgQeme_cPweGvfTNaLU-LzfgZ-dWi6KXhNtKXLnbmsiwrUpe7_64PmNRFag</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>2831115034</pqid></control><display><type>article</type><title>Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio</title><source>Free E- Journals</source><creator>Roush, Allen ; Basu, Sanjay ; Moorthy, Akshay ; Dubovoy, Dmitry</creator><creatorcontrib>Roush, Allen ; Basu, Sanjay ; Moorthy, Akshay ; Dubovoy, Dmitry</creatorcontrib><description>Despite rapid advancement in the field of Constrained Natural Language Generation, little time has been spent on exploring the potential of language models which have had their vocabularies lexically, semantically, and/or phonetically constrained. We find that most language models generate compelling text even under significant constraints. We present a simple and universally applicable technique for modifying the output of a language model by compositionally applying filter functions to the language models vocabulary before a unit of text is generated. This approach is plug-and-play and requires no modification to the model. To showcase the value of this technique, we present an easy to use AI writing assistant called Constrained Text Generation Studio (CTGS). CTGS allows users to generate or choose from text with any combination of a wide variety of constraints, such as banning a particular letter, forcing the generated words to have a certain number of syllables, and/or forcing the words to be partial anagrams of another word. We introduce a novel dataset of prose that omits the letter e. We show that our method results in strictly superior performance compared to fine-tuning alone on this dataset. We also present a Huggingface space web-app presenting this technique called Gadsby. The code is available to the public here: https://github.com/Hellisotherpeople/Constrained-Text-Generation-Studio</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Constraints ; Datasets ; Language ; Speech recognition ; Words (language)</subject><ispartof>arXiv.org, 2023-06</ispartof><rights>2023. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>776,780</link.rule.ids></links><search><creatorcontrib>Roush, Allen</creatorcontrib><creatorcontrib>Basu, Sanjay</creatorcontrib><creatorcontrib>Moorthy, Akshay</creatorcontrib><creatorcontrib>Dubovoy, Dmitry</creatorcontrib><title>Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio</title><title>arXiv.org</title><description>Despite rapid advancement in the field of Constrained Natural Language Generation, little time has been spent on exploring the potential of language models which have had their vocabularies lexically, semantically, and/or phonetically constrained. We find that most language models generate compelling text even under significant constraints. We present a simple and universally applicable technique for modifying the output of a language model by compositionally applying filter functions to the language models vocabulary before a unit of text is generated. This approach is plug-and-play and requires no modification to the model. To showcase the value of this technique, we present an easy to use AI writing assistant called Constrained Text Generation Studio (CTGS). CTGS allows users to generate or choose from text with any combination of a wide variety of constraints, such as banning a particular letter, forcing the generated words to have a certain number of syllables, and/or forcing the words to be partial anagrams of another word. We introduce a novel dataset of prose that omits the letter e. We show that our method results in strictly superior performance compared to fine-tuning alone on this dataset. We also present a Huggingface space web-app presenting this technique called Gadsby. The code is available to the public here: https://github.com/Hellisotherpeople/Constrained-Text-Generation-Studio</description><subject>Constraints</subject><subject>Datasets</subject><subject>Language</subject><subject>Speech recognition</subject><subject>Words (language)</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2023</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNyj0KwkAQQOFFEAzqHQashWQ3UbEL4h8oCAqWspoxbJAZ3ZmAx9fCA1i94nsdk1jnsvEst7ZnhiJNmqZ2MrVF4RKDexaFnae69TXCnit8CNw8wRXhwKgCyjyHkqDcwjkGDVRDKRJEPSl4qmDBJBp9IKzghG-FNRJGr4EJjtpWgQeme_cPweGvfTNaLU-LzfgZ-dWi6KXhNtKXLnbmsiwrUpe7_64PmNRFag</recordid><startdate>20230628</startdate><enddate>20230628</enddate><creator>Roush, Allen</creator><creator>Basu, Sanjay</creator><creator>Moorthy, Akshay</creator><creator>Dubovoy, Dmitry</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20230628</creationdate><title>Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio</title><author>Roush, Allen ; Basu, Sanjay ; Moorthy, Akshay ; Dubovoy, Dmitry</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_28311150343</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2023</creationdate><topic>Constraints</topic><topic>Datasets</topic><topic>Language</topic><topic>Speech recognition</topic><topic>Words (language)</topic><toplevel>online_resources</toplevel><creatorcontrib>Roush, Allen</creatorcontrib><creatorcontrib>Basu, Sanjay</creatorcontrib><creatorcontrib>Moorthy, Akshay</creatorcontrib><creatorcontrib>Dubovoy, Dmitry</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science & Engineering Collection</collection><collection>ProQuest Central (Alumni Edition)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection (ProQuest)</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering Collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Roush, Allen</au><au>Basu, Sanjay</au><au>Moorthy, Akshay</au><au>Dubovoy, Dmitry</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio</atitle><jtitle>arXiv.org</jtitle><date>2023-06-28</date><risdate>2023</risdate><eissn>2331-8422</eissn><abstract>Despite rapid advancement in the field of Constrained Natural Language Generation, little time has been spent on exploring the potential of language models which have had their vocabularies lexically, semantically, and/or phonetically constrained. We find that most language models generate compelling text even under significant constraints. We present a simple and universally applicable technique for modifying the output of a language model by compositionally applying filter functions to the language models vocabulary before a unit of text is generated. This approach is plug-and-play and requires no modification to the model. To showcase the value of this technique, we present an easy to use AI writing assistant called Constrained Text Generation Studio (CTGS). CTGS allows users to generate or choose from text with any combination of a wide variety of constraints, such as banning a particular letter, forcing the generated words to have a certain number of syllables, and/or forcing the words to be partial anagrams of another word. We introduce a novel dataset of prose that omits the letter e. We show that our method results in strictly superior performance compared to fine-tuning alone on this dataset. We also present a Huggingface space web-app presenting this technique called Gadsby. The code is available to the public here: https://github.com/Hellisotherpeople/Constrained-Text-Generation-Studio</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | EISSN: 2331-8422 |
ispartof | arXiv.org, 2023-06 |
issn | 2331-8422 |
language | eng |
recordid | cdi_proquest_journals_2831115034 |
source | Free E- Journals |
subjects | Constraints Datasets Language Speech recognition Words (language) |
title | Most Language Models can be Poets too: An AI Writing Assistant and Constrained Text Generation Studio |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-24T09%3A39%3A14IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=Most%20Language%20Models%20can%20be%20Poets%20too:%20An%20AI%20Writing%20Assistant%20and%20Constrained%20Text%20Generation%20Studio&rft.jtitle=arXiv.org&rft.au=Roush,%20Allen&rft.date=2023-06-28&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E2831115034%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=2831115034&rft_id=info:pmid/&rfr_iscdi=true |