LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Unwinding Toxic Flow with Partial Information

Open repository
Sep 16, 2026
Trading and Market Microstructure+1

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
Medium

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: MEDIUM
  • Key Insight: The repository reproduces the paper’s main quantitative findings very closely for the model-based experiments (Exp 3–6), and the deterministic/filtering machinery appears internally correct. The main limitation is that the empirical study (Exp 1) uses synthetic proxy data rather than proprietary HSBC data, so it can only reproduce qualitative patterns and target magnitudes, not the original empirical evidence itself.

Results Comparison

MetricPaperReproducedDiffStatus
Exp 1: Mean daily toxicity proxy≈ 0.020.0196-0.0004Within tolerance
Exp 1: One-day normalized flow volatility≈ 0.0520.0540+0.0020Within tolerance
Exp 1: Hedge vs Δflow correlation≈ -0.25-0.2470+0.0030Within tolerance
Exp 2: Prop. 2.2 θ identity error
0 ideally
2.9e-16 to 6.3e-16
negligible
Reproduced
Exp 2: Prop. 2.2 Z identity error0 ideally4.6e-17 to 6.3e-16negligibleReproduced
Exp 2: Assumption 3.4Expected passFlagged fail in Scen. 1–2material methodological caveatDiscrepant
Exp 3: Scenario 1 partial cost-0.09456-0.09641-0.00185Within tolerance
Exp 3: Scenario 1 full cost-0.09459-0.09643-0.00184Within tolerance
Exp 3: Scenario 1 regret≈ 00.019%tinyReproduced
Exp 3: Scenario 2 partial cost-0.16015-0.16229-0.00214Within tolerance
Exp 3: Scenario 2 full cost-0.16020-0.16233-0.00213Within tolerance
Exp 3: Scenario 2 regret≈ 00.026%tinyReproduced
Exp 4: Short-horizon partial cost0.005820.00615+0.00033Within tolerance
Exp 4: Short-horizon full cost0.005820.00615+0.00033Within tolerance
Exp 4: Regret≈ 0-0.021%tinyReproduced
Exp 5: Risk compression qualitative claimOptimal trading reduces risk materiallyStd 0.1404 vs 2.0846 no-trade~93.3% std reductionReproduced
Exp 6: b=-0.1 naive cost-0.0834-0.0832+0.0002Within tolerance
Exp 6: b=-0.1 optimal cost-0.0840-0.0838+0.0002Within tolerance
Exp 6: b=-0.2 naive cost-0.0876-0.0873+0.0003Within tolerance
Exp 6: b=-0.2 optimal cost-0.0903-0.0900+0.0003Within tolerance
Exp 6: b=-0.3 naive cost-0.0918-0.0916+0.0002Within tolerance
Exp 6: b=-0.3 optimal cost-0.0985-0.0982+0.0003Within tolerance
Exp 6: b=-0.4 naive cost-0.0961-0.0958+0.0003Within tolerance
Exp 6: b=-0.4 optimal cost-0.1091-0.1087+0.0004Within tolerance

Summary

Overall, the core numerical claims of the paper are reproduced well for the stochastic-control experiments:

  • Partial-information and full-information performance are nearly identical.
  • Momentum toxicity outperforms mean-reverting toxicity in the expected ranking.
  • Short-horizon alpha experiment matches the near-zero-regret claim.
  • Naive-desk misspecification reproduces Table 4 very closely.
  • Risk mitigation from optimal externalisation is strong and qualitatively convincing.

The only major limitation is Exp 1, where the repository explicitly states that proprietary HSBC data were unavailable and synthetic calibrated data were used instead. So the empirical section is not a direct replication of the paper’s data analysis, only a proxy reproduction of stylized facts.


Per-Experiment Analysis

Experiment 1 — Empirical stylized facts

