feat: add README.md file
Browse files
README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- question-answering
|
| 7 |
+
- text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- finance
|
| 10 |
+
- portfolio-management
|
| 11 |
+
- multi-asset
|
| 12 |
+
- benchmark
|
| 13 |
+
- financial-reasoning
|
| 14 |
+
- correlation
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1M<n<10M
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# PortBench QA Dataset
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
**6,269** structured question-answer pairs probing correlation-based financial reasoning for multi-asset portfolio management, generated from the PortBench Market Base Dataset.
|
| 24 |
+
|
| 25 |
+
### Task Templates
|
| 26 |
+
|
| 27 |
+
| Template | Task | Complexity | Pairs |
|
| 28 |
+
|----------|------|:----------:|------:|
|
| 29 |
+
| T1 | Return prediction — direction for next N days | 1 (single asset) | 1,000 |
|
| 30 |
+
| T2 | Risk assessment — VaR at given confidence level | 1 | 1,000 |
|
| 31 |
+
| T3 | Position sizing — given max drawdown constraint | 1 | 1,000 |
|
| 32 |
+
| T4 | Pairwise allocation — minimize variance for 2 assets | 2 (pairwise) | 1,000 |
|
| 33 |
+
| T5 | Multi-asset optimization — maximize Sharpe for 3+ assets | 3 (multi-asset) | 1,000 |
|
| 34 |
+
| T6 | Rebalancing decision — threshold-based trigger | 3 | 778 |
|
| 35 |
+
| T7 | Regime detection — identify bull/bear/sideways + adjust allocation | 4 (full portfolio) | 491 |
|
| 36 |
+
|
| 37 |
+
### Splits
|
| 38 |
+
|
| 39 |
+
| Split | Period | Pairs |
|
| 40 |
+
|-------|--------|------:|
|
| 41 |
+
| Train | 2015-01-02 – 2022-12-31 | 1,941 |
|
| 42 |
+
| Val | 2023-01-01 – 2024-12-31 | 2,700 |
|
| 43 |
+
| Test | 2025-01-01 – 2025-12-31 | 1,628 |
|
| 44 |
+
|
| 45 |
+
### Data Fields
|
| 46 |
+
|
| 47 |
+
Each JSONL record contains:
|
| 48 |
+
|
| 49 |
+
| Field | Type | Description |
|
| 50 |
+
|-------|------|-------------|
|
| 51 |
+
| `id` | string | Unique identifier (`{template}_{class}_{date}_{seq}`) |
|
| 52 |
+
| `template` | string | Task template (T1–T7) |
|
| 53 |
+
| `complexity` | int | Difficulty level (1–4) |
|
| 54 |
+
| `split` | string | train / val / test |
|
| 55 |
+
| `market_regime` | string | bull / bear / sideways / crisis |
|
| 56 |
+
| `asset_class` | string | Target asset class |
|
| 57 |
+
| `assets` | list[string] | Ticker symbols involved |
|
| 58 |
+
| `decision_date` | string | Point-in-time decision date (YYYY-MM-DD) |
|
| 59 |
+
| `context_summary` | string | Market context window (prices, macro, correlations, news) |
|
| 60 |
+
| `question` | string | The question with all necessary numerical context |
|
| 61 |
+
| `answer` | string | Ground-truth answer |
|
| 62 |
+
| `answer_numeric` | float | Numeric ground-truth (for scoring) |
|
| 63 |
+
| `explanation` | string | Step-by-step explanation of the answer |
|
| 64 |
+
| `metadata` | object | Additional fields (future_return, horizon, volatility, text coverage, etc.) |
|
| 65 |
+
|
| 66 |
+
### Example
|
| 67 |
+
|
| 68 |
+
```json
|
| 69 |
+
{
|
| 70 |
+
"id": "T1_all_20251226_0002",
|
| 71 |
+
"template": "T1",
|
| 72 |
+
"complexity": 1,
|
| 73 |
+
"split": "test",
|
| 74 |
+
"market_regime": "sideways",
|
| 75 |
+
"assets": ["DBB"],
|
| 76 |
+
"decision_date": "2025-12-26",
|
| 77 |
+
"question": "Asset: DBB\nHistorical prices (past 60 trading days): start=20.40, end=22.01, cumulative_return=+7.9%, annualized_volatility=14.0%\n...\nPredict whether the return of DBB over the next 21 trading days will be: positive (>+1%), negative (<-1%), or flat (within ±1%).",
|
| 78 |
+
"answer": "flat",
|
| 79 |
+
"answer_numeric": 0.0,
|
| 80 |
+
"explanation": "The actual 21-day forward return for DBB starting 2025-12-26 was +0.00%, which classifies as 'flat'."
|
| 81 |
+
}
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
### Text Coverage
|
| 85 |
+
|
| 86 |
+
85.3% of QA pairs include associated news text in the context window (avg 3,997 chars).
|
| 87 |
+
|
| 88 |
+
### Market Regime Distribution
|
| 89 |
+
|
| 90 |
+
QA pairs are stratified by market regime (bull/bear/sideways/crisis) to enable per-regime performance decomposition.
|
| 91 |
+
|
| 92 |
+
### Intended Use
|
| 93 |
+
|
| 94 |
+
- Evaluating LLM financial reasoning capabilities across four difficulty levels
|
| 95 |
+
- Benchmarking correlation-based multi-asset decision-making
|
| 96 |
+
- Comparing static knowledge (QA accuracy) with dynamic pipeline performance (CEPS)
|
| 97 |
+
|
| 98 |
+
### Point-in-Time (PiT) Constraint
|
| 99 |
+
|
| 100 |
+
All questions use only information available at or before the `decision_date`. Ground-truth answers are computed from realized future data that is never included in the question or context.
|
| 101 |
+
|
| 102 |
+
### Citation
|
| 103 |
+
|
| 104 |
+
```bibtex
|
| 105 |
+
|
| 106 |
+
```
|