Summary
The paper consists of two parts. The first part provides a theoretical analysis of the training dynamics for a simple model and data distribution under ERM and IRM. Specifically, the authors explore the questions of feature learning, when one of the features changes its correlation to the target between environments (spurious feature) and the other does not (core feature). The second part proposes a training method for extracting reach features, and shows promising results across an array of benchmarks.
Weaknesses
### W1: Theory
The paper places a lot of emphasis on the theoretical analysis, which occupies pages 3-6. The authors use the theoretical results to provide intuition about feature learning in neural networks, and training dynamics of ERM and IRM.
Unfortunately, the model used is extremely simple. While the authors argue that it is a convolutional neural network, it is in fact **a linear model**. Indeed, the authors define the model as
$f(W, x) = F_{+1}(W_{+1}, x) - F_{-1}(W_{-1}, x)$, where
$F_j(W_j, x) = \frac 1 m \sum_{r=1}^m [w_{j, r}^T x_1 + w_{j, r}^T x_2]$, where I omitted the activation $\sigma$, which the authors set to be the identity mapping.
We can then rewrite the model as a linear model
$f(W, x) = \frac 1 m \sum_{r=1}^m [w_{+1, r} - w_{-1, r}]^T (x_1 + x_2) = \tilde w^T \tilde x$, where $\tilde w = \frac 1 m \sum_{r=1}^m [w_{+1, r} - w_{-1, r}] $ is the effective weight vector and $\tilde x = x_1 + x_2$ is the effective feature vector.
In other words, the "CNN" model used by the authors is simply a reparameterized linear model.
Moreover, the reparameterization does not really change the gradient dynamics in a non-trivial way, as
$\frac {\partial L}{\partial w_{j, r}} = \frac {\partial L}{\partial \tilde w} \frac {\partial \tilde w} {\partial w_{j, r}} = \frac {j}{m} \nabla_{\tilde w} L$.
In other words, all of the weights $w_{j, r}$ are updated with $\pm$ the gradient of the linear model divided by $m$.
So **understanding the training dynamics in the "CNN" model is equivalent to understanding the training dynamics of a linear model**.
To summarize, the authors study the training dynamics of linear model with a logistic loss.
The authors do not clarify this connection in the paper, which in my opinion is misleading. This omission also unnecessarily complicates the presentation.
I also believe there are several important implications of the fact that the authors analyze the training dynamics of a linear model:
- It is not clear what is even meant by feature learning. Specifically, the authors refer to how much weight the model assigns to each of the input features. However, this is more similar to last layer / classifier training in the context of [1] that the authors reference, rather than feature learning.
- Consequently, it's unclear what conclusions can even be made from the experiments about _feature learning_ in _neural networks_. The connection here seems far-fetched.
- The setup for the IRM is quite strange. Specifically, the feature that the model outputs in this context is the logit (a number) predicted by the model, and the classifier is just fixed to be $1$. As a result, the authors get a logistic regression model with some additional gradient penalty. I am not an expert on IRM, but it is not clear how relevant this model is to _feature learning_ in neural networks with IRM.
Please correct me if I am wrong in the reasoning above!
### W2: Theory $\leftrightarrow$ Methodology
The connection between the theory and the proposed method (FAT) is not clear to me.
It seems like the main conclusion from the theory comes down to the idea that we need to learn diverse features, which ERM by itself might not do.
However, as I mentioned above, the relevance of the theory to feature learning in neural networks is questionable.
In particular, the theory does not connect as far as I can tell to any of the details of the method.
The method could very easily be presented without the theory.
### W3: Presentation
Because so much emphasis is placed on the theoretical results (which are in my opinion of limited relevance), the authors have to describe the method and the experiments in a limited space.
The presentation of the method is not very clear.
In particular, many of the design decisions are not explained.
For example, why do we need to reinitialize the weights of the classifier in each "round"?
The datasets $\mathcal{D_i^a}$ are never defined in the text, but used in line 262.
Overall, it is quite hard to follow the description of the algorithm, and the intuition behind it.
Moreover, the iFAT method which is actually used in all of the experiments is not even described in the paper.
I would recommend to deemphasize the theory, and use most of the space in the paper to clearly describe the method, present detailed experimental results and ablations on the various design choices.
### W4: Performance
Overall, FAT seems to consistently provide good results in Table 2. However, it's worth noting that the improvements over ERM appear to be fairly small (<1%) except for Camelyon17.
**References**
[1] [_Last Layer Re-Training is Sufficient for Robustness to Spurious Correlations_](https://openreview.net/forum?id=Zb6c8A-Fghk);
P. Kirichenko, P. Izmailov, A. G. Wilson;
ICLR 2023
Questions
**Q1.** In Eq. 5, why is the second term divided by $n_e^2$ and not $n_e$?
**Q2.** You mention in line 279 that FAT comes with additional memory requirements, especially if the feature extractor has many parameters. Why is that? What exactly do you need to store?
**Q3.** How exactly do you run DFR on CivilComments and Camelyon17? The results, even for ERM+DFR, appear to be surprisingly good, and in particular better than what's currently reported in the [WILDS leaderboard](https://wilds.stanford.edu/leaderboard/)?