Papers
Topics
Authors
Recent
Search
2000 character limit reached

Empirical Soft Regret (ESR)

Updated 4 March 2026
  • Empirical Soft Regret (ESR) is a surrogate loss function designed for binary decision-making under bandit feedback, directly targeting reduction in decision regret.
  • It smooths a non-differentiable indicator using a logistic function, enabling gradient-based optimization with flexible models like neural networks.
  • Empirical results on recommendation and causal inference benchmarks demonstrate ESR's ability to achieve lower regret and higher click-through rates compared to traditional methods.

Empirical Soft Regret (ESR) is a surrogate loss function for the predict-then-optimize paradigm in binary decision-making under bandit feedback. ESR directly targets reduction in decision regret, distinguishing itself from classical mean-squared error (MSE) and related approaches by being specifically designed for settings where only observed rewards for chosen actions (not counterfactual outcomes) are available. The ESR loss is constructed to be differentiable, enabling the training of highly flexible parametric models, including neural networks, through gradient-based optimization. ESR is theoretically justified under paired-data idealizations and empirically validated on benchmarks in recommendation and causal inference, where it achieves lower regret than state-of-the-art baselines (Tan et al., 2024).

1. Predict-then-Optimize Setup and Regret Formulation

In the predict-then-optimize framework, a practitioner observes historical data consisting of triplets (wi,xi,yi)(w_i, x_i, y_i), where wiWw_i \in \mathcal{W} is a context, xi{0,1}x_i \in \{0,1\} is a binary action, and yi=f(xi,wi)y_i = f(x_i, w_i) is the realized reward from an unknown function f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}. For each new context ww, the goal is to select xx that maximizes reward.

A parametric model f^θ(x,w)\hat f_\theta(x, w) is trained to predict outcomes. The induced policy is

πθ(w)=argmaxx{0,1}f^θ(x,w)\pi_\theta(w) = \arg\max_{x \in \{0,1\}} \hat f_\theta(x, w)

and the regret at context ww is

wiWw_i \in \mathcal{W}0

The objective is to minimize expected regret wiWw_i \in \mathcal{W}1, rather than pointwise prediction error.

2. ESR Loss Definition and Surrogate Construction

The canonical “hard” empirical regret for a datapoint wiWw_i \in \mathcal{W}2 and its counterfactual is

wiWw_i \in \mathcal{W}3

where wiWw_i \in \mathcal{W}4 and wiWw_i \in \mathcal{W}5. The indicator function is not differentiable with respect to wiWw_i \in \mathcal{W}6.

ESR replaces the non-differentiable indicator with a smooth logistic surrogate. For smoothing parameter wiWw_i \in \mathcal{W}7: wiWw_i \in \mathcal{W}8 In practical bandit feedback, both wiWw_i \in \mathcal{W}9 and xi{0,1}x_i \in \{0,1\}0 may not be observed for each xi{0,1}x_i \in \{0,1\}1. ESR approximates counterfactuals via nearest-neighbor pairing across actions: xi{0,1}x_i \in \{0,1\}2

xi{0,1}x_i \in \{0,1\}3

Yielding the empirical soft regret loss: xi{0,1}x_i \in \{0,1\}4

3. Derivation, Differentiability, and Gradient Structure

As xi{0,1}x_i \in \{0,1\}5 with xi{0,1}x_i \in \{0,1\}6, ESR recovers the hard regret: the denominator becomes xi{0,1}x_i \in \{0,1\}7 where signs disagree (incorrect decision) and xi{0,1}x_i \in \{0,1\}8 otherwise (correct decision). The loss is differentiable with respect to model parameters: xi{0,1}x_i \in \{0,1\}9

yi=f(xi,wi)y_i = f(x_i, w_i)0

where yi=f(xi,wi)y_i = f(x_i, w_i)1. This direct differentiability makes ESR amenable to modern autodiff and optimizer frameworks.

