Downloads · 30 days
0
HabinKim/trust-aware-bert-fashion
trust-aware-bert-fashion is a machine learning model from HabinKim. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](LICENSE) [](https://www.python.org/downloads/release/python-380/)
Downloads · 30 days
0
Access
Public
Updated Dec 10, 2025
Repo size
438 MB
Likes
1
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
Beyond Popularity Bias: A TBL-Fair Recommendation Framework based on LLM-GNN Hybrid Architecture.
이 라이브러리는 2026 ICCT에서 발표된 "Trust-Aware Fashion Recommendation" 논문의 공식 구현체입니다.
단순 클릭 데이터가 아닌 **리뷰의 내재적 가치(Intrinsic Value)**와 **신뢰도(Trustworthiness)**를 학습하여, 스몰 브랜드와 상생하는 윤리적 추천 시스템을 구축할 수 있습니다.
TrustAwareBERT 모델을 학습시킬 수 있습니다.# 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 .
이 라이브러리는 복잡한 전처리 없이 간단하게 모델을 불러와 학습시킬 수 있습니다.
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)
| 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% |
본 라이브러리를 연구에 활용하실 경우 아래 논문을 인용해 주세요.
@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}
}