rag-assign-cross-encoder

2026-2 RAG ๊ณผ์ œ์šฉ cross-encoder reranker. google/electra-base-discriminator ์—์„œ ์‹œ์ž‘ํ•ด ๊ณผ์ œ ์ œ๊ณต ๋ฐ์ดํ„ฐ๋กœ ํ•™์Šต. ์ž…๋ ฅ: (question, f"{title} | {text}"), ์ถœ๋ ฅ: logits[:, 0] ๊ด€๋ จ์„ฑ ์ ์ˆ˜. BM25 ์ƒ์œ„ 100 ์„ ์ด ์ ์ˆ˜๋กœ ์žฌ์ •๋ ฌ.

  • ํ•™์Šต: ์งˆ๋ฌธ๋งˆ๋‹ค gold 1 + negative 7 ๊ทธ๋ฃน์—์„œ gold ๋ฅผ ๊ณ ๋ฅด๋Š” cross-entropy
  • negative ํ›„๋ณด: BM25 ์ƒ์œ„ 100 ์„ yali98/rag-assign-dpr ๋กœ ์žฌ์ •๋ ฌํ•œ ์ƒ์œ„ 30 + qrels hard_neg (goldยทweak_pos, ์ •๋‹ต ๋ฌธ์ž์—ด ํฌํ•จ ๋ฌธ์„œ ์ œ์™ธ) โ†’ ๋ฐ์ดํ„ฐ์…‹ yali98/rag-assign-ce-negatives
  • ํ•™์Šต ์งˆ๋ฌธ 57880๊ฐœ (val 1,000 ์ œ์™ธ), best: epoch 2 (val gold MRR + gold/weak_pos@1 ๊ธฐ์ค€)
  • ํ•™์Šต GPU: RTX 3080 (bf16 autocast), epoch ๋‹น ์•ฝ 28๋ถ„
hyperparameter value
epochs 2
lr 2e-05
q_per_batch 8
group 8
max_len 224
neg_depth 30
warmup_ratio 0.1
weight_decay 0.01
grad_clip 1.0
seed 42

val ๊ธฐ๋ก: history.json

from transformers import AutoTokenizer, AutoModelForSequenceClassification
tok = AutoTokenizer.from_pretrained("yali98/rag-assign-cross-encoder")
model = AutoModelForSequenceClassification.from_pretrained("yali98/rag-assign-cross-encoder")
Downloads last month
8
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for yali98/rag-assign-cross-encoder

Finetuned
(91)
this model