hotpotqa/hotpot_qa
Viewer • Updated • 203k • 104k • 332
Token Importance Scoring v2.5 — two-stage passage reranking with bridge detection and cross-passage iterative refinement, trained on HotpotQA multi-hop reasoning.
Three learned components on top of frozen Mistral-7B-Instruct-v0.3 (4-bit NF4):
| Component | Parameters | Purpose |
|---|---|---|
QueryAwareImportanceHead |
~1.5M | Direct passage scoring (Stage 1) |
BridgeDetectionHead |
~1.05M | Bridge passage classification |
RefinementScoringHead |
~2.8M | Cross-passage attention refinement (Stage 2) |
| Total trainable | ~5.6M |
Score blending: final = 0.7 × direct + 0.3 × refined
| Metric | v2.3 | v2.5 | Delta |
|---|---|---|---|
| NIAH accuracy | 95.0% | 95.0% | ±0% ✅ |
| LITM middle position | 72.0% | 72.0% | ±0% ✅ |
| Multi-hop recall@5 | N/A | 100% | NEW ✅ |
| Inference latency | ~50ms | ~120ms | +70ms (Stage 2) |
| Peak VRAM | 5.5 GB | 5.5 GB | ±0 ✅ |
import torch
ckpt = torch.load("tis_components.pt", map_location="cpu")
print(list(ckpt.keys()))
# ['importance_embedding', 'importance_head', 'bridge_detection_head', 'refinement_head']
File size: 157.8 MB | SHA256: 53f3333dffc3288579628ad7f13311e4e8efe41d053dfb9d7479d14f70596413
pip install huggingface_hub
hf download oldman-dev/tis-v2.5-multihop-reranker --local-dir checkpoints/v2.5_refinement
import torch
from src.token_importance.model.patched_model import PatchedCausalLM
model = PatchedCausalLM.from_pretrained(
"unsloth/mistral-7b-instruct-v0.3-bnb-4bit",
load_in_4bit=True,
)
ckpt = torch.load("checkpoints/v2.5_refinement/tis_components.pt", map_location="cuda")
model.importance_head.load_state_dict(ckpt["importance_head"])
model.bridge_detection_head.load_state_dict(ckpt["bridge_detection_head"])
model.refinement_head.load_state_dict(ckpt["refinement_head"])
| Version | Key Achievement | HF Repo |
|---|---|---|
| v2.5 | Multi-hop 100% recall@5 | oldman-dev/tis-v2.5-multihop-reranker |
| v2.3 | MRR 0.5102 (+18.1% vs BM25) — Tier 1 | oldman-dev/tis-v2.3-passage-reranker |
| v2.2 | MRR 0.471 (+9.1% vs BM25) | oldman-dev/tis-v2.2-passage-reranker |
github.com/nitroxido/token-importance-scoring
@article{tis2026,
title = {Token Importance Scoring for KV Cache Compression},
year = {2026}
}
MIT
Base model
mistralai/Mistral-7B-v0.3