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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Elgaar, Mohamed, Amiri, Hadi
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866914278591692800
author Elgaar, Mohamed
Amiri, Hadi
author_facet Elgaar, Mohamed
Amiri, Hadi
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_24201
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LingGen: Scalable Multi-Attribute Linguistic Control via Power-Law Masking
Elgaar, Mohamed
Amiri, Hadi
Computation and Language
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.
title LingGen: Scalable Multi-Attribute Linguistic Control via Power-Law Masking
topic Computation and Language
url https://arxiv.org/abs/2410.24201