Is ChatGPT Fair for Recommendation? Evaluating Fairness in Large Language Model Recommendation

Jizhi Zhang, Keqin Bao, Yang Zhang, Wenjie Wang, Fuli Feng +1 more
5/12/2023
cs.IRcs.CLcs.CY

Official code: jizhi-zhang/FaiRLLM (43 stars, last commit 2023-06-15).

Abstract

The remarkable achievements of Large Language Models (LLMs) have led to the emergence of a novel recommendation paradigm -- Recommendation via LLM (RecLLM). Nevertheless, it is important to note that LLMs may contain social prejudices, and therefore, the fairness of recommendations made by RecLLM requires further investigation. To avoid the potential risks of RecLLM, it is imperative to evaluate the fairness of RecLLM with respect to various sensitive attributes on the user side. Due to the differences between the RecLLM paradigm and the traditional recommendation paradigm, it is problematic to directly use the fairness benchmark of traditional recommendation. To address the dilemma, we propose a novel benchmark called Fairness of Recommendation via LLM (FaiRLLM). This benchmark comprises carefully crafted metrics and a dataset that accounts for eight sensitive attributes1 in two recommendation scenarios: music and movies. By utilizing our FaiRLLM benchmark, we conducted an evaluation of ChatGPT and discovered that it still exhibits unfairness to some sensitive attributes when generating recommendations. Our code and dataset can be found at https://github.com/jizhi-zhang/FaiRLLM.

View on arXivView PDF

Code Implementations(1)

The code for "Is ChatGPT Fair for Recommendation? Evaluating Fairness in Large Language Model Recommendation"

437Shell, PythonMay 12, 20233 years ago

Cite this paper

@article{zhang2023chatgpt,
  title  = {Is ChatGPT Fair for Recommendation? Evaluating Fairness in Large Language Model Recommendation},
  author = {Jizhi Zhang and Keqin Bao and Yang Zhang and Wenjie Wang and Fuli Feng and Xiangnan He},
  year   = {2023},
  eprint = {2305.07609},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07609v3}
}

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/2305.07609.svg)](https://codeofpaper.com/paper/2305.07609)

Discussion