Elamur Research

Invariant Risk Minimization

Paper · 2019 · Martin Arjovsky, Léon Bottou, Ishaan Gulrajani et al.

Summary

A classifier can do well on photographs of cows and camels by paying attention to the ground. If the cows were usually photographed on grass and the camels on sand, the background helps answer the question on those photographs. A cow photographed on a beach exposes the weakness of that rule. Invariant Risk Minimization, or IRM, asks whether differences between collections can expose a shortcut before it fails. The authors propose keeping training examples grouped by the conditions in which they were collected, then using those groups to find a way of describing inputs that supports the same best prediction rule in every group. Machine learning

A collection gathered under a particular set of conditions is called an environment. A feature can be useful in every training environment and still betray its unreliability if each environment calls for a different rule for using it. In the paper’s opening regression example, one input helps generate the target and another is generated from it. Both inputs contain information about the target, but only the regression on the first input has coefficients that survive changes in the generating conditions. The example explains why pooling data, minimizing the worst observed error, aligning feature distributions, and matching distributions of regression errors can each miss that stable rule.

The ideal IRM objective searches for a useful representation and requires one final predictor to be optimal on it in every training environment. The practical version, IRMv1, lets the representation produce the prediction directly. During training, it checks whether changing a fixed multiplier on that prediction would improve the loss in each environment. The authors also give a linear theorem connecting agreement in training to transfer under related shifts. The theorem requires a recoverable stable signal and enough diversity among the training environments. The causal argument specifies which changes a predictor should withstand, allowing the target to become noisier while preserving the relationship that determines its expected value.

In synthetic regression, IRM recovers the intended coefficients more accurately than pooled training or invariant causal prediction. In Colored MNIST, the authors make color a better clue than digit shape during training, then reverse its association with the target at test time. Ordinary training achieves high training accuracy and falls below chance on the test environment. IRM gives up some training accuracy, transfers better, and comes closer to a grayscale reference that has color removed in advance. The authors’ analysis of the predictions shows that this learned invariance is approximate.

The method depends on the information the environments and the predictor can supply. A restricted class of predictors can make an uninformative rule the only invariant choice, in which case validation can favor a return toward ordinary training. The authors leave general nonlinear guarantees open. They close by proposing other ways to define environments, including episodes in reinforcement learning and groups in a fairness problem, and ask whether group theory could help formalize the idea.

Deep dive: Invariant Risk Minimization

Invariant Risk Minimization learns a shared prediction rule across training environments to reduce reliance on correlations that may fail at test time. · about 45 minutes to read

The problem and its context

When a collection rewards a shortcut

The easiest pattern to detect in a collection can be the pattern most dependent on how the collection was assembled. In the animal example, the background is visible over much of an image. Detecting vegetation may give a reliable answer on the pictures a trainer has gathered. The training objective gives the system a reason to use that evidence. The objective has access to the photographs and their labels, and its error tells it whether the association works there.

Now imagine collecting the photographs in different countries. In the authors’ illustration, one collection shows cows on grass 80% of the time and another shows them on grass 90% of the time. The background remains attractive in both places. The change in its usefulness is the evidence. These proportions suggest that conditions external to the animal influence how frequently the cue accompanies the label. Pooling the pictures would leave a strong association between grass and cows while hiding how it varies by source.

The paper uses spurious in this prospective sense. A correlation can be genuine in the data and unreliable over the range of conditions in which the predictor will be used. Deciding what counts as a shortcut therefore entails deciding what changes the prediction should withstand. If the photographs always came from one tightly controlled procedure, a background cue might continue to work. A system intended to identify the animals across locations needs evidence that has a wider range of validity.

The handwriting example gives a quieter version of the same problem. The original NIST handwritten data came from writers working under different conditions. The familiar MNIST train and test splits were assembled to contain similar mixes of writers. Such a split makes it easier to ask how well a classifier will do on more examples from a similar mixture. It also removes a source of evidence about which properties of handwriting remain useful as the writer or collection conditions change. A score from the mixed split answers the former question directly. Learning about the latter requires keeping track of the conditions that produced the observations.

An environment in IRM is a distribution over the same inputs and targets as the other environments. Examples from one environment can be treated as independent draws from that distribution. Examples from another environment can follow a different distribution. A location, a measurement procedure, or an intervention can supply the distinction. The grouping tells the learner where to look for changes in predictive behavior. The final predictor is still a function of its input, so it can be applied when a test case arrives from a previously unobserved environment.

What earlier approaches optimize

Empirical risk minimization, or ERM, chooses a predictor by minimizing average loss on training examples. If observations from several environments are pooled, the resulting predictor serves the mixture represented in that pool. Increasing the amount of data from the same mixture can improve the estimate of which rule works for it. Even with a precise estimate, a cue rewarded by the mixture can dominate the fit. The issue studied in the paper can arise at the level of population risks, before sampling noise becomes a concern.

One response is to make the training criterion less forgiving of poor performance in an individual environment. The robust objective examined in the paper minimizes the largest environment loss after subtracting an environment-specific reference value. With all reference values set to zero, the criterion concentrates on whichever training environment has the highest loss. Other reference values can account for inherent difficulty. An environment with noisier targets can have a larger error even when the predictor captures everything that can reliably be learned from its inputs.

The authors develop a proposition about this robust objective. Under differentiability and the qualification conditions needed for the constrained optimization argument, its solution is stationary for a weighted sum of training risks, with non-negative weights. The weights can differ from the ones used by a pooled fit. In the opening regression example, every relevant mixture of the training environments still gives the learner a reason to lean on an unstable input. The robust criterion changes which observed errors get emphasis, yet all the observed conditions reward the same basic dependency. A new condition that disrupts that dependency poses a different problem from reweighting those already observed.

Domain adaptation, as discussed in the paper, starts with labeled source data and unlabeled target data. A common approach learns features whose distributions match across the two sources while retaining enough information for prediction on the labeled data. This can be an attractive response when differences between sources concern nuisance properties. A genuine cause of the target can also change in frequency or scale, however. An accurate prediction rule may need to preserve that feature and follow the change in its distribution. The authors’ regression example changes the distribution of precisely the input that supports the stable rule.

Invariant causal prediction provides a closer precedent. In the version examined here, a researcher considers subsets of measured variables, fits regressions in the different environments, and checks whether the distributions of their residuals agree. A residual is the error left after the fitted rule has made its prediction. Requiring stable residuals gives a statistical way to look for variables involved in a stable mechanism. In the authors’ example, the correct regression has residuals whose variance changes with the environment. The prediction is still optimal, but the residual criterion can reject it.

The paper identifies a second obstacle to applying that version of invariant causal prediction. It searches through subsets of observed variables and treats their coordinates as meaningful candidates. That can be expensive in high dimensions. It can also be the wrong search space. Pixels jointly describe shapes and scenes, and a causal variable of interest need not be legible in any individual pixel. IRM makes the transformation of observed variables part of the learning problem. Its test of stability applies after that transformation.

The causal motivation draws on earlier discussions of how to distinguish useful regularities from the incidental associations a learner can exploit. The authors connect their work to critiques of what current learning methods recover from data and to prior work that uses prediction under changed conditions to investigate causation. The particular question IRM takes from that context is whether several observational settings support a common rule once the variables have been described appropriately. Building Machines That Learn and Think Like People and Deep Learning: A Critical Appraisal

What generalization means here

A test drawn from the same distribution as training asks whether a predictor has learned a useful rule for that source. The paper’s out-of-distribution question concerns a family of related environments that includes unfamiliar conditions. Its criterion is the largest expected loss anywhere in that family. A predictor with good average performance can therefore be a poor answer to the problem if a permissible change can make its loss very large.

The scope of the family matters as much as the choice of worst-case criterion. The authors allow hypothetical interventions as well as conditions that have already been observed. They subsequently restrict the interventions so that the target retains a predictable relationship to the variables that directly determine it. This gives content to the phrase out of distribution. The proposed rule should survive the changes allowed by that definition. In particular, changing the reliability of a measurement downstream of the target can expose dependence on a cue that seemed helpful throughout training.

