Views
No views yet
| Stage | Dataset | Description |
|---|---|---|
| Stage 1 | SciFact (BEIR) | Circuit fine-tuning with BM25 hard negatives |
| Stage 2 | AgXQA | Domain adaptation to agricultural extension QA |
| Strategy | Params | Zero-Shot | AgXQA FT | Delta | MRR@10 |
|---|---|---|---|---|---|
| BM25 baseline | — | 0.8533 | — | — | 0.8208 |
| Vanilla (no FT) | — | 0.9124 | — | — | 0.8907 |
| A: Circuit MLP-only | 2.36M | 0.9123 | 0.9151 | +0.0028 | 0.8945 |
| B: Last-4 Layers | 7.10M | 0.9070 | 0.9135 | +0.0065 | 0.8937 |
| C: Full Fine-Tuning | 33.36M | 0.9020 | 0.9231 | +0.0211 | 0.9051 |
| D: Circuit-Full (BM25) | 4.73M | 0.9094 | 0.9174 | +0.0080 | 0.8976 |
1from transformers import AutoTokenizer, AutoModelForSequenceClassification
2import torch
3
4tokenizer = AutoTokenizer.from_pretrained("JAYADIR/mdts-agxqa-circuit-mlp-only")
5model = AutoModelForSequenceClassification.from_pretrained("JAYADIR/mdts-agxqa-circuit-mlp-only")
6
7query = "What is the best irrigation method for wheat in semi-arid regions?"
8passage = "Drip irrigation is highly efficient for wheat cultivation in semi-arid areas."
9
10inputs = tokenizer(query, passage, return_tensors="pt", truncation=True, max_length=512)
11with torch.no_grad():
12 score = model(**inputs).logits.squeeze().item()
13print(f"Relevance score: {score:.4f}")