Financial Task Design and Synthetic Data Engineering
System Architecture
Specify
Generate
Calibrate
Scale
Returns to 01 Specify: Failures and disagreements revise task specifications
Key Contributions
- Beginning in September 2023, I led financial and business decision task design for a frontier foundation model program, specifying the capability taxonomy, primary evidence standards, input schemas, decisive variables, and acceptance criteria. The diagnostic cases targeted high-stakes business decision boundaries where foundation models and practitioners repeatedly make errors. They translated doctoral or CFA-level domain judgment into testable task requirements. Together with the synthesis methods and Batch Zero below, this work was the first engineering implementation of constraint-preserving synthetic data and structured expert preference supervision for financial LLM post-training, and the company has since reused it repeatedly.
- I designed a five-level pairwise preference protocol for RLHF and DPO supervision. It records why an expert prefers one response to another, and that record is how domain knowledge becomes post-training supervision. Each judgment has to cite verifiable evidence, the relevant accounting rules, and the decisive variables. The annotations keep the evidence and reasoning behind each preference and support training models to assess whether a financial judgment has sufficient support.
- I developed financial synthetic data methods for four settings. For each task I selected a mathematical generator and adapted it to the task's structural invariants, data types, and permitted information:
- Cross-sectional corporate fundamentals. I used Gaussian and vine copulas with conditional sampling for company size, operating history, and financial ratios. These methods preserve joint dependencies across columns and avoid the unrealistic combinations that sampling each column independently produces.
- Accounting identities, ratio bounds, and chronological order. Constrained sampling, variable transformations, and covariance-weighted affine projections enforce balance-sheet and cash-flow identities, ratio ranges, and date ordering. Across 200,000 12-dimensional synthetic draws, the maximum constraint residual was . A separate standardized-residual rejection model had an acceptance rate of .
- Multimodal records with numerical and categorical fields. CTGAN and TabDDPM model the multimodal empirical distributions. Business-rule checks are mandatory after generation, and together with Lipschitz decision-margin tests and Gaussian margin-to-noise analysis () they guide reference-answer recomputation and reduce stale supervision labels.
- Continuous-time price and interest-rate paths. SDEs, neural SDEs, Brownian bridges, and stochastic interpolation generate paths for temporal financial tasks, while static cross-sectional company comparisons do not require these constructions. The work extends MathWorks-style stochastic interest-rate path construction and matches each method to the task's permitted filtration (), to keep future information from leaking into evaluation.
- I created Batch Zero to implement post-training data strategy. Starting from the capability objectives and data requirements of post-training research teams, I established a protocol for independent execution and expert calibration that a task family goes through before it enters large-scale data construction. Doctoral-level domain experts independently construct tasks, generate synthetic variants, solve reference cases, and assign five-level pairwise preference scores. The disagreements and failure modes that appear in execution inform revisions to task specifications, boundary cases, and Batch One data acceptance criteria. The foundation model company subsequently extended Batch Zero to other new post-training programs.
- I quantified stale-label errors, temporal leakage, and task-family clustering. Analytical derivations and simulations show that when labels are not recomputed, synthetic perturbations near a decision boundary produce 40.13% inherited-label error at . Undisclosed Brownian bridge endpoint conditioning creates an apparent 29.29% reduction in RMSE at the interval midpoint through future-information leakage. And with within-family correlation , 2,000 nominal synthetic variants from 100 task families amount to only effective independent observations.
Architectural Context: Task specifications and data strategy for financial post-training
In September 2023, frontier foundation models could reproduce corporate finance definitions and still made unpredictable errors in financial workflows, where a small numerical change or an accounting footnote could reverse an investment recommendation. I developed a data strategy around the capability objectives and data requirements of post-training research teams, connecting task specifications, synthesis methods, and expert calibration to address two problems:
1. Diagnosing reasoning limits through task design. I designed prompts around subtle business failure modes, including covenant breaches, off-balance-sheet adjustments, and valuation differences close to a decision boundary, because simple prompts may give little basis for telling candidate responses apart. Paired with the five-level preference protocol, these prompts turn a domain judgment such as "Response A is better because it isolates the working-capital constraint and cites Footnote 4" into structured preference supervision for post-training.
2. Matching the generator to the financial structure. Synthetic financial data has to satisfy structural constraints, stay consistent with reference judgments, and respect the task's information boundaries. A corporate table that violates Total Assets Total Liabilities Equity, even by a fraction of a percentage point, introduces a structural error. An interest-rate path that exposes a future terminal rate to a historical forecasting task introduces temporal leakage. Sections 1 through 6 give the conditions, analytical results, and validation designs for each method. Batch Zero then turns these requirements into acceptance criteria, under which experts have to be able to execute the task specification independently, reproduce reference solutions, and calibrate their judgments.
I. Distributional fit and task validity
Modern tabular generators address different distributional problems. CTGAN handles mixed discrete and continuous data, multimodality, and class imbalance through mode-specific normalization and conditional vectors, and TabDDPM runs Gaussian diffusion on numerical fields and multinomial diffusion on categorical ones (CTGAN; TabDDPM). Both can learn empirical distributions effectively. A financial task can match its distribution and still be invalid, though, because part of what makes it valid is structural. Accounting identities have to hold exactly, fiscal periods have to run in chronological order, covenant applicability conditions have to be respected, and the numerical inputs have to agree logically with the reference judgment. Global distributional similarity metrics cannot enforce any of this.
A simple construction shows how far apart the two can drift. Suppose valid financial inputs have to satisfy linear accounting or ratio identities , where has full row rank, so that the valid population distribution is supported entirely on the affine subspace . Assume this distribution has finite second moments, and let the columns of form an orthonormal basis for the normal space orthogonal to . Now take a generator that captures along the manifold but adds a small amount of independent noise in the normal directions: , where is independent of . Writing for the generated distribution, I obtain, for every ,
The first line comes from coupling on the same probability space. The second holds because is invertible and a continuous -dimensional Gaussian vector equals zero with probability zero, and taking the Borel set then gives the third. So the 2-Wasserstein distance can tend to zero while the acceptance rate under exact business constraints stays at zero () and the total variation distance stays at its maximum value of .
This counterexample motivates how I divided responsibilities in the synthetic data architecture (SDV constraint-augmented generation):
• Copula models and conditional sampling capture cross-sectional rank and tail dependencies among continuous corporate indicators, including company size, operating history, leverage, and profit margins. They preserve the dependencies that independent column generation would discard.
• CTGAN and TabDDPM model mixed-type and multimodal empirical distributions, and explicit business-rule checks follow them.
• Deterministic variable transformations and manifold projections enforce accounting equalities, ratio bounds, and chronological order.
II. Preserving the conditional distribution under business constraints
Rejection sampling generates unconstrained candidates and discards those that violate the constraints, and as several financial constraints tighten its computational cost can become prohibitive. Suppose a candidate draw produces standardized constraint residuals that behave as independent standard normal variables, each of which has to lie within . The acceptance probability and the expected number of candidate draws per valid input are
so each additional accounting or ratio constraint multiplies the expected candidate count. With a tolerance of residual standard deviations, the exact analytical values are:
| Simultaneous constraints () | Rejection-sampling acceptance rate | Expected candidate draws per valid input |
|---|---|---|
| 1 | 3.9878% | 25.08 |
| 2 | 0.1590% | 628.84 |
| 4 | 0.0002529% | 395,442.59 |
Generating directly along the degrees of freedom the constraints permit avoids these rejected draws, and in the linear Gaussian setting covariance-weighted affine projection also preserves the exact theoretical conditional distribution. For a Gaussian copula, this result requires constraints that are affine in the latent Gaussian coordinates, since nonlinear marginal transformations generally do not preserve affine constraints in the observed financial variables. Let the initial unconstrained draw be , with . To satisfy the linear constraints while preserving the theoretical conditional covariance, I apply a covariance-weighted Mahalanobis projection:
The first-order Lagrangian stationarity condition is , and substituting and eliminating the multiplier gives the closed-form update. Since , every draw satisfies exactly. Its mean and covariance are
Affine transformations preserve Gaussianity, so these moments identify the exact regular conditional Gaussian distribution of (Majumdar and Majumdar on Gaussian distributions under linear conditioning).
My synthetic validation benchmark generated 200,000 12-dimensional financial vectors subject to 4 simultaneous linear constraints. The maximum absolute constraint residual was , and the relative Frobenius covariance error against the theoretical conditional covariance was 0.662%. These were direct constrained draws with no subsequent rejection; the nearly 400,000 candidate draws reported above belong to the separate standardized-residual rejection model. Fields that accounting definitions fully determine are computed analytically. Range bounds and date ordering are enforced in the latent generation space when they admit bijective transformations, such as logarithmic transforms or positive increments .
III. Using decision margins to determine when reference judgments need recomputation
A synthetic variant of a financial reference case often keeps the business narrative and changes decisive financial figures, covenant thresholds, or macroeconomic inputs. If the original reference answer stays in place after those values change, systematic label errors enter post-training, even when all accounting constraints hold. FinQA pairs financial questions with executable reasoning programs, and synthetic preference data similarly require a maintained link between inputs, reference conclusions, and the expert's explanation of a preference (FinQA).
Consider a decision rule that chooses between two corporate actions, and let denote the net valuation or metric advantage of action A over action B, so that the correct reference decision is . If is -Lipschitz on a feasible neighborhood, a sufficient condition for retaining the original reference decision is that the perturbation stays strictly within the decision margin:
My diagnostic tasks focus on contested decision boundaries where models are prone to error, which means is deliberately kept small. For a linear comparison rule with initial margin , the stale-label error rate has an exact closed form. Let the perturbation within the feasible manifold satisfy , with projected variance . The probability that the correct label flips while the original decision is retained is
Validation with Monte Carlo draws gave the following inherited-label error rates:
• At a margin-to-noise ratio of , the error rate was 2.28%.
• At , it was 15.87%.
• Near a diagnostic decision boundary, at , it was 40.13%.
I therefore tie case expansion to reference-answer recomputation and renewed five-level pairwise preference grading when perturbations approach or cross a decision boundary. In that event the workflow recomputes the reference solution and samples new candidate model reasoning trajectories. Domain experts then assess the pair on the five-level preference scale and identify which trajectory recognized the decisive variable whose change reversed the decision and supported its judgment with primary evidence. HelpSteer2-Preference gives a comparison point from the methods literature.
IV. Specifying the information available to each temporal task
A cross-sectional company comparison does not require continuous-time stochastic processes. Dynamic tasks such as derivatives valuation, interest-rate term-structure interpolation, and liquidity stress tests over multiple periods do require path generators. For those I use SDEs and neural SDEs to model path distributions beyond single-time marginals (Neural SDEs as Infinite-Dimensional GANs). Brownian bridges and stochastic interpolation support conditioning on known intermediate observations or endpoints, following classical MathWorks stochastic interest-rate path constructions.
That conditioning can introduce temporal leakage into evaluation, and I derive the size of the effect in closed form. Consider scaled Brownian motion , where . Under squared-error loss, the optimal predictor at time , given only the historical filtration , has conditional mean squared error . If the generator conditions paths on the future endpoint and inadvertently exposes that conditioning to a forecasting task, Gaussian conditioning gives (Pitman on the Brownian bridge):
At the midpoint , conditioning on halves the conditional variance. The resulting 29.29% apparent reduction in RMSE () comes entirely from the additional endpoint information in this construction, and whether that counts as a flaw depends on the task. It is temporal leakage if the forecasting task does not permit access to that information. If instead the task gives the model both endpoints and and asks it to audit an interpolation or backcast an intervening accounting period, Brownian bridge conditioning is consistent with the specified information set.
The task specification therefore keeps three information sets apart:
1. Construction information (): the complete path, endpoint, or latent parameters used to generate a scenario.
2. Permitted predictor filtration (): the historical information the task allows the model to observe at decision time .
3. Evaluation and oracle information (): outcomes realized after , reserved for scoring or for explicitly disclosed oracle baselines.
V. Batch Zero: independent execution and calibration for post-training data strategy
I created Batch Zero around the capability objectives and data requirements of post-training research teams. Before anything scales, it brings task design, synthetic data strategy, and preference supervision under a common set of acceptance criteria. It tests whether domain experts can independently execute a research specification, reproduce reference solutions, and calibrate their preference judgments. The resulting specifications support subsequent data construction.
• Independent execution: before a task family enters large-scale data construction (Batch One), doctoral-level domain experts independently write seed cases, generate synthetic variants, verify reference solutions, and assign five-level pairwise preference scores. Implicit assumptions, missing information, and ambiguities in the specification come to light this way.
• Calibration and feedback to data strategy: failures, expert disagreements, and boundary-case errors inform revisions to task instructions, reference solutions, grading rules, and Batch One data acceptance criteria. Task design, execution, revision, and recalibration form an iterative process.
• Organizational adoption: the partner foundation model company subsequently extended Batch Zero to other new post-training programs.
For statistical analysis and evaluation, I treat the task family as the basic unit of effective coverage and uncertainty estimation. Suppose independent reference-case families each yield synthetic variants, giving nominal records, and any two variants within a family have correlation and common variance . Expanding the covariance sum for the sample mean gives the exact effective sample size :
With independent families, variants per family ( nominal tasks), and within-family correlation , the 2,000 records provide the same precision for estimating the mean as independent records. Ignoring this correlation understates standard errors by a factor of . My data workflow therefore separates training and evaluation sets at the task-family level, and all confidence intervals account for hierarchical clustering at both the family and expert levels.
VI. Staged validation and coverage efficiency
I evaluate whether constraint-preserving synthesis and preference supervision meet the data requirements of post-training research teams through staged, blinded comparisons across independent task families. The task mix, generator training budget, expert review budget, and final acceptance criteria stay fixed as each method is introduced:
| Comparison stage | Method introduced | Research and data strategy question |
|---|---|---|
| Current data construction baseline | Unconstrained generation plus expert review and rework | What is the fully loaded cost of each valid case that is ultimately accepted? |
| Add manifold-constrained generation | Hold the generator fixed; apply affine projections and variable transformations | Do invalid candidates and manual repairs decrease while the conditional distribution is preserved? |
| Add decision-margin checks and reference-answer recomputation | Recompute reference judgments when the sufficient Lipschitz margin condition fails; use to quantify Gaussian label-flip risk | Do stale-label errors decrease, with valid supervision on both sides of the decision boundary? |
| Apply Batch Zero acceptance criteria and filtration rules | Jointly check the temporal information boundaries in , independent execution, reproducibility of reference solutions, and calibration of preference standards | Do post-training gains persist after leakage is excluded and clustering by source task family is accounted for? |
Raw acceptance rates favor trivial variants of easy templates, and generation speed alone omits the cost of expert repairs, so I allocate data construction and review resources by scenario-weighted task-family coverage efficiency. Let index predefined cells in the financial capability matrix, with strategic weights () and required counts of independent valid task families :
Once a cell reaches its target of independent task families, further variants of simple templates add no coverage (Alaa et al. on synthetic data evaluation). I combine four controls: manifold constraint enforcement, decision-margin label recomputation, separation of temporal information sets, and Batch Zero calibration. Together they define task-validity standards, execution protocols, and evaluation methods for synthetic financial preference data used in post-training.