The observed worst environment and the worst environment in this broader family occupy different roles. The former can be evaluated directly on training collections. The latter is a property of the task the authors define, including interventions for which there may be no examples. IRM uses consistency among the observed environments as evidence about that larger family. Its theory asks when this inference is warranted.

The method, step by step

A regression in which useful evidence changes character

The authors build a small example in which the direction of the generating relationships is known. A variable is drawn at random, the target is formed from it, and an additional measurement is formed from the target. Both the first variable and the additional measurement are available as inputs. The learner has to decide how to use them from examples drawn under different conditions.

X₁ ← Gaussian(0, σ²)

Here X₁ is the first input. The arrow signifies a generating assignment. The Gaussian distribution has mean 0 and variance σ², where σ describes its scale.

Y ← X₁ + Gaussian(0, σ²)

Y is the target. Its mechanism adds an independent Gaussian draw to X₁. The added noise has mean 0 and the same variance σ² in this construction. Knowing X₁ determines the best squared-error estimate based on that input alone, while the actual value of Y still depends on the noise draw.

X₂ ← Y + Gaussian(0, 1)

X₂ is the second observed input. It measures Y with additional independent Gaussian noise of mean 0 and variance 1. This measurement is informative about the actual target, including some of the variation left unexplained by X₁. Its predictive value can be high precisely because it is measured downstream of Y.

The training environments set σ² to 10 and 20, respectively. Within either environment, the least-squares fit can make good use of X₂. The test family is wider. It allows changes to the equations for either input, and it allows the variance of the noise in Y to vary within a finite range. In one example of a permissible change, the mechanism for X₂ is replaced by a constant assignment of 10⁶. The familiar interpretation of X₂ as a reading of Y disappears altogether.

Ŷᵉ = X₁ᵉ α̂₁ + X₂ᵉ α̂₂

Ŷᵉ is a prediction in environment e, and the superscript marks the environment of the input variables X₁ and X₂. The fitted coefficients α̂₁ and α̂₂ determine the contribution of the corresponding inputs. An input excluded from the regression receives coefficient zero.

(α̂₁, α̂₂) = (1, 0)

This is the fit using X₁ alone. A coefficient of 1 returns the conditional mean of Y given X₁. The coefficient of 0 on X₂ records its exclusion. Because the target noise is centered in both training environments, the same coefficients apply in each.

(α̂₁, α̂₂) = (0, σ(e)² / (σ(e)² + ½))

This is the fit on X₂ alone. Here σ(e)² is the variance parameter in environment e, and ½ is the constant in the paper’s denominator. The target-related signal in X₂ changes scale relative to its measurement noise, so the coefficient that makes best use of X₂ also changes.

(α̂₁, α̂₂) = (1 / (σ(e)² + 1), σ(e)² / (σ(e)² + 1))

This is the fit when both inputs are available. Each coefficient depends on the variance parameter. The regression gives X₂ substantial weight in the training environments because observing X₂ helps recover the part of Y that X₁ leaves uncertain.

If an intervention can assign X₂ an arbitrarily large value, a fixed non-zero weight on X₂ can push the prediction arbitrarily far from the target. Dropping X₂ and using the wrong coefficient on X₁ also leaves error that can become unbounded when the allowed interventions vary X₁. The paper identifies the regression on X₁ with coefficient 1 as the linear rule with finite risk across the stated family. Its remaining squared error comes from the bounded target noise. An empty set of features can also support a shared regression among the training environments, so the search for agreement needs a separate criterion for predictive value.

Keep the losses attached to their environments

Rᵉ(f) = 𝔼₍Xᵉ,Yᵉ₎[ℓ(f(Xᵉ), Yᵉ)]

Rᵉ is the risk in environment e. The function f maps an input to a prediction, and ℓ gives the loss of that prediction against the target. The expectation 𝔼 averages over the joint distribution of Xᵉ and Yᵉ in the designated environment.

Rᴼᴼᴰ(f) = maxₑ∈ℰall Rᵉ(f)

Rᴼᴼᴰ is the out-of-distribution risk. The maximum is over environments e in ℰall, the family of conditions that defines the task. The training environments, collectively denoted ℰtrain, form a subset of that family. The objective is to find f with low risk even at the most unfavorable permissible change.

The robust baseline uses a maximum as well, but its maximum ranges over observed training conditions. The difference is visible in the optimization.

Rʳᵒᵇ(f) = maxₑ∈ℰtrain [Rᵉ(f) − rₑ]

Rʳᵒᵇ is the robust training objective, and rₑ is the baseline subtracted from the risk in environment e. A larger baseline can reduce the influence of a condition that is intrinsically hard. The authors explain the link to weighted risk by introducing a shared upper bound on the adjusted losses. At the robust solution, each environment supplies a constraint on that bound. The optimization conditions associate a non-negative multiplier with each constraint.

∇f [Σₑ∈ℰtrain λₑ Rᵉ(f)] evaluated at f = f⋆ equals 0

Here f⋆ is a minimizer of the robust objective. The gradient ∇f is taken with respect to the parameters of f. The symbols λₑ are the non-negative multipliers supplied by the optimization conditions, and Σ sums over training environments. The equation states a first-order condition. Whether stationarity is sufficient for a minimum depends on the risks and predictor family. The authors use the condition to characterize what remains attractive in the simple squared-error example.

Ask what a shared representation makes predictable

A representation is a function that converts raw inputs into features for a final prediction rule. Suppose a learner settles on a representation. The ideal IRM question is whether a researcher fitting the final rule separately in different environments could choose the same rule and have it be optimal every time. The representation can retain useful input properties even when their frequencies or variances change. What it must support is a common way of turning its outputs into predictions.

For the motivating regression, a representation retaining only X₁ passes that test. Even the noisier environment wants the same prediction based on X₁. A representation that exposes both X₁ and X₂ lets each environment benefit from making a different choice about their relative weight. Thus a representation can offer more information in a given environment and be less suitable for the prediction task across environments.

w ∈ argmin over w̄: ℋ → 𝒴 of Rᵉ(w̄ ∘ Φ), for every e ∈ ℰ

Φ maps the input space 𝒳 to the representation space ℋ. The decision rule w maps ℋ to the output space 𝒴, and w̄ stands for a candidate rule of the same type. The operator ∘ means composition, with Φ applied first. The expression argmin denotes all rules attaining the smallest risk, and ℰ is the family of environments on which invariance is being asserted. The requirement is membership in every environment’s set of optima. Uniqueness of the optimum in each environment is unnecessary.

For squared error, the optimum over unrestricted prediction functions is the conditional mean. For cross-entropy, it is the conditional label probability, which can be described as a conditional expectation when labels are represented by indicators. The comparison can therefore be expressed in terms of what a feature value tells us about the target.

𝔼[Yᵉ ∣ Φ(Xᵉ) = h] = 𝔼[Yᵉ′ ∣ Φ(Xᵉ′) = h]

The symbols e and e′ are the environments being compared, and h is a representation value in their common support. The vertical bar indicates conditioning on the represented input having that value. The equation compares the expected targets for the same h. It leaves each environment free to produce h more or less often and, in the squared-error case, to have a different spread of outcomes around the same expected target.

The ideal training problem combines this test with a demand for useful predictions.

min over Φ: 𝒳 → ℋ and w: ℋ → 𝒴 of Σₑ∈ℰtrain Rᵉ(w ∘ Φ)
subject to w ∈ argmin over w̄: ℋ → 𝒴 of Rᵉ(w̄ ∘ Φ) for every e ∈ ℰtrain

The outer minimum chooses Φ and w. It adds their risks over the training family. Inside the constraint, each minimization over w̄ holds Φ fixed and asks what that environment would choose given those features. The loss favors a representation that retains predictive information. The constraints limit which representations and rules can compete on that loss.

Training with the practical IRM objective

The steps in order.