The repository reports:

  • 142 trading days
  • 76,680 one-minute bars
  • Mean toxicity proxy: 0.01956
  • Daily conditional flow volatility: 0.05384
  • Hedge vs Δ(client-flow) correlation: -0.2470
  • Directional days: 13.38%
  • Representative days selected:
    • near-martingale: 2024-03-12
    • directional: 2023-11-01

These values are very close to the user-specified paper targets:

  • toxicity ≈ 0.02
  • volatility ≈ 0.052
  • correlation ≈ -0.25

So numerically, the repository hits the expected magnitudes.

However, this should not be interpreted as a full empirical reproduction because the results are generated from a synthetic GBPUSD-calibrated proxy and the hedge correlation was explicitly calibrated to match the target. That makes this experiment useful as a demonstration of pipeline and output format, but not as independent confirmation of the paper’s empirical evidence.

Images

Exp 1 flow histogram

Exp 1 cumulative flows

Exp 1 toxicity CDF

Exp 1 hedge vs flow scatter


Experiment 2 — Deterministic filtering and coefficient verification

This experiment looks internally strong.

Reported checks:

  • Σ positive semidefinite: True in all 3 scenarios
  • Proposition 2.2 pathwise errors for θ and Z: around 1e-16, effectively machine precision
  • symmetry check: passed
  • overall pass: True in all scenarios
  • convergence rate for Σ: 1.93, 4.62, 0.63 across scenarios

These are strong signs that the deterministic/filtering machinery is implemented correctly.

Important caveat

The repository reports:

  • Assumption 3.4 pass = False for Scenarios 1 and 2
  • but treats this as a likely ambiguity in the paper’s row/column selection and proceeds because Assumption 3.5 passes

This is the main methodological red flag in the repo. It does not seem to have prevented downstream experiments from matching the paper, which suggests either:

  1. the paper’s statement/indexing is ambiguous,
  2. the numerical check is stricter than necessary,
  3. or the assumption is not binding in practice for the experiments run.

Still, for a strict theorem-level reproduction, this is a nontrivial caveat.

Image

Exp 2 Scenario 1 sigma and coeffs

Exp 2 Scenario 2 sigma and coeffs

Exp 2 Scenario 3 sigma and coeffs


Experiment 3 — Partial vs full information, Scenarios 1 and 2

This is one of the strongest reproductions in the repository.

Scenario 1 (mean-reverting toxicity)

  • Partial: -0.09641
  • Full: -0.09643
  • Paper: -0.09456, -0.09459
  • Absolute differences: about 0.00185
  • Regret: 0.019%

Scenario 2 (momentum toxicity)

  • Partial: -0.16229
  • Full: -0.16233
  • Paper: -0.16015, -0.16020
  • Absolute differences: about 0.0021
  • Regret: 0.026%

These differences are comfortably inside reasonable tolerance for simulated Monte Carlo replication, especially given unspecified original discretization details. More importantly, the paper’s main findings are fully preserved:

  • full and partial information are nearly identical,
  • regret is negligible,
  • momentum case has lower cost than mean-reverting.

Terminal inventory means around 0.00576 also support stable control.

Images

Exp 3 Scenario 1 single path

Exp 3 Scenario 1 cost histogram

Exp 3 Scenario 2 single path

Exp 3 Scenario 2 cost histogram


Experiment 4 — Short-horizon OU alpha

Base scenario:

  • Partial cost: 0.006146
  • Full cost: 0.006148
  • Paper target: 0.00582
  • Difference: ~0.00033
  • Regret: essentially zero

This is a strong quantitative match.

For the c-sensitivity analysis:

  • c = -20: -0.001541
  • c = -15: -0.001574
  • c = -10: -0.001599
  • c = -5: -0.001615
  • c = 0: -0.001623
  • c = 5: -0.001622

This shows a mostly monotonic pattern: as c becomes more negative, mean trading P&L becomes less favorable, which matches the expected qualitative claim that more adverse toxicity response worsens performance. The gradient is small, but directionally consistent.

Images

