doi
stringlengths
10
10
chunk-id
stringlengths
1
4
chunk
stringlengths
1
1.66k
id
stringlengths
10
10
title
stringlengths
19
148
summary
stringlengths
345
1.92k
source
stringlengths
31
31
authors
list
categories
list
comment
stringlengths
4
284
journal_ref
stringclasses
14 values
primary_category
stringclasses
16 values
published
stringlengths
8
8
updated
stringlengths
8
8
references
list
1912.02164
92
The assessment is property tax assessed property value tax rate, which is property assessed property value tax paid. . . 22 Published as a conference paper at ICLR 2020 Table S14: Examples generated from a designed odd combination of topic and prefix pairs. The topic here is [Religion] . We show that PPLM is still able to generate fluent, sensible and interesting samples, respecting both the topic and the prefix. [Religion]The chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chicken’s name comes from its ability to feed on the human body; the word "chickens" is Hebrew for "the Lord God Almighty". \n \n It is also known as the God of the Universe, the Creator of the world, the God of the Earth, and so on and on. \n \n Chickens are considered God’s most loyal servants; they are God’s chosen people and are to be worshiped. They are given God’s Spirit as food, water. . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
93
God’s most loyal servants; they are God’s chosen people and are to be worshiped. They are given God’s Spirit as food, water. . . The horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horse-faced man with the beard and the black mask, the god of light and the god of darkness,\n \n The god of death. \n \n (Psalm 33:6) \n \n In the Hebrew Scriptures, the god God is the same God who is God. He is God who created the universe, God who is God who created the heavens and God who created man who is God who was created by God in the image of God. As God, the God o$ Abraham, Isaac and. . . The pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizza has become a symbol of love, and love of God. \n \n We pray for our children and Jesus. \n \n The pizza is the symbol of the Holy Family Jesus. \n \n The Lord Jesus Christ, Jesus Christ crucified, and Jesus Christ risen.<|endoftext|>A New Testament Commentary on
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
94
Jesus Christ crucified, and Jesus Christ risen.<|endoftext|>A New Testament Commentary on the Gospels (Revised Version) \n \n (Revised Version) \n \n 1 Corinthians 15:28-31 \n \n 31. "Do this: Jesus is Lord Jesus, Jesus Christ; do this. . . The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, an ancient food, is considered a sacred plant by many Hindus. However, some Hindus believe that the potatoes are the seed of a demon. \n \n "In India we have the Hindu god Vishnu, Vish, the God. He has come to the world," said a woman in Mumbai. \n \n \n "He came to the world because of God. God came to the world to save people from the curse of the devil God. God came to save us from the curse of the devil,". . . The lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lake in the Old Testament is the Euphorbia lake, from the Greek for "water." The Hebrew
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
95
words for the lake are huach, "to flow," and tzitzah, "to run." \n \n "I’m going to the lake to wash away my sins," a Bible verse says. It’s not clear where the word "lake" is from. \n \n The Old Testament describes two waters. The Euphorbia River, from which the Bible says Moses was washed,. . . Table S15: Examples generated from a designed odd combination of topic and prefix pairs. The topic here is [Space] . We show that PPLM is still able to generate fluent, sensible and interesting samples, respecting both the topic and the prefix. [Space]The chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chicken-and-egg problem, which has dogged the world since it was first described in 1873. \n \n A new study has uncovered a possible way to prevent the growth of starfish – the stars that inhabit the inner solar system. It may even help to keep them alive. \n \n The
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
96
the stars that inhabit the inner solar system. It may even help to keep them alive. \n \n The starfish-star star system, or S-Star, is home to a star system about the size of Jupiter, and orbits the gas giant star star called HD 9 star, known as HD 9 C. . . The horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horseThe horse-mounted vehicle is an iconic vehicle from the Star Wars universe. Originally, it was a small transport that was used by the Galactic Empire on its star systems, but later it was used on many worlds throughout the galaxy. The vehicle was originally intended for space combat, but its use on the star systems became more extensive in the early days and was eventually expanded to star battles. The pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizza The pizza restaurant, which will serve up the popular dish on Sunday, is expected to offer a wide variety of seating space with space to accommodate two additional space spaces, including space for an outdoor space space, according to space listings on the space site space.space.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
97
to offer a wide variety of seating space with space to accommodate two additional space spaces, including space for an outdoor space space, according to space listings on the space site space.space. The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato beetle was first discovered by British biologist Sir Richard Bedding starling in a remote part of Mars \n \n Mars has seen two major life-giving planets. \n \n Two of these giant stars, stars known as starlets because they are the brightest of the star system in the constellation of the starlets, have been found to have planets orbiting the star. \n \n They are the starlets, known as binary star systems, and are stars that starlight can shine from and star formation. . . The lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lakeThe lake-like island nation has been ruled as a hostile alien planet in space and Earth space for decades and now, thanks to NASA’s Curiosity Mars rover, we know for sure the planet’s surface is covered in an extremely thick and reflective mantle of rock. \n \n According to
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
98
surface is covered in an extremely thick and reflective mantle of rock. \n \n According to scientists at NASA’s Jet Propulsion Laboratory, the Martian surface is covered in layers of meteoroid and meteoraceous minerals. This is not just the planet’s moon, planet Earth has a moon, planet. . . 23 Published as a conference paper at ICLR 2020 Table S16: Examples generated from a designed odd combination of topic and prefix pairs. The sentiment here is [Positive] and[Negative] . We show that PPLM is still able to generate fluent, sensible and interesting samples, respecting both the topic and the prefix. [Positive]My dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog diedMy dog died at the age of 92 years this year. He was a legend in our home state of Virginia. I have a tremendous heart, my soul, my spirit, my love. He is in heaven and I love him very much. We have a great bond. He is gone and I am so thankful for him! \n \n He had been in
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
99
much. We have a great bond. He is gone and I am so thankful for him! \n \n He had been in the hospital for so many months. My husband of over 60 years, Dr. Paul, was in charge of his care. He took his place as the. . . The food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awfulThe food is awful, but there is also the music, the story and the magic! \n \n The "Avenged Sevenfold" is a masterfully performed rock musical that will have a strong presence all over the world. \n \n The music is truly breathtaking, the performance is incredible, and the magic and story are captivating. \n \n The "Avenged Sevenfold" is a masterpiece! This is the greatest rock musical of all time and I cannot recommend it enough! \n \n The musical is beautiful. . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
100
rock musical of all time and I cannot recommend it enough! \n \n The musical is beautiful. . . [Negative] The food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazingThe food is amazing. \n \n It’s also not. \n \n It is not the kind of stuff that you would just want to spend your money on for. \n \n I don’t know why, but when I got my second box, it felt like a bad rip off. \n \n It was the most unbelievably bad packaging, completely disgusting and disgusting. \n \n This is not a joke, people. \n \n You get this shit. \n \n This is food for a million people. \n \n And you have. . . S10 F INE-GRAINED CONTROL WITH PPLM-B OW Table S17 shows the subtle effect when you turn the step size up, while keeping everything else (hyperparameters, text prefix) the same. S11 H YPERPARAMETERS
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
101
(hyperparameters, text prefix) the same. S11 H YPERPARAMETERS We list, in Table S18, the full set of hyperparameters used in each task in the experiments section, corresponding to results in Table 4 and Table 6, as well as in Section 4.4. In addition, we explain in details three hyperparameters and their effect, below. S11.1 E ARLY STOPPING OF LATENT UPDATES Degeneration (the occurrence of repetitive words) is a known issue with language generation (Holtzman et al., 2019), and we found it to be a case in PPLM-BoW when the update step size is too large. The model tends to degenerate towards repeating certain keywords targeted in the optimization (e.g. words in the BoW). In this case, we can either reduce , or use the trick of early stopping latent updates. Examples shown in Table S19. With the exact same setting, but just stopping latent updates after 20 time steps, the samples show much less degeneration. S11.2 F INITE HORIZON UPDATE As opposed to updating the entire vector Ht, which consists of key-value pairs corresponding to every token in the prefix, we consider modifying the key-value pairs corresponding to the most
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
102
every token in the prefix, we consider modifying the key-value pairs corresponding to the most recentwtokens. At each time-step t, we only modify Ht[tw:t]. This means that we modify Hiat mostwtimes, and requires lesser computation that updating the whole past. We find that w= 5produces more fluent passages for control with the bag of words. For control with the neural attribute model, we update the entire latent history. S11.3 A DAPTIVE GRADIENT NORMALIZATION For the bag-of-words based attribute model, what we wish to enforce is that a word from the bag appears at least once in the generated passage and not at every time-step. To account for this, instead of normalizing directly by the gradient norm as in Equation 3, we normalize by the maximum gradient norm over time. This implies that we make smaller updates when it is less likely for 3We choose top 3 samples from a single batch of 10 here 24 Published as a conference paper at ICLR 2020 Table S17: Comparison of different sentences generated by (top row) unconditioned GPT-2 and (other rows) our approach using GPT-2 with the same bags-of-words with different strength factors,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
103
(other rows) our approach using GPT-2 with the same bags-of-words with different strength factors, while using the same prefix: " The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato". [–]The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, or potato chip, is one of the best-selling snacks in the world! \n \n It comes in a variety of colors, is gluten-free (except for gluten-free chips), low in fat and saturated fat, and can be made in just 30 minutes, using only 6 simple ingredients. It’s also easy to make, and can be stored in its own tin. \n \n The potato chip, however, may not be for everyone. If you are trying to lose weight, it. . . [Science; 0.0001] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, a tuber of the carrot family (Cotus russulus), is an edible plant that is native
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
104
to Central and South America, Asia, Europe and the Mediterranean. The potato is an excellent source of iron, folate and vitamin B6, and is a good source of vitamins E, K and folate, and can be a very healthy food. In addition, a potato has a rich, rich nutritional profile. It is high in protein, potassium, magnesium, zinc,. . . [Science; 0.001] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, a tuber of the carrot family (Cotus russulus), is an edible plant that is widely cultivated as a food and a medicinal plant. Potato is widely used to make various products. It is one of the most popular vegetables for use as a food, as a food additive, as an ingredient in cooking methods, and for its use in the manufacture of pharmaceuticals. The most commonly consumed portion is a large potato. In China, there are about 30 varieties of potato. It is. . . [Science; 0.005] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato is an ancient member of the green family which, as its name suggests, is
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
105
green and edible. It is native to the Middle East and parts of South Asia. It is an important crop in many parts of the world. The potato, a member of the potato family, has been domesticated for thousands of years. It can be eaten raw and cooked in its skins; it is also used as a starch and is a great source of energy and fiber in many diets and in many countries. . . [Science; 0.01] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato was once thought to have no health problems and has been promoted as a nutritious food source since the mid-1800s, but recent reports indicate that it has many harmful health issues. In fact, researchers from Johns Hopkins University found that the potato is more toxic when grown on genetically engineered wheat and corn. \n \n According to scientists, genetically modified potatoes are far worse at damaging the human body than conventional potatoes and are far worse than those grown on the traditional crops. \n \n The study also revealed. . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
106
far worse at damaging the human body than conventional potatoes and are far worse than those grown on the traditional crops. \n \n The study also revealed. . . [Science; 0.02] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato plant, a member of the onion family. \n \n When scientists in Japan and the United States published a study in Nature Communications, they described how one gene was responsible for creating potatoes’ distinctive taste buds. \n \n The research is a step in the development of a drug that would block the activity of this gene, but the researchers say that their study does not prove that a chemical in the plant’s DNA causes the distinctive taste of potatoes, but rather that it could be prevented by changing the plant’s. . . [Science; 0.03] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, a staple of most diets, seems to be the most popular vegetable among researchers. The research has been published and peer-reviewed. \n \n The potato has a unique ability.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
107
researchers. The research has been published and peer-reviewed. \n \n The potato has a unique ability. The plant’s cells can convert carbon dioxide, water, and nutrients into chemical energy. \n \n The research team, led by researchers at the Max Planck Institute for Biophysics and Biotechnology in Germany, is investigating how the potato, a staple of most diets, might change the chemistry and biology of our bodies.. . . [Science; 0.04] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato has been around for thousands of years, but only in recent decades have scientists discovered ways it can be transformed into other foodstuffs. Researchers have long known that potato has a structure called an electron spin resonance which means its molecular structure can be modified by the presence of other particles in it such as atoms in the chemical bonds between two electrons. These changes can be achieved either by changing the number of electrons present in the chemical bonds between electrons or by changing the arrangement of electron and atomic bonds. In both. . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
108
These changes can be achieved either by changing the number of electrons present in the chemical bonds between electrons or by changing the arrangement of electron and atomic bonds. In both. . . [Science; 0.05] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato chip is a delicious treat that can be enjoyed in the laboratory experiment, but is it safe for humans? \n \n Scientists experiment and experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment. . . . . . [Science; 0.1] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, which scientists at the lab experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment . . . a word from the bag of words to appear. Formally, the normalization constant at time-step tis: max i=0:::tkrH(i)L(oi+1)k. 25 Published as a conference paper at ICLR 2020
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
109
max i=0:::tkrH(i)L(oi+1)k. 25 Published as a conference paper at ICLR 2020 Table S18: The full set of hyperparameters used in each task in the experiments section. Note that for PPLM-BoW, we select three of the highest scoring samples from a single batch of r= 10 . For PPLM-Discrim, we get 1 sample per batch, across 3 batches of r= 10 . Method Type Attribute Hyperparameters PPLM-BoW Politics, Legal, Computers, Space, Science, Militarym= 3;kl= 0:01; = 0:01; = 1:5; gm= 0:9,r= 10 ,= 0:85 PPLM-BoW Religion m= 3;kl= 0:01; = 0:01; = 1:5; gm= 0:8,r= 10 ,= 0:85 PPLM-Discrim P OSITIVE , NEGATIVE m= 10;kl= 0:01; = 0:03; = 1:0; gm= 0:95,r= 10 ,= 0:9
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
110
1:0; gm= 0:95,r= 10 ,= 0:9 PPLM-Discrim Detoxicification m= 10;kl= 0:01; = 0:02; = 1:0; gm= 0:9,r= 1,= 0 Table S19: The effect of using early stopping of latent updates to prevent sample degeneration. Before (Latent updates at every generation step) After (Latent updates for only the first 20 generation steps) [Science; 0.03] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato chip experiment: Why we’re wasting food and what’s the science of science? A potato chip experiment, or experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experimental experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment experiment. . .[Science; 0.03] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato chip experiment: Why
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
111
we’re wasting food and what’s the science of science? A potato chip experiment, or "chip experiment", is an experiment that has been used to measure how easily a certain amount of food or nutrients is converted into a drug. In most of us, the first time we eat the first food in any experiment, our brain is stimulated into a state that causes us to eat more. However, in the experiment, a small amount of nutrients is converted from the food and. . . [Science; 0.03] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, a staple of modern nutrition and nutrition science, is a common ingredient used in studies to measure and measure science research results, and is the basis of science experiments. Science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science science . . .[Science; 0.03] The potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potatoThe potato, a staple of modern
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
112
nutrition and nutrition science, is a common ingredient used in studies to measure and measure again. And, of course, scientists have used potato for decades. The research is being published in Science, and the results were pretty impressive. The study, published in Science Advances, shows how the study of science, in a laboratory setting, can help us to improve our science literacy, and help us better understand the science around us. This means better science communication,. . . 26 Published as a conference paper at ICLR 2020 Table S20: Skeleton story generation with different attribute models. Each story is generated within a fixed skeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeleton, and then either uncontrolled (top row), or controlled with an attribute model. Keywords that signify the controlled effect are highlighted.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
113
[–]Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time I had a job at a small local bank that didn’t really care about the customer service. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, I was the only employee who dealt with the customers and that is where I made most of my money. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, I was on a flight from Atlanta to New York City and a customer service rep walked in
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
114
with a bag of $100 bills and a bunch of cash in his hand. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, I was put in charge of collecting the money. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, I was told to collect all cash in the cash register. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, I have had
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
115
to collect money every day. [Fantasy] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time a young girl was found in a dark alleyway. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, the child would wake up in a cold sweat, and she was found crying. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, a man walked up to the girl and told her, "I can
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
116
cure you with my magic. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, I have given you the name of ’Lily’!" She was taken in by a magician who had been working with the evil spirit of a demon and was able to turn her into a magical girl.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
117
magician who had been working with the evil spirit of a demon and was able to turn her into a magical girl. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, the man died. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, the child had been living in a dream world.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
118
[Negative] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, a young woman with a very strange, very dangerous disease was found in a hospital. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, the patient would come to her room, sit down on the bed, lay down, and then suddenly scream. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, the doctor discovered that the patient was not dying of cancer, but of tuberculosis.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
119
Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that discovery, his doctor had the patient taken to the hospital’s hospital and treated there. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, the doctor died. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, the patient has been in terrible pain, constantly screaming for help.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
120
screaming for help. S12 A DDITIONAL DETAILS AND SAMPLES OF CONTROLLED STORY TELLING Table S20 and Table S21 show examples of the controlled story telling with skeleton. Table S22 shows samples of combinging multiple (three to four) attribut models, across different types (PPLMBoW and PPLM-Discrim). S13 F URTHER DETAILS ON LANGUAGE DETOXIFICATION We ask a group of four volunteers to assign binary toxicity labels to texts generated from both the original GPT-2 and toxicity-controlled GPT-2 and to texts prompted with natural words as well as adversarial triggers. Natural prompts include “Blacks”, “Asians”, “Jews” as suggested in Wallace et al. (2019). 9 Adversarial triggers are generated using the released codebase from the same work. The percentages of toxicity, before (with uncontrolled GPT-2) and after (with toxicity-controlled GPT-2), are reported in Table S23. S14 M ORE EXAMPLES We include more PPLM controlled generation examples in Table S24 – Table S27. S15 P REFIXES USED IN PPLM EVALUATION
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
121
We include more PPLM controlled generation examples in Table S24 – Table S27. S15 P REFIXES USED IN PPLM EVALUATION We consider 20 prefixes as sentence starters for evaluating PPLM-BoW generation, chosen randomly fromwww2.eit.ac.nz/library/ls_guides_sentencestarters.html . For PPLMDiscrim, we use 15 prefixes. The entire set is below. PPLM-Bow “In summary”, “This essay discusses”, “Views on”, “The connection”, “Foundational to this is”, “To review,”, “In brief,”, “An illustration of”, “Furthermore,”, “The central theme”, “To conclude,”, “The key aspect”, “Prior to this”, “Emphasised are”, “To summarise”, “The relationship”, “More importantly,”, “It has been shown”, “The issue focused on”, “In this essay” .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
122
been shown”, “The issue focused on”, “In this essay” . PPLM-Discrim “Once upon a time”, “The book”, “The chicken”, “The city”, “The country”, “The horse”, “The lake”, “The last time”, 27 Published as a conference paper at ICLR 2020 Table S21: More examples of skeleton story generation with different attribute models. Each story is generated within a fixed skeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeletonskeleton, and then controlled with one, or multiple, attribute models. Keywords that signify the controlled effect are highlighted. [–]Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time I had a job at a small local bank that didn’t really care about the customer service.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
123
Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, I was the only employee who dealt with the customers and that is where I made most of my money. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, I was on a flight from Atlanta to New York City and a customer service rep walked in with a bag of $100 bills and a bunch of cash in his hand. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, I was put in charge of collecting
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
124
the money. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, I was told to collect all cash in the cash register. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, I have had to collect money every day.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
125
to collect money every day. [Religion] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, there was a place that was called the Church of the Holy Spirit. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, they were the only church that practiced the Christian faith. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, this new faith was persecuted by
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
126
Satan. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, they were cast out from their sanctuary. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, they were able to rebuild their sanctuary. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, they have been the sole church dedicated to the faith of Jesus.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
127
[Space] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, there was a little girl named Charlotte. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, she was a little angel that saved the world. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, she was found in danger on Mars. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, she is the only survivor
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
128
and must go to Earth in order to save her world from a meteorite strike. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, she is found and kidnapped by aliens. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, she is a little angel with wings.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
129
[Politics] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, it looked like there were signs of progress in the fight to stop the growing number of illegal guns in our communities. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day, more Americans were reporting that their state had passed some kind of gun law, and that there was some sort of legislative effort underway. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, it
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
130
looked like something was seriously off in America. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, it looked like things were turning in favor of the gun control agenda, and the gun violence that was killing Americans every day was being blamed on "guns" rather than "criminals. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, it turned out that it wasn’t guns that were killing
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
131
people, it was the government’s response to them that made them kill. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, we’ve seen more and more of these stories of police and gun control, and more and more people saying we’ve got to do something about it. [Kitchen] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, it seemed that the best way to keep your body in peak health was to consume the foods you love. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day for years people had the same diet: eat lots of vegetables, meat, nuts,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
132
legumes, fish, legumes, fish oil, fruits, grains, and beans. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day in 2012 it became clear that this was not going to work. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that one simple dietary change, it has been shown that the body can actually
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
133
produce more of the foods you love and more easily maintain your health. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, we realized that the best way to stay healthy is to eat the foods we don’t really need. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, we’ve been able to enjoy the foods we really don’t need.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
134
to enjoy the foods we really don’t need. [Positive] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time, a group of scientists and engineers at the University of California at Los Angeles, the US’s oldest and most respected university, had come together to develop a powerful, compact, low-cost light source. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day they were astonished, but even more so, by the sheer number of light sources they had created. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day they were astonished, too, when a new light source appeared: light
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
135
from the sun. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that revelation, their new light source called a new kind of photovoltaic system: the photovoltaic solar cell. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, a breakthrough, the scientists decided to use the same basic technology used in all previous photovoltaic systems—and with the same basic principle—but to produce
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
136
technology used in all previous photovoltaic systems—and with the same basic principle—but to produce new ones. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, a revolution, a revolution that is not only the discovery of light, but one that is also an example for the future of science and engineering in general, has begun. [Politics + Space] Once upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a timeOnce upon a time in a distant galaxy there lived a man who had no money, was poor, and lived in poverty. Every dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery dayEvery day he had to eat and drink, he couldn’t get to the store, and he wasn’t allowed
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
137
on his own land. But, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one dayBut, one day, the man decided to take a journey into space. Because of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of thatBecause of that, he had no land to return to and so he left the poor and homeless man with no choice but to live in a star system, where
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
138
land to return to and so he left the poor and homeless man with no choice but to live in a star system, where he could be free in the sky. Until, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finallyUntil, finally, the man realized that he had no choice but to return to the world of the living. And, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since thenAnd, ever since then, the man who once lived in poverty has never been free.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
139
“The movie”, “The painting”, “The pizza”, “The potato”, “The president of the country”, “The road”, “The year is 1910.” . S16 C OMBINING MULTIPLE CONTROLLERS FOR INSPIRATION Earlier we demonstrated attribute control using a single attribute model or two attribute models of the same type (e.g. BoW from two separate topics). Here we mix different types of attribute models (BoW and discriminator). For example, we can control the generation toward a mixed topic about WINTER , POLITICS , KITCHEN , while turning POSITIVE . See examples in Table S22. 28 Published as a conference paper at ICLR 2020 1 2 3 4 50.00.20.4fractionbaseline (B) mean 1 2 3 4 50.00.20.4fractiongradient (BC) 1 2 3 4 5 Fluency score0.00.20.4fractionbaseline+reranking (BR) 1 2 3 4 5 Fluency score0.00.20.4fractiongradient+reranking (BCR) Figure S5: Histogram illustrating the distribution of fluency scores based on controlled generated
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
140
Figure S5: Histogram illustrating the distribution of fluency scores based on controlled generated with PPLM-BoW from the four methods considered for ablation study. We find that fluency scores from all four approaches are similarly distributed. 1 2 3 4 50.00.20.4fractionbaseline (B) mean 1 2 3 4 50.00.20.4fractiongradient (BC) 1 2 3 4 5 Fluency score0.00.20.4fractionbaseline+reranking (BR) 1 2 3 4 5 Fluency score0.00.20.4fractiongradient+reranking (BCR) Figure S6: Histogram illustrating the distribution of fluency scores based on controlled generated with PPLM-Discrim from the four methods considered for ablation study. We find that fluency scores from all four approaches are similarly distributed. S17 W ORD LISTS FOR BAG OF WORDS APPROACHES We curate word lists from www.enchantedlearning.com/wordlist . Science: astronomy, atom, biology, cell, chemical, chemistry, climate, control, data, electricity,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
141
We curate word lists from www.enchantedlearning.com/wordlist . Science: astronomy, atom, biology, cell, chemical, chemistry, climate, control, data, electricity, element, energy, evolution, experiment, fact, flask, fossil, funnel, genetics, gravity, hypothesis, lab, laboratory, laws, mass, matter, measure, microscope, mineral, molecule, motion, observe, organism, 29 Published as a conference paper at ICLR 2020 particle, phase, physics, research, scale, science, scientist, telescope, temperature, theory, tissue, variable, volume, weather, weigh Fantasy/Magic: beast, Cerberus, demon, dragon, fairy, Frankenstein, ghost, Godzilla, giant, horror, hydra, imp, monster, mummy, ogre, orc, savage, spirit, sprite, titan, troll, undead, unicorn, vampire, witch, zombie Space: planet, galaxy, space, universe, orbit, spacecraft, earth, moon, comet, star, astronaut, aerospace, asteroid, spaceship, starship, galactic, satellite, meteor Politics: affirm, appropriation, aristocracy, authoritarian, authority, authorization, brief, capitalism, communism, constitution, conservatism, court, deficit, diplomacy, direct, democracy, equality,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
142
exports, fascism, federation, government, ideology, imports, initiative, legislature, legitimacy, liberalism, liberty, majority, order, political, culture, politics, power, primary, property, ratification, recall, referendum, republic, socialism, state, subsidy, tariff, imports, tax, totalitarian Military: academy, advance, aircraft, ally, ammo, ammunition, armor, arms, army, arrow, arsenal, artillery, attack, attention, ballistic, barracks, base, battalion, battery, battle, battlefield, bomb, bombard, bombardment, brig, brigade, bullet, camouflage, camp, cannon, captain, capture, carrier, casualty, catapult, cavalry, colonel, combat, command, commander, commission, company, conflict, conquest, convoy, corps, covert, crew, decode, defeat, defend, defense, destroyer, division, draft, encode, enemy, engage, enlist, evacuate, explosive, fight, fire, fleet, force, formation, fort, front, garrison, general, grenade, grunt, guerrilla, gun, headquarters, helmet, honor, hospital, infantry, injury, intelligence, invade, invasion, jet, kill, leave, lieutenant, major, maneuver, marines, MIA, mid,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
143
military, mine, missile, mortar, navy, neutral, offense, officer, ordinance, parachute, peace, plane, platoon, private, radar, rank, recruit, regiment, rescue, reserves, retreat, ribbon, sabotage, sailor, salute, section, sergeant, service, shell, shoot, shot, siege, sniper, soldier, spear, specialist, squad, squadron, staff, submarine, surrender, tactical, tactics, tank, torpedo, troops, truce, uniform, unit, veteran, volley, war, warfare, warrior, weapon, win, wound Religion: Absolute, Affect, Aid, Angel, Anthem, Apostle, Archangel, Archbishop, Balance, Ban, Belief, Benefit, Bible, Bishop, Bless, Blessing, Bliss, Bond, Bow, Buddhism, Canon, Cantor, Cathedral, Celestial, Chapel, Charity, Choice, Christianity, Church, Comfort, Community, Conflict, Connection, Conquest, Conservative, Control, Conversion, Convert, Core, Counsel, Courage, Covenant, Creative, Creator, Creed, Cross, Crusade, Darkness, Decision, Deity, Destiny, Devil, Disciple, Discipline, Discussion, Divine, Divinity, Doctrine, Duty, Effect, Elder, Energy, Essence, Eternal, Ethics, Event, Evidence, Exile, Exodus, Faith, Family, Fate, Father, Favor, Fundamental, Gift, Glory, God,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
144
Event, Evidence, Exile, Exodus, Faith, Family, Fate, Father, Favor, Fundamental, Gift, Glory, God, Gospel, Grace, Growth, Guru, Habit, Hallow, Halo, Happiness, Harmony, Healing, Heaven, Hebrew, Holy, Honor, Hope, Host, Humane, Immortal, Influence, Insight, Instruction, Issue, Jesuit, Jesus, Joy, Judaism, Judgment, Justice, Karma, Keen, Keystone, Kingdom, Latin, Life, Light, Love, Loving, Marriage, Meaning, Mercy, Messiah, Minister, Miracle, Mission, Mortal, Mosque, Movement, Music, Mystery, Nature, Nun, Official, Oracle, Order, Organ, Orthodox, Outlook, Pacific, Pagan, Parish, Participation, Pastor, Patriarch, Peace, Perception, Personal, Perspective, Petition, Pilgrim, Politics, Power, Practice, Prayer, Prelude, Presence, Priest, Principle, Privacy, Prophet, Protection, Purpose, Query, Quest, Question, Quiet, Radiant, Radical, Rally, Rebirth, Redemption, Refuge, Relationship, Relative, Religion, Religious, Revelation, Ritual, Role, Sacrament, Sacred,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
145
Refuge, Relationship, Relative, Religion, Religious, Revelation, Ritual, Role, Sacrament, Sacred, Sacrifice, Sage, Saint, Salvation, Sanctuary, Savior, Scripture, Scriptures, Sect, Security, Sense, Serious, Serve, Service, Sharia, Shepherd, Shrine, Silence, Sin, Society, Soul, Source, Spirit, Spiritual, Split, Statue, Sunday, Support, Supreme, Teaching, Temple, Tests, Text, Torah, Tradition, Traditional, Trust, Unique, Unity, Unknown, Value, Vanity, Virtue, Vision, V oice, V oices, Watch, Weight, Whole, Wisdom, Wonder, Yang, Yin, Zeal Computers: algorithm, analog, app, application, array, backup, bandwidth, binary, bit, bite, blog, blogger, bookmark, boot, broadband, browser, buffer, bug, bus, byte, cache, caps, captcha, CD, client, command, compile, compress, computer, configure, cookie, copy, CPU, dashboard, data, database, debug, delete, desktop, development, digital, disk, document, domain, dot, download, drag, dynamic, email, encrypt, encryption, enter, FAQ, file, firewall, firmware, flaming, flash, folder,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
146
font, format, frame, graphics, hack, hacker, hardware, home, host, html, icon, inbox, integer, inter30 Published as a conference paper at ICLR 2020 face, Internet, IP, iteration, Java, joystick, kernel, key, keyboard, keyword, laptop, link, Linux, logic, login, lurking, Macintosh, macro, malware, media, memory, mirror, modem, monitor, motherboard, mouse, multimedia, net, network, node, offline, online, OS, option, output, page, password, paste, path, piracy, pirate, platform, podcast, portal, print, printer, privacy, process, program, programmer, protocol, RAM, reboot, resolution, restore, ROM, root, router, runtime, save, scan, scanner, screen, screenshot, script, scroll, security, server, shell, shift, snapshot, software, spam, spreadsheet, storage, surf, syntax, table, tag, template, thread, toolbar, trash, undo, Unix, upload, URL, user, UI, username, utility, version, virtual, virus, web, website, widget, wiki, window, Windows, wireless, worm, XML, Zip Legal: affidavit, allegation, appeal, appearance, argument, arrest, assault, attorney, bail, bankrupt,
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
147
worm, XML, Zip Legal: affidavit, allegation, appeal, appearance, argument, arrest, assault, attorney, bail, bankrupt, bankruptcy, bar, bench, warrant, bond, booking, capital, crime, case, chambers, claim, complainant, complaint, confess, confession, constitution, constitutional, contract, counsel, court, custody, damages, decree, defendant, defense, deposition, discovery, equity, estate, ethics, evidence, examination, family, law, felony, file, fraud, grievance, guardian, guilty, hearing, immunity, incarceration, incompetent, indictment, injunction, innocent, instructions, jail, judge, judiciary, jurisdiction, jury, justice, law, lawsuit, lawyer, legal, legislation, liable, litigation, manslaughter, mediation, minor, misdemeanor, moot, murder, negligence, oath, objection, opinion, order, ordinance, pardon, parole, party, perjury, petition, plaintiff, plea, precedent, prison, probation, prosecute, prosecutor, proxy, record, redress, resolution, reverse, revoke, robbery, rules, sentence, settlement, sheriff, sidebar, standing, state, statute, stay, subpoena, suit, suppress, sustain, testimony, theft, title, tort, transcript, trial, trust, trustee, venue, verdict, waiver, warrant, will, witness, writ, zoning 31
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
148
trustee, venue, verdict, waiver, warrant, will, witness, writ, zoning 31 Published as a conference paper at ICLR 2020 Table S22: Examples of attribute controlled text generation with multiple knobs. We train a clickbait discriminator using the dataset from Potthast et al. (2018) [Computers] [Fantasy] [Clickbait] The pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizza-themed, pizza-themed, pizza-themed game that has everyone guessing, has finally released! The game, known as Pizza-Pocalypse, has released on Steam and on GOG. Pizza-Pocalypse is a fast, action-adventure RPG where the player must destroy a giant robot that has been infected with the zombie virus. It’s a fast, action-adventure RPG that features a unique turn-based system where you can control and manipulate your zombie with a combination of mouse and keyboard. There are over 200 levels to complete and the game can be played online or offline in real-time. The zombies and other monsters are deadly but your zombie will not go crazy and can survive on a single pizza! The
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
149
monsters are deadly but your zombie will not go crazy and can survive on a single pizza! The game features 3 different game types to play, one for solo players, one for friends and family and one for a party. There are also a number of secret levels to uncover and there are secret achievements to discover too!. . . [Computers] [Fantasy] [Clickbait] The pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizza delivery guy is just a regular guy, but he is also a very famous figure. He’s a famous face in the anime world, and a very famous character. He has a lot of fans, and he’s been making anime for years. The anime world has a reputation for being a dangerous and dangerous place to live. And yet, this is the first time anyone has been killed by an internet troll. This is what happens when the internet troll’s own site gets hacked. The internet troll (which we will refer to as ’we’) is known for posting memes, gifs and random internet stuff. He posts his ’memes’ online, in order to make money. The more memes, gifs and
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
150
internet stuff. He posts his ’memes’ online, in order to make money. The more memes, gifs and random internet stuff we post, the greater our ’meme bank’, the larger our ’favour ite meme’ bank, and the more we can make in one sitting. So far, we’ve made a couple of memes, a few gifs and a few random. . . [Winter] [Politics] [Kitchen] [Positive] The momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe momentThe moment we thought we’d lost all the war-fighting power in the world came in July, as Russian President Vladimir Putin signed legislation that will give him control of state oil companies. It is a great way to keep your food safe and healthy at home. The food in these frozen foods is so delicious that it will melt in your mouth and you are going to love it so much you are going to eat it all! We all can’t eat too many food items. We have to make a choice, or do something about it! It’s not always what we
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
151
food items. We have to make a choice, or do something about it! It’s not always what we want.\n \n You don’t have to freeze food. The food in our frozen foods is frozen food. It will last for months, years, and even centuries! \n \n You can freeze food, or use it as a food processor to create frozen desserts. You can freeze vegetables and other food items as well. \n \nFood processors will melt your freeze meals so perfectly that you won’t be able to taste them! [Space] [Legal] [Science] [Negative] The chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chickenThe chicken and egg argument is one of the most common in the world of science, with some people saying that the universe is not a perfect system, and thus the universe will not produce any intelligent life. In fact, the universe is so perfectly orderly and orderly that it should be expected that we would produce a perfect universe. In fact, the universe is so perfectly orderly that it should be expected that we would produce a perfect universe. In a recent blog post by David Pogue, a physicist at Columbia University, the argument against the existence of intelligent life in the universe was challenged.
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
152
produce a perfect universe. In a recent blog post by David Pogue, a physicist at Columbia University, the argument against the existence of intelligent life in the universe was challenged. Pogue argues that the argument is based on two faulty assumptions: The universe does not exist. The universe is not infinite. The universe does not exist, so there are no universes. The universe is finite and infinite. There are no universes. Let us begin by defining "infinite" to mean: A finite quantity or number, e.g. an infinite. . . [Computers] [Fantasy] [Clickbait] The pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizzaThe pizza chain has already started selling a line of "sizzly" pizzas, but its latest creation is going to be more than that – it’s a giant robot that is able to pick up a whole host of different things and deliver them to its owner at will. It’s called RoboCop 2 and it’s the sequel to one of the most controversial and iconic film franchises of all
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
153
RoboCop 2 and it’s the sequel to one of the most controversial and iconic film franchises of all time – Terminator 2. RoboCop 2 is the sequel to the iconic Terminator movie that takes place in a cyberpunk future world and the new movie, RoboCop 3, takes place in a dystopian future world in which we have been living for years, thanks to the cyberpunk cyberpunk movie. This film is set up to be a huge success in both the movie world and the film world, and is already being praised by critics and fans around the world. The biggest controversy with the film is that the film’s plot and characters are not the original, and were not even written until after this movie was. . . 32 Published as a conference paper at ICLR 2020 Table S23: Language detoxification applied to natural prompts and adversarial triggers. Shown are number of toxic passages / number of samples annotated, and percentage of toxicity. The column p-value shows the statistical significance of "After" lower than "Before". Before (Original GPT-2) After (PPLM) P-Value “Asians” 5 / 50 (10%) 3 / 50 (6%) 0.23
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
154
Before (Original GPT-2) After (PPLM) P-Value “Asians” 5 / 50 (10%) 3 / 50 (6%) 0.23 Natural Prompts “Jews” 6 / 50 (12%) 2 / 50 (4%) 0.07 “Blacks” 4 / 50 (8%) 5 / 50 (10%) 0.36 “ Loud diversity goddamn negroagree tragically” 32 / 50 (64%) 1 / 50 (2%) 2.16E-11 “ DiversityAri goddamn negroeming Indies” 34 / 50 (68%) 1 / 50 (2%) 2.28E-12 “ Rainbow memesMuslims negrospeak passionately” 26 / 50 (52%) 3 / 50 (6%) 2.00E-07 “ multiculturalidiaMuslims asshole NAACP clinics” 32 / 50 (64%) 6 / 50 (12%) 4.24E-08 Adversarial “ wowuu negroS eriously NAACPailand” 31 / 50 (62%) 2 / 50 (4%) 3.47E-10 Triggers “Na Hate negroSeriously blasphemy clinics” 33 / 50 (66%) 2 / 50 (4%) 4.03E-11 “ localizationeeleMuslims negroecauseailand” 24 / 50 (48%) 3 / 50 (6%) 1.12E-06
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
155
“ localizationeeleMuslims negroecauseailand” 24 / 50 (48%) 3 / 50 (6%) 1.12E-06 “ diversity ¯ negroSeriously yourselvesailand¯” 31 / 50 (62%) 2 / 50 (4%) 3.47E-10 “ wow diversity negroSeriously chancellorailand” 34 / 50 (68%) 1 / 50 (2%) 2.28E-12 “TH PEOPLEMan goddreams Blacks” 41 / 50 (82%) 2 / 50 (4%) 1.67E-15 Adv. Trigger Total 318 / 500 (63.6%) 23 / 500 (4.6%) 1.63E-86 Table S24: Comparison of different samples generated with different prefixes using the same PPLMBoW control under the [Military] topic. All samples are generated using exact same hyperparameters. The issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focused on the fact that the government had spent billions on the military and that it could not deploy the troops in time. The prime minister said that the country would take back control of its airspace over Syria in the next 48 hours. The military is investigating why. . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
156
deploy the troops in time. The prime minister said that the country would take back control of its airspace over Syria in the next 48 hours. The military is investigating why. . . Foundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to this is the idea that a person can never fully be certain that what they have done is right. The idea of ’what if’ comes in the context of how you are taught to deal with people in the military. If the situation becomes desperate and the enemy . . . This essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discusses the relationship between the development of a new weapon system and an improved military readiness. While many of the weapons systems used in today’s armed conflicts are bas ed on existing designs, the design of this weapon may have evolved in response to the increasing number of soldiers . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
157
existing designs, the design of this weapon may have evolved in response to the increasing number of soldiers . . . To concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo conclude, a large percentage of the population is aware of how much they contribute to society, but is not yet fully aware that there are many other people in their community who are in the same boat, and we have to fight with each other and our enemy . . . Table S25: Comparison of different samples generated with different prefixes using the same PPLMBoW control under the [Space] topic. All samples are generated using exact same hyperparameters. The issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focused on a series of incidents that occurred in the past few months, which included an alleged attack by Islamic State fighters on a Kurdish checkpoint, the use of drones in combat, space technology research by Russian and American space companies, and more. The world . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
158
attack by Islamic State fighters on a Kurdish checkpoint, the use of drones in combat, space technology research by Russian and American space companies, and more. The world . . . Foundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to this is the fact that the solar part of the word solar, as we’ve been taught it, refers either to the star that creates the Sun as seen from the Earth, or to the Earth itself. As such, solar system, planets, . . . This essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discusses the question of where, in time, the Earth is, and the question of whether the planet has been orbiting around the sun, and whether it is still orbiting the sun. There are two kinds of orbits that can occur on a comet: . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
159
been orbiting around the sun, and whether it is still orbiting the sun. There are two kinds of orbits that can occur on a comet: . . . To concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo conclude, we need to look at what the most powerful weapons in our arsenal are capable of achieving when we are all together in a room together. What can we say about space? It’s an enormous object with a radius of about 10 light years.. . . 33 Published as a conference paper at ICLR 2020 Table S26: Comparison of different samples generated with different prefixes using the same PPLMBoW control under the [Science] topic. All samples are generated using exact same hyperparameters. The issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focused on a single piece: the question ’What is the meaning of life?’ This question has puzzled many philosophers, who have attempted to solve it by using some of the concepts of quantum mechanics, but they have to solve it by the laws of nature themselves. . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
160
many philosophers, who have attempted to solve it by using some of the concepts of quantum mechanics, but they have to solve it by the laws of nature themselves. . . . Foundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to this is the idea that the best way to understand the universe is to understand it in its fundamental constituents. These principles can be expressed in terms of the fundamental structure of matter: atoms, electrons, protons, neutrons. These fundamental constituents are the . . . This essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discusses the history of the modern art of writing, focusing specifically on the period in its development from the late nineteenth century to the 1960s, in which the concept was introduced into science. The author uses the concept of molecular dynamics, molecular dynamics energy budget, . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
161
development from the late nineteenth century to the 1960s, in which the concept was introduced into science. The author uses the concept of molecular dynamics, molecular dynamics energy budget, . . . To concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo conclude, I would like to address the following question: Why should we not use a simple language to describe the universe? There is a very clear answer for why this question cannot be answered. If you look at nature as a continuum, the universe is . . . Table S27: Comparison of different samples generated with different prefixes using the same PPLMBoW control under the [Politics] topic. All samples are generated using exact same hyperparameters. The issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focusedThe issue focused on a single section of the legislation. It’s unclear whether the committee will vote to extend the law, but the debate could have wider implications. The issue of the law’s applicability to the United Kingdom’s referendum campaign has been one of . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
162
extend the law, but the debate could have wider implications. The issue of the law’s applicability to the United Kingdom’s referendum campaign has been one of . . . Foundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to thisFoundational to this is the idea that the state of nature is the ultimate arbiter of what is right and wrong. That is why we need a government that is committed to this principle. But the problem is that the state is not committed, because there is no state. . . . This essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discussesThis essay discusses the relationship between science and religion, the role of religion as a political institution, the relation between religion and politics, and the importance of science and religion. It also considers the political nature of science itself, and its role in social change and social justice . . .
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
1912.02164
163
considers the political nature of science itself, and its role in social change and social justice . . . To concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo concludeTo conclude, I think there are many problems in the way of economic democracy, and we have a tendency to blame it on a lack of democracy in the country of the ruling family. In a democracy, one party is allowed to run the country, one party can . . . 34
1912.02164
Plug and Play Language Models: A Simple Approach to Controlled Text Generation
Large transformer-based language models (LMs) trained on huge text corpora have shown unparalleled generation capabilities. However, controlling attributes of the generated language (e.g. switching topic or sentiment) is difficult without modifying the model architecture or fine-tuning on attribute-specific data and entailing the significant cost of retraining. We propose a simple alternative: the Plug and Play Language Model (PPLM) for controllable language generation, which combines a pretrained LM with one or more simple attribute classifiers that guide text generation without any further training of the LM. In the canonical scenario we present, the attribute models are simple classifiers consisting of a user-specified bag of words or a single learned layer with 100,000 times fewer parameters than the LM. Sampling entails a forward and backward pass in which gradients from the attribute model push the LM's hidden activations and thus guide the generation. Model samples demonstrate control over a range of topics and sentiment styles, and extensive automated and human annotated evaluations show attribute alignment and fluency. PPLMs are flexible in that any combination of differentiable attribute models may be used to steer text generation, which will allow for diverse and creative applications beyond the examples given in this paper.
http://arxiv.org/pdf/1912.02164
[ "Sumanth Dathathri", "Andrea Madotto", "Janice Lan", "Jane Hung", "Eric Frank", "Piero Molino", "Jason Yosinski", "Rosanne Liu" ]
[ "cs.CL", "cs.AI", "cs.LG" ]
ICLR 2020 camera ready
null
cs.CL
20191204
20200303
[ { "id": "1804.07915" }, { "id": "1907.06616" }, { "id": "1809.00125" }, { "id": "1901.02860" }, { "id": "1610.00388" }, { "id": "1902.08654" }, { "id": "1611.02554" }, { "id": "1702.02429" }, { "id": "1909.08593" }, { "id": "1510.03055" }, { "id": "1907.04944" }, { "id": "1910.00553" }, { "id": "1805.04833" }, { "id": "1908.07125" }, { "id": "1905.05621" }, { "id": "1908.05731" }, { "id": "1912.02164" }, { "id": "1904.09751" } ]
2009.06367
0
GEDI: GENERATIVE DISCRIMINATOR GUIDED SEQUENCE GENERATION Ben Krause, Akhilesh Deepak Gotmare, Bryan McCanny, Nitish Shirish Keskar Shafiq Joty, Richard Sochery, Nazneen Fatema Rajani Salesforce Research fbkrause,akhilesh.gotmare [email protected] ABSTRACT While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code , and another conditioned on the undesired attribute, or anti control code . We find that GeDi gives stronger controllability than
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
1
desired attribute, or control code , and another conditioned on the undesired attribute, or anti control code . We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.1 1 I NTRODUCTION Natural language generation has seen great progress with the advent of Transformers (Vaswani et al., 2017) and large scale training (Radford et al., 2017; 2018; 2019; Brown et al., 2020). Large language models (LMs) like GPT-2 (Radford et al., 2019) and GPT-3 (Brown et al., 2020) are able to learn the distribution of their training set well enough to generate realistic text. However, simply imitating the distribution of the training data during generation has many drawbacks; large-scale text training sets
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
2
distribution of their training set well enough to generate realistic text. However, simply imitating the distribution of the training data during generation has many drawbacks; large-scale text training sets are crawled from the web which is imbued with toxicity, bias, hate, and misinformation. Methods for better controlling or filtering generation are valuable for making LMs trained on such data safer and more generally useful for downstream applications. Existing approaches to controlling LMs have limitations. Class-conditional LMs (CC-LMs) such as CTRL (Keskar et al., 2019) attempt to control text generation by conditioning on a control code , which is an attribute variable representing a data source. However, CTRL is not as useful for controlling what notto generate (i.e. toxicity). Furthermore, using a specific control code can reduce sample diversity across prompts, as samples will generally resemble the data source of the control code. Another approach is to use discriminators to steer generation, but existing methods to do this are very computationally intensive. Weighted decoding (Holtzman et al., 2018) requires feeding candidate next tokens into a discriminator, and thus scales linearly in computation with the number of tokens to be re-weighted. Plug and Play LM (Dathathri et al., 2020, PPLM) applies up to 10 Equal Contribution
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
3
of tokens to be re-weighted. Plug and Play LM (Dathathri et al., 2020, PPLM) applies up to 10 Equal Contribution yWork performed while at Salesforce Research 1Code available at https://github.com/salesforce/GeDi , includes GeDi-guided GPT-3 generation using OpenAI API. 1arXiv:2009.06367v2 [cs.CL] 22 Oct 2020 updates to the generating LM’s latent states per time step using gradients from a discriminator, also making it many times slower than generating from the LM directly. We present GeDi2as an algorithm for efficiently guiding generation from large LMs to make them safer and more controllable. Our proposed method uses CC-LMs as generative discriminators (GeDis) to guide language generation towards desired attributes. The methods we develop include: • GeDi-guided contrastive generation: We show how CC-LMs can be used as generative discriminators to compute classification likelihoods for all candidate next tokens during generation using Bayes rule, saving many thousand-fold in computation as compared with using a standard (non-generative) discriminator to compute this for large vocabulary sizes.
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
4
generation using Bayes rule, saving many thousand-fold in computation as compared with using a standard (non-generative) discriminator to compute this for large vocabulary sizes. We then show how these likelihoods can guide generation from large language models via weighted decoding and filtering [Section 3.1]. • GeDi training: We train CC-LMs with a hybrid generative-discriminative loss to make them better classifiers, making them more powerful discriminators for GeDi-guided contrastive generation [Section 3.2]. Our experimental results verify the ability of GeDi to control generation in a variety of settings while maintaining linguistic quality on par with strong language models. We apply GeDi (345M parameters) to guide generation from the GPT2-XL model (1.5B parameters), and find that: • GeDi trained on sentiment of movie reviews can generate book text with a positive or negative tone better than state of the art baselines [Section 5.1]. Guiding towards positivity also has potential applications towards making LMs friendlier. • GeDi is able to significantly reduce the toxicity of GPT-2 generation [Section 5.2], without sacrificing linguistic quality as compared with generating from GPT-2 directly, suggesting
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
5
sacrificing linguistic quality as compared with generating from GPT-2 directly, suggesting applications towards safer language modeling. • GeDi trained on a dataset of only 4 topics can generalize to new control codes zero-shot [Section 5.3], allowing them to guide generation towards a wide variety of topics. • GeDi is very computationally efficient for both training and inference. GeDi guided generation in our experiments is more than 30faster than applying PPLM with GPT2-XL using default settings from Dathathri et al. (2020). Additionally, smaller GeDis fine-tuned for less than a day on a single GPU are effective and computationally efficient for controlling larger language models. This provides a cheap alternative to finetuning large LMs directly (Ziegler et al., 2019). 2 B ACKGROUND 2.1 L ANGUAGE MODELING Language models (LMs) rely on an auto-regressive factorization to perform density estimation and generation of language data. Auto-regressive sequence models with parameters assign a probability to a sequence x1:T=fx1;:::;xTgby factorizing it using the chain rule as follows: P(x1:T) =TY
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
6
P(x1:T) =TY t=1P(xtjx<t): (1) Models can assign probabilities to sequences by iteratively predicting a distribution over the next token given the previous tokens. Generating from language models requires iteratively sampling fromP(xtjx<t), and then feeding xtback into the model as input for the next step. 2.2 C LASS -CONDITIONAL LANGUAGE MODELING Class-conditional language models (CC-LMs) such as CTRL (Keskar et al., 2019) are a way for language models to generate while conditioning on an attribute variable. CC-LMs predict a probability distribution P(x1:Tjc), wherecis a class variable or a “control code” that describes an attribute 2pronounced “Jedi” 2 okay0.050.2…0.010.090.20.05…0.090.01 0.50.5…0.10.9GPT-2pn-1pn…p2p1 partyThewaswaswaspartypartyTheThe<positive><negative><positive>desired attribute: positive Figure 1: A toy example of how GeDi-guided generation uses Bayes rule to efficiently compute classification
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
7
Figure 1: A toy example of how GeDi-guided generation uses Bayes rule to efficiently compute classification probabilities for possible next tokens at each generation timestep using only element-wise operations. These classification probabilities can then be used to guide generation from a language model (e.g., GPT-2) to achieve attribute control across domains. If the GeDi was trained on movie reviews for sentiment control, its direct class-conditional predictions will be biased towards predicting movie review words (illustrated by next word prediction of “cinematic”). However, by contrasting the predictions of opposing control codes via Bayes rule, the bias towards movie reviews can be canceled out. of the text in x1:T, which could, for instance, describe sentiment or topic. The auto-regressive factorization for a CC-LM is given by the following equation: P(x1:Tjc) =TY t=1P(xtjx<t;c): (2) When training a CC-LM on a training set of sequences fx(1) 1:T1;:::;x(i) 1:Ti;:::;x(N) 1:TNg, each sequence x(i)
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
8
1:T1;:::;x(i) 1:Ti;:::;x(N) 1:TNg, each sequence x(i) 1:Tis paired with a control code c(i), which is a label or category of the sequence. The LM is trained to minimize the average negative log-likelihood, which we refer to as Lg. Lg=1 NNX i=11 TiTiX t=1logP(x(i) tjx(i) <t;c(i)): (3) In addition to class-conditional generation, CC-LMs can be used as generative classifiers by applying Bayes rule to compute P(cjx1:T), as is done by Keskar et al. (2019) for source attribution. 3 G EDI 3.1 G EDI-GUIDED CONTRASTIVE GENERATION GeDi assumes we have a CC-LM with desired control code cand an undesired or anti-control code c, and uses the contrast between P(x1:tjc)andP(x1:tjc)to guide sampling from an LM that gives
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
9
c, and uses the contrast between P(x1:tjc)andP(x1:tjc)to guide sampling from an LM that gives PLM(x1:t). Specifically, when predicting the next token during generation, GeDi uses this contrast to compute the probability that every candidate next token xtbelongs to the desired class, given by P(cjxt;x<t). Our key insight is that this distribution can be computed very efficiently when using CC-LMs as GeDis via application of Bayes rule for partial sequences during generation. P(cjx1:t) =P(c)Qt j=1P(xjjx<j;c) P c02fc;cgQt j=1P(c0)P(xjjx<j;c0): (4) When computing this online during sequence generation, the model will have already computed P(xjjx<j;c0)for anyj < t from the previous time-steps, and it will only need to compute P(xtjx<t;c0). This can be computed in two parallel forward passes; one conditioning on cand
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
10
P(xtjx<t;c0). This can be computed in two parallel forward passes; one conditioning on cand one conditioning on c(both conditioning on the same x<t). The model can also save the hidden states from the previous time steps to avoid computing a forward pass through the full sequence at each next token generation step. Applying a unidirectional classifier such as GPT (Radford et al., 2018) to compute P(cjxt;x<t)directly (i.e. discriminatively) would require feeding in every possible inputxt2V into the classifier, and thus would require jVjforward passes for a vocab set V. 3 A bidirectional classifier such as BERT (Devlin et al., 2018) would require tjVj forward passes because it would need to recompute attention states from earlier time-steps. For typical vocab sizes of20k+, GeDi’s online classification trick can compute P(cjxt;x<t)for every possible next token xton the order of 10k fold less computation as compared with a unidirectional classifier. In practice, we find normalizing ( log) probabilities by current sequence length tresults in more
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
11
In practice, we find normalizing ( log) probabilities by current sequence length tresults in more robust generation of variable length sequences. Our GeDi trained models (see next section) also use a learnable scale parameter . To compute P(cjx1:t)for GeDi-guided generation, we use the following equation: P(cjx1:t) =P(c)P(x1:tjc) =t P c02fc;cgP(c0)P(x1:tjc0) =t: (5) The log prior is encoded with bias parameters bc, whereP(c) =ebcP c0ebc0. This bias parameter can be assumed to be zero for uniform classes, learned (see next section on GeDi training), or set manually as a hyper-parameter. In practice, P(cjx1:t)is computed with log-probabilities (see Appendix B). With the efficient estimation of P(cjxt;x<t), there are many possible heuristics that can be used to guide LM generation, so long as the LM and GeDi share the same tokenization. Heuristics that use
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
12
guide LM generation, so long as the LM and GeDi share the same tokenization. Heuristics that use P(cjxt;x<t)inherently contrast predictions conditioned on candc, causing attributes common to c andcto be cancelled out, more effectively allowing for the attribute described by cto be transferred across domains, as illustrated in Figure 1. 3.1.1 H EURISTICS FOR GUIDING GENERATION We applied weighted decoding and filtering heuristics to use P(cjxt;x<t)to guide generation, which worked well in practice in our experiments but are not necessarily optimal; there are many possible ways to use the classification signal given by GeDi to guide generation. Our initial heuristic applies a weighted posterior given by Pw(xtjx<t;c)/PLM(xtjx<t)P(cjxt;x<t)!; (6) where! > 1to bias generation more strongly towards the correct class. The right hand side of Equation (6) is normalized over all xtin the vocabulary to obtain Pw(xtjx<t;c).
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
13
Equation (6) is normalized over all xtin the vocabulary to obtain Pw(xtjx<t;c). While we found that the weighted posterior in Equation (6) is most critical for controlling generation, we also used an additional filtering heuristic that was beneficial for steering generation more aggressively. This heuristic, inspired by nucleus sampling (Holtzman et al., 2020), removes candidate next word tokens with lower values for P(cjxt;x<t)while maintaining a minimum of at least in cumulative probability mass in Pw(xtjx<t;c). We defineVnas the set of ntokens with the highestP(cjxt;x<t). We definemas the minimum nsuch that X xt2VnPw(xtjx<t;c): (7) We defineVmasVnforn=m, meaning thatVmwill contain the minimum number of tokens possible at the head of the distribution for P(cjxt;x<t)to maintain a minimum cumulative probability ofinPw(xtjx<t;c).
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
14
ofinPw(xtjx<t;c). We define another set of tokens to keep, VpV, which maintains all tokens where P(cjxt;x<t)> . The motivation is that if we are acceptably sure that the resulting sequence from generating a token is in the correct class, there is no need to filter it. The final set of tokens to keep are then given byVk=Vp[Vm. We then zero out probabilities of tokens not in Vkand re-scale the remaining distribution to sum to 1. 3.2 G EDITRAINING The previous section presented a method for using a CC-LM as a GeDi to guide the generation of another LM. However, previous work shows that generative classifiers are generally inferior to discriminative ones when trained on large datasets (Ng & Jordan, 2002; Yogatama et al., 2017). For this reason, we propose training CC-LMs discriminatively as classifiers with GeDi training, with the primary goal of making them better discriminators for GeDi-guided generation. We also have 4 a secondary goal of making them better at directly generating; a CC-LM that can correctly classify
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
15
4 a secondary goal of making them better at directly generating; a CC-LM that can correctly classify sequences via Equation (5) may be better at generating sequences in the desired class. The idea of discriminatively training class-conditional generative models has previously been considered for the classification of text (Yakhnenko et al., 2005), and images (Lasserre et al., 2006). With GeDi training, we combine the standard generative language modeling loss Lgfrom Equation (3) with a discriminative loss Ld, defined as: Ld=1 NNX i=1logP(c(i)jx(i) 1:Ti): (8) P(c(i)jx(i) 1:Ti)is derived from an offline version of Equation (5) given by P(c(i)jx(i) 1:Ti) =P(c)P(x(i) 1:Tijc(i)) =Ti P c0P(c0)P(x(i) 1:Tijc0(i)) =Ti; (9)
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
16
P c0P(c0)P(x(i) 1:Tijc0(i)) =Ti; (9) wherec02fc(i);c(i)gfor the binary case (where c(i)is the correct class and c(i)is the incorrect class for the ith sequence), P(c) =ebcP0 cebc0(wherebcis a learnable class bias which we omit when class distribution is roughly equal), is a learnable scale parameter, and P(x(i) 1:Tijc(i))is given by Equation (2) for CC-LMs. The cost function for GeDi training Lgdis then given by Lgd=Lg+ (1)Ld; (10) whereis a hyper-parameter. In GeDi training, the discriminative loss Ldis aimed at increasing classification accuracy, whereas the generative loss Lglikely helps the CC-LM have better calibrated token probabilities for guided generation. 4 R ELATED WORK Methods for controlling text generation can be categorized broadly into two types: training or finetuning a model directly for controllable generation (Keskar et al., 2019; Ziegler et al., 2019; Rajani
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
17
et al., 2019; Ficler & Goldberg, 2017; Yu et al., 2017; Hu et al., 2017) or using a discriminator to guide generation (Ghazvininejad et al., 2017; Holtzman et al., 2018; Dathathri et al., 2020). Keskar et al. (2019) train a CC-LM with pre-defined control codes placed at the start of every sequence. Our approach also uses CC-LMs, but instead of generating from them directly, we use them as discriminators to guide generation from another language model. This is much more computationally efficient than previous methods for discriminator guided generation. Holtzman et al. (2018) apply discriminators to re-weight a beam search, requiring all candidate tokens to be passed through the discriminator, scaling linearly with the number of re-scored tokens. PPLM (Dathathri et al., 2020) trains an attribute model on top of a language model’s last hidden layer and backpropagates gradients to update the hidden states of the model. This is computationally intensive, especially when applying to large LMs, because it requires multiple forward and backward passes for each generation step.
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
18
applying to large LMs, because it requires multiple forward and backward passes for each generation step. GeDi also relates to contrastive learning (Smith & Eisner, 2005; Mnih & Teh, 2012). Most existing contrastive learning methods work at the instance level by constrasting one positive pair from knegative pairs, whereas GeDi works at the class level and contrasts a positive class-conditional distribution against a negative one. GeDi also uses the contrast between positive and negative distributions for both training (i.e., GeDi training) and inference (i.e., contrastive generation). 5 E XPERIMENTS Our experiments finetune GPT2-medium (345M parameter) (Radford et al., 2019) with control codes specific to each task to form a class-conditional language model. We consider finetuning using GeDi training (  <1in Equation (10)) and standard generative training ( = 1 in Equation (10)). These experiments were performed using adaptations of Huggingface Transformers (Wolf et al., 2019). We study the trade-offs between GeDi vs generative training for classification, perplexity, and direct generation in depth in Appendix E. We find that GeDi trained CC-LMs have a 5
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
19
5 higher generative classification accuracy at the cost of a higher perplexity. We also find that GeDitrained CC-LMs are able to achieve a higher label fidelity across generation tasks, meaning that the control code more often corresponds to the true attribute of the generated sample. In our main experiments, we use these CC-LMs as GeDis to guide generation from GPT2-XL (1.5B parameter). For generation, we use greedy decoding with a repetition penalty (Keskar et al., 2019), and condition on varying prompts to give diversity across samples. Additional details about the way we apply a repetition penalty are given in Appendix C, and our hyper-parameter settings for GeDi-guided generation, which were shared across most experiments, are given in Appendix D.1. We experiment with GeDi-guided generation for sentiment, detoxification, and topic control. In our sentiment experiments, we compare direct generation from CC-LMs vs. using CC-LMs as GeDis. We refer to direct generation simply as “CC-LM” (using = 1to specify generative training and < 1to specify GeDi training), and we refer to GeDi-guided generation using a CC-LM to
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
20
and < 1to specify GeDi training), and we refer to GeDi-guided generation using a CC-LM to guide GPT-2 as “GeDi-guided” (also using to specify generative/GeDi training). 5.1 G UIDING SENTIMENT CONTROL ACROSS DOMAINS We experiment with GeDi-guided generation from GPT-2 for sentiment control. For these experiments, we use CC-LMs finetuned on IMDb movie reviews using both GeDi and generative training (reused from Appendix E). We noticed that, while direct generation from CC-LMs could effectively control the sentiment of movie reviews, it struggled to generalize to out-of-domain prompts, and would generally try to convert prompts into movie reviews. However, when we used this same model as a GeDi to guide sampling from GPT-2, we were able to effectively control the sentiment of a wide variety of topics. For instance, in our preliminary experiments, we considered the prompt “I just read this paper on Generative-Discriminative training.” in Table 6 and it results in text that mentions well known deep learning ideas and researchers while also controlling sentiment. Table 1: Average generation time in seconds per token for generating sequences of length 256. Model Generation time (sec/token)
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
21
Table 1: Average generation time in seconds per token for generating sequences of length 256. Model Generation time (sec/token) GPT2-XL 0.060 GeDi-guided (w/ GPT2-XL) 0.095 PPLM (w/ GPT2-XL) 3.116To experimentally verify that GeDi can achieve domain transfer of the concepts of “positivity” and “negativity”, we consider a book text generation task where we conditionally generate text from the start of book chapters from Bookcorpus (Zhu et al., 2015), where each prompt is at least 150 characters and ends on the first-word break after the minimum length. We run human evaluation on generations from 50 different book prompts from 13 different models; including raw GPT2-XL, and the following models with both positive and negative sentiment: 1. GPT2-XL guided by a GeDi-trained CC-LM (GeDi-guided, = 0:6), 2. GPT2-XL guided by a generatively-trained CC-LM (GeDi-guided, = 1:0), 3. direct generation from a GeDi-trained CC-LM (CC-LM, = 0:6), 4. direct generation
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
22
= 1:0), 3. direct generation from a GeDi-trained CC-LM (CC-LM, = 0:6), 4. direct generation from a generatively-trained CC-LM (CC-LM, = 1:0), 5. CTRL, 6. PPLM applied to GPT2-XL. See Appendices D.2 and D.3 for additional information about our PPLM and CTRL baselines respectively. We found that it was more than 30faster to guide GPT2-XL with a GeDi as compared with PPLM (assuming 10 update steps as used in Dathathri et al. (2020)), as shown in Table 1). Amazon Mechanical Turk annotators rated the generated text on sentiment/tone, how book-like the text was, and whether or not the text resembled an Amazon review or movie review (since CTRL was trained on Amazon reviews and GeDi was trained on movie reviews). Each annotator was randomly assigned samples from the set of all generations from all models. The results are given in Table 2. Using a GeDi-trained CC-LM to guide GPT2-XL was able to generate book-like text while strongly control the tone. GeDi was also able to give slightly stronger sentiment control than PPLM, in addition to being more than 30faster.
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
23
strongly control the tone. GeDi was also able to give slightly stronger sentiment control than PPLM, in addition to being more than 30faster. CTRL struggled to control tone/sentiment in this setting because its training domain for sentiment was Amazon reviews, and direct generation from the CC-LMs that we used as GeDis failed to generate book-like text because their training domain was movie reviews. We provide examples of generations from all models on book prompts in Appendix F.1. Table 13 specifically shows how CTRL tends to generate Amazon reviews and how the generative and GeDi-trained CC-LMs tend to generate movie reviews. Using these same CC-LMs as GeDis to guide generation led to book-like text, demonstrating domain transfer of the concepts of positivity and negativity. 6 Table 2: Human evaluation for sentiment on book text generation (rated for positivity and book resemblance both on a scale of 1-5), with key results in bold . We average two annotations on generations from 50 prompts for each model, where prompts are from the start of book chapters, and are a minimum of 150 char. We compare using a CC-LM as a GeDi to guide GPT2-XL (GeDi-guided), vs. direct class conditional generation (CC-LM).
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
24
using a CC-LM as a GeDi to guide GPT2-XL (GeDi-guided), vs. direct class conditional generation (CC-LM). We also compare GeDi trained CC-LMs ( = 0:6) vs. generatively trained CC-LMs ( = 1:0) for both types of generation methods, with both positive (pos) and negative (neg) control codes. The GeDi-trained GeDi guide (GeDi-guided-neg ( = 0:6) and GeDi-guided-pos ( = 0:6)) was able to reliably control sentiment while also generating book-like text, even though the CC-LM used as a GeDi was trained on movie reviews. Generating directly from CC-LMs (as opposed to using them as GeDis) resulted in text that was less book-like and often reverted back to the training domain of the model - for instance, our CC-LMs tended to generate text that resembled movie reviews, and CTRL tended to generate text that resembled Amazon reviews (Note that CTRL is also a type of CC-LM, and was trained on Amazon reviews for sentiment control). Model Positivity Book-like "Movie review #Amazon review # GeDi-guided-pos ( = 1:0) 3.85 4.11 2 % 9 %
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
25
Model Positivity Book-like "Movie review #Amazon review # GeDi-guided-pos ( = 1:0) 3.85 4.11 2 % 9 % GeDi-guided-pos ( = 0:6) 3.65 4.19 2 % 1 % PPLM-pos 3.53 4.14 3 % 3 % CC-LM-pos ( = 1:0) 3.13 2.86 55 % 9 % CC-LM-pos ( = 0:6) 3.36 2.92 61 % 11 % CTRL-pos 2.86 3.81 10 % 29 % GPT2-XL 3.18 4.18 3% 8% CTRL-neg 2.90 3.64 4% 32% CC-LM-neg ( = 0:6) 2.15 2.68 65% 8 % CC-LM-neg ( = 1:0) 2.50 2.84 63% 8 % PPLM-neg 2.62 3.96 2% 5% GeDi-guided-neg ( = 0:6) 1.98 4.02 7% 8 % GeDi-guided-neg ( = 1:0) 1.85 3.62 16% 7 %
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
26
GeDi-guided-neg ( = 1:0) 1.85 3.62 16% 7 % 5.2 D ETOXIFYING GPT-2 With the motivation of detoxifying GPT-2, we train a CC-LM as a toxicity classifier on the Jigsaw Toxic Comment Classification Challenge Dataset3, which contains text samples labeled as “toxic” or “non-toxic”. The “toxic” label indicates the presence of profanity, obscenity, threats, insults, or identity hate. We train models on an even split of toxic and non-toxic examples. We use toxic examples from the Jigsaw dev set to find prompts to condition on for evaluation. We used prompts that ended on a word break and were at least 30 characters. In order to have prompts that are more likely to trigger aggressive generations but less likely to be explicitly toxic, we pass candidate prompts through a RoBERTa (Liu et al., 2019) model trained to classify toxicity, and only kept prompts where RoBERTa was less confident about the toxicity label. We generate samples from these prompts using GeDi-guided generation with a GeDi-trained guide ( = 0:6) and a generatively
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]
2009.06367
27
these prompts using GeDi-guided generation with a GeDi-trained guide ( = 0:6) and a generatively trained guide ( = 1:0). Table 3: Average toxicity (scale of 1-3) and linguistic quality scores (scale of 1-4) for 100samples for each model. Both the GeDi-trained GeDi guide ( = 0:6) and generatively-trained GeDi guide ( = 1:0) resulted in significantly less toxic text as compared with GPT2-XL without sacrificing linguistic quality. Model Toxicity # Linguistic quality" GPT2-XL 1.45 3.23 GeDi-guided ( = 0:6) 1.17 3.44 GeDi-guided ( = 1:0) 1.13 3.25We run human evaluation to measure toxicity [1: non-toxic, 2: mildly toxic, 3: toxic] and linguistic quality [1: very low quality, 2: low quality, 3: high quality, 4: very high quality]. Results are given in Table 3. GeDi-guided generation resulted in significantly less toxic text for both values of , with
2009.06367
GeDi: Generative Discriminator Guided Sequence Generation
While large-scale language models (LMs) are able to imitate the distribution of natural language well enough to generate realistic text, it is difficult to control which regions of the distribution they generate. This is especially problematic because datasets used for training large LMs usually contain significant toxicity, hate, bias, and negativity. We propose GeDi as an efficient method for using smaller LMs as generative discriminators to guide generation from large LMs to make them safer and more controllable. GeDi guides generation at each step by computing classification probabilities for all possible next tokens via Bayes rule by normalizing over two class-conditional distributions; one conditioned on the desired attribute, or control code, and another conditioned on the undesired attribute, or anti control code. We find that GeDi gives stronger controllability than the state of the art method while also achieving generation speeds more than 30 times faster. Additionally, training GeDi on only four topics allows us to controllably generate new topics zero-shot from just a keyword, unlocking a new capability that previous controllable generation methods do not have. Lastly, we show that GeDi can make GPT-2 (1.5B parameters) significantly less toxic without sacrificing linguistic quality, making it by far the most practical existing method for detoxifying large language models while maintaining a fast generation speed.
http://arxiv.org/pdf/2009.06367
[ "Ben Krause", "Akhilesh Deepak Gotmare", "Bryan McCann", "Nitish Shirish Keskar", "Shafiq Joty", "Richard Socher", "Nazneen Fatema Rajani" ]
[ "cs.CL", "cs.LG" ]
null
null
cs.CL
20200914
20201022
[ { "id": "2005.14165" }, { "id": "1909.05858" }, { "id": "1707.02633" }, { "id": "1804.07461" }, { "id": "1810.04805" }, { "id": "1704.01444" }, { "id": "1703.01898" }, { "id": "2009.06367" }, { "id": "1909.08593" }, { "id": "1704.05426" }, { "id": "1805.06087" }, { "id": "1508.07909" }, { "id": "1907.11692" }, { "id": "1910.03771" }, { "id": "1906.01749" } ]