Training with the practical IRM objectiveStep 1: Keep the training environments separate1. Keep the training environments separateStep 2: Map inputs to predictions with a shared function2. Map inputs to predictions with a shared functionStep 3: Compute prediction loss in each environment3. Compute prediction loss in each environmentStep 4: Differentiate each loss with respect to prediction scale4. Differentiate each loss with respect to prediction scaleStep 5: Penalize the squared derivatives at unit scale5. Penalize the squared derivatives at unit scaleStep 6: Update the shared function using both terms6. Update the shared function using both terms

Replace the inner fits with an optimality penalty

The ideal constraint has an optimization problem inside another optimization problem. As the representation changes, the best final rules can change with it. The authors first consider expressing the inner requirement through a differentiable discrepancy.

LIRM(Φ, w) = Σₑ∈ℰtrain [Rᵉ(w ∘ Φ) + λ · 𝔻(w, Φ, e)]

LIRM denotes this penalized objective. The quantity 𝔻 measures how far w is from being optimal in environment e for the current Φ. The coefficient λ is non-negative and controls how strongly the training objective favors the desired form of agreement. A suitable discrepancy should be informative about optimality while remaining amenable to optimization as the representation changes.

For linear least squares on fixed features, the separate optimum in an environment has a closed form under an invertibility assumption.

wᵉΦ = 𝔼[Φ(Xᵉ) Φ(Xᵉ)ᵀ]⁻¹ 𝔼[Φ(Xᵉ) Yᵉ]

The symbol wᵉΦ is the fitted weight vector for Φ in environment e. The transpose ᵀ turns a column vector into a row. The first expectation is a matrix of uncentered feature second moments, and the second is a vector of feature–target cross moments. The superscript ⁻¹ is a matrix inverse, which requires the first matrix to be invertible.

One possible discrepancy is the squared distance between the shared weight vector and this independently optimal one. The paper assesses what happens when the representation shrinks the coordinate carrying X₂. If that coordinate still contains the original information at a smaller scale, an independently refitted rule can compensate by boosting its coefficient. As the scale approaches zero, the independently fitted coefficient can grow without bound. At zero, that coordinate is gone. The distance between weight vectors therefore behaves badly near the representation the search is supposed to discover. At the other extreme, enlarging the coordinate can make the fitted coefficient arbitrarily small. The authors’ comparison also examines a regularized version of this distance.

The alternative asks whether the shared weight vector satisfies the equations for a least-squares optimum. Those equations can be checked without inverting a moment matrix.

𝔻lin(w, Φ, e) = ‖𝔼[Φ(Xᵉ) Φ(Xᵉ)ᵀ] w − 𝔼[Φ(Xᵉ) Yᵉ]‖²

𝔻lin is the least-squares discrepancy. The first term inside the norm multiplies the feature second-moment matrix by w. The second term is the feature–target cross moment. The squared norm ‖·‖² measures the mismatch. It vanishes when the normal equations hold, which characterizes a least-squares solution even when an inverse is unavailable. The penalty is smooth in the feature values and the weights. This removes the discontinuity in the example, and the joint objective can still have multiple distinct solutions.

Fix the final rule and test a change of scale

A trainable representation and a trainable final rule can compensate for one another. Multiplying the representation by a small, non-zero scale and dividing the classifier weights by that scale preserves each prediction. In the normal-equation discrepancy, the residual itself shrinks under this reparameterization. Thus the loss can register apparent progress on invariance even when the prediction function is exactly the same.

w ∘ Φ = (w ∘ Ψ⁻¹) ∘ (Ψ ∘ Φ)

Ψ is an invertible transformation on the representation space, and Ψ⁻¹ reverses it. The right-hand side applies Ψ after Φ and absorbs the inverse into w. The equation shows how the same predictions can be written using different internal choices. The authors use that freedom to fix a non-zero final rule and let Φ do the work of adapting the predictions. With the rule fixed, the particular rescaling that depends on changing both pieces is unavailable.

A theorem explains how far this reduction can go for linear predictors with convex, differentiable environment costs. Consider a coefficient vector v for the complete prediction rule. A linear representation Φ restricts which coefficient vectors a final layer can produce. For any final weight vector w, the full coefficient vector is Φᵀw. At an optimum over that restricted family, the full risk gradient must be perpendicular to the directions in which the final layer can move.

vᵀ ∇Rᵉ(v) = 0, for every e ∈ ℰ

Here v is the complete linear predictor’s coefficient vector, ∇Rᵉ(v) is the gradient of environment e’s risk with respect to those coefficients, and vᵀ forms the inner product with that gradient. The theorem says that v admits some linear representation and a common optimal final rule exactly when these inner products vanish in every environment in ℰ.

To see why, first suppose such a decomposition exists. Changing the final weights moves the full predictor only in the row space of the representation matrix. The risk gradients must be orthogonal to that space if the weights are optimal. The full predictor lies in the same row space, which gives the displayed condition. Conversely, if v is perpendicular to every environment gradient, one can take a representation whose row space is spanned by v. The gradients then have no component along the direction a final scalar can change. Convexity ensures that stationarity along that direction gives optimality over the scalar family.

This characterization also describes richer decompositions. The nullspace of Φ consists of vectors mapped to zero. It must contain the environment gradients and be perpendicular to v. Different nullspaces can satisfy those requirements for the same v, so a predictor that can be monitored by a scalar may also have an invariant decomposition with more retained information. This distinction becomes important in the theorem about transfer. With squared loss, the paper depicts the feasible sets for the individual environments as ellipsoids. Intersecting them can produce disconnected components, one containing the zero predictor. A simple test of membership in those sets does not make their intersection easy to search.

Train the practical objective

IRMv1 has the feature-producing function output the prediction or prediction scores directly. A scalar w multiplies that output. During training, the authors differentiate the environment’s prediction loss with respect to the scalar at its fixed value. The derivative says whether a small change in scale could help that environment. A common scale can be optimal in the pooled data even when it is too large for one environment and too small for another, so the derivatives are squared separately before summation.

min over Φ: 𝒳 → 𝒴 of Σₑ∈ℰtrain [Rᵉ(Φ) + λ · ‖∇w Rᵉ(w · Φ) evaluated at w = 1.0‖²]

Φ now maps the inputs in 𝒳 to outputs in 𝒴. Rᵉ(Φ) measures its ordinary prediction loss in environment e. The product w · Φ multiplies its output by w, and ∇w differentiates the risk with respect to that scalar. The squared norm penalizes the size of the derivative at 1.0. The regularization weight λ sets how much the penalty counts alongside the losses. The optimization updates Φ. The scalar is held fixed and supplies the direction in which optimality is tested.

For a differentiable convex loss as a function of the scalar, a vanishing derivative means that the assigned scale is optimal within this family of adjustments. This applies to squared error and to cross-entropy as used in the paper. A nonlinear Φ can still produce a nonlinear prediction function. When there are several outputs, all are multiplied by the same scalar, so the test probes their joint scale. An environment might benefit from a different kind of change, such as a change to the shape of the mapping from a representation to predictions, while having little to gain from a scale adjustment. That possibility is part of the gap between IRMv1 and the ideal constraint.

For stochastic training, the paper discusses the difference between the square of a population gradient and the expectation of the square of a noisy gradient estimate. The target penalty concerns the former. With independent batches, one can estimate a product of expected gradients by multiplying separate batch gradient estimates. This uses within-environment samples on both sides of the product. Combining examples from different environments at this point would test a different condition.

The authors provide a short PyTorch implementation and release the experimental code. The illustration divides an environment’s sampled losses into alternating subsets, takes the mean and scalar derivative for each subset, and multiplies the derivatives. The computation retains the derivative information needed to update Φ through the penalty. This makes the procedure an outer optimization over the prediction function, with a derivative inside the objective used as the test for each environment.

Specify which interventions the rule should survive

The causal part of the paper writes the data-generating process as structural equations. Each variable is produced by a function of other variables and a noise term. The arrows joining a variable’s direct inputs to that variable define a causal graph. The graph is acyclic, allowing the assignments to be run in an order where a variable’s inputs have already been generated.

