mlsanityData to 7 Oct 2026

Disentangling Representations of Text by Masking Transformers

arXiv 2104.07155 ↗First posted 14 Apr 2021cs.CL cs.LGcited by 15

Not on the map. Why?

Abstract (arXiv)

Representations from large pretrained models such as BERT encode a range of features into monolithic vectors, affording strong predictive accuracy across a multitude of downstream tasks. In this paper we explore whether it is possible to learn disentangled representations by identifying existing subnetworks within pretrained models that encode distinct, complementary aspect representations. Concretely, we learn binary masks over transformer weights or hidden units to uncover subsets of features that correlate with a specific factor of variation; this eliminates the need to train a disentangled model from scratch for a particular task. We evaluate this method with respect to its ability to disentangle representations of sentiment from genre in movie reviews, "toxicity" from dialect in Tweets, and syntax from semantics. By combining masking with magnitude pruning we find that we can identify sparse subnetworks within BERT that strongly encode particular aspects (e.g., toxicity) while only weakly encoding others (e.g., race). Moreover, despite only learning masks, we find that disentanglement-via-masking performs as well as -- and often better than -- previously proposed methods based on variational autoencoders and adversarial training.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 39 of its 56 references that are in the map. First posted on arXiv 14 Apr 2021.

Builds on

39 of 56 references.

References · 39

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  3. 2013Auto-Encoding Variational Bayescited by 3,980
  4. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  5. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  6. 2018Deep contextualized word representationscited by 2,285
  7. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  8. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  9. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  10. 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
  11. 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
  12. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
27 more
  1. 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 929
  2. 2016InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Netscited by 858
  3. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  4. 2018Disentangling by Factorisingcited by 614
  5. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
  6. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
  7. 2018Towards a Definition of Disentangled Representationscited by 294
  8. 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
  9. 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 265
  10. 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
  11. 2019SemEval-2017 Task 4: Sentiment Analysis in Twittercited by 209
  12. 2019Flexibly Fair Representation Learning by Disentanglementcited by 196
  13. 2018Isolating Sources of Disentanglement in Variational Autoencoderscited by 167
  14. 2018Adversarial Removal of Demographic Attributes from Text Datacited by 166
  15. 2019On the Fairness of Disentangled Representationscited by 144
  16. 2018Disentangled Representation Learning for Non-Parallel Text Style Transfercited by 127
  17. 2015Deep Convolutional Inverse Graphics Networkcited by 121
  18. 2020Masking as an Efficient Alternative to Finetuning for Pretrained Language Modelscited by 92
  19. 2019Evaluating Style Transfer for Textcited by 59
  20. 2017ParaNMT-50M: Pushing the Limits of Paraphrastic Sentence Embeddings with Millions of Machine Translationscited by 44
  21. 2019A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representationscited by 37
  22. 2019SemEval-2014 Task 9: Sentiment Analysis in Twittercited by 20
  23. 2017Aspect-augmented Adversarial Networks for Domain Adaptationcited by 12
  24. 2018Learning Disentangled Representations of Texts with Application to Biomedical Abstractscited by 9
  25. 2020Unsupervised Distillation of Syntactic Information from Contextualized Word Representationscited by 8
  26. 2019HUBERT Untangles BERT to Improve Transfer across NLP Taskscited by 3
  27. 2017Disentangled Representations for Manipulation of Sentiment in Textcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 2; 2023: 4; 2024: 6; 2025: 2; 2026: 1.

15 papers.

Sort: