Views
No views yet
| Method | NDCG@10 | Dims Used |
|---|---|---|
| Baseline | 0.702 | 100% (1024) |
| QADS (peak) | 0.845 | 32% (328) |
| QADS (@30%) | 0.839 | 30% (307) |
f_θ: ℝ^D → ℝ^D — that identifies which embedding dimensions are most relevant for each query. At inference, only the top-k dimensions are used for similarity computation, improving retrieval over full-dimensional baselines.1# Requires GPU (T4 or better)
2pip install torch transformers>=4.51.0 sentence-transformers datasets trackio huggingface_hub numpy
3
4python qads_scifact.py| Parameter | Value |
|---|---|
| Optimizer | AdamW |
| Learning rate | 1e-4 |
| Weight decay | 0.01 |
| Batch size | 256 |
| Dropout | 0.1 |
| Hard-negative pool K | 1000 |
| Sampled negatives M | 64 |
| Temperature τ | grid: {0.0001 … 0.05} |
| Epochs | grid: {20, 30, 50, 75, 100, 200} |
| Model selection | maximise Σ NDCG@10 at {D, D/2, D/4, D/8} on validation |
qads_scifact.py — Complete end-to-end pipeline (embedding → oracle → train → evaluate)best_predictor.pt — Trained predictor weights (uploaded after training)results.json — Full evaluation results (uploaded after training)