Xᵢ ← fᵢ(PA(Xᵢ), Nᵢ)

Xᵢ is the variable indexed by i. The function fᵢ generates its value from its direct causal parents, denoted PA(Xᵢ), and its noise Nᵢ. The noise variables in the system are independent. The arrow describes an assignment by the mechanism, which can be replaced when considering an intervention.

Running the assignments as given yields an observational distribution. Replacing an assignment or its noise law yields an interventional distribution. In the regression example, setting X₂ to 0 regardless of Y is an intervention. It destroys the measurement relationship between X₂ and the target, while the rule that generates Y from X₁ can continue to operate.

The authors call an intervention valid for their task if it preserves acyclicity, keeps the conditional mean of Y given its direct parents fixed, and leaves its conditional variance within a finite range. Using an environment-specific reference in the worst-risk criterion could relax the variance requirement, as the paper notes. With raw risk, the range matters because growing target noise alone could make the maximum risk unbounded.

𝔼[Yᵉ ∣ PA(Y)] = 𝔼[Y ∣ PA(Y)]

Yᵉ is the target under intervention e, and Y is the target in the original system. PA(Y) denotes the direct causal parents of the target. The conditional expectation on each side is evaluated as a function of their values. That function must agree across the intervention and the original system. The distributions of the parent values can vary.

v(x) = 𝔼₍Nᵧ₎[fᵧ(PA(Y), Nᵧ)]

Here v is the stable predictor and x supplies the input, including the parent information used in the formula. The function fᵧ is the target mechanism, and Nᵧ is its noise. Taking the expectation over Nᵧ gives the parent-based prediction. For the family of interventions they define, the authors connect this rule to both invariance over the family and optimal worst-environment risk. The breadth of the family is what makes reliance on other information vulnerable. An intervention can change the usefulness of an effect or a proxy while preserving the parent-based prediction.

The paper also explains why the invariance perspective is useful when the causal graph among measured variables is awkward to specify. A camera records pixels, whereas the properties that explain what it depicts can be described at a different level. The learning goal can be a representation exposing a stable relationship useful for prediction. The full collection of mechanisms that generated every observed coordinate is a much larger object.

Show when training agreement identifies a transferable linear rule

The linear generalization theorem has a latent-variable setup. A latent variable is part of the generating description but need not be observed as a separate input. Here one latent component has a stable relation to the target, and another can carry additional information that fluctuates across environments.

Yᵉ = Z₁ᵉ · γ + εᵉ

Z₁ᵉ is the stable latent vector in environment e, γ is a fixed coefficient vector, and the dot indicates their inner product. The error εᵉ has mean zero and is independent of Z₁ᵉ. These assumptions make the expected target at a given Z₁ᵉ depend on γ in every environment. The other latent component, Z₂ᵉ, is allowed to be correlated with the stable component or with the error. Knowing Z₂ᵉ can therefore improve local predictions by providing information about εᵉ.

Xᵉ = S(Z₁ᵉ, Z₂ᵉ)

The matrix S linearly mixes the latent variables to give the observed input Xᵉ. The dimensions of Z₁ᵉ and Z₂ᵉ are c and q, respectively, and the observed dimension is d. Thus S maps a joint latent vector to a d-dimensional observation. The stable part must be recoverable through a linear map on Xᵉ.

S̃(S(z₁, z₂)) = z₁

S̃ is the recovery map, and z₁ and z₂ are arbitrary possible vectors in the corresponding latent spaces. The identity requires recovery of the stable vector whatever value the other component takes. It leaves open whether the unstable part can also be recovered. The theorem can consequently apply where the stable variables are distributed across observed coordinates and simple coordinate selection would miss them.

Environmental diversity is then specified by linear general position. A count of environments is part of the condition, but their moment information must also vary in the relevant directions.

|ℰtrain| > d − r + d/r

The vertical bars count the training environments. The quantity r is the positive rank of the linear representation, and d is the observed input dimension. Rank measures how many independent directions the representation retains. The threshold is part of the formal definition and accompanies a restriction on the span of environmental moment vectors.

dim span {𝔼[Xᵉ (Xᵉ)ᵀ] x − 𝔼[Xᵉ εᵉ] : e ∈ ℰtrain} > d − r

The condition is required for every non-zero vector x in the observed coefficient space. For each e, the first expectation is an input second-moment matrix multiplied by x. The second is the cross moment between input and latent target noise. The span is the vector space generated by these discrepancies over environments, and dim measures its dimension. The condition says that a non-zero direction of departure from the stable rule produces discrepancies of sufficient collective dimension.

The theorem relates this condition to environment-wise optimality of the final rule.

Φ 𝔼[Xᵉ (Xᵉ)ᵀ] Φᵀ w = Φ 𝔼[Xᵉ Yᵉ]

Here Φ is the linear representation matrix, w is the final linear weight vector, and Φᵀw is the complete predictor in observed coordinates. The equation is the least-squares normal equation in the represented coordinates. On the left, the Φ factors transform input second moments into moments of the features. On the right, Φ transforms the input–target cross moment. Shared optimality requires the equation to hold separately in every training environment.

The proof asks what would happen if the complete predictor differed from the rule obtained by recovering Z₁ and applying γ. The right-hand side can be expressed using that stable rule and the cross moment with εᵉ. Subtracting the sides yields one discrepancy vector per environment, and normal-equation optimality requires Φ to map each vector to zero. If the predictor differs from the stable one, general position makes those vectors span a space larger than the nullspace of Φ. The representation cannot discard all the discrepancies while retaining its assumed rank. This is how training agreement rules out the competing predictor.

The theorem uses no Gaussian assumption and can be stated without a causal graph over the observed coordinates. Its transfer conclusion rests on linearity, recoverability, the latent noise assumption, and general position. The authors also give a genericity result: for fixed input–noise cross moments and sufficiently many environments, the exceptional tuples of input second moments occupy a set of measure zero in the moment-matrix space they consider. That result is about the geometry of possible moments. A collection obtained by randomly dividing a single source can still have essentially the same moments in every part.

A higher-rank representation reduces the number of environments required by the stated bound. It also narrows the nullspace where inconsistent directions could hide. The earlier theorem on scalar monitoring serves a different purpose. It describes how a predictor with an invariant linear decomposition can be checked along the direction of its predictions. The transfer argument uses the existence of a sufficiently informative decomposition. A scalar stationarity check alone supplies no evidence that the hypotheses of that argument hold.

Experiments and results

An exact comparison in the opening regression

The paper’s analytical example supplies a coefficient comparison with explicit values. The target of recovery is the generating weight on X₁, which is 1. Fitting only X₂ sets that coefficient to 0 by construction. The excluded input still matters to the interpretation of the comparison. A rule using only X₂ can be informative in the training environments even though it recovers none of the stable weight on X₁. The rule using both inputs has a coefficient on X₁ that depends on the environment, as given by the formula above.

Opening synthetic regression, fitted coefficient on the causal input

The invariant fit recovers the generating weight on the causal input.

Opening synthetic regression, fitted coefficient on the causal inputRegression on X₂ alone: 0Regression on X₂ alone0Invariant regression on X₁ alone (this paper): 1Invariant regression on X₁ alone (thispaper)1
The numbers
System or settingcoefficient on X₁
Regression on X₂ alone0
Invariant regression on X₁ alone (this paper)1

Higher is better in this comparison because the displayed alternatives range up to the known target coefficient. The values come from the population least-squares calculation in the motivating example. The simulations that follow examine recovery with sampled data, where exact generating weights provide a reference for evaluating estimates.

Synthetic regression with known generating weights

The first simulation extends the chain linking a cause, a target, and a downstream feature. Each of the two input components has 10 dimensions. The authors can add a hidden confounder H with 10 dimensions as a source of misspecification. They can also give the learner a transformed view of the inputs, so that the original stable and unstable coordinates are no longer directly visible. This creates a setting in which the desired coefficient vector can be specified from the generating process and evaluated even when it is hard to infer from the observations.

