SourceCan In-context Learning Really Generalize to Out-of-distribution Tasks?
The paper designs an ambiguous sentence classification task where each sentence can be classified by one of three criteria (sentiment, type, or location), with labels mapped to meaningless strings. As context length increases, the model's top-5 accuracy for the true underlying criterion significantly exceeds the accuracy for the other two criteria. This demonstrates that the model performs algorithm selection by preferring the pretraining function that minimizes test error, consistent with the theoretical low-test-error preference proven in section 5.1.