Downloads · 30 days
5
9% of all-time downloads
QuanDuong184/legalir-yuitc-v2
legalir-yuitc-v2 is a sentence similarity model from QuanDuong184. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
Experimental Vietnamese legal retrieval model fine-tuned from YuITC/vietnamese-embedding-vn-legal for the UIT Data Science Challenge 2026 LegalIR task.
Downloads · 30 days
5
9% of all-time downloads
All-time downloads
53
Public
Parameters
568M
2.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 99%
From the Hugging Face model README
Experimental Vietnamese legal retrieval model fine-tuned from
YuITC/vietnamese-embedding-vn-legal
for the UIT Data Science Challenge 2026 LegalIR task.
This upload preserves a completed experiment for reproducibility. It was not promoted as the project's default retriever, because its standalone and fused validation results did not beat the locked frozen-model candidate-pool gate.
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("QuanDuong184/legalir-yuitc-v2")
texts = [
"Câu hỏi pháp luật bằng tiếng Việt",
"Đoạn văn bản pháp luật cần so khớp",
]
embeddings = model.encode(texts, normalize_embeddings=True)
scores = embeddings @ embeddings.T
The model uses:
For document retrieval in the associated experiment, every chunk was encoded independently and each document received the maximum cosine similarity over its chunks.
document_group_fold != 0.document_group_fold = 0.The split and training source hashes are recorded in the associated project artifacts. Training did not include fold-0 queries.
Held-out fold 0 contains 1,400 queries and 1,535 gold query-document pairs. Rankings were produced over 244,612 chunks using maximum chunk score per document, with the top 200 documents retained per query.
| Cutoff | Macro recall |
|---|---|
| 1 | 0.57976 |
| 2 | 0.72899 |
| 3 | 0.80482 |
| 5 | 0.86542 |
| 20 | 0.94952 |
| 50 | 0.97232 |
| 100 | 0.98565 |
| 170 | 0.98946 |
When fused with the locked three-branch control using document-level weighted
RRF (k=60), the best diagnostic weight in {0.25, 0.50, 0.75, 1.00, 1.25}
was 1.25:
| Cutoff | Control | Control + this model |
|---|---|---|
| 5 | 0.85952 | 0.88393 |
| 20 | 0.96107 | 0.97256 |
| 50 | 0.98310 | 0.98845 |
| 100 | 0.99155 | 0.99393 |
| 170 | 0.99500 | 0.99500 |
The fusion weight was selected on the same fold and is therefore diagnostic, not an independently validated hyperparameter. At cutoff 170, the fusion added two gold pairs and lost two gold pairs relative to the control.
f16b1f9742a2c3model.safetensors SHA-256:
be92151c789f18e778700088f639d168d21c8c49374b5adbfc3251244f946d3f