The experiment varies three aspects of the generating system. The first is whether an orthogonal matrix S scrambles the observations or the identity transformation leaves them in their original coordinates. An orthogonal scrambling mixes coordinates without removing the information available in the original vector. Its role is to make the learner find an appropriate combination of coordinates.

The second distinction is whether the hidden variable has outgoing connections. In the fully observed condition, the coefficients from H to the first feature, the target, and the downstream feature are set to 0. In the partially observed condition, those coefficients are Gaussian. The links from the first feature to the target and from the target to the second feature have Gaussian weights in every variant. Turning on the hidden links changes what can be inferred from the observed variables about the source of their association.

The third distinction changes which noise variance depends on the environment index e. In the setting labeled O, the target noise variance σᵧ² is e² and the second feature’s noise variance σ₂² is 1. In the setting labeled E, the target noise variance is 1 and the second feature’s noise variance is e². This changes where environmental variation enters the chain. The choices produce eight setups. For example, FOS denotes the fully observed condition with the O noise assignment and scrambled features.

The paper draws 1000 samples from the training environments indexed by 0.2, 2, and 5. The IRM learner uses the practical IRMv1 criterion and uses environment 5 for cross-validation of the invariance weight λ. The competing methods are ERM, which minimizes the prediction loss on the training data, and invariant causal prediction, or ICP, which searches for a stable subset of covariates.

The evaluation converts the estimated coefficients back into the generative coordinate system. This is possible because the authors know S. A coefficient in a scrambled observation space generally mixes contributions from the components that play different roles in the generating process. De-scrambling lets the evaluation check the weights on those components directly, regardless of which coordinates the learner received.

The authors report two quantities. The first is the average squared error between the estimated causal weights and the weights used to generate the target from its cause. The second is the norm of the estimated weights on the downstream component. The desired rule assigns that component zero weight. A small downstream norm measures how thoroughly the learner suppresses the unstable evidence. The causal coefficient error measures whether it has preserved the stable relationship while doing so.

The paper reports that IRM gives the most accurate estimates on both measures across its conditions. The authors describe the improvement over ERM as orders of magnitude in most cases and plot the errors on logarithmic axes. They also report a substantial advantage over ICP. ICP tends to exclude many covariates from its causal set, which helps keep the weights on the unwanted component small but can create large errors on the desired component. The paper describes these magnitudes and orderings without giving exact numerical bar heights.

Colored MNIST and a deliberately reversed association

The classification experiment asks whether a nonlinear predictor can learn from a cue whose unreliability is already detectable in training. Each MNIST image is given a binary target and rendered in one of two colors. Shape originates with the handwritten digit. Color is assigned later, using the final target, which makes it an unusually direct source of information about what the classifier is being asked to predict.

ỹ = 0 for digits 0-4, and ỹ = 1 for digits 5-9

The symbol ỹ is the preliminary label. It groups the written digits by which range they belong to. The final target y is generated by flipping ỹ with probability 0.25. Even perfect recognition of the written digit leaves uncertainty about y because the target depends partly on the result of that random flip.

The color identifier z is obtained by flipping y with an environment-dependent probability pᵉ. An identifier of 1 gives a red image and 0 gives a green image. The flip probability is 0.2 in the first training environment and 0.1 in the second training environment. In both of those conditions, using color is attractive because it is a more reliable guide to the final target than shape. The magnitude of the attraction changes between environments, giving a learner a reason to question whether the same use of color should be optimal in both.

In the test environment, the target-to-color flip probability pᵉ is 0.9. Color’s direction as a clue to y is reversed. The process for obtaining y from the original digit remains the same. A rule following digit shape therefore faces the familiar target noise, while a rule following the training meaning of color is systematically misled. The construction provides a direct test of the distinction between doing well on the observed distribution and relying on a relationship that survives the chosen shift.

The authors train multilayer perceptrons, networks that successively transform their inputs before emitting a prediction. They compare ordinary ERM on the colored images with IRM training and with an oracle that receives the images in grayscale. The oracle is an ERM predictor whose inputs already exclude the suspect cue. It serves as a reference for what can be learned when the training procedure is given that particular piece of prior knowledge.

Accuracy is the percentage of correct binary decisions. The paper reports its comparisons using means and standard deviations across ten runs. ERM achieves high training accuracy and drops below chance in the test environment, consistent with a predictor primarily reading color. IRM gives up training accuracy and generalizes better in that environment. The grayscale oracle does slightly better than IRM. The reported comparison establishes the relative outcome and the below-chance behavior of ERM. The exact accuracy means and standard deviations are unspecified in the paper’s numerical prose.

The grayscale result clarifies the role of the synthetic label noise. Shape still carries enough information to make the task meaningful after color reverses. Because y sometimes differs from the class assigned by the digit, removing color can lower training performance even for a predictor that uses shape effectively. The training ranking therefore favors the cue the experiment was designed to challenge. The test ranking asks what the prediction still knows after that cue has changed its meaning.

Compare what a score means in different environments

The authors also examine the real-valued number produced before the classifier makes its binary decision. This number is a logit, and it is the representation output in the analysis. It gives the authors a way to ask whether a score of a given size has the same interpretation wherever it occurs.

P(y = 1 ∣ h, e)

P denotes probability, y is the final binary target, and 1 is its positive value. The conditioning variables are the logit h and the environment e. The plotted quantity is the probability of a positive label among examples with a given score in that environment. Separate curves show how the relationship depends on the environment for each training procedure.

The IRM curves are closer to one another than the ERM curves when comparing only the training environments and when including the test environment. The grayscale reference represents the case in which the color information has been removed by construction. The comparison therefore shows how much agreement the practical objective can obtain from the colored inputs themselves. It also shows incomplete agreement, especially at the tails of the logit distribution.

The authors suggest that few observations at extreme scores make the conditional probabilities hard to estimate. The same scarcity can make differences at those scores hard to penalize in training. They also observe that the conditional probability of the positive target as a function of h can be more complicated than a linear final rule can express. The plot measures this discrepancy more directly than the headline accuracy. Two groups can have similar accuracy while assigning different meanings to the same score, and worse agreement in a sparsely populated region can have little influence on an aggregate score.

What the ablations show

Which difficulties the regression comparisons vary

The paper gives controlled comparisons of data generation, penalty design, and available input information. The synthetic regression varies whether the causal component is directly accessible, whether hidden influences enter the generating chain, and where the noise changes. These comparisons ask whether the coefficient recovery survives each difficulty as instantiated in the simulation. The reported ordering of methods holds across the tested combinations. The figure’s separate error measures show where that advantage comes from.

Scrambling changes the coordinates the learner sees while preserving a way to recover the original stable component. It makes the experiment more demanding for a method that works by accepting or rejecting individual observed variables. After mixing, a coordinate can carry some of the cause and some of the effect. Picking the original cause then requires a suitable combination of coordinates. Recovery under the scrambled condition supports the case for optimizing a representation. The specific evidence is for a linear, orthogonal mixture whose relevant information remains present.

The hidden-variable comparison changes the generating dependencies without supplying the hidden variable as a predictor input. Good recovery in the partially observed conditions shows that the reported advantage persists under that form of misspecification. The causal coefficient error is important here. Small weights on a suspect feature would be a weak result on their own if the learner also erased the associations it was supposed to retain. The ICP comparison illustrates how this can happen. Its small unwanted coefficients can coexist with poor recovery of the intended ones.

The noise settings change whether the environment alters the noise entering the target or the noise entering its downstream measurement. Changing target noise can make prediction harder while preserving the stable regression coefficient. Changing downstream measurement noise alters the value of the additional cue. The comparisons are therefore relevant to different reasons a fitted regression can vary across environments. The simulation reports performance in their presence, while the opening example gives the mechanism by which residual matching and shared optimality can disagree.

What the penalty comparison isolates

The authors plot alternative penalty constructions against a controlled change to the representation. A coefficient c scales the contribution of the second input, with c = 0 removing it. The shared final rule is held at the coefficients that read the first feature alone. Because the scale is the controlled variable, the plot shows whether each penalty gives a useful signal as the representation approaches the desired one.

