LessWrong AI
2026-08-11 18:05 UTC
By egan
USR-0152-20260811-community-fo-5eb1951d
Measuring Spurious Correlations with Feature Strength
This work was partially done by an automated research scaffold developed at Redwood Research. For this project, all of the experiment ideas were designed by a human and a human wrote the write up. The AI mostly just executed on the experiment ideas. We think this project is slightly below the level of rigor of a mid-MATS research update, and the research scaffold was not very helpful for this project. More discussion of AI usage is in the Appendix. 💻 Codebase If we want to train a classifier that distinguishes whether a passage is code or prose, we can do so by gathering samples of code and of prose, and training the classifier to distinguish between the two classes. Unfortunately, this might not work if the data hides a spurious correlation. If all the code is in Spanish and all of the prose is in English, then the classifier might learn to predict Spanish vs. English instead of code vs. prose. We find that this happens in practice: when we fine-tune an LLM to classify between Spanish code and English prose and evaluate on Spanish prose or English code, it generalizes to predicting the language rather than the domain. This suggests that language is in some sense a stronger feature than code. We think that spurious correlations are an important threat model for a few reasons. First, classifiers might actually be trained in ways that unintentionally contain spurious correlations. For example: Sycophancy vs validation-seeking user. Suppose we want to classify examples of the m…
This work was partially done by an automated research scaffold developed at Redwood Research. For this project, all of the experiment ideas were designed by a human and a human wrote the write up. The AI mostly just executed on the experiment ideas. We think this project is slightly below the level of rigor of a mid-MATS research update, and the research scaffold was not very helpful for this project. More discussion of AI usage is in the Appendix. 💻 Codebase If we want to train a classifier that distinguishes whether a passage is code or prose, we can do so by gathering samples of code and of prose, and training the classifier to distinguish between the two classes. Unfortunately, this might not work if the data hides a spurious correlation. If all the code is in Spanish and all of the prose is in English, then the classifier might learn to predict Spanish vs. English instead of code vs. prose. We find that this happens in practice: when we fine-tune an LLM to classify between Spanish code and English prose and evaluate on Spanish prose or English code, it generalizes to predicting the language rather than the domain. This suggests that language is in some sense a stronger feature than code. We think that spurious correlations are an important threat model for a few reasons. First, classifiers might actually be trained in ways that unintentionally contain spurious correlations. For example: Sycophancy vs validation-seeking user. Suppose we want to classify examples of the m…
Full article content could not be extracted automatically. Read the original below.
Source:
LessWrong AI
· lesswrong.com