Downloads · 30 days
60
36% of all-time downloads
MhoOmm/HotPotQA_DEBERT
HotPotQA_DEBERT is a question answering model from MhoOmm. Use it when the input is a question plus a passage. The card lists the license as mit.
A fine-tuned DeBERTa-v3-base model for extractive question answering on the HotpotQA dataset. The model is designed to work as the reader component of a Retrieval-Augmented Question Answering (QA) pipeline, where a de…
Downloads · 30 days
60
36% of all-time downloads
All-time downloads
166
Public
Parameters
184M
735 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors735 MB · 99%
From the Hugging Face model README
A fine-tuned DeBERTa-v3-base model for extractive question answering on the HotpotQA dataset. The model is designed to work as the reader component of a Retrieval-Augmented Question Answering (QA) pipeline, where a dense retriever first retrieves relevant documents and the reader extracts the answer span from the retrieved context.
microsoft/deberta-v3-baseUnlike generative language models, this model predicts the exact answer span from a retrieved context instead of generating free-form text.
Question
│
▼
Dense Retriever (BGE-base-en-v1.5 + FAISS)
│
Top-10 Retrieved Documents
│
▼
DeBERTa-v3-base Reader
│
Predicted Answer Span
│
▼
(Optional) LLM Explanation Layer
The retriever identifies relevant Wikipedia articles, while DeBERTa extracts the answer span from the retrieved passages.
The model was fine-tuned on the HotpotQA dataset.
For each question:
| Split | Examples |
|---|---|
| Training | 84,959 |
| Validation | 4,687 |
The reader depends on an external dense retriever.
| Metric | Score |
|---|---|
| Recall@3 | 0.7100 |
| Recall@5 | 0.7650 |
| Recall@10 | 0.8150 |
| Recall@20 | 0.8200 |
| Parameter | Value |
|---|---|
| Base Model | microsoft/deberta-v3-base |
| Optimizer | AdamW |
| Learning Rate | 2e-5 |
| Weight Decay | 0.01 |
| Epochs | 3 |
| Batch Size | 8 |
| Max Sequence Length | 512 |
| Document Stride | 128 |
The model uses the official DeBERTa tokenizer.
Configuration:
truncation="only_second"padding="max_length"max_length=512stride=128return_overflowing_tokens=Truereturn_offsets_mapping=TrueAnswer spans are aligned using character-level offsets.
Windows that do not contain the answer are assigned start/end position 0.
Performance on the HotpotQA validation set:
| Metric | Score |
|---|---|
| Exact Match (EM) | 60.53 |
| F1 Score | 74.21 |
Comparison with other transformer readers:
| Model | EM | F1 |
|---|---|---|
| DeBERTa-v3-base | 60.53 | 74.21 |
| RoBERTa-base | 60.17 | 73.96 |
| ALBERT-base-v2 | 56.73 | 70.31 |
from transformers import pipeline
qa_pipeline = pipeline(
"question-answering",
model="YOUR_USERNAME/deberta-hotpotqa",
tokenizer="YOUR_USERNAME/deberta-hotpotqa"
)
result = qa_pipeline(
question="Which magazine was started first, Arthur's Magazine or First for Women?",
context=context
)
print(result["answer"])
This model is suitable for:
This model:
Potential improvements include:
This project is intended for research and educational purposes. Please ensure compliance with the licenses of the original HotpotQA dataset and the DeBERTa-v3-base model.