Skip to main content
QUICK REVIEW

[Paper Review] APPDIA: A Discourse-aware Transformer-based Style Transfer Model for Offensive Social Media Conversations

Katherine Atwell, Sabit Hassan|arXiv (Cornell University)|Sep 17, 2022
Hate Speech and Cyberbullying DetectionComputer Science11 citations
TL;DR

This paper introduces APPDIA, a discourse-aware Transformer-based style transfer model that reduces offensiveness in Reddit comments while preserving semantic meaning by integrating discourse relations from the Penn Discourse Treebank and Rhetorical Structure Theory. It achieves significant improvements in content preservation (48% preference vs. 36% for baseline) and coherence (37% vs. 32%) in human evaluation, especially for comments with explicit discourse structure.

ABSTRACT

Using style-transfer models to reduce offensiveness of social media comments can help foster a more inclusive environment. However, there are no sizable datasets that contain offensive texts and their inoffensive counterparts, and fine-tuning pretrained models with limited labeled data can lead to the loss of original meaning in the style-transferred text. To address this issue, we provide two major contributions. First, we release the first publicly-available, parallel corpus of offensive Reddit comments and their style-transferred counterparts annotated by expert sociolinguists. Then, we introduce the first discourse-aware style-transfer models that can effectively reduce offensiveness in Reddit text while preserving the meaning of the original text. These models are the first to examine inferential links between the comment and the text it is replying to when transferring the style of offensive Reddit text. We propose two different methods of integrating discourse relations with pretrained transformer models and evaluate them on our dataset of offensive comments from Reddit and their inoffensive counterparts. Improvements over the baseline with respect to both automatic metrics and human evaluation indicate that our discourse-aware models are better at preserving meaning in style-transferred text when compared to the state-of-the-art discourse-agnostic models.

Motivation & Objective

  • To address the lack of parallel, expert-annotated datasets for offensive-to-inoffensive style transfer in social media.
  • To improve semantic content preservation during style transfer of offensive Reddit comments by incorporating discourse structure.
  • To develop and evaluate discourse-aware Transformer models that leverage inferential links between a comment and its parent post.
  • To demonstrate that discourse-aware models outperform discourse-agnostic baselines in both automatic and human evaluation metrics.
  • To release the first publicly available, expert-annotated dataset of offensive Reddit comments with inoffensive counterparts and discourse relation tags.

Proposed method

  • Annotate ~2,000 offensive Reddit comments with inoffensive counterparts using expert sociolinguists to create a parallel corpus.
  • Integrate Penn Discourse Treebank relations within individual comments to model internal discourse structure.
  • Parse comment-parent post pairs using Rhetorical Structure Theory (RST) discourse trees to model inter-sentential relations.
  • Fine-tune pretrained Transformer models (e.g., BART, T5) with discourse-aware attention mechanisms to guide style transfer.
  • Train two distinct discourse-aware model variants: one using intra-comment relations and another using inter-sentence RST relations.
  • Evaluate models using automatic metrics and human evaluation on content preservation, coherence, and overall preference.

Experimental results

Research questions

  • RQ1Can discourse-aware integration in style transfer models improve semantic content preservation compared to discourse-agnostic baselines?
  • RQ2How does the presence of discourse relations in comments affect the performance of style transfer models?
  • RQ3To what extent do discourse-aware models preserve the original meaning while reducing offensiveness in short social media texts?
  • RQ4Does combining multiple discourse frameworks (e.g., PDTB and RST) lead to better content preservation than using a single framework?
  • RQ5Can discourse parsing enhance the coherence and semantic fidelity of style-transferred offensive comments?

Key findings

  • The discourse-aware model achieved a 48% preference rate for content preservation, significantly outperforming the 36% rate of the discourse-agnostic baseline.
  • For comments containing discourse relations, the discourse-aware model was preferred in 56% of cases for content preservation, compared to 30% for the baseline.
  • The discourse-aware model improved coherence by 37% compared to 32% for the baseline, with a more pronounced effect on content preservation.
  • Human evaluation showed that 40% of responses preferred the discourse-aware model overall, compared to 29% for the baseline.
  • The results indicate that discourse integration is particularly effective for comments with explicit inferential or rhetorical links to their parent content.
  • The study confirms that discourse-aware models are better at preserving semantic meaning during offensive-to-inoffensive style transfer than standard fine-tuned Transformers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.