4. Training Implementation

Training with ESR involves the following steps for each epoch:

  • Precompute neighbor indices yi=f(xi,wi)y_i = f(x_i, w_i)2 using KD-tree or approximate nearest neighbors in context space,
  • For each minibatch, for each yi=f(xi,wi)y_i = f(x_i, w_i)3 compute:
    • yi=f(xi,wi)y_i = f(x_i, w_i)4,
    • yi=f(xi,wi)y_i = f(x_i, w_i)5,
    • yi=f(xi,wi)y_i = f(x_i, w_i)6,
  • Batch loss is yi=f(xi,wi)y_i = f(x_i, w_i)7,
  • Backpropagate gradient yi=f(xi,wi)y_i = f(x_i, w_i)8 using standard optimizers (e.g., Adam).

Hyperparameters include smoothing yi=f(xi,wi)y_i = f(x_i, w_i)9 (typical values in f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}0) and learning rate. For numerical stability, arguments to f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}1 should be clipped to f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}2. The nearest-neighbor search requires f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}3 preprocessing.

5. Theoretical Properties: Asymptotic Optimality

Under the idealization where both actions are observed for each context (paired data), and assuming:

  • Bounded action gap: f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}4,
  • Model class has covering number f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}5,
  • The predicted difference f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}6 does not concentrate near zero too rapidly,

one establishes, for f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}7 and regularity on the function class, that: f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}8 at exponential probability, where f:{0,1}×WRf:\{0,1\} \times \mathcal{W} \to \mathbb{R}9 and ww0 minimizes ww1. The proof builds on uniform convergence of the soft surrogate to hard regret and balances statistical complexity with the smoothing bias via choice of ww2.

6. Empirical Results and Benchmarks

ESR has been evaluated on two distinct benchmark domains:

  • IHDP semi-synthetic CATE Benchmark (ww3, 25 covariates):

    • Baselines: S-learner, T-learner, R-learner, DR-learner using two-layer neural nets.
    • Test-set regret (95% CIs over 1000 runs):
    Method Test Regret (95% CI)
    S-learner [1.02, 1.36]
    T-learner [0.70, 0.97]
    R-learner [2.81, 3.19]
    DR-learner [0.77, 1.21]
    ESR (ww4) [0.35, 0.43]
  • Yahoo! R6A News Recommendation (ww5M impressions, 20 articles):

    • Binary reduction by sampling article pairs.
    • Off-policy evaluation via naive IPS; baseline methods as above.
    • Estimated click-through rate (95% CIs over 10 days):
    Method CTR (95% CI)
    ESR [4.11%, 4.45%]
    Direct (MSE) [3.72%, 4.04%]
    T-learner [3.57%, 3.84%]
    R-learner [3.56%, 3.84%]
    DR-learner [3.50%, 3.79%]

In both settings, ESR outperforms established baselines with statistical significance.

7. Implementation Notes, Scope, and Limitations

Recommended settings for ESR include smoothing ww6 and learning rates around ww7. Standard optimizers are effective. Nearest-neighbor retrieval in ww8 is critical to construction of pseudo-counterfactual pairs and directly affects regret estimation accuracy; high data sparsity can limit performance. The main computational overhead is in one-time neighbor search; subsequent training is standard.

ESR is most beneficial when counterfactual outcomes are absent and classical MSE is insufficient due to context-dependent reward shifts. It enables direct minimization of regret rather than pointwise error, providing a performance advantage in decision-focused scenarios such as bandit feedback, policy learning, and individualized treatment effect estimation.

Limitations include restriction to binary actions; generalization to multiple or continuous actions is an open area. The method presumes model capacity sufficient to learn the true reward gap structure. Nearest-neighbor quality depends on ww9 geometry and data density, introducing a tradeoff between approximation fidelity and computational cost.

For comprehensive mathematical development, empirical results, and implementation details, see (Tan et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Empirical Soft Regret (ESR).