For the direct distance between separately fitted classifiers, reducing c toward zero drives a fitted coefficient to a large size. The distance is discontinuous at the point where the second input is removed. Expanding the scale can also push the distance toward zero. The same representation can thus appear far from invariant when the offending feature is nearly absent and close to invariant when that feature has simply been magnified. The authors include a heavily regularized version of the separate fit, and it still exhibits problematic numerical behavior in the comparison.

The normal-equation penalty has a smooth minimum at the removal point in the example. It registers whether the fixed final rule satisfies the environment’s optimality equations using the current features. The controlled comparison explains the choice of discrepancy. The broader question of optimization is addressed by the geometry of the linear solution set, where disconnected feasible regions and a trivial solution remain possible.

The independent-batch construction is another design choice motivated analytically. Multiplying separate estimates serves the goal of estimating the squared population gradient without the extra contribution of squaring the noise of a single estimate. The implementation illustration shows how the authors form that product. It gives the rationale for the estimator instead of an experimental ranking of batch strategies.

What the grayscale intervention and score curves establish

The grayscale reference removes the nuisance cue before learning. Under the chosen test shift, this produces slightly better accuracy than IRM. It shows that the digit information remains useful and gives an indication of the cost of having to infer which cue to discard. The oracle benefits from the experimenter’s advance knowledge of how the task was built. The IRM learner receives the colored images and must use the training-environment differences as evidence.

The score analysis makes the accuracy comparison more informative. If the predictor’s output were fully invariant in the conditional-probability sense, score values supported across environments would carry the same expected labels. Bringing the curves closer together is consistent with the paper’s account of why IRM transfers. The remaining discrepancies, particularly in the tails, make exact recovery a stronger claim than the experiment supports. The paper describes finite samples as a possible source of those discrepancies and observes that the shape of the conditional relationship can require a richer final rule than the one the penalty tests.

The authors also consider a plausible competing route to success on this particular task. Conditional domain adaptation tries to align representations across environments within a given label. IRM’s ideal conditional agreement instead concerns the label at a given representation. In Colored MNIST, the environments happen to share the distribution of the digit shapes and the label frequencies. Those properties make it possible in principle for conditional alignment to recover a useful representation too. This is a comparison of what the objectives can permit given the design, rather than a reported classification result for an additional baseline.

The appendix examines why the same reasoning can break under other shifts. Marginal feature alignment forces a deterministic classifier acting on those features to produce the same distribution of predictions across environments. This can conflict with accurate classification when the proportions of the target classes differ. Conditional alignment avoids that particular requirement, but it can impose a new restriction when the input distribution changes while the relationship from input to target stays fixed. The appendix builds a case with discrete inputs and label noise in which retaining the original input supports invariant prediction. Matching the class-conditional feature distributions can still exclude useful representations. These cases explain the authors’ choice of what to hold fixed, independently of the favorable construction of the digit experiment.

Limitations

Limits identified by the authors

The primary generalization theorem concerns linear predictions on linearly mixed observations. IRMv1 can be optimized with nonlinear representation functions, and the digit experiment shows that doing so can help. The authors leave open how to define a corresponding nonlinear general-position condition and how to prove a general result from it. In the linear argument, rank makes it possible to count the directions in which conflicting environmental evidence could be hidden. Nonlinear functions can agree where data are observed and differ elsewhere in ways that the linear counting argument cannot describe.

The authors also leave open how to recognize tasks where only a few environments suffice. In a favorable problem, an unstable representation may have difficulty satisfying agreement even across two distinct conditions. A broader family of final rules could reveal more ways in which the environments disagree and thereby make each environment more informative. The paper proposes this direction while leaving open how to construct suitable penalties for nonlinear final rules.

The practical penalty tests a restricted adjustment. A representation that stays identically zero makes every multiplicative change irrelevant, giving zero penalty. If the mean target differs across environments, this representation can still fail the unrestricted invariance condition. Its prediction loss can expose its lack of usefulness. The authors ask whether there are other representations whose failures escape both terms. The question matters even when the optimizer succeeds at its assigned objective, because low prediction loss and a small scalar penalty characterize that objective rather than all possible conditional differences.

A small hypothesis class can also prevent the learner from expressing a useful invariant solution. The dialogue considers a target that is the square of a centered Gaussian input whose variance depends on the environment. A linear rule through the origin has only the zero rule as its invariant choice in the example. The input genuinely determines the target, but the available family of predictors cannot express how. The authors suggest using cross-validation to reduce the strength of the invariance penalty when the predictor lacks capacity. A shared rule that loses the entire predictive relationship has little to offer.

With ample capacity and few examples there is another difficulty. The paper discusses how fitting or regularization procedures can favor a relatively simple shortcut over a more demanding stable rule when both explain the training data well. The dialogue illustrates this with a high-dimensional linear problem where the rule based on an effect can be easier for the fitting procedure to choose than the one based on the cause. The authors present invariance as a source of additional evidence in that situation. Its usefulness still depends on seeing environments in which the shortcut’s behavior differs.

The optimization objective is non-convex in general. Even for the linear analysis with squared loss, the intersection of optimality conditions can have several disconnected parts, with the trivial solution among the possibilities. The authors highlight sensitivity to initialization. Choosing a smooth penalty and fixing the final scalar address specific problems with the objective. The analysis leaves the path an optimizer takes through the remaining landscape dependent on the problem and its starting point.

The paper explicitly cautions against taking any collection of distinct-looking groups as suitable training environments. Random subsets of one source can reproduce the same distribution. Conditioning on an arbitrary variable can create dependencies or destroy the relationship the learner is meant to recover. The theorem’s diversity condition requires changes that supply independent evidence while sharing an underlying invariance. Counting nominal groups is insufficient to establish this premise.

The dialogue further discusses changes in support. Support describes which inputs are possible under a distribution. If groups occupy disjoint regions, they may supply little direct evidence about what the same feature value means in different places. A simple shared rule can provide an assumption for extrapolating across those regions. The authors also raise the possibility of compositional structure, where a rule learned in pieces might apply to combinations missing from training. These are ways to supply additional structure when comparisons of overlapping observations are unavailable.

Finally, the authors describe approximate invariance under mild departures from their assumptions as an expectation motivated by the differentiable dependence of the objective on environmental moments. They contrast this with methods that make a discrete decision after a statistical test. The paper presents the smoothness argument as motivation. Its experiments show approximate agreement and some tolerance to misspecification in their settings, leaving the size of perturbations that a learned solution can tolerate unquantified.

Limits visible in the setup

The choice of permissible interventions supplies much of the force of the causal conclusion. The authors protect the conditional mean given the direct causes and restrict the remaining variation in the target. A deployment setting that changes the meaning of the target or how its intended value is assigned can violate that premise. Agreement in training environments gives no direct information about the appropriate answer after such a change. Reading a transfer claim therefore requires knowing which mechanism the definition holds fixed.

The intervention family is also what lets the simple regression make such a sharp statement about an effect of the target. An arbitrary intervention on X₂ can destroy all of its predictive value and can drive the error up without bound if it receives non-zero weight. Under a narrower family in which X₂ always remains a comparable measurement of Y, using it may be helpful. The same observation has different value under these different tasks. The causal direction explains how a shift can break the measurement, and the shift family determines whether guarding against that break is part of the objective.

The worst-environment proposition has a correspondingly specific scope. It establishes a first-order weighted-risk characterization under optimization assumptions. In the authors’ example, the training risks all reward an unstable coefficient, so their mixtures preserve the problem. A robust objective applied to different observed environments, or designed around a different family of allowed changes, would require its own analysis. The failure shown here is a consequence of how the observed mixture and the unobserved interventions differ.

The empirical demonstrations benefit from knowing both what changed and what should stay constant. In the regression, the researchers can use the generating weights and undo the observation scrambling to measure recovery. In Colored MNIST, they know that the test shift targets color and can remove it for the oracle. Comparable ground truth is much harder to establish when the nuisance is suspected rather than assigned by the researcher. The experiments establish behavior on designed shifts and give a way to inspect it. Discovering environments or identifying the cause of an uncontrolled shift is a separate task.

