SJ-ko rerank 75M

A Korean cross-encoder reranker used by the SJ-ko harness (github.com/sjmoon0621/sj-ko-harness). The backbone is the author's own 75M-parameter GPT (20 layers, 512 dim, 8 heads, vocabulary 21,621), trained from scratch. No Hugging Face Transformers.

Files

File Use
best.pt PyTorch checkpoint: cfg, tokenizer (merges + vocab), model (backbone), score_head, rerank (q_len 80, max_len 384)

Loading code: src/train_rerank.py (load_reranker, score_pairs) and src/model_v2.py in the harness repo. The tokenizer is stored inside the checkpoint.

How it works

The question and one candidate passage are read together and a linear head gives one relevance logit. In the harness, candidates are up to 3 passages from each of the top 3 documents of the hybrid retriever (BM25 + sj-ko-embed-400m, RRF). The final score is

score = rerank_logit + 4.0 * rrf / rrf_top

so the reranker always picks the passage within a document, and overrides the document order of the hybrid retriever only when it is confident.

Training

Listwise training on 14,271 groups of 8 passages (1 positive, 7 negatives) from Korean Wikipedia, batch 16 with accumulation 2, lr 3e-5, 2x T4. Best checkpoint at step 1800 (2.0 epochs): validation (500 groups) loss 0.6461, R@1 78.4%, MRR 0.8792.

In the harness (505 questions), document R@1 rose from 84.2% to 89.8% on one question set (215) and from 61.7% to 65.2% on another (290).

Educational project. Author: Sungjin Moon, Seoul National University, Department of Physics & Astronomy.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support