LingGen: Scalable Multi-Attribute Linguistic Control via Power-Law Masking

Mohamed Elgaar, Hadi Amiri
10/31/2024
cs.CL

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

We present LingGen, a controlled text generation model that allows fine-grained control over a large number of real-valued linguistic attributes. It encodes target attribute values with a dedicated linguistic attribute encoder and conditions the language model by injecting the resulting representation into the language model using the beginning-of-sequence (BOS) embeddings. To improve robustness when controlling different attribute subsets, we introduce P-MASKING, which samples per-example attribute masking rates from a truncated Pareto distribution during training. Across 1-40 control attributes, LingGen achieves the lowest average control error among evaluated methods, while remaining efficient at inference and receiving the highest fluency scores in human evaluation. Ablations show that Pareto-sampled masking and BOS-based injection are effective choices compared to alternative masking and integration variants.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

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

Similar Papers

Cite this paper

@article{elgaar2024linggen,
  title  = {LingGen: Scalable Multi-Attribute Linguistic Control via Power-Law Masking},
  author = {Mohamed Elgaar and Hadi Amiri},
  year   = {2024},
  eprint = {2410.24201},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.24201v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

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

Discussion