Reading OR-Learner: from orthogonal representations to credit treatment effects
Understand OR-Learner and the roles of prediction, mean effects and ranking in lending-response learning; non-public business results are redacted.
Paper:Orthogonal Representation Learning for Estimating Causal Quantities
Contents · 9 sections
Interactive explanation
Follow effect learning through R-loss
The continuous-action residual formulation connects representations, nuisance estimates and targets. It illustrates principles, not every OR-Learner variant.
Evaluate factual prediction, average effects and heterogeneity ranking separately. Improvement in one cannot compensate for failure in another.
Preserve information useful for effects
Learn Z = Φ(X) from pre-intervention features to reduce target-model complexity. Compression may merge people with different effects.
X → Φ(X) → Z
- This stage receives
- Features X, action T and outcome Y; define timestamps and sample boundaries first.
- This stage produces
- Representation Z used by the target model.
Keep in mind Nuisance models can retain raw X; compression must not discard information needed for causal adjustment.
Estimate predictable action and outcome components
e(X) and m(X) describe conditional means of action and outcome. The engineering example uses cross-fitting for out-of-sample nuisance predictions.
T_res = T − e_hat(X);Y_res = Y − m_hat(X)
- This stage receives
- Predefined sample splits and eligible features.
- This stage produces
- e_hat(X), m_hat(X), then T_res and Y_res.
Keep in mind Out-of-fold nuisance predictions do not establish full separation of representation training, preprocessing and model selection.
Explain residual outcomes with residual action variation
Optimize the residual equation on Z rather than divide each observation by near-zero T_res. Regions with little residual action variation weakly constrain slopes.
L_R = mean[(Y_res − θ(Z) × T_res)²]
- This stage receives
- Z, T_res and Y_res.
- This stage produces
- The effect function or projection θ(Z) constrained by residual loss.
Keep in mind Orthogonalization does not automatically solve unobserved confounding, wrong labels or insufficient support.
Separate calibration, ranking and policy value
Define the estimand and support, check factual prediction, average effects and ranking separately, and reserve an independent final test.
事实预测 ∥ 平均效应 ∥ 异质性排序
- This stage receives
- Frozen candidates, evaluation contract and data excluded from selection.
- This stage produces
- Evidence of capabilities and limits, not automatically a production-ready policy.
Keep in mind Better ranking does not establish calibrated magnitudes or actual policy returns.
Non-public business practice is redacted, with actual results shown as **. This note retains published principles, general method comparisons and personal reflections without disclosing a particular team’s implementation, training setup or deployment status.
What is OR-Learner?
Who is likely to default differs from whose risk changes most when their limit changes. One predicts outcomes under existing policy; the other estimates intervention responses. Strong factual prediction does not guarantee counterfactual effect accuracy.
OR in OR-Learner means Orthogonal Representation, distinct from operations research. It combines representation learning with orthogonal objectives: map high-dimensional features into easier representations, then estimate conditional average effects or potential outcomes with reduced sensitivity to nuisance errors.Published paper
Think of three stages rather than one fixed network:
| Stage | Learning target | Main role |
|---|---|---|
| Learn representations | Raw X → Representation Z = Φ(X) | Reduce target-model complexity |
| Estimate nuisance functions | Treatment assignment mechanisms, conditional outcome means and related functions | Supply nuisance estimates for the orthogonal objective |
| Learn the causal target | Optimize the chosen learner's orthogonal loss on Z | Estimate effects or their projection in representation space |
Nuisance functions support target estimation; their errors affect learning even if they are not direct policy conclusions. The framework admits DR, R, IVW and other objectives. Its name alone does not fix estimands, weights or robustness conditions.Official implementation
Compression costs information: if Z merges users with different effects, later models cannot separate them. Low-dimensionality and smoothness can ease learning but do not make lower dimensions universally better. Nuisance models may keep X; do not discard adjustment information merely to shrink the target network.Paper §4
How orthogonalization helps effect learning
Use continuous-treatment residual regression to understand R-loss. T is the processed action, Y the outcome and X the pre-intervention features:
e(X) = E[T | X] treatment 的可预测部分m(X) = E[Y | X] outcome 的可预测部分
T_res = T - e_hat(X)Y_res = Y - m_hat(X)
L_R(θ) = mean[(Y_res - θ(Z) × T_res)²]The goal is to explain remaining outcome variation using remaining action variation. Compared with calculating each observation's Y_res / T_res , optimizing the residual equation avoids division by near-zero action residuals. For nonzero T_res it equals pseudo-outcome regression weighted by T_res², so observations with little action variation weakly constrain slopes. Numerical stability is not identification support.
Orthogonality means first-order insensitivity of the estimating equation to small nuisance errors near their truth. R-learner supplies such a construction but still requires identification, support and estimation conditions. It cannot repair unobserved confounding or wrong labels.Original R-learner paper、OR-Learner Appendix B
Interpreting θ also requires conditions. Under the partially linear structure E[Y | X,T] = a(X) + τ(X)T , with true nuisance functions, a positive denominator and a sufficiently rich target class, the population optimum on representations is:
θ*(Z) = E[Var(T | X) × τ(X) | Z] / E[Var(T | X) | Z]The residual least-squares first-order condition yields a slope weighted by conditional treatment variance within representations. With nonlinear true responses, it is closer to a linear projection under observed data; multiplying by arbitrarily large action changes does not produce trustworthy counterfactuals.
Understanding orthogonal learning with continuous actions
Residualization can help organize response-learning objectives for continuous credit limits, terms or interest rates. Using an orthogonal loss does not establish every condition in the original paper. This section discusses general methods without reproducing a particular team’s training setup.
When an action is scaled or transformed, coefficients refer to the transformed units. Interpreting a business action requires returning to the original scale. Out-of-sample nuisance predictions, representation training, preprocessing and model selection also need separate data-boundary checks.
My focus: assess prediction, means and ranking separately
I study how to learn responses to credit-limit and term changes while retaining risk-prediction ability. This note keeps the problem definition and evaluation approach; actual configurations, versions, integration status and business results are redacted.
| Evaluation dimension | Question | Actual result |
|---|---|---|
| Factual prediction | Do aggregate and group predictions match observed outcomes under the current offer? | ** |
| Mean effect | Are the direction and magnitude of the average response reliable? | ** |
| Heterogeneity ranking | Can the model identify people who respond more strongly to an action? | ** |
| Stability | Are results consistent across samples, periods and groups? | ** |
** means that a non-public result has been redacted. It does not mean zero, missing data or an unevaluated result. Published paper data and teaching formulas are identified separately.
PCOC checks aggregate calibration, mean-effect estimates assess action responses, and metrics such as AUUC assess ranking. Comparisons should fix samples, groups, weights and metric definitions. Improvement in one dimension does not compensate for failure in another.
Method comparisons: organizing candidates
The following is a teaching comparison of design choices. It does not describe actual experiment rounds, training parameters, results or a team’s model selection.
| Design choice | Question to test | Actual result |
|---|---|---|
| Freeze the base and learn an incremental response | How can action responses be learned while preserving the original predictions? | ** |
| Add interactions between actions | Are joint responses supported by data and consistent with the full response constraints? | ** |
| Allow limited representation updates | Do representation updates change the trade-off between prediction, calibration and ranking? | ** |
These choices should be compared under compatible data and evaluation protocols. When several objectives, architectures and training settings change together, the comparison evaluates the full configuration rather than isolating one module’s contribution.
Separate mean effects from within-group ranking
A general approach is to model the mean response and individual differences separately, then assess the combined response surface. The following formula explains the division of work and does not specify a production model.
Δ_hat_g(X) = a_g + h_g(X) - E_train,w[h_g(X)]The groups, weights and reference distribution used for centering must be explicit. A zero mean under the training reference distribution does not guarantee a zero mean in a future population. If weights change with the action, the weighted estimand must also be defined.
A pairwise objective depends on prediction differences. Adding the same constant to every prediction in a group leaves those differences unchanged, so the objective alone cannot identify the overall mean. Shared representation updates can still change that mean, requiring additional constraints and calibration checks.
Similarly, zero initialization constrains the starting point rather than guaranteeing unchanged predictions after training. A loss term’s numeric share is not its share of gradient contribution. Objective conflicts should be studied using gradients and directions over the same parameter set.
Ranking metrics and uncertainty
If the denominator of a normalized metric depends on the true mean effect, its interpretation can become unstable near zero or after a sign change. Report the underlying effects, ranking definition and uncertainty together rather than judging a candidate from one aggregate score.
RATE provides a family of treatment-prioritization measures, but raw AUUC and RATE are not automatically equivalent. Curves, baselines, weights and integration rules need separate definitions. Removing an unstable denominator does not remove uncertainty from finite samples or repeated model selection.
Cross-fitting training folds overlap and are not independent experimental replications. OOF or OOT data repeatedly used for selection cannot also serve as final unseen data. Frozen candidates still require independent evaluation.
What I take from the method
For me, the framework is useful for separating questions: whether representations preserve information, whether the orthogonal objective matches the estimand, whether means are calibrated, and whether ranking is reliable. Actual business results remain **; method demonstrations do not replace empirical evidence.
Before a model informs policy, its outputs also need independent checks of action support, constraints and policy value. Effect ranking, effect size and final value are distinct kinds of evidence and must be validated separately.
References:Published OR-Learner paper、arXiv v4、Official code、R-learner、RATE。