A similar distinction applies to evidence from the digit scores. Agreement at observed logit values can be estimated where there are enough examples. It supplies little information about feature values that never appear, and the estimates in sparse regions are less informative. Seen alongside the scalar penalty, this makes the output curves especially relevant. They expose variation that a single derivative per environment can summarize imperfectly. The agreement measured by the authors is a useful diagnostic tied to the support of the data and to the chosen representation.

The concluding ideas about reinforcement learning, group-based treatment, and group theory are proposals. Treating episodes as environments would require identifying a stable relation between behavior and reward. Treating social groups as environments would require deciding which predictive evidence and which treatment should count as equivalent. The statistical condition on a shared optimal rule does not settle those decisions. The dialogue also distinguishes the search for invariances from procedures such as augmentation or architectural design, which give the learner a particular transformation to respect in advance. IRM places the evidential burden on the environmental variation available during training.

What came after

Shortcut learning, dataset bias, and benchmarks

Shortcut Learning in Deep Neural Networks takes up the broader problem illustrated by the animals and the colored digits. The subject is the use of cues that make prediction easier under familiar conditions while failing to capture what the task is meant to test. IRM supplies one specific way to study that problem, by varying the training conditions and asking whether they agree on how to use the cue. In the shortcut-learning framing, the Colored MNIST experiment is a case where the shortcut is already exposed by a difference in strength across training environments, before the test environment reverses it. Shortcut Learning

Adversarial Filters of Dataset Biases addresses biases at the level of dataset filtering. This places attention on which observations can supply unintended signals in the first place. IRM starts with separate collections and uses their differences to select a predictor. The two subjects share a dependence on what the available examples reward. An association that initially makes examples easy can reflect the construction of the data, and changing example selection can modify the evidence available about that association. Adversarial Filters of Dataset Biases

WILDS puts naturally occurring distribution shifts at the center of a benchmark. That focus extends the evaluation question beyond the generating processes used by IRM. In Colored MNIST, the researchers can explain exactly why the training association changes sign. A benchmark of shifts in the wild instead makes variation outside a controlled construction the setting in which generalization is assessed. The connection is the need to say what changes between training and testing when interpreting performance. WILDS

Stable classification and robustness in language tasks

Predict then Interpolate proposes a simple algorithm for learning stable classifiers. It carries the pursuit of stable prediction into a different algorithmic formulation. In IRM, the defining test is simultaneous optimality on a learned representation, with a gradient penalty as a practical means of approaching it. A later algorithm framed around prediction and interpolation takes up the common goal of producing a stable classifier through a separately formulated procedure. Predict then Interpolate

An Empirical Study on Robustness to Spurious Correlations using Pre-trained Language Models makes the empirical issue one of robustness to spurious associations in pretrained language systems. IRM’s demonstrations use a generated regression problem and altered digit images, where the unstable information is explicitly assigned by the experimenter. Moving that question to pretrained language systems changes the kind of predictive information under study while preserving the concern that a useful training association can have limited value after a shift. Robustness to Spurious Correlations

Shortcut Learning of Large Language Models in Natural Language Understanding applies the shortcut-learning question to language understanding. In that setting, interpreting success calls for identifying what evidence the system can use to reach its answer. The distinction developed by IRM is between a cue’s usefulness in a collection and the stability of the rule that uses it. The later paper’s subject places that distinction in a domain with different kinds of inputs and supervision from the image and regression examples. Shortcut Learning in Natural Language Understanding

Measure and Improve Robustness in NLP Models treats robustness in natural language processing as a subject for survey. The connection to IRM concerns both measurement and training. IRM defines a target risk over a family of environments, then gives a procedure that can only train on particular observed ones. The distinction between that target and the evidence available for measuring progress is equally relevant when robustness is assessed in linguistic tasks. Measure and Improve Robustness in NLP

Invariance across modalities and changing sources

Learning Invariant Modality Representation for Robust Multimodal Learning from a Causal Inference Perspective places invariance in the representation of modalities. The link to IRM is at the level of what a representation is supposed to accomplish under changing conditions. IRM’s theory describes observations that mix stable information with other predictive information, and its experiments ask whether a representation can retain the former while reducing dependence on the latter. The later work puts representation and causal inference together in the setting of multimodal robustness. Learning Invariant Modality Representation

The Impact of Off-Policy Training Data on Probe Generalisation shifts the question toward the source of observations used to train probes. Its subject is how that source affects whether a probe generalizes. In IRM, knowledge of how observations were grouped is part of the evidence for transfer. A change in the policy producing training data is another way the origin of examples can matter to an evaluation of generalization. The Impact of Off-Policy Training Data on Probe Generalisation

 Fields, topics and concepts

 Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works

Cite

Cite as Martin Arjovsky, Léon Bottou, Ishaan Gulrajani and David Lopez-Paz. 2019. Invariant Risk Minimization. arXiv:1907.02893.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1907.02893 · arXiv 1907.02893

@misc{arjovsky2019invariant,
  title = {{Invariant Risk Minimization}},
  author = {Martin Arjovsky, Léon Bottou, Ishaan Gulrajani and David Lopez-Paz},
  year = {2019},
  doi = {10.48550/arxiv.1907.02893},
  eprint = {1907.02893},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1907.02893}
}

References