Exp 4 single path

Exp 4 pnl vs c


Experiment 5 — Risk mitigation vs no trading

This experiment reproduces the paper’s economic message clearly.

Reported distribution summary:

Optimal

  • Mean cost: -0.0964
  • Std: 0.1404
  • 5%: -0.310
  • 95%: 0.152

No-trade

  • Mean cost: 1.5739
  • Std: 2.0846
  • 5%: 0.002
  • 95%: 5.904

Interpretation

  • Standard deviation falls from 2.0846 to 0.1404
  • That is a reduction to about 6.7% of benchmark dispersion
  • The no-trading case is not just riskier; it is also much worse on mean cost

This strongly supports the claim that optimal externalisation materially compresses total-book P&L risk and controls inventory.

Images

Exp 5 histogram

Exp 5 cost cdf

Exp 5 terminal X cdf


Experiment 6 — Naive desk misspecification

This is also very well reproduced.

True bPaper NaiveRepo NaivePaper OptimalRepo Optimal
-0.1-0.0834-0.0832-0.0840-0.0838
-0.2-0.0876-0.0873-0.0903-0.0900
-0.3-0.0918-0.0916-0.0985-0.0982
-0.4-0.0961-0.0958-0.1091-0.1087

Key pattern:

  • Optimal always outperforms naive.
  • Gap widens monotonically as true feedback becomes more negative:
    • 0.0006
    • 0.0027
    • 0.0066
    • 0.0128

This reproduces the paper’s qualitative claim almost exactly: misspecification hurts, but not catastrophically; stronger feedback makes correct modeling more valuable.

Images

Exp 6 single path b=-0.25

Exp 6 hist b=-0.1

Exp 6 hist b=-0.2

Exp 6 hist b=-0.3

Exp 6 hist b=-0.4


Statistical & Economic Significance

The repository does not report formal t-stats or p-values for the main Monte Carlo comparisons, so strict statistical significance cannot be assessed in the classical empirical sense.

That said, economic significance is clear in several places:

  • Exp 3–4: regret between partial and full information is effectively zero, so filtered toxicity is economically sufficient for control.
  • Exp 5: the reduction in risk is economically large; a >90% drop in dispersion is substantial.
  • Exp 6: misspecification losses grow systematically with |b|, showing meaningful sensitivity to feedback modeling.

For the empirical experiment:

  • matching 0.02 / 0.052 / -0.25 is numerically neat,
  • but because inputs are synthetic and partly calibrated, those matches do not demonstrate statistical validation of the paper’s empirical claims.

Discrepancies

  • Empirical data substitution: Exp 1 uses synthetic proxy data instead of proprietary HSBC data. This is the biggest reason the repository cannot claim a true empirical replication.
  • Calibrated hedge correlation: The hedge-flow relation in Exp 1 is generated with calibrated noise to hit the target correlation, which weakens independent evidential value.
  • Assumption 3.4 ambiguity: Exp 2 flags failures for Scenarios 1 and 2, while still obtaining strong downstream reproduction. This suggests a paper ambiguity or indexing issue, but it remains unresolved.
  • Small cost offsets in Exp 3–4: Reproduced costs are slightly more extreme than paper values. These are small and plausibly due to time-step choice, quadrature convention, or Monte Carlo discretization.

Methodology Issues

Only a few material issues stand out:

  1. Exp 1 is a proxy study, not a direct empirical replication.
    The repository is transparent about this, which is good, but it materially limits what can be concluded.

  2. Assumption 3.4 did not numerically pass as stated.
    Since later results match well, this likely reflects ambiguity in theorem indexing or implementation details rather than total methodological failure, but it should still be treated as unresolved.

  3. Some paper ambiguities required implementation choices, including:

    • toxicity estimator definition,
    • FX day boundary,
    • missing-minute treatment,
    • Figure 11 c-grid,
    • Appendix C notation correction.

These are reasonable and documented choices, not obvious errors.


