@inproceedings{ed58138bd5a74851916f49c69276d954,
title = "Enhancing RLHF in LLMs: Comparing BERT, XGBoost, and Deep Models for Bias Detection",
abstract = "This study explores bias detection in large language models (LLMs) to support Reinforcement Learning from Human Feedback (RLHF) pipelines aimed at reducing social bias. We compare three classifiers-a frozen BERT-based model with a classification head, a custom deep learning model, and an XGBoost model-on the StereoSet dataset. This dataset includes five bias categories: gender, profession, race, religion, and no bias. To address class imbalance, we generated synthetic samples using Google's gemma-2-9b-it model. Results show that the BERT-based model achieved the highest overall accuracy 0.92 and outperformed others across all categories, particularly in detecting subtle biases. The deep learning model was ranked second with 0.85 accuracy, while XGBoost lagged at 0.75, struggling with no-bias detection. These findings confirm that architecture choice and training strategy significantly impact bias classification and reinforce the importance of integrating reliable detection models into RLHF workflows.",
keywords = "Deep Learning, LLMs, Natural Language Processing, Transformers, XGBoost",
author = "Walid Torfa and Omar Elgendy and Nassif, \{Ali Bou\}",
note = "Publisher Copyright: {\textcopyright} 2025 IEEE.; 18th International Conference on Developments in eSystems Engineering, DeSE 2025 ; Conference date: 10-11-2025 Through 12-11-2025",
year = "2025",
doi = "10.1109/DeSE68208.2025.11367955",
language = "English",
series = "Proceedings - 18th International Conference on Developments in eSystems Engineering, DeSE 2025",
publisher = "Institute of Electrical and Electronics Engineers Inc.",
pages = "226--231",
editor = "Obe, \{Dhiya Al-Jumeily\} and Sulaf Assi and Jamila Mustafina and Abir Hussain and Manoj Jayabalan and Roxana Radvan and Bogdan Bita and Hissam Tawfik and Neil Rowe",
booktitle = "Proceedings - 18th International Conference on Developments in eSystems Engineering, DeSE 2025",
address = "United States",
}