paper-with-me

Papers

Towards Safer Pretraining: Analyzing and Filtering Harmful Content in Webscale datasets for Responsible LLMs

2025-05-04 · Sai Krishna Mendu, Harish Yenala, Aditi Gulati, Shanu Kumar, Parag Agrawal

Large language models (LLMs) have become integral to various real-world applications, leveraging massive, web-sourced datasets like Common Crawl, C4, and FineWeb for pretraining. While these datasets provide linguistic data essential for high-quality natural language generation, they often contain harmful content, such as hate speech, misinformation, and biased narratives. Training LLMs on such unfiltered data risks perpetuating toxic behaviors, spreading misinformation, and amplifying societal biases which can undermine trust in LLM-driven applications and raise ethical concerns about their use. This paper presents a large-scale analysis of inappropriate content across these datasets, offering a comprehensive taxonomy that categorizes harmful webpages into Topical and Toxic based on their intent. We also introduce a prompt evaluation dataset, a high-accuracy Topical and Toxic Prompt (TTP), and a transformer-based model (HarmFormer) for harmful content filtering. Additionally, we create a new multi-harm open-ended toxicity benchmark (HAVOC) and provide crucial insights into how models respond to adversarial toxic inputs. We share TTP, TTP-Eval, HAVOC and a sample of C4 inferenced on HarmFormer. Our work offers insights into ensuring safer LLM pretraining and serves as a resource for Responsible AI (RAI) compliance.

📄 PDF Abstract BibTeX arXiv:2505.02009

Code (1)

themendu/TowardsSaferPretraining 공식 구현

Tasks

MisinformationText Generation

Similar Papers 제목 키워드 기반

What Are They Filtering Out? A Survey of Filtering Strategies for Harm Reduction in Pretraining Datasets

2025-02-17 · Marco Antonio Stranisci, Christian Hardmeier

Data filtering strategies are a crucial component to develop safe Large Language Models (LLM), since they support the removal of harmful contents from pretraining datasets. There is a lack of research on the actual impac…

When Should We Introduce Safety Interventions During Pretraining?

2026-01-11 · Dylan Sam, Sachin Goyal, Pratyush Maini, Alexander Robey 외 arxiv

Prior work has shown that safety interventions applied during pretraining, such as removing and rephrasing harmful content, can substantially improve the robustness of the resulting models. In this paper, we study the fu…

Where Does Toxicity Live? Mechanistic Localization and Targeted Suppression in Language Models

2026-05-27 · Himanshu Beniwal, Mayank Singh arxiv

Large language models frequently generate toxic, hateful, or harmful content, yet existing mitigation methods rely on costly retraining or output-level filtering with no mechanistic insight into where toxicity originates…

Towards Safer Large Language Models through Machine Unlearning

2024-02-15 · Zheyuan Liu, Guangyao Dou, Zhaoxuan Tan, Yijun Tian 외

The rapid advancement of Large Language Models (LLMs) has demonstrated their vast potential across various domains, attributed to their extensive pretraining knowledge and exceptional generalizability. However, LLMs ofte…

Machine UnlearningNegation

Activation Steering for Bias Mitigation: An Interpretable Approach to Safer LLMs

2025-08-12 · Shivam Dubey arxiv

As large language models (LLMs) become more integrated into societal systems, the risk of them perpetuating and amplifying harmful biases becomes a critical safety concern. Traditional methods for mitigating bias often r…