56 references, from the paper's own bibliography.

  1. John Aldrich. Autonomy. Oxford Economic Papers, 1989. OpenAlex ↗ · Scholar ↗
  2. James Andrew Bagnell. Robust supervised learning. In AAAI, 2005. OpenAlex ↗ · Scholar ↗
  3. Peter L. Bartlett, Philip M. Long, Gábor Lugosi, and Alexander Tsigler. Benign Overfitting in Linear Regression. arXiv, 2019. OpenAlex ↗ · Scholar ↗
  4. Sara Beery, Grant Van Horn, and Pietro Perona. Recognition in terra incognita. In ECCV, 2018. OpenAlex ↗ · Scholar ↗
  5. Shai Ben-David, John Blitzer, Koby Crammer, and Fernando Pereira. Analysis of representations for domain adaptation. In NIPS. 2007. OpenAlex ↗ · Scholar ↗
  6. Aharon Ben-Tal, Laurent El Ghaoui, and Arkadi Nemirovski. Robust optimization. Princeton University Press, 2009. OpenAlex ↗ · Scholar ↗
  7. Yoshua Bengio, Tristan Deleu, Nasim Rahaman, Rosemary Ke, Sébastien Lachapelle, Olexa Bilaniuk, Anirudh Goyal, and Christopher Pal. A meta-transfer objective for learning to disentangle causal mechanisms. arXiv, 2019. OpenAlex ↗ · Scholar ↗
  8. Léon Bottou, Corinna Cortes, John S. Denker, Harris Drucker, Isabelle Guyon, Lawrence D. Jackel, Yann Le Cun, Urs A. Muller, Eduard Säckinger, Patrice Simard, and Vladimir Vapnik. Comparison of classifier methods: a case study in handwritten digit recognition. In ICPR, 1994. OpenAlex ↗ · Scholar ↗
  9. Wieland Brendel and Matthias Bethge. Approximating CNNs with bag-of-local-features models works surprisingly well on imagenet. In ICLR, 2019. OpenAlex ↗ · Scholar ↗
  10. Joan Bruna and Stephane Mallat. Invariant scattering convolution networks. TPAMI, 2013. OpenAlex ↗ · Scholar ↗
  11. Joan Bruna, Stephane Mallat, Emmanuel Bacry, and Jean-François Muzy. Intermittent process analysis with scattering moments. The Annals of Statistics, 2015. OpenAlex ↗ · Scholar ↗
  12. Nancy Cartwright. Two theorems on invariance and causality. Philosophy of Science, 2003. OpenAlex ↗ · Scholar ↗
  13. Patricia W. Cheng and Hongjing Lu. Causal invariance as an essential constraint for creating a causal representation of the world. The Oxford handbook of causal reasoning, 2017. OpenAlex ↗ · Scholar ↗
  14. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. NAACL, 2019. our card
  15. John Duchi, Peter Glynn, and Hongseok Namkoong. Statistics of robust optimization: A generalized empirical likelihood approach. arXiv, 2016. OpenAlex ↗ · Scholar ↗
  16. Yaroslav Ganin, Evgeniya Ustinova, Hana Ajakan, Pascal Germain, Hugo Larochelle, François Laviolette, Mario March, and Victor Lempitsky. Domain-adversarial training of neural networks. JMLR, 2016. OpenAlex ↗ · Scholar ↗
  17. Robert Geirhos, Patricia Rubisch, Claudio Michaelis, Matthias Bethge, Felix A. Wichmann, and Wieland Brendel. Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness. ICLR, 2019. OpenAlex ↗ · Scholar ↗
  18. AmirEmad Ghassami, Saber Salehkaleybar, Negar Kiyavash, and Kun Zhang. Learning causal structures using regression invariance. In NIPS, 2017. OpenAlex ↗ · Scholar ↗
  19. Patrick J. Grother. NIST Special Database 19: Handprinted forms and characters database. https://www.nist.gov/srd/nist-special-database-19, 1995. File doc/doc.ps in the 1995 NIST CD ROM NIST Special Database 19. OpenAlex ↗ · Scholar ↗
  20. Trygve Haavelmo. The probability approach in econometrics. Econometrica: Journal of the Econometric Society, 1944. OpenAlex ↗ · Scholar ↗
  21. Christina Heinze-Deml and Nicolai Meinshausen. Conditional variance penalties and domain shift robustness. arXiv, 2017. OpenAlex ↗ · Scholar ↗
  22. Christina Heinze-Deml, Jonas Peters, and Nicolai Meinshausen. Invariant causal prediction for nonlinear models. Journal of Causal Inference, 2018. OpenAlex ↗ · Scholar ↗
  23. Allan Jabri, Armand Joulin, and Laurens Van Der Maaten. Revisiting visual question answering baselines. In ECCV, 2016. OpenAlex ↗ · Scholar ↗
  24. Fredrik D. Johansson, David A. Sontag, and Rajesh Ranganath. Support and invertibility in domain-invariant representations. AISTATS, 2019. OpenAlex ↗ · Scholar ↗
  25. Niki Kilbertus, Giambattista Parascandolo, and Bernhard Schölkopf. Generalization in anti-causal learning. arXiv, 2018. OpenAlex ↗ · Scholar ↗
  26. Kun Kuang, Peng Cui, Susan Athey, Ruoxuan Xiong, and Bo Li. Stable prediction across unknown environments. In SIGKDD, 2018. OpenAlex ↗ · Scholar ↗
  27. Brenden M. Lake, Tomer D. Ullman, Joshua B Tenenbaum, and Samuel J. Gershman. Building machines that learn and think like people. Behavioral and brain sciences, 2017. our card
  28. James M. Lee. Introduction to Smooth Manifolds. Springer, 2003. OpenAlex ↗ · Scholar ↗
  29. David Lewis. Counterfactuals. John Wiley & Sons, 2013. OpenAlex ↗ · Scholar ↗
  30. Ya Li, Xinmei Tian, Mingming Gong, Yajing Liu, Tongliang Liu, Kun Zhang, and Dacheng Tao. Deep domain generalization via conditional invariant adversarial networks. In ECCV, 2018. OpenAlex ↗ · Scholar ↗
  31. David Lopez-Paz. From dependence to causation. PhD thesis, University of Cambridge, 2016. OpenAlex ↗ · Scholar ↗
  32. David Lopez-Paz, Robert Nishihara, Soumith Chintala, Bernhard Scholkopf, and Léon Bottou. Discovering causal signals in images. In CVPR, 2017. OpenAlex ↗ · Scholar ↗
  33. Gilles Louppe, Michael Kagan, and Kyle Cranmer. Learning to pivot with adversarial networks. In Advances in neural information processing systems, pages 981–990, 2017. OpenAlex ↗ · Scholar ↗
  34. Sara Magliacane, Thijs van Ommen, Tom Claassen, Stephan Bongers, Philip Versteeg, and Joris M Mooij. Domain adaptation by using causal inference to predict invariant conditional distributions. In NIPS, 2018. OpenAlex ↗ · Scholar ↗
  35. Gary Marcus. Deep learning: A critical appraisal. arXiv, 2018. our card
  36. Nicolai Meinshausen. Causality from a distributional robustness point of view. In Data Science Workshop (DSW), 2018. OpenAlex ↗ · Scholar ↗
  37. Nicolai Meinshausen and Peter Bühlmann. Maximin effects in inhomogeneous large-scale data. The Annals of Statistics, 2015. OpenAlex ↗ · Scholar ↗
  38. Sandra D. Mitchell. Dimensions of scientific law. Philosophy of Science, 2000. OpenAlex ↗ · Scholar ↗
  39. Judea Pearl. Causality: Models, Reasoning, and Inference. Cambridge University Press, 2nd edition, 2009. OpenAlex ↗ · Scholar ↗
  40. Jonas Peters, Peter Bühlmann, and Nicolai Meinshausen. Causal inference using invariant prediction: identification and confidence intervals. JRSS B, 2016. OpenAlex ↗ · Scholar ↗
  41. Jonas Peters, Dominik Janzing, and Bernhard Schölkopf. Elements of causal inference: foundations and learning algorithms. MIT press, 2017. OpenAlex ↗ · Scholar ↗
  42. Michael Redhead. Incompleteness, non locality and realism. a prolegomenon to the philosophy of quantum mechanics. 1987. OpenAlex ↗ · Scholar ↗
  43. Mateo Rojas-Carulla, Bernhard Schölkopf, Richard Turner, and Jonas Peters. Invariant models for causal transfer learning. JMLR, 2018. OpenAlex ↗ · Scholar ↗
  44. Donald B. Rubin. Estimating causal effects of treatments in randomized and nonrandomized studies. Journal of educational Psychology, 1974. OpenAlex ↗ · Scholar ↗
  45. Bernhard Schölkopf, Dominik Janzing, Jonas Peters, Eleni Sgouritsa, Kun Zhang, and Joris Mooij. On causal and anticausal learning. In ICML, 2012. OpenAlex ↗ · Scholar ↗
  46. Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying some distributional robustness with principled adversarial training. ICLR, 2018. OpenAlex ↗ · Scholar ↗
  47. Brian Skyrms. Causal necessity: a pragmatic investigation of the necessity of laws. Yale University Press, 1980. OpenAlex ↗ · Scholar ↗
  48. Bob L. Sturm. A simple method to determine if a music information retrieval system is a “horse”. IEEE Transactions on Multimedia, 2014. OpenAlex ↗ · Scholar ↗
  49. Antonio Torralba and Alexei Efros. Unbiased look at dataset bias. In CVPR, 2011. OpenAlex ↗ · Scholar ↗
  50. Vladimir Vapnik. Principles of risk minimization for learning theory. In NIPS. 1992. OpenAlex ↗ · Scholar ↗
  51. Vladimir N. Vapnik. Statistical Learning Theory. John Wiley & Sons, 1998. OpenAlex ↗ · Scholar ↗
  52. Max Welling. Do we still need models or just more data and compute?, 2019. OpenAlex ↗ · Scholar ↗
  53. Ashia C. Wilson, Rebecca Roelofs, Mitchell Stern, Nati Srebro, and Benjamin Recht. The marginal value of adaptive gradient methods in machine learning. In NIPS. 2017. OpenAlex ↗ · Scholar ↗
  54. James Woodward. Making things happen: A theory of causal explanation. Oxford university press, 2005. OpenAlex ↗ · Scholar ↗
  55. Sewall Wright. Correlation and causation. Journal of agricultural research, 1921. OpenAlex ↗ · Scholar ↗
  56. Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. ICLR, 2016. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/arjovsky-2019-invariant-risk-minimization/