Conformal Risk Certificates for Portfolio Optimization Under Uncertainty: A Gated Reinforcement-Learning Approach
Organizations: Industrial Engineering Department, Sharif University of Technology, Tehran, Iran. · Computer Engineering Department, Sharif University of Technology, Tehran, Iran.
Abstract
Reinforcement-learning portfolio policies can optimize allocations from prices, covariances, and prior positions, yet they lack a calibrated, replayable mechanism for certifying that a proposed allocation respects a bounded risk envelope before execution. Regulators increasingly expect automated portfolio systems to provide exactly this kind of pre-trade audit trail, interpretable risk limit, and human-oversight mechanism. Gated Conformal Semantic Risk Control addresses this gap by separating return-seeking allocation from text-conditioned downside-risk verification. An instruction-tuned language model maps timestamped disclosures into schema-validated semantic risk states over macro, liquidity, earnings, and sector channels. These states induce correlated ellipsoidal factor-shock uncertainty sets whose conformal radii are calibrated by rolling finite-sample prediction over localized semantic nonconformity buckets. An asymmetric second-order cone gate then checks each raw PPO proposal against a certified worst-case semantic loss budget. The gate stays inactive for compliant proposals and intervenes only when that budget is exceeded. In walk-forward out-of-sample tests on nine liquid U.S. Select Sector SPDR ETFs, Raw PPO earns a 12.7% annual return while incurring a 4.05% semantic violation rate. Gated-CSRC removes all observed out-of-sample semantic limit breaches while retaining an 11.7% annual return. This 100-basis-point auditable safety premium is smaller than the yield loss imposed by unconditional hard projection, and exact McNemar testing confirms the compliance gain at . Loughran-McDonald lexicon controls and time-shuffled text controls fail to reproduce this certificate.
Figures & tables
| System Prompt |
|---|
| You are a quantitative financial sentiment analyzer. Your task is to assess the overall market regime and specific sector risks based ONLY on the provided news. |
| Rules: |
| 1. risk_on means bullish and optimistic. Use this or neutral if news is positive or routine, and set severity close to 0.0. |
| 2. risk_off means bearish, panic, or crisis. Only use risk_off if there is widespread panic, severe macro shocks, or multi-sector contagion. |
| 3. Return ONLY valid JSON. No markdown formatting, no explanations. |
| Dynamic User Prompt Template |
| Group | Parameter | Value |
|---|---|---|
| PPO | Learning rate | |
| PPO | Rollout length | 256 |
| PPO | Batch size | 64 |
| PPO | Epochs per update | 5 |
| PPO | Discount | 0.99 |
| PPO | GAE | 0.95 |
| Symbol | Role | Value |
|---|---|---|
| Center severity weights | ||
| Shape inflation weights | ||
| Budget stress weights | ||
| Cash-floor stress weights | ||
| Center sector loadings | ||
| Shape sector loadings |
| Ann. | Ann. | Max | Avg. | Semantic | |||
|---|---|---|---|---|---|---|---|
| Strategy | return | vol. | Sharpe | Sortino | drawdown | turnover | violation |
| Equal Weight | 12.06% | 18.00% | 0.670 | 0.791 | -36.93% | 0.56% | 0.00% |
| Equal Weight + CSRC | 11.15% | 17.41% | 0.640 | 0.749 | -37.36% | 0.91% | 0.00% |
| Inverse Volatility | 10.87% | 17.22% | 0.631 | 0.735 | -35.98% | 3.28% | 0.20% |
| Inverse Volatility + CSRC | 10.36% | 16.88% | 0.614 | 0.710 | -36.43% | 3.48% | 0.00% |
| Momentum Top-3 | -0.12% | 20.20% | -0.006 | -0.007 | -44.95% | 33.81% | 23.48% |
| Strategy | Mean annual return | Mean Sharpe | Mean semantic violation rate |
|---|---|---|---|
| Raw PPO | 12.7% | 1.13 | 4.05% |
| Hard CSRC | 10.9% | 1.04 | 0.00% |
| Gated CSRC | 11.7% | 1.09 | 0.00% |
| Test year | Intervention rate | Final violation rate | Interpretation |
|---|---|---|---|
| 2019 | 12.3% | 0.00% | Moderate intervention |
| 2020 | 77.9% | 0.00% | High intervention during stress |
| 2021 | 6.3% | 0.00% | Low intervention |
| 2022 | 7.6% | 0.00% | Low-to-moderate intervention |
| 2023 | 1.6% | 0.00% | Minimal intervention |
| Semantic certificate | Mean annual return | Mean Sharpe | Final true violation rate |
|---|---|---|---|
| True LLM | 11.7% | 1.09 | 0.00% |
| Neutral | 11.8% | 1.09 | 4.45% |
| Shuffled LLM | 11.6% | 1.08 | 4.05% |
| Loughran–McDonald lexicon | 11.7% | 1.09 | 4.45% |
| Profile | (coverage) | Cash ceiling | Cash exponent | Macro floor | Gate tolerance |
|---|---|---|---|---|---|
| Conservative | 0.10 (90%) | 0.25 | 2.25 | 0.20 | |
| Moderate | 0.15 (85%) | 0.20 | 2.10 | 0.15 | |
| Aggressive | 0.25 (75%) | 0.15 | 2.00 | 0.10 |
| Mean annual | Mean | Intervention | Strict true | |
|---|---|---|---|---|
| Profile | return | Sharpe | rate | violation rate |
| Conservative | 11.7% | 1.09 | 21.1% | 0.0% |
| Moderate | 11.8% | 1.10 | 15.0% | 3.7% |
| Aggressive | 12.9% | 1.14 | 0.0% | 3.3% |
| Violation | Violation | A violates, | A safe, | ||
|---|---|---|---|---|---|
| Comparison | A | B | B safe | B violates | -value |
| Gated CSRC vs Raw PPO | 0.00% | 4.06% | 0 | 51 | |
| Hard CSRC vs Raw PPO | 0.00% | 4.06% | 0 | 51 | |
| Gated CSRC vs Hard CSRC | 0.00% | 0.00% | 0 | 0 | 1.000 |
Portfolio Optimization
Portfolio optimization selects asset weights to balance expected return, risk, diversification, and trading constraints.
See all 71 papers