Vaibhav Kumar Profile picture
May 31 8 tweets 5 min read Twitter logo Read on Twitter
Excited to share our #NLProc #ACL2023NLP paper:

Controlled Text Generation with Hidden Representation Transformations

Work done during my applied scientist internship at @AmazonScience @alexa99 team.

Paper: arxiv.org/abs/2305.19230
Code: github.com/amazon-science… (Coming soon) Image
@AmazonScience @alexa99 LLMs are notoriously difficult to control. This work is an effort to fix that.

We create CHRT : a novel framework to attribute control LLMs using learned transformation blocks.

It can be used to minimize toxicity, maximize positive sentiment and more. Image
The approach has minimal loss in linguistic quality while achieving high attribute control.
Also has the least latency delta as compared to all other included baselines, something that makes it ideal for production environments. Image
How do we learn the transformation blocks?

Through a joint weighted loss of contrastive and preservation loss. In a way, our work can be imagined as a distilled version of the DExperts paper's approach with the ability to combine (or skip) multiple transformation blocks. ImageImage
I like to imagine these blocks as "lenses". Each lens moves the hidden representation towards a certain latent subspace that achieves an attribute.
How do we evaluate our approach?

We do it both automatically (using attribute classifiers) and through a large scale human study performed on Amazon mechanical turk. We compared our work with 5 existing baselines and outperform them in many aspects. ImageImage
This framework requires access to model weights and is inapplicable to instruction following LLM APIs like @OpenAI and @GoogleAI Bard. Prompt engineering with alignment is the way to go for them. NLP Research moves so fast!!
@OpenAI @GoogleAI Finally, I am thankful to my mentors and Amazon for giving me an opportunity to work on such an interesting project. I learned a lot.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Vaibhav Kumar

Vaibhav Kumar Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(