Trust-Aware Recommender System based on TBL & Fairness
Project description
⚖️ FairRecSys: Trust-Aware Fashion Recommender
Beyond Popularity Bias: A TBL-Fair Recommendation Framework based on LLM-GNN Hybrid Architecture.
이 라이브러리는 2026 ICCT에서 발표예정인 "Trust-Aware Fashion Recommendation" 논문의 공식 구현체입니다.
단순 클릭 데이터가 아닌 **리뷰의 내재적 가치(Intrinsic Value)**와 **신뢰도(Trustworthiness)**를 학습하여, 스몰 브랜드와 상생하는 윤리적 추천 시스템을 구축할 수 있습니다.
🌟 Key Features (핵심 기능)
- Trust-Weighted Loss (신뢰도 가중 손실 함수):
- 통계적으로 입증된 '진실성 효과(4점 > 5점)'와 '부정성 편향(1점 > 2점)'을 딥러닝 학습 과정(Loss Function)에 반영합니다.
- Cold-Start Solved via LLM:
- 데이터가 없는 상품에 대해 LLM이 추론한 내재적 가치를 활용합니다.
- Easy-to-Use Interface:
- 복잡한 전처리 없이 몇 줄의 코드로
TrustAwareBERT모델을 학습시킬 수 있습니다.
- 복잡한 전처리 없이 몇 줄의 코드로
🚀 Installation (설치 방법)
# Hugging Face 저장소에서 다운로드
git clone [https://huggingface.co/HabinKim/trust-aware-bert-fashion](https://huggingface.co/HabinKim/trust-aware-bert-fashion)
cd trust-aware-bert-fashion
pip install .
💻 Usage (사용 방법)
이 라이브러리는 복잡한 전처리 없이 간단하게 모델을 불러와 학습시킬 수 있습니다.
import torch
from fair_rec import TrustAwareBERT, TrustWeightedLoss, Trainer
from torch.utils.data import DataLoader
# 1. 모델 초기화 (Pre-trained BERT 로드)
model = TrustAwareBERT(pretrained_model='bert-base-uncased')
# 2. 가중 손실 함수 설정 (Study 1의 회귀분석 결과 반영)
# 신뢰도 점수(Trust Score)를 기반으로 오차를 계산합니다.
criterion = TrustWeightedLoss()
# 3. 데이터 로더 준비 (사용자의 데이터를 여기에 넣으세요)
# train_loader = DataLoader(...)
# 4. 학습 시작
# Trainer 클래스가 학습 루프를 자동으로 관리합니다.
trainer = Trainer(
model=model,
train_loader=train_loader, # 실제 데이터 로더
val_loader=None, # 검증 데이터 로더 (선택)
criterion=criterion,
optimizer=torch.optim.AdamW(model.parameters(), lr=2e-5),
device='cuda' if torch.cuda.is_available() else 'cpu'
)
# 에폭(Epoch) 수 설정 후 학습 실행
trainer.train(epochs=3)
📊 Performance (성능)
| Model | NDCG@10 | Fairness (Gini) | Sustainability CTR |
|---|---|---|---|
| Standard BERT | 0.42 | 0.65 (High Bias) | 2.1% |
| FairRecSys (Ours) | 0.45 | 0.48 (Balanced) | 5.4% |
📜 Citation (인용)
본 라이브러리를 연구에 활용하실 경우 아래 논문을 인용해 주세요.
@inproceedings{kim2026trust,
title={Trust-Aware Fashion Recommendation: Bridging the Gap between Behavioral Helpfulness and Deep Learning},
author={Kim, Habin},
booktitle={Proceedings of the International Conference on Convergence Technology (ICCT)},
year={2026}
}
📧 Contact
- Author: Habin Kim (Ph.D.)
- Email: with.habin@gmail.com
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fair_rec_sys-0.1.1.tar.gz.
File metadata
- Download URL: fair_rec_sys-0.1.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67bc6de45735fa59a1fee6da81f05c7a806582755758ab4a3496fb6552c8a948
|
|
| MD5 |
98221266a4aab8ce36b5f3506b36a518
|
|
| BLAKE2b-256 |
14a9bf6ed6f74965c89ac878640a2fd6417109b623fc93f2eccc6faa8cf41b1f
|
File details
Details for the file fair_rec_sys-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fair_rec_sys-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
944a5adf5fddb10a17d62f256af2540bb96d414bad99bbb58f65f0c6d64d7f1d
|
|
| MD5 |
3f587e212ba3fa85dcc9fb3e595886be
|
|
| BLAKE2b-256 |
ed374b0d9d0e8af4417b7fa89c03745db2fb1200a3accbfb890c111ecc5b8e65
|