Reliability

Overall reliability is fairly high for the simulation side and moderate for the empirical side.

Positive signs:

  • 55/55 tests pass
  • pathwise identities are verified to machine precision
  • deterministic/filtering pipeline appears stable
  • multiple experiments reproduce paper tables very closely
  • directional qualitative patterns are all preserved

Red flags:

  • empirical study is synthetic
  • one theorem assumption check is flagged unresolved
  • no formal uncertainty intervals around Monte Carlo estimates are reported

So confidence is:

  • High for Exp 3, 4, 5, 6
  • Medium for Exp 2 because of Assumption 3.4 ambiguity
  • Low-to-Medium for Exp 1 as a true empirical reproduction

Verdict

Final Decision: PARTIALLY REPRODUCED

Why

The repository reproduces the paper’s main model-based quantitative findings with strong numerical agreement and preserves the central economic conclusions:

  • negligible regret from partial information,
  • momentum case outperforming mean-reverting,
  • strong risk reduction from optimal externalisation,
  • monotonic misspecification penalties.

However, it is not fully reproduced because:

  1. the empirical stylized-facts section is based on synthetic proxy data, not the proprietary HSBC dataset used in the paper, and
  2. a nontrivial methodological ambiguity remains around Assumption 3.4.

So the right assessment is partial reproduction with strong success on the theoretical/simulation components and limited success on the empirical component.

Experiments

Empirical replication of GBPUSD client-flow toxicity and hedging feedback stylized facts

Reproduce the paper’s empirical Section 4.1 using proprietary HSBC eFX GBPUSD data, focusing on one-minute client-flow aggregation, directional toxicity stylized facts, representative daily flow behavior, and the correlation between desk hedging flow and changes in client-flow increments. This experiment is independent of all simulation-based optimal control experiments and should be implemented as a standalone empirical study.

Deterministic precomputation and filtering verification for the partially observed toxicity model

Implement and verify the model’s non-standard deterministic and filtering machinery independently of any specific Monte Carlo performance comparison. This experiment focuses on the control-adjusted observation construction, partial filtration equivalence, Riccati filter covariance, innovation process, filtered-state dynamics, matrix-ODE coefficient pipeline, and theorem assumptions required before optimal trading simulations are run.

Partial-information versus full-information optimal control under mean-reverting and momentum toxicity

Reproduce the paper’s core Monte Carlo and single-path comparisons for the central risk book under two no-alpha toxicity regimes: mean-reverting toxicity and momentum toxicity. Compare the partially observed optimal strategy using filtered toxicity with the full-information benchmark using the true hidden toxicity. This experiment is self-contained and covers Scenarios 1 and 2 as well as the Table 3 entries for those cases.

Short-horizon partial-information optimal control with Ornstein-Uhlenbeck alpha and adverse toxicity response

Reproduce the short-horizon signal-driven experiment where the unaffected price contains a predictive alpha component and toxicity responds adversely to signal moves through the c dA_t term. This experiment is independent of the no-alpha scenarios and uses the OU simplification in Corollary 3.7 to express the control in terms of the current OU state U_t.

Risk mitigation and P&L distribution comparison: optimal trading versus no trading

Quantify how externalisation through the optimal strategy changes book-level risk and P&L distributions relative to a no-trading benchmark. This experiment focuses on Section 4.3 style outputs such as total P&L, trading P&L, and default/no-trading P&L histograms, and can be run independently of the partial-vs-full benchmark experiment once the partial-information strategy is available.

Naive-desk misspecification of execution-to-inflow feedback b: single-path and Monte Carlo sensitivity

Study the performance impact when the desk ignores the feedback from its own execution to future client inflow, i.e., the desk believes b=0 while the true data-generating process has b<0. This experiment reproduces the paper’s naive-desk analysis, including a single illustrative path and the Monte Carlo sensitivity table over several true b values.

Original paperRun QCA on your paper