English

SAM: Semantic Attribute Modulation for Language Modeling and Style Variation

Computation and Language 2017-09-15 v3 Machine Learning Machine Learning

Abstract

This paper presents a Semantic Attribute Modulation (SAM) for language modeling and style variation. The semantic attribute modulation includes various document attributes, such as titles, authors, and document categories. We consider two types of attributes, (title attributes and category attributes), and a flexible attribute selection scheme by automatically scoring them via an attribute attention mechanism. The semantic attributes are embedded into the hidden semantic space as the generation inputs. With the attributes properly harnessed, our proposed SAM can generate interpretable texts with regard to the input attributes. Qualitative analysis, including word semantic analysis and attention values, shows the interpretability of SAM. On several typical text datasets, we empirically demonstrate the superiority of the Semantic Attribute Modulated language model with different combinations of document attributes. Moreover, we present a style variation for the lyric generation using SAM, which shows a strong connection between the style variation and the semantic attributes.

Keywords

Cite

@article{arxiv.1707.00117,
  title  = {SAM: Semantic Attribute Modulation for Language Modeling and Style Variation},
  author = {Wenbo Hu and Lifeng Hua and Lei Li and Hang Su and Tian Wang and Ning Chen and Bo Zhang},
  journal= {arXiv preprint arXiv:1707.00117},
  year   = {2017}
}
R2 v1 2026-06-22T20:35:06.504Z