Characterising Toxicity in Generative Large Language Models

Zhiyao Zhang, Yazan Mash'Al, Yuhan Wu
1/10/2026
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

In recent years, the advent of the attention mechanism has significantly advanced the field of natural language processing (NLP), revolutionizing text processing and text generation. This has come about through transformer-based decoder-only architectures, which have become ubiquitous in NLP due to their impressive text processing and generation capabilities. Despite these breakthroughs, language models (LMs) remain susceptible to generating undesired outputs: inappropriate, offensive, or otherwise harmful responses. We will collectively refer to these as ``toxic'' outputs. Although methods like reinforcement learning from human feedback (RLHF) have been developed to align model outputs with human values, these safeguards can often be circumvented through carefully crafted prompts. Therefore, this paper examines the extent to which LLMs generate toxic content when prompted, as well as the linguistic factors -- both lexical and syntactic -- that influence the production of such outputs in generative models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2026characterising,
  title  = {Characterising Toxicity in Generative Large Language Models},
  author = {Zhiyao Zhang and Yazan Mash'Al and Yuhan Wu},
  year   = {2026},
  eprint = {2601.06700},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.06700v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.06700.svg)](https://codeofpaper.com/paper/2601.06700)

Discussion