{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,27]],"date-time":"2026-08-27T13:17:12Z","timestamp":1787836632620,"version":"build-2784847793"},"reference-count":39,"publisher":"Springer Science and Business Media LLC","issue":"8","license":[{"start":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T00:00:00Z","timestamp":1784937600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T00:00:00Z","timestamp":1784937600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Hochschule f\u00fcr angewandte Wissenschaften Landshut"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Mach Learn"],"published-print":{"date-parts":[[2026,8]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Machine learning models are inherently bound to the distribution of the training data, often exploiting non-causal shortcuts. As a result, achieving robustness to spurious correlations remains a challenge. While existing approaches rely on data manipulation or re-weighting strategies to achieve robustness, they typically require dense group labels, multiple training domains, or specialized pre-processing. We propose Invariance Pair Guidance (IPG), a method to mitigate reliance on spurious correlations using a sparse set of counterfactual pairs. Unlike other methods demanding extensive supervision, IPG utilizes a novel dual-update mechanism to dynamically correct the optimization trajectory. We generate input pairs that isolate the spurious attribute to define the invariance, a characteristic that should not affect the outcome of the model. Based on these pairs, we define a corrective gradient that complements the traditional gradient descent approach. The correction adapts via a predefined invariance condition. Experiments on ColoredMNIST, Waterbirds-100, and CelebA datasets demonstrate the effectiveness of our approach and its robustness to group shifts, supported by a theoretical convergence analysis. IPG offers a data-efficient and theoretically grounded path to robustness.<\/jats:p>","DOI":"10.1007\/s10994-026-07092-0","type":"journal-article","created":{"date-parts":[[2026,7,25]],"date-time":"2026-07-25T06:18:48Z","timestamp":1784960328000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["Invariance Pair Guidance: Robustness to Spurious Correlations via Corrective Gradients"],"prefix":"10.1007","volume":"115","author":[{"ORCID":"https:\/\/orcid.org\/0009-0007-4373-6834","authenticated-orcid":false,"given":"Martin","family":"Surner","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-4536-8058","authenticated-orcid":false,"given":"Abdelmajid","family":"Khelil","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1471-6582","authenticated-orcid":false,"given":"Ludwig","family":"Bothmann","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2026,7,25]]},"reference":[{"key":"7092_CR1","unstructured":"Abid, A., Yuksekgonul, M., & Zou, J. (2022). Meaningfully debugging model mistakes using conceptual counterfactual explanations. In International conference on machine learning (pp. 66\u201388)"},{"key":"7092_CR2","unstructured":"Arjovsky, M., Bottou, L., Gulrajani, I., & Lopez-Paz, D. (2019). Invariant risk minimization. arXiv:1907.02893 arXiv preprint."},{"key":"7092_CR3","unstructured":"Bae, J.-H., Choi, I., & Lee, M. (2021). Meta-learned invariant risk minimization. arXiv:2103.12947 arXiv preprint."},{"key":"7092_CR4","unstructured":"Bai, R., Ji, Y., Zhou, Z., & Inouye, D. I. (2025). From invariant representations to invariant data: Provable robustness to spurious correlations via noisy counterfactual matching. arXiv:2505.24843 arXiv preprint."},{"key":"7092_CR5","doi-asserted-by":"crossref","unstructured":"Beery, S., Horn, G. V., & Perona, P. (2018). Recognition in terra incognita. In European conference on computer vision (pp. 456\u2013473)","DOI":"10.1007\/978-3-030-01270-0_28"},{"key":"7092_CR6","unstructured":"Bergstra, J., Bardenet, R., Bengio, Y.& K\u00e9gl, B. (2011). Algorithms for hyper-parameter optimization. In Advances in neural information processing systems, vol. 24"},{"key":"7092_CR7","doi-asserted-by":"publisher","DOI":"10.1016\/j.ecoinf.2023.102231","volume":"77","author":"L Bothmann","year":"2023","unstructured":"Bothmann, L., Wimmer, L., Charrakh, O., Weber, T., Edelhoff, H., Peters, W., Nguyen, H., Benjamin, C., & Menzel, A. (2023). Automated wildlife image classification: An active learning tool for ecological applications. Ecological Informatics, 77, Article 102231.","journal-title":"Ecological Informatics"},{"key":"7092_CR8","unstructured":"Buolamwini, J., & Gebru, T. (2018). Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on fairness, accountability and transparency (pp. 77\u201391)"},{"key":"7092_CR9","doi-asserted-by":"crossref","unstructured":"Chen, L., Zhang, Y., Song, Y., Hengel, A., & Liu, L. (2023). Domain generalization via rationale invariance. In IEEE\/CVF conference on computer vision and pattern recognition (pp. 1751\u20131760)","DOI":"10.1109\/ICCV51070.2023.00168"},{"key":"7092_CR10","doi-asserted-by":"crossref","unstructured":"Choi, S., Jung, S., Yun, H., Kim, J.T., Kim, S., & Choo, J. (2021). RobustNet: Improving domain generalization in urban-scene segmentation via instance selective whitening. In IEEE\/CVF conference on computer vision and pattern recognition, pp. 11580\u201311590.","DOI":"10.1109\/CVPR46437.2021.01141"},{"issue":"7","key":"7092_CR11","doi-asserted-by":"publisher","first-page":"610","DOI":"10.1038\/s42256-021-00338-7","volume":"3","author":"AJ DeGrave","year":"2021","unstructured":"DeGrave, A. J., Janizek, J. D., & Lee, S.-I. (2021). AI for radiographic covid-19 detection selects shortcuts over signal. Nature Machine Intelligence, 3(7), 610\u2013619.","journal-title":"Nature Machine Intelligence"},{"key":"7092_CR12","unstructured":"Dekel, O., Gilad-Bachrach, R., Shamir, O., & Xiao, L. (2012). Optimal distributed online prediction using mini-batches. Journal of Machine Learning Research, 13(1)."},{"key":"7092_CR13","unstructured":"Goyal, Y., Wu, Z., Ernst, J., Batra, D., Parikh, D., & Lee, S. (2019). Counterfactual visual explanations. In International conference on machine learning (pp. 2376\u20132384)"},{"key":"7092_CR14","unstructured":"Gulrajani, I., & Lopez-Paz, D. (2021). In search of lost domain generalization. In International conference on learning representations."},{"key":"7092_CR16","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In IEEE\/CVF conference on computer vision and pattern recognition (pp. 770\u2013778)","DOI":"10.1109\/CVPR.2016.90"},{"key":"7092_CR15","unstructured":"He, Q., Xu, K., & Yao, A. (2025). Erasing spurious correlations with activations. In International conference on spurious correlations."},{"key":"7092_CR17","unstructured":"Huang, T., Halbe, S. A., Sankar, C., Amini, P., Kottur, S., Geramifard, A., Razaviyayn, M., & Beirami, A. (2023). Robustness through data augmentation loss consistency. In Transactions on machine learning research."},{"key":"7092_CR18","unstructured":"Koh, P. W., Nguyen, T., Tang, Y. S., Mussmann, S., Pierson, E., Kim, B., & Liang, P. (2020). International conference on machine learning (pp. 5338\u20135348) Concept bottleneck models."},{"key":"7092_CR19","doi-asserted-by":"crossref","unstructured":"Kohli, P., & Chadha, A. (2020). Enabling pedestrian safety using computer vision techniques: A case study of the 2018 Uber inc. self-driving car crash. Advances in information and communication (pp. 261\u2013279)","DOI":"10.1007\/978-3-030-12388-8_19"},{"key":"7092_CR20","unstructured":"Labs, B.F., Batifol, S., Blattmann, A., Boesel, F., Consul, S., Diagne, C., Dockhorn, T., English, J., English, Z., Esser, P.& et al. (2025). In Flux. 1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742"},{"key":"7092_CR21","doi-asserted-by":"publisher","first-page":"193907","DOI":"10.1109\/ACCESS.2020.3031549","volume":"8","author":"PH Le-Khac","year":"2020","unstructured":"Le-Khac, P. H., Healy, G., & Smeaton, A. F. (2020). Contrastive representation learning: A framework and review. IEEE Access, 8, 193907\u2013193934.","journal-title":"IEEE Access"},{"key":"7092_CR22","unstructured":"Liu, E. Z., Haghgoo, B., Chen, A. S., Raghunathan, A., Koh, P. W., Sagawa, S., Liang, P., & Finn, C. (2021). Just train twice: Improving group robustness without training group information. In International conference on machine learning (pp. 6781\u20136792)."},{"key":"7092_CR24","first-page":"20673","volume":"33","author":"J Nam","year":"2020","unstructured":"Nam, J., Cha, H., Ahn, S., Lee, J., & Shin, J. (2020). Learning from failure: De-biasing classifier from biased classifier. Advances in Neural Information Processing Systems, 33, 20673\u201320684.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"7092_CR23","unstructured":"Nam, J., Kim, J., Lee, J., & Shin, J. (2022). Spread spurious attribute: Improving worst-group accuracy with spurious attribute estimation. In Conference on learning representations."},{"key":"7092_CR25","doi-asserted-by":"crossref","unstructured":"Narayanan, M., Rajendran, V., & Kimia, B. (2021). Shape-biased domain generalization via shock graph embeddings. In IEEE\/CVF international conference on computer vision (pp. 1315\u20131325)","DOI":"10.1109\/ICCV48922.2021.00135"},{"key":"7092_CR26","unstructured":"Pan, Y., & Bareinboim, E. (2024). Counterfactual image editing. In International conference on machine learning"},{"key":"7092_CR27","doi-asserted-by":"crossref","unstructured":"Petryk, S., Dunlap, L., Nasseri, K., Gonzalez, J., Darrell, T., & Rohrbach, A. (2022). On guiding visual attention with language specification. In IEEE\/CVF conference on computer vision and pattern recognition (pp. 18092\u201318102)","DOI":"10.1109\/CVPR52688.2022.01756"},{"key":"7092_CR28","doi-asserted-by":"crossref","unstructured":"Prakash, A., Boochoon, S., Brophy, M., Acuna, D., Cameracci, E., State, G., Shapira, O., & Birchfield, S. (2019). Structured domain randomization: Bridging the reality gap by context-aware synthetic data. In IEEE international conference on robotics and automation (pp. 7249\u20137255)","DOI":"10.1109\/ICRA.2019.8794443"},{"key":"7092_CR29","unstructured":"Puli, A., Joshi, N., Wald, Y., He, H., & Ranganath, R. (2024). Nuisances via negativa: Adjusting for spurious correlations via data augmentation. In Transactions on machine learning."},{"key":"7092_CR30","unstructured":"Rame, A., Dancette, C., & Cord, M. (2022). Fishr: Invariant gradient variances for out-of-distribution generalization. In International conference on machine learning (pp. 18347\u201318377)"},{"key":"7092_CR31","doi-asserted-by":"crossref","unstructured":"Rao, S., B\u00f6hle, M., Parchami-Araghi, A., & Schiele, B. (2023). Studying how to efficiently and effectively guide models with explanations. In IEEE\/CVF international conference on computer vision, pp. 1922\u20131933.","DOI":"10.1109\/ICCV51070.2023.00184"},{"key":"7092_CR32","unstructured":"Sagawa, S., Koh, P. W., Hashimoto, T. B., & Liang, P. (2020). Distributionally robust neural networks for group shifts: On the importance of regularization for worst-case generalization. In international conference on learning representations."},{"key":"7092_CR33","doi-asserted-by":"crossref","unstructured":"Sun, B., Feng, J., & Saenko, K. (2016). Return of frustratingly easy domain adaptation. In AAAI conference on artificial intelligence. Vol. 30.","DOI":"10.1609\/aaai.v30i1.10306"},{"key":"7092_CR34","first-page":"16846","volume":"34","author":"X Sun","year":"2021","unstructured":"Sun, X., Wu, B., Zheng, X., Liu, C., Chen, W., Qin, T., & Liu, T.-Y. (2021). Recovering latent causal factor for generalization to distributional shifts. Advances in Neural Information Processing Systems, 34, 16846\u201316859.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"7092_CR35","doi-asserted-by":"crossref","unstructured":"Van Baelen, Q., & Karsmakers, P. (2022). Constraint guided gradient descent: Guided training with inequality constraints. In European symposium on artificial neural networks, computational intelligence and machine learning (pp. 175\u2013180)","DOI":"10.14428\/esann\/2022.ES2022-105"},{"issue":"8","key":"7092_CR37","doi-asserted-by":"crossref","first-page":"8052","DOI":"10.1109\/TKDE.2022.3201037","volume":"35","author":"J Wang","year":"2023","unstructured":"Wang, J., Lan, C., Liu, C., Ouyang, Y., Qin, T., Lu, W., Chen, Y., Zeng, W., & Yu, P. S. (2023). Generalizing to unseen domains: A survey on domain generalization. IEEE Transactions on Knowledge and Data Engineering, 35(8), 8052\u20138072.","journal-title":"IEEE Transactions on Knowledge and Data Engineering"},{"key":"7092_CR36","doi-asserted-by":"crossref","unstructured":"Wang, Z., Luo, Y., Qiu, R., Huang, Z., & Baktashmotlagh, M. (2021). Learning to diversify for single domain generalization. In IEEE\/CVF international conference on computer vision (pp. 834\u2013843)","DOI":"10.1109\/ICCV48922.2021.00087"},{"key":"7092_CR38","unstructured":"Wimmer, L., Bischl, B., & Bothmann, L. (2025). Trust me, I know the way: Predictive uncertainty in the presence of shortcut learning. arXiv:2502.09137 arXiv preprint."},{"key":"7092_CR39","doi-asserted-by":"crossref","unstructured":"Zhou, X., Ye, W., Lee, Z., & Zhang, S. (2025). Robustness to spurious correlations via dynamic knowledge transfer. In International joint conference on artificial intelligence.","DOI":"10.24963\/ijcai.2025\/799"}],"container-title":["Machine Learning"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-026-07092-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10994-026-07092-0","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-026-07092-0.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,27]],"date-time":"2026-08-27T12:19:28Z","timestamp":1787833168000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10994-026-07092-0"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,7,25]]},"references-count":39,"journal-issue":{"issue":"8","published-print":{"date-parts":[[2026,8]]}},"alternative-id":["7092"],"URL":"https:\/\/doi.org\/10.1007\/s10994-026-07092-0","relation":{},"ISSN":["0885-6125","1573-0565"],"issn-type":[{"value":"0885-6125","type":"print"},{"value":"1573-0565","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,7,25]]},"assertion":[{"value":"16 January 2026","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"20 May 2026","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"29 May 2026","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"25 July 2026","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"The authors declare no conflict of interest.","order":1,"name":"Ethics","label":"Conflict of interest","group":{"name":"EthicsHeading","label":"Declarations"}}],"article-number":"188"}}