Downloads · 30 days
10
26% of all-time downloads
mhmsadegh/rectom-causal-reasoning-crossencoder-bce
rectom-causal-reasoning-crossencoder-bce is a machine learning model from mhmsadegh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sentence-transformers. The card lists the license as apache-2.0.
A cross-encoder reranker fine-tuned to score whether two RecToM (dialogue-based Theory-of-Mind movie recommendation) items require the SAME underlying causal/ToM reasoning structure, rather than just similar surface t…
Downloads · 30 days
10
26% of all-time downloads
All-time downloads
38
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
A cross-encoder reranker fine-tuned to score whether two RecToM
(dialogue-based Theory-of-Mind movie recommendation) items require the SAME
underlying causal/ToM reasoning structure, rather than just similar surface
text. Backbone: cross-encoder/ms-marco-MiniLM-L-6-v2.
relation_type sequences (intervention-validated), NOT text
similarity. PARTIAL pairs (one sequence a prefix of the other) are excluded
from training.This exact recipe (same backbone/hyperparameters/data policy) was validated with a group-disjoint 5-fold cross-validation BEFORE this final model was trained (fold splits kept dialogue_id/near-duplicate groups intact, so no conversation ever leaked across train/held-out):
| frozen | fine-tuned | |
|---|---|---|
| Hit@3 | 0.180 | 0.218 |
| Hit@5 | 0.256 | 0.305 |
| MRR | 0.170 | 0.179 |
Fine-tuned beat its own frozen backbone in 5 of 5 folds. McNemar p=0.22 and the bootstrap 95% CI for the Hit@3 delta ([-0.019, +0.094]) still cross the conventional significance threshold, so this is a promising-but-not-yet-fully-significant result (verdict: MODIFY, not GO). This final model is trained on 100% of the data (no held-out fold) since the CV's job -- validating the method -- is already done; the 5 individual per-fold CV checkpoints were never uploaded and are not this repo.
An alternative combined ranking+semantic-preservation loss was also tried and did not outperform this BCE recipe (see project docs) -- this BCE cross-encoder remains the best available reasoning-aware retriever so far.
from sentence_transformers import CrossEncoder
model = CrossEncoder("mhmsadegh/rectom-causal-reasoning-crossencoder-bce")
scores = model.predict([("query text", "candidate text"), ...])
Not yet evaluated on downstream RecToM answer-generation accuracy -- that is the next step this model was trained for.