Predicting User Preferences in LLMs: A Real - World Data - Driven Approach Based on RLHF
Abstract
Aligning large language model (LLM) outputs with human preferences remains challenging, as traditional metrics like perplexity fail to capture multi-dimensional user satisfaction. This paper proposes a data-driven reinforcement learning from human feedback (RLHF) approach that integrates flipping-based data augmentation and ensemble learning to optimize user preference prediction. Leveraging a multilingual dataset from the Chatbot Arena platform (containing user prompts, paired LLM responses, and human evaluations), we design a flipping augmentation strategy that generates mirrored samples by swapping response positions and inverting labels, thereby balancing dataset distribution and mitigating position bias. Furthermore, by extracting statistical text features (e.g., length, punctuation frequency, language ratios) and combining gradient-boosted models (CatBoost, LightGBM, XGBoost), we build a stacked ensemble model with logistic regression. Threshold tuning (optimal cutoff: 0.503) elevates accuracy to 60.2%. Experiments demonstrate a 3.2% generalization improvement on unflipped test sets, validating the effectiveness of position bias mitigation. This study provides a systematic framework for RLHF deployment in multilingual environments and highlights future challenges related to complex biases and computational efficiency.
References
- Ouyang, L., Wu, J., Jiang, X., Mishkin, P., Radford, A., Kelton, F., ... & Leike, J. (2022). Training language models to follow instructions with human feedback. arXiv preprint arXiv: 2203.02155. https: //arxiv.org/abs/2203.02155
- Stiennon, N., Ouyang, L., Wu, J., Ziegler, D. M., Lowe, R., Voss, C., ... & Amodei, D. (2020). Learning to summarize from human feedback. Advances in Neural Information Processing Systems (NeurIPS). https: //arxiv.org/abs/2009.01325
- Chen, G., Xiao, S., Zhang, C., & Zhao, H. (2023). A Theory-Driven Deep Learning Method for Voice Chat–Based Customer Response Prediction. Information Systems Research, 34(4). https: //doi.org/10.1287/isre.2022.1196
- Christiano, P. F., Leike, J., Brown, T., Martic, M., Legg, S., & Amodei, D. (2017). Deep reinforcement learning from human preferences. In I. Guyon et al. (Eds.), Advances in Neural Information Processing Systems (pp. 4299–4307). Curran Associates. https: //arxiv.org/abs/1706.03741
- Casper, S., Li, X. L., Ghosh, S., Gros, S., & Schuurmans, D. (2023). Open problems and fundamental limitations of reinforcement learning from human feedback. arXiv preprint, arXiv: 2307.15217. https: //arxiv.org/abs/2307.15217
- Hu, J., Wu, P., Wang, S., Wang, B., & Yang, G. (2024). A Human Feedback Strategy for Photoresponsive Molecules in Drug Delivery: Utilizing GPT-2 and Time-Dependent Density Functional Theory Calculations. Pharmaceutics, 16(8), 1014–1014. https: //doi.org/10.3390/pharmaceutics16081014
- Joachims, T., Granka, L., Pan, B., Hembrooke, H., & Gay, G. (2005). Accurately interpreting clickthrough data as implicit feedback. In Proceedings of the 28th annual international ACM SIGIR conference on Research and development in information retrieval (pp. 154–161). https: //doi.org/10.1145/1076034.1076063
- Ai, Q., Luo, H., Yang, J., & Baeza-Yates, R. (2018). Unbiased learning to rank: Theory and practice. Proceedings of the 27th ACM International Conference on Information and Knowledge Management (CIKM), 2301–2302. https: //doi.org/10.1145/3269206.3274291
- Rahman, M. M., Irbaz, M. S., North, K., Williams, M. S., Zampieri, M., & Lybarger, K. (2024). Health text simplification: An annotated corpus for digestive cancer education and novel strategies for reinforcement learning. Journal of Biomedical Informatics, 158, 104727–104727. https: //doi.org/10.1016/j.jbi.2024.104727
- Bai, Y., Jones, A., Ndousse, K., Fort, S., Askell, A., Chen, A., ... & Amodei, D. (2022). Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint, arXiv: 2204.05862. https: //arxiv.org/abs/2204.05862
- Liu, Y., Yang, Z., Yu, Z., Liu, Z., Liu, D., Lin, H., Li, M., Ma, S., Maxim Avdeev, & Shi, S. (2023). Generative artificial intelligence and its applications in materials science: Current situation and future perspectives. Journal of Materiomics, 9(4). https: //doi.org/10.1016/j.jmat.2023.05.001
- Zhou, M., Li, F., Zhang, F., Zheng, J., & Ma, Q. (2023). Meta In-Context Learning: Harnessing Large Language Models for Electrical Data Classification. Energies, 16(18), 6679–6679. https: //doi.org/10.3390/en16186679
- Chidambarathanu, K., & Shunmuganathan, K. L. (2017). Predicting user preferences on changing trends and innovations using SVM based sentiment analysis. Cluster Computing, 22. https: //doi.org/10.1007/s10586-017-1505-0
- Chen, Y., Xie, N., Xu, H., Chen, X., & Lee, D.-H. (2023). A Multi-Context Aware Human Mobility Prediction Model Based on Motif-Preserving Travel Preference Learning. IEEE Transactions on Intelligent Transportation Systems, 25(2), 2139–2152. https: //doi.org/10.1109/tits.2023.3314281
- Zhou, Z.-H. (2012). Ensemble methods: Foundations and algorithms. CRC Press. https: //doi.org/10.1201/b12207
- Sokolova, M., & Lapalme, G. (2009). A systematic analysis of performance measures for classification tasks. Information Processing & Management, 45(4), 427–437. https: //doi.org/10.1016/j.ipm.2009.03.002
- Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., & Gulin, A. (2018). CatBoost: Unbiased boosting with categorical features. In S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, & R. Garnett (Eds.), Advances in Neural Information Processing Systems 31 (pp. 6638–6648). Curran Associates.
- Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q., & Liu, T.-Y. (2017). LightGBM: A highly efficient gradient boosting decision tree. In I. Guyon, U. von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems 30 (pp. 3149–3157). Curran Associates.
- Chen, T., & Guestrin, C. (2016). XGBoost: A scalable tree boosting system. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 785–794. Association for Computing Machinery. https: //doi.org/10.1145/2939672.2939785