Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -11,151 +11,50 @@ tags:
|
|
| 11 |
- statute-retrieval
|
| 12 |
- ukrainian
|
| 13 |
- benchmark
|
|
|
|
| 14 |
pretty_name: UA-StatuteRetrieval
|
| 15 |
size_categories:
|
| 16 |
- 1K<n<10K
|
| 17 |
configs:
|
| 18 |
-
- config_name: ablation_comparison
|
| 19 |
-
data_files:
|
| 20 |
-
- split: train
|
| 21 |
-
path: ablation_comparison/train-*
|
| 22 |
- config_name: article_performance
|
| 23 |
data_files:
|
| 24 |
- split: train
|
| 25 |
path: article_performance/train-*
|
| 26 |
-
- config_name:
|
| 27 |
data_files:
|
| 28 |
- split: train
|
| 29 |
-
path:
|
| 30 |
- config_name: sliding_window
|
| 31 |
data_files:
|
| 32 |
- split: train
|
| 33 |
path: sliding_window/train-*
|
| 34 |
-
dataset_info:
|
| 35 |
-
- config_name: ablation_comparison
|
| 36 |
-
features:
|
| 37 |
-
- name: year
|
| 38 |
-
dtype: int64
|
| 39 |
-
- name: mrr_original
|
| 40 |
-
dtype: float64
|
| 41 |
-
- name: mrr_fixed_article
|
| 42 |
-
dtype: float64
|
| 43 |
-
- name: mrr_train_test
|
| 44 |
-
dtype: float64
|
| 45 |
-
splits:
|
| 46 |
-
- name: train
|
| 47 |
-
num_bytes: 288
|
| 48 |
-
num_examples: 9
|
| 49 |
-
download_size: 2525
|
| 50 |
-
dataset_size: 288
|
| 51 |
-
- config_name: article_performance
|
| 52 |
-
features:
|
| 53 |
-
- name: target_article
|
| 54 |
-
dtype: string
|
| 55 |
-
- name: n_predictions
|
| 56 |
-
dtype: int32
|
| 57 |
-
- name: degree
|
| 58 |
-
dtype: int32
|
| 59 |
-
- name: mean_rank_cn
|
| 60 |
-
dtype: float64
|
| 61 |
-
- name: mean_rank_aa
|
| 62 |
-
dtype: float64
|
| 63 |
-
- name: hit5_cn
|
| 64 |
-
dtype: float64
|
| 65 |
-
- name: hit5_aa
|
| 66 |
-
dtype: float64
|
| 67 |
-
- name: mrr_cn
|
| 68 |
-
dtype: float64
|
| 69 |
-
- name: mrr_aa
|
| 70 |
-
dtype: float64
|
| 71 |
-
- name: law_number
|
| 72 |
-
dtype: string
|
| 73 |
-
- name: law_article
|
| 74 |
-
dtype: string
|
| 75 |
-
splits:
|
| 76 |
-
- name: train
|
| 77 |
-
num_bytes: 750943
|
| 78 |
-
num_examples: 3667
|
| 79 |
-
download_size: 225585
|
| 80 |
-
dataset_size: 750943
|
| 81 |
- config_name: embedding_drift
|
| 82 |
-
|
| 83 |
-
-
|
| 84 |
-
|
| 85 |
-
- name: law_number
|
| 86 |
-
dtype: string
|
| 87 |
-
- name: law_article
|
| 88 |
-
dtype: string
|
| 89 |
-
- name: n_snippets_2012
|
| 90 |
-
dtype: int64
|
| 91 |
-
- name: n_snippets_2024
|
| 92 |
-
dtype: int64
|
| 93 |
-
- name: cosine_similarity
|
| 94 |
-
dtype: float64
|
| 95 |
-
- name: drift
|
| 96 |
-
dtype: float64
|
| 97 |
-
splits:
|
| 98 |
-
- name: train
|
| 99 |
-
num_bytes: 21522
|
| 100 |
-
num_examples: 116
|
| 101 |
-
download_size: 7923
|
| 102 |
-
dataset_size: 21522
|
| 103 |
-
- config_name: sliding_window
|
| 104 |
-
features:
|
| 105 |
-
- name: eval_year
|
| 106 |
-
dtype: int64
|
| 107 |
-
- name: window_years
|
| 108 |
-
dtype: int64
|
| 109 |
-
- name: window_label
|
| 110 |
-
dtype: string
|
| 111 |
-
- name: train_years
|
| 112 |
-
dtype: string
|
| 113 |
-
- name: mrr_aa
|
| 114 |
-
dtype: float64
|
| 115 |
-
- name: mrr_cn
|
| 116 |
-
dtype: float64
|
| 117 |
-
- name: hit10_aa
|
| 118 |
-
dtype: float64
|
| 119 |
-
- name: hit10_cn
|
| 120 |
-
dtype: float64
|
| 121 |
-
- name: n_predictions
|
| 122 |
-
dtype: int64
|
| 123 |
-
- name: n_cases
|
| 124 |
-
dtype: int64
|
| 125 |
-
- name: n_articles
|
| 126 |
-
dtype: int64
|
| 127 |
-
- name: n_train_cases
|
| 128 |
-
dtype: int64
|
| 129 |
-
splits:
|
| 130 |
-
- name: train
|
| 131 |
-
num_bytes: 2986
|
| 132 |
-
num_examples: 30
|
| 133 |
-
download_size: 7095
|
| 134 |
-
dataset_size: 2986
|
| 135 |
---
|
| 136 |
|
| 137 |
-
# UA-StatuteRetrieval:
|
| 138 |
|
| 139 |
-
A large-scale benchmark for evaluating legal statute retrieval methods
|
| 140 |
|
| 141 |
-
|
| 142 |
|
| 143 |
-
|
| 144 |
|
| 145 |
-
|
| 146 |
-
-
|
| 147 |
-
-
|
| 148 |
-
-
|
| 149 |
-
|
|
|
|
| 150 |
|
| 151 |
-
##
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
| `temporal_metrics.csv` | Same as above in CSV format |
|
| 158 |
-
| `difficulty_stratification.csv` | Performance by article frequency bin (hub/high/mid/low/rare) |
|
| 159 |
|
| 160 |
## Evaluation Protocol
|
| 161 |
|
|
@@ -166,56 +65,64 @@ For each court decision with cited articles {a1, ..., an}:
|
|
| 166 |
2. Score all candidate articles using remaining citations as seed
|
| 167 |
3. Compute rank of masked article among non-seed candidates
|
| 168 |
|
| 169 |
-
### Baselines
|
| 170 |
|
| 171 |
| Method | Hit@10 | MRR |
|
| 172 |
|--------|:------:|:---:|
|
| 173 |
| Adamic-Adar | 0.545 | 0.272 |
|
| 174 |
| Common Neighbors | 0.534 | 0.266 |
|
|
|
|
|
|
|
|
|
|
| 175 |
| Degree Baseline | 0.111 | 0.059 |
|
| 176 |
|
| 177 |
### Difficulty Stratification
|
| 178 |
|
| 179 |
-
| Bin | Articles |
|
| 180 |
-
|-----|:--------:|:--------
|
| 181 |
-
| Hub (>100K cites) | 21 | 0.
|
| 182 |
-
| High (10K-100K) | 354 | 0.
|
| 183 |
-
| Mid (1K-10K) | 864 | 0.
|
| 184 |
-
| Low (100-1K) | 1,689 | 0.
|
| 185 |
-
| Rare (<100) | 739 | 0.
|
| 186 |
-
|
| 187 |
-
### Temporal Degradation
|
| 188 |
-
|
| 189 |
-
MRR degrades from 0.42-0.56 (2008-2012) to 0.27-0.28 (2024-2026), demonstrating that co-citation patterns become less predictive over time as legal practice evolves.
|
| 190 |
|
| 191 |
## Usage
|
| 192 |
|
| 193 |
```python
|
| 194 |
from datasets import load_dataset
|
| 195 |
|
| 196 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
|
| 198 |
-
#
|
| 199 |
-
|
| 200 |
-
print(
|
| 201 |
```
|
| 202 |
|
| 203 |
## Citation
|
| 204 |
|
| 205 |
```bibtex
|
| 206 |
-
@article{
|
| 207 |
-
title={
|
| 208 |
-
author={
|
| 209 |
year={2025}
|
| 210 |
}
|
| 211 |
```
|
| 212 |
|
| 213 |
## Source Data
|
| 214 |
|
| 215 |
-
Derived from the Ukrainian Unified State Register of Court Decisions (EDRSR). Raw citation data (502M records) is
|
| 216 |
|
| 217 |
## Related Datasets
|
| 218 |
|
| 219 |
-
- [overthelex/ua-court-citation-graph](https://huggingface.co/datasets/overthelex/ua-court-citation-graph) - Co-citation graph
|
| 220 |
-
- [overthelex/ukrainian-court-decisions](https://huggingface.co/datasets/overthelex/ukrainian-court-decisions) - Court decision metadata
|
| 221 |
-
- [overthelex/ua-case-outcome](https://huggingface.co/datasets/overthelex/ua-case-outcome) - Case outcome prediction
|
|
|
|
| 11 |
- statute-retrieval
|
| 12 |
- ukrainian
|
| 13 |
- benchmark
|
| 14 |
+
- temporal-degradation
|
| 15 |
pretty_name: UA-StatuteRetrieval
|
| 16 |
size_categories:
|
| 17 |
- 1K<n<10K
|
| 18 |
configs:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
- config_name: article_performance
|
| 20 |
data_files:
|
| 21 |
- split: train
|
| 22 |
path: article_performance/train-*
|
| 23 |
+
- config_name: ablation_comparison
|
| 24 |
data_files:
|
| 25 |
- split: train
|
| 26 |
+
path: ablation_comparison/train-*
|
| 27 |
- config_name: sliding_window
|
| 28 |
data_files:
|
| 29 |
- split: train
|
| 30 |
path: sliding_window/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
- config_name: embedding_drift
|
| 32 |
+
data_files:
|
| 33 |
+
- split: train
|
| 34 |
+
path: embedding_drift/train-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
---
|
| 36 |
|
| 37 |
+
# UA-StatuteRetrieval: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citations
|
| 38 |
|
| 39 |
+
A large-scale benchmark for evaluating temporal stability of legal statute retrieval methods. Ground truth is derived exhaustively from 396 million codex-article citations extracted from 101 million Ukrainian court decisions (2007--2026).
|
| 40 |
|
| 41 |
+
**Paper:** *Temporal Decay of Co-Citation Predictability: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citations* (Ovcharov, 2025)
|
| 42 |
|
| 43 |
+
## Dataset Configs
|
| 44 |
|
| 45 |
+
| Config | Description | Rows |
|
| 46 |
+
|--------|-------------|-----:|
|
| 47 |
+
| `article_performance` | Per-article MRR, Hit@5, degree for 3,667 articles (2024 snapshot) | 3,667 |
|
| 48 |
+
| `ablation_comparison` | Original / fixed-article / train-test MRR per year (2008--2024) | 9 |
|
| 49 |
+
| `sliding_window` | Mitigation experiment: MRR by eval year x window size (1, 3, 5, 10, all) | 30 |
|
| 50 |
+
| `embedding_drift` | Per-article semantic drift (cosine distance 2012 -> 2024) via E5-large | 116 |
|
| 51 |
|
| 52 |
+
## Key Findings
|
| 53 |
|
| 54 |
+
1. **Co-citation predictability decays 33--47% over 12 years** (Mann-Kendall p < 0.005)
|
| 55 |
+
2. **Decay is non-uniform**: criminal procedure remains stable (MRR ~0.40); civil law degrades from 0.35 to 0.15
|
| 56 |
+
3. **Neither BM25 nor dense retrieval (E5-large, BGE-M3) escapes temporal degradation**
|
| 57 |
+
4. **Sliding-window mitigation improves MRR by 3--28%** over cumulative indexing
|
|
|
|
|
|
|
| 58 |
|
| 59 |
## Evaluation Protocol
|
| 60 |
|
|
|
|
| 65 |
2. Score all candidate articles using remaining citations as seed
|
| 66 |
3. Compute rank of masked article among non-seed candidates
|
| 67 |
|
| 68 |
+
### Baselines (2024 snapshot)
|
| 69 |
|
| 70 |
| Method | Hit@10 | MRR |
|
| 71 |
|--------|:------:|:---:|
|
| 72 |
| Adamic-Adar | 0.545 | 0.272 |
|
| 73 |
| Common Neighbors | 0.534 | 0.266 |
|
| 74 |
+
| E5-large (dense) | 0.192 | 0.090 |
|
| 75 |
+
| BGE-M3 (dense) | 0.240 | 0.096 |
|
| 76 |
+
| BM25 (lexical) | 0.082 | 0.047 |
|
| 77 |
| Degree Baseline | 0.111 | 0.059 |
|
| 78 |
|
| 79 |
### Difficulty Stratification
|
| 80 |
|
| 81 |
+
| Bin | Articles | MRR (AA) |
|
| 82 |
+
|-----|:--------:|:--------:|
|
| 83 |
+
| Hub (>100K cites) | 21 | 0.536 |
|
| 84 |
+
| High (10K--100K) | 354 | 0.274 |
|
| 85 |
+
| Mid (1K--10K) | 864 | 0.074 |
|
| 86 |
+
| Low (100--1K) | 1,689 | 0.020 |
|
| 87 |
+
| Rare (<100) | 739 | 0.010 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
## Usage
|
| 90 |
|
| 91 |
```python
|
| 92 |
from datasets import load_dataset
|
| 93 |
|
| 94 |
+
# Per-article performance (2024)
|
| 95 |
+
articles = load_dataset("overthelex/ua-statute-retrieval", "article_performance", split="train")
|
| 96 |
+
print(articles.to_pandas()[["target_article", "degree", "mrr_aa"]].head(10))
|
| 97 |
+
|
| 98 |
+
# Temporal ablation (Fig 2 in paper)
|
| 99 |
+
ablation = load_dataset("overthelex/ua-statute-retrieval", "ablation_comparison", split="train")
|
| 100 |
+
print(ablation.to_pandas())
|
| 101 |
+
|
| 102 |
+
# Sliding-window mitigation (Table 6 in paper)
|
| 103 |
+
sw = load_dataset("overthelex/ua-statute-retrieval", "sliding_window", split="train")
|
| 104 |
+
print(sw.to_pandas().pivot(index="eval_year", columns="window_label", values="mrr_aa"))
|
| 105 |
|
| 106 |
+
# Embedding drift (Fig 9 in paper)
|
| 107 |
+
drift = load_dataset("overthelex/ua-statute-retrieval", "embedding_drift", split="train")
|
| 108 |
+
print(drift.to_pandas().groupby("law_number")["drift"].mean().sort_values(ascending=False))
|
| 109 |
```
|
| 110 |
|
| 111 |
## Citation
|
| 112 |
|
| 113 |
```bibtex
|
| 114 |
+
@article{ovcharov2025statute,
|
| 115 |
+
title={Temporal Decay of Co-Citation Predictability: A 20-Year Statute Retrieval Benchmark from 396M Ukrainian Court Citations},
|
| 116 |
+
author={Ovcharov, Volodymyr},
|
| 117 |
year={2025}
|
| 118 |
}
|
| 119 |
```
|
| 120 |
|
| 121 |
## Source Data
|
| 122 |
|
| 123 |
+
Derived from the Ukrainian Unified State Register of Court Decisions (EDRSR, https://reyestr.court.gov.ua). Raw citation data (502M records) remains proprietary; the co-citation graph is available separately at [overthelex/ua-court-citation-graph](https://huggingface.co/datasets/overthelex/ua-court-citation-graph).
|
| 124 |
|
| 125 |
## Related Datasets
|
| 126 |
|
| 127 |
+
- [overthelex/ua-court-citation-graph](https://huggingface.co/datasets/overthelex/ua-court-citation-graph) -- Co-citation graph (99.5M decisions)
|
| 128 |
+
- [overthelex/ukrainian-court-decisions](https://huggingface.co/datasets/overthelex/ukrainian-court-decisions) -- Court decision metadata
|
|
|