← All writing

Mitigating Bias in Recommender Systems

Research and reading notes on bias and fairness in recommender systems and machine learning.

Mitigate the bias of RS

A Novel Study on Tools and Frameworks for Mitigating Bias in Multimodal Datasets

Need of Identifying Bias in Datasets

Edizel et al.

Bountouridis et al.

Bender and Friedman.

Tools and Frameworks for Mitigating Bias in Datasets

1.REVISE (REvealing VIsual BiaSEs)

2.FairML

3.IBM AI Fairness 360

4.Accenture’s “Teach and Test” Methodology

5.Google’s What-If Tool

6.Microsoft’s Fairlearn

Mitigating Sentiment Bias for Recommender Systems

Biases in Recommender Systems

1.选择偏见(Selection bias): 表明观察到的评分并不是所有评分的代表性样本

2.一致性偏见(Conformity bias): 个人和公共意见之间的差异

3.位置偏见(Position bias): 用户倾向于与推荐列表中排名较高的物品进行互动

4.归纳偏见(Inductive bias): 引入假设以实现对训练数据以外的更好泛化

5.流行度偏见(Popularity bias): RS更倾向于频繁推荐热门物品,而不是它们在原始数据中的流行度

6.暴露偏见(Exposure bias): 用户不是随机地暴露于物品

7.情感偏见(Sentiment bias): 向关键用户提供质量低下的推荐(即用户倾向于给予较少的积极评论),并对利基物品提供不公平的推荐(即从小众群体中收到积极评论的物品)。

Existence of Sentiment Bias in RS and Comparisons with Other Biases

Base RS Model

大多数,如果不是全部,RS模型都包含两个核心模块:特征提取器和评分器。

特征提取器将输入(例如,评分矩阵和/或评论)转换为低维数值向量(即嵌入),这些向量表示用户、物品和/或评论的特征。

得分器将特征提取器的输出,即嵌入,转换为数值分数。该分数被用作评分预测任务中的预测评分,或者在排名推荐给用户的物品中用于前K推荐任务。

基本的RS(推荐系统)模型通常包括以下几个核心组件:

  1. 用户和物品表示: 这些模型通过学习用户和物品的表示来捕捉它们之间的关系。这可以通过嵌入(embedding)技术来实现,将用户和物品映射到低维度的向量空间中。
  2. 评分预测: RS的主要任务之一是预测用户对物品的评分或偏好。这可以通过计算用户向量和物品向量之间的相似性来实现。常见的方法包括点积、余弦相似性等。
  3. 损失函数: 为了训练模型,需要定义一个损失函数,该函数衡量模型的预测与实际用户反馈之间的差异。常见的损失函数包括均方误差(Mean Squared Error,MSE)。
  4. 优化器: 为了最小化损失函数,需要使用优化算法来调整模型的参数。随机梯度下降(Stochastic Gradient Descent,SGD)是一个常见的优化算法。
  5. 训练数据: RS模型的训练数据通常由用户的历史行为(例如,购买、评分、点击)组成。模型通过学习用户与物品的交互来进行训练。

ELIMINATING SENTIMENT BIAS

L(RS)L=L(RS)+λ1L(bias)+λ2L(ent)+λ3L(emb)\mathcal{L}^{(RS)}\\ \mathcal{L} = \mathcal{L}^{(RS)}+\lambda_1\mathcal{L}^{(bias)}+\lambda_2\mathcal{L}^{(ent)}+\lambda_3\mathcal{L}^{(emb)}

L(bias)\mathcal{L}^{(bias)} helps keep the RS models from being in favor of (i.e., systematically giving higher ratings on)

a certain item group.

L(ent)\mathcal{L}^{(ent)} increases the uncertainty of rating prediction and thus spreads the ratings over the prediction space.

L(emb)\mathcal{L}^{(emb)} only applies to review-based RS models.

EXPERIMENTS ON DE-BIASING

RQ1:所提出的框架是否消除了RS模型中的情感偏见? RQ2:所提出的框架对推荐质量有什么影响? RQ3:我们框架中的每个正则化器如何有助于去偏?

A Survey on Bias and Fairness in Machine Learning

Types of Bias

Data to Algorithm.

(1) Measurement Bias. 测量或报告偏见源于我们选择、利用和衡量特定特征的方式。

(2) Omitted Variable Bias. 遗漏变量偏差发生在模型中遗漏了一个或多个重要变量时。

(3) Representation Bias. 表示偏差源于在数据收集过程中人口中抽样的方式。

(4) Aggregation Bias. 聚合偏差(或生态谬误)是指从观察整个人口中对个体得出错误结论。

Algorithm to User.

(1) Algorithmic Bias.

(2) User Interaction Bias.

(3) Popularity Bias.

(4) Emergent Bias.

(5) Evaluation Bias.

User to Data.

(1) Historical Bias.

(2) Population Bias.

