Adapting Safe-for-Work Classifier for Malaysian Language Text: Enhancing Alignment in LLM-Ops Framework

Aisyah Razak,Ariff Nazhan,Kamarul Adha,Wan Adzhar Faiq Adzlan,Mas Aisyah Ahmad,Ammar Azman
2024-07-30
Abstract:As large language models (LLMs) become increasingly integrated into operational workflows (LLM-Ops), there is a pressing need for effective guardrails to ensure safe and aligned interactions, including the ability to detect potentially unsafe or inappropriate content across languages. However, existing safe-for-work classifiers are primarily focused on English text. To address this gap for the Malaysian language, we present a novel safe-for-work text classifier tailored specifically for Malaysian language content. By curating and annotating a first-of-its-kind dataset of Malaysian text spanning multiple content categories, we trained a classification model capable of identifying potentially unsafe material using state-of-the-art natural language processing techniques. This work represents an important step in enabling safer interactions and content filtering to mitigate potential risks and ensure responsible deployment of LLMs. To maximize accessibility and promote further research towards enhancing alignment in LLM-Ops for the Malaysian context, the model is publicly released at <a class="link-external link-https" href="https://huggingface.co/malaysia-ai/malaysian-sfw-classifier" rel="external noopener nofollow">this https URL</a>.
Computation and Language
What problem does this paper attempt to address?
The paper attempts to address the issue of large language models (LLMs) potentially generating harmful or inappropriate content in practical applications within the Malaysian context. Specifically, existing Safe-for-Work (SFW) classifiers are primarily designed for English text and lack support for the Malaysian language. Therefore, the authors developed an SFW text classifier specifically for the Malaysian language and created the first dataset covering various categories of harmful content. Through this research, they aim to enhance the safety and ethical standards of LLMs in operational processes, ensuring that AI systems can identify and filter out potentially inappropriate content, thereby creating a safer and more respectful interaction environment. Additionally, this study fills a gap in the field of harmful content recognition for the Malaysian language.