Disentangling Representations of Text by Masking Transformers
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2013Auto-Encoding Variational Bayescited by 3,980
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2018Deep contextualized word representationscited by 2,285
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2014Unsupervised Domain Adaptation by Backpropagationcited by 1,906
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
27 more
- 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 929
- 2016InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Netscited by 858
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2018Disentangling by Factorisingcited by 614
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2018Towards a Definition of Disentangled Representationscited by 294
- 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
- 2018Large Scale Crowdsourcing and Characterization of Twitter Abusive Behaviorcited by 265
- 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 246
- 2019SemEval-2017 Task 4: Sentiment Analysis in Twittercited by 209
- 2019Flexibly Fair Representation Learning by Disentanglementcited by 196
- 2018Isolating Sources of Disentanglement in Variational Autoencoderscited by 167
- 2018Adversarial Removal of Demographic Attributes from Text Datacited by 166
- 2019On the Fairness of Disentangled Representationscited by 144
- 2018Disentangled Representation Learning for Non-Parallel Text Style Transfercited by 127
- 2015Deep Convolutional Inverse Graphics Networkcited by 121
- 2020Masking as an Efficient Alternative to Finetuning for Pretrained Language Modelscited by 92
- 2019Evaluating Style Transfer for Textcited by 59
- 2017ParaNMT-50M: Pushing the Limits of Paraphrastic Sentence Embeddings with Millions of Machine Translationscited by 44
- 2019A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representationscited by 37
- 2019SemEval-2014 Task 9: Sentiment Analysis in Twittercited by 20
- 2017Aspect-augmented Adversarial Networks for Domain Adaptationcited by 12
- 2018Learning Disentangled Representations of Texts with Application to Biomedical Abstractscited by 9
- 2020Unsupervised Distillation of Syntactic Information from Contextualized Word Representationscited by 8
- 2019HUBERT Untangles BERT to Improve Transfer across NLP Taskscited by 3
- 2017Disentangled Representations for Manipulation of Sentiment in Textcited by 1
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 6; 2025: 2; 2026: 1.
15 papers.
Sort:
- 2022Disentangled Representation Learningcited by 111
- 2024Natural Language Processing for Dialects of a Language: A Surveycited by 40
- 2023Parameter-efficient Modularised Bias Mitigation via AdapterFusioncited by 25
- 2022Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworkscited by 18
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Modelscited by 16
- 2025DIFFER: Disentangling Identity Features via Semantic Cues for Clothes-Changing Person Re-IDcited by 11
- 2024Effective Controllable Bias Mitigation for Classification and Retrieval using Gate Adapterscited by 8
- 2023Removing Spurious Concepts from Neural Network Representations via Joint Subspace Estimationcited by 5
- 2024Survey in Characterizing Semantic Changecited by 5
- 2024Interpretability of Language Models via Task Spacescited by 4
- 2024Unlabeled Debiasing in Downstream Tasks via Class-wise Low Variance Regularizationcited by 3
- 2025Mitigating Confounding in Speech-Based Dementia Detection through Weight Maskingcited by 3
- 2026Transformers learn factored representations2 Feb 2026
- 2025Mitigating Confounding in Speech-Based Dementia Detection through Weight Masking5 Jun 2025
- 2025DIFFER: Disentangling Identity Features via Semantic Cues for Clothes-Changing Person Re-ID28 Mar 2025
- 2024Unlabeled Debiasing in Downstream Tasks via Class-wise Low Variance Regularization29 Sep 2024
- 2024Interpretability of Language Models via Task Spaces10 Jun 2024
- 2024Survey in Characterizing Semantic Change29 Feb 2024
- 2024MAFIA: Multi-Adapter Fused Inclusive LanguAge Models12 Feb 2024
- 2024Effective Controllable Bias Mitigation for Classification and Retrieval using Gate Adapters29 Jan 2024
- 2024Natural Language Processing for Dialects of a Language: A Survey11 Jan 2024
- 2023Removing Spurious Concepts from Neural Network Representations via Joint Subspace Estimation18 Oct 2023
- 2023Breaking Down Word Semantics from Pre-trained Language Models through Layer-wise Dimension Selection8 Oct 2023
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Models4 Oct 2023
3 more
- 2023Parameter-efficient Modularised Bias Mitigation via AdapterFusion13 Feb 2023
- 2022Disentangled Representation Learning21 Nov 2022
- 2022Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworks30 May 2022
- 2022Disentangled Representation Learningcited by 111
- 2024Natural Language Processing for Dialects of a Language: A Surveycited by 40
- 2023Parameter-efficient Modularised Bias Mitigation via AdapterFusioncited by 25
- 2022Modular and On-demand Bias Mitigation with Attribute-Removal Subnetworkscited by 18
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Modelscited by 16
- 2025DIFFER: Disentangling Identity Features via Semantic Cues for Clothes-Changing Person Re-IDcited by 11
- 2024Effective Controllable Bias Mitigation for Classification and Retrieval using Gate Adapterscited by 8
- 2023Removing Spurious Concepts from Neural Network Representations via Joint Subspace Estimationcited by 5
- 2024Survey in Characterizing Semantic Changecited by 5
- 2024Interpretability of Language Models via Task Spacescited by 4
- 2024Unlabeled Debiasing in Downstream Tasks via Class-wise Low Variance Regularizationcited by 3
- 2025Mitigating Confounding in Speech-Based Dementia Detection through Weight Maskingcited by 3
12 most cited of 15 All 15 (JSON)
- 2026Transformers learn factored representations2 Feb 2026
- 2025Mitigating Confounding in Speech-Based Dementia Detection through Weight Masking5 Jun 2025
- 2025DIFFER: Disentangling Identity Features via Semantic Cues for Clothes-Changing Person Re-ID28 Mar 2025
- 2024Unlabeled Debiasing in Downstream Tasks via Class-wise Low Variance Regularization29 Sep 2024
- 2024Interpretability of Language Models via Task Spaces10 Jun 2024
- 2024Survey in Characterizing Semantic Change29 Feb 2024
- 2024MAFIA: Multi-Adapter Fused Inclusive LanguAge Models12 Feb 2024
- 2024Effective Controllable Bias Mitigation for Classification and Retrieval using Gate Adapters29 Jan 2024
- 2024Natural Language Processing for Dialects of a Language: A Survey11 Jan 2024
- 2023Removing Spurious Concepts from Neural Network Representations via Joint Subspace Estimation18 Oct 2023
- 2023Breaking Down Word Semantics from Pre-trained Language Models through Layer-wise Dimension Selection8 Oct 2023
- 2023Discovering Knowledge-Critical Subnetworks in Pretrained Language Models4 Oct 2023
12 newest of 15 All 15 (JSON)