(3) Self-Selection Bias.

(4) Social Bias.

(5) Behavioral Bias.

(6) Temporal Bias.

(7) Content Production Bias.

ALGORITHMIC FAIRNESS

10 definitions

METHODS FOR FAIR MACHINE LEARNING

(1) Pre-processing.

(2) In-processing.

(3) Post-processing.

Data preprocessing techniques for classification without discrimination

s

AI Fairness 360

Step 1: Write import statements

Step 2: Set bias detection options, load dataset, and split between train and test

Step 3: Compute fairness metric on original training dataset

Step 4: Mitigate bias by transforming the original dataset

Step 5: Compute fairness metric on transformed training dataset

RS

Retrieval

Ranking

Debias

Model-agnostic counterfactual reasoning for eliminating popularity bias in recommender system.

Fairness in Recommendation:A Survey

1.Regularization and Constrained Optimization:

So far, the techniques for promoting fairness in recommendation are mainly in the form of regularization and constrained optimization.

2.Adversary Learning.

3.Reinforcement Learning.

4.Causal Methods

5.Other Methods:

Fighting fire with fire: Using antidote data to improve polarization and fairness of recommender systems

Recommendations as Treatments: Debiasing Learning and Evaluation

u∈{1,2,...,U}i∈{1,2,...,I}Y∈RU×IO∈{0,1}U×I,[Ou,i=1]⇔[Yu,i observed]R(Y^)=1U×I∑u=1U∑i=1Iδu,i(Y,Y^)E[R^(Y^)]≠R(Y^)R^IPS(Y^∣P)=1U×I∑(u,i):Ou,i=1δu,i(Y,Y^)Pu,iY^ERM=arg⁡min⁡Y^∈H {R^IPS(Y^∣P)}u \in \{1,2,...,U\}\\ i \in \{1,2,...,I\}\\ Y \in \R^{U\times I} \\ O \in \{0,1\}^{U \times I},[O_{u,i} =1] \Lrarr[Y_{u,i} \ observed]\\ R(\hat Y) = \frac {1}{U \times I}\sum_{u = 1}^{U}\sum_{i = 1}^{I}\delta_{u,i}(Y, \hat Y) \\ E[\hat R(\hat Y)] \ne R(\hat Y)\\ \hat R_{IPS}(\hat Y |P ) = \frac {1}{U \times I}\sum_{(u, i):O_{u,i} = 1}\frac{\delta_{u,i}(Y, \hat Y)}{P_{u,i}} \\ \hat Y^{ERM} = \mathop{\arg\min}_{\hat Y \in \mathcal H} \ \{\hat R_{IPS}(\hat Y |P )\}

MAE, MSE, Accuracy, DCG

∣Yu,i−Y^u,i∣|Y_{u, i} - \hat Y_{u, i}|

Matrix Factorization

Yn×m=Uk×i×Ik×mY^=VTW+Aarg⁡min⁡V,W,A[∑δu,i(Y,VTW+A)Pu,i+λ(∣∣V∣∣F2+∣∣W∣∣F2)]F(V,W)=IPS∑u,i(Yu,i−Vu∗Wi)2+λ∑u∣∣Vu∣∣2+λ∑i∣∣Wi∣∣2=IPS∑u,i(Yu,i−∑kVu,k∗Wk,i)2+λ∑u∑kVu,k2+λ∑i∑kWk,i2\partF\partVx=−IPS∑i2(Yx,i−Vx∗Wi)Wi+2λVx\partF\partWx=−IPS∑u2(Yu,x−Vu∗Wx)Vu+2λWxY_{n \times m} = U_{k \times i} \times I_{k \times m}\\ \hat Y = V^{T}W+A\\ \mathop{\arg \min}_{V,W,A}[\sum\frac{\delta_{u,i}(Y, V^{T}W+A)}{P_{u,i}}+\lambda(||V||^2_F+||W||^2_F)]\\ F(V,W)=IPS\sum_{u, i}(Y_{u, i} - V_u*W_i)^2 + \lambda\sum_u||V_u||^2 + \lambda\sum_i||W_i||^2\\ =IPS\sum_{u, i}(Y_{u, i} - \sum_kV_{u,k}*W_{k,i})^2 + \lambda\sum_u\sum_kV_{u,k}^2 + \lambda\sum_i\sum_kW_{k,i}^2 \\ \frac{\part F}{\part V_{x}} = -IPS\sum_{i}2(Y_{x, i} - V_{x}*W_{i})W_i + 2\lambda V_x\\ \frac{\part F}{\part W_{x}} = -IPS\sum_{u}2(Y_{u, x} - V_{u}*W_{x})V_u + 2\lambda W_x

Limited-memory BFGS

Code

← Back to ArchiveBack to top ↑

Comments

No approved comments yet.

Your display name and plain-text comment become public only after owner approval. No account or email is required.