{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T02:52:28Z","timestamp":1794624748074,"version":"4.9.1"},"reference-count":54,"publisher":"Springer Science and Business Media LLC","issue":"10","license":[{"start":{"date-parts":[[2024,8,19]],"date-time":"2024-08-19T00:00:00Z","timestamp":1724025600000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,8,19]],"date-time":"2024-08-19T00:00:00Z","timestamp":1724025600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Australian Research Council Discovery grant","award":["DP190101079"],"award-info":[{"award-number":["DP190101079"]}]},{"name":"Future Fellowship grant","award":["FT190100734"],"award-info":[{"award-number":["FT190100734"]}]},{"DOI":"10.13039\/501100001230","name":"Macquarie University","doi-asserted-by":"crossref","id":[{"id":"10.13039\/501100001230","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Mach Learn"],"published-print":{"date-parts":[[2024,10]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>A standard network pretrained on in-distribution (ID) samples could make high-confidence predictions on out-of-distribution (OOD) samples, leaving the possibility of failing to distinguish ID and OOD samples in the test phase. To address this over-confidence issue, the existing methods improve the OOD sensitivity from modeling perspectives, i.e., retraining it by modifying training processes or objective functions. In contrast, this paper proposes a simple but effective method, namely Weighted Non-IID Batching (WNB), by adjusting batch weights. WNB builds on a key observation: increasing the batch size can improve the OOD detection performance. This is because a smaller batch size may make its batch samples more likely to be treated as non-IID from the assumed ID, i.e., associated with an OOD. This causes a network to provide high-confidence predictions for all samples from the OOD. Accordingly, WNB applies a weight function to weight each batch according to the discrepancy between batch samples and the entire training ID dataset. Specifically, the weight function is derived by minimizing the generalization error bound. It ensures that the weight function assigns larger weights to batches with smaller discrepancies and makes a trade-off between ID classification and OOD detection performance. Experimental results show that incorporating WNB into state-of-the-art OOD detection methods can further improve their performance.<\/jats:p>","DOI":"10.1007\/s10994-024-06605-z","type":"journal-article","created":{"date-parts":[[2024,8,19]],"date-time":"2024-08-19T19:02:02Z","timestamp":1724094122000},"page":"7371-7391","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Weighting non-IID batches for out-of-distribution detection"],"prefix":"10.1007","volume":"113","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6391-8423","authenticated-orcid":false,"given":"Zhilin","family":"Zhao","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Longbing","family":"Cao","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2024,8,19]]},"reference":[{"key":"6605_CR1","unstructured":"Amodei, D., Olah, C., Steinhardt, J., Christiano, P. F., Schulman, J., & Man\u00e9, D. (2016). Concrete problems in AI safety. CoRR abs\/1606.06565, pp. 1\u201329."},{"key":"6605_CR2","first-page":"1","volume":"18","author":"R Bardenet","year":"2017","unstructured":"Bardenet, R., Doucet, A., & Holmes, C. C. (2017). On Markov chain Monte Carlo methods for tall data. Journal of Machine Learning Research, 18, 1\u201347.","journal-title":"Journal of Machine Learning Research"},{"key":"6605_CR3","first-page":"463","volume":"3","author":"PL Bartlett","year":"2002","unstructured":"Bartlett, P. L., & Mendelson, S. (2002). Rademacher and Gaussian complexities: Risk bounds and structural results. Journal of Machine Learning Research, 3, 463\u2013482.","journal-title":"Journal of Machine Learning Research"},{"issue":"1\u20132","key":"6605_CR4","doi-asserted-by":"publisher","first-page":"151","DOI":"10.1007\/s10994-009-5152-4","volume":"79","author":"S Ben-David","year":"2010","unstructured":"Ben-David, S., Blitzer, J., Crammer, K., Kulesza, A., Pereira, F., & Vaughan, J. W. (2010). A theory of learning from different domains. Machine Learning, 79(1\u20132), 151\u2013175.","journal-title":"Machine Learning"},{"issue":"4","key":"6605_CR5","doi-asserted-by":"publisher","first-page":"2382","DOI":"10.1109\/TCYB.2020.3004361","volume":"52","author":"Q Chen","year":"2022","unstructured":"Chen, Q., Xue, B., & Zhang, M. (2022). Rademacher complexity for enhancing the generalization of genetic programming for symbolic regression. IEEE Transactions on Cybernetics, 52(4), 2382\u20132395.","journal-title":"IEEE Transactions on Cybernetics"},{"key":"6605_CR6","doi-asserted-by":"crossref","unstructured":"Cimpoi, M., Maji, S., Kokkinos, I., Mohamed, S., & Vedaldi, A. (2014). Describing textures in the wild. in Conference on Computer Vision and Pattern Recognition.","DOI":"10.1109\/CVPR.2014.461"},{"key":"6605_CR7","doi-asserted-by":"crossref","unstructured":"Davis, J., & Goadrich, M. (2006). The relationship between precision-recall and ROC curves. in International Conference on Machine Learning, pp. 233\u2013240.","DOI":"10.1145\/1143844.1143874"},{"key":"6605_CR8","unstructured":"Djurisic, A., Bozanic, N., Ashok, A., & Liu, R. (2023). Extremely simple activation shaping for out-of-distribution detection. in 11th International Conference on Learning Representations, pp. 1\u201322."},{"key":"6605_CR9","first-page":"297","volume":"75","author":"N Golowich","year":"2018","unstructured":"Golowich, N., Rakhlin, A., & Shamir, O. (2018). Size-independent sample complexity. Conference On Learning Theory, 75, 297\u2013299.","journal-title":"Conference On Learning Theory"},{"key":"6605_CR10","unstructured":"Goodfellow, I. J., Shlens, J., & Szegedy, C. (2015). Explaining and harnessing adversarial examples. in 3th International Conference on Learning Representations, pp. 1\u201311."},{"key":"6605_CR11","unstructured":"Griffin, G., Holub, A., & Perona, P. (2006). The Caltech 256. Technical report."},{"key":"6605_CR12","unstructured":"Guo, C., Pleiss, G., Sun, Y., & Weinberger, K. Q. (2017). On calibration of modern neural networks. in International Conference on Machine Learning, pp. 1321\u20131330."},{"key":"6605_CR13","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. in Conference on Computer Vision and Pattern Recognition, pp. 770\u2013778.","DOI":"10.1109\/CVPR.2016.90"},{"key":"6605_CR14","unstructured":"Hendrycks, D., & Gimpel, K. (2017). A baseline for detecting misclassified and out-of-distribution examples in neural networks. in In: 5th International Conference on Learning Representations, pp. 1\u201312."},{"key":"6605_CR15","unstructured":"Hendrycks, D., Mazeika, M., & Dietterich, T. G. (2019). Deep anomaly detection with outlier exposure. in 7th International Conference on Learning Representations, pp. 1\u201318."},{"key":"6605_CR16","doi-asserted-by":"crossref","unstructured":"Hsu, Y., Shen, Y., Jin, H., & Kira, Z. (2020). Generalized ODIN detecting out-of-distribution image without learning from out-of-distribution data. in Conference on Computer Vision and Pattern Recognition, pp. 10948\u201310957.","DOI":"10.1109\/CVPR42600.2020.01096"},{"issue":"8","key":"6605_CR17","doi-asserted-by":"publisher","first-page":"2011","DOI":"10.1109\/TPAMI.2019.2913372","volume":"42","author":"J Hu","year":"2020","unstructured":"Hu, J., Shen, L., Albanie, S., Sun, G., & Wu, E. (2020). Squeeze-and-excitation networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(8), 2011\u20132023.","journal-title":"IEEE Transactions on Pattern Analysis and Machine Intelligence"},{"key":"6605_CR18","doi-asserted-by":"crossref","unstructured":"Huang, R., & Li, Y. (2021). MOS: towards scaling out-of-distribution detection for large semantic space. in Conference on Computer Vision and Pattern Recognition, pp. 8710\u20138719.","DOI":"10.1109\/CVPR46437.2021.00860"},{"key":"6605_CR19","unstructured":"Khosla, A., Jayadevaprakash, N., Yao, B., & Fei-Fei, L. (2011). Novel dataset for fine-grained image categorization. in Conference on Computer Vision and Pattern Recognition Workshop."},{"key":"6605_CR20","doi-asserted-by":"crossref","unstructured":"Kifer, D., Ben-David, S., & Gehrke, J. (2004). Detecting change in data streams. in Proceedings of the Thirtieth International Conference on Very Large Data Bases, pp. 180\u2013191.","DOI":"10.1016\/B978-012088469-8.50019-X"},{"key":"6605_CR21","unstructured":"Krizhevsky, A. (2009). Learning multiple layers of features from tiny images. Technical report."},{"issue":"1","key":"6605_CR22","doi-asserted-by":"publisher","first-page":"139","DOI":"10.1007\/s10994-020-05905-4","volume":"110","author":"D Krleza","year":"2021","unstructured":"Krleza, D., Vrdoljak, B., & Brcic, M. (2021). Statistical hierarchical clustering algorithm for outlier detection in evolving data streams. Machine Learning, 110(1), 139\u2013184.","journal-title":"Machine Learning"},{"key":"6605_CR23","first-page":"18250","volume":"202","author":"M Lafon","year":"2023","unstructured":"Lafon, M., Ramzi, E., Rambour, C., & Thome, N. (2023). Hybrid energy based model in the feature space for out-of-distribution detection. International Conference on Machine Learning, 202, 18250\u201318268.","journal-title":"International Conference on Machine Learning"},{"key":"6605_CR24","first-page":"7167","volume":"31","author":"K Lee","year":"2018","unstructured":"Lee, K., Lee, K., Lee, H., & Shin, J. (2018). A simple unified framework for detecting out-of-distribution samples and adversarial attacks. Advances in Neural Information Processing Systems, 31, 7167\u20137177.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR25","unstructured":"Lee, K., Lee, H., Lee, K., & Shin, J. (2018). Training confidence-calibrated classifiers for detecting out-of-distribution samples. in 6th International Conference on Learning Representations, pp. 1\u201316."},{"key":"6605_CR26","doi-asserted-by":"publisher","first-page":"3819","DOI":"10.1109\/TNNLS.2020.3015912","volume":"32","author":"J Li","year":"2021","unstructured":"Li, J., Shang, S., & Chen, L. (2021). Domain generalization for named entity boundary detection via metalearning. IEEE Transactions on Neural Networks and Learning Systems, 32, 3819\u20133830.","journal-title":"IEEE Transactions on Neural Networks and Learning Systems"},{"key":"6605_CR27","unstructured":"Liang, S., Li, Y., & Srikant, R. (2018). Enhancing the reliability of out-of-distribution image detection in neural networks. in 6th International Conference on Learning Representations, pp. 1\u201327."},{"key":"6605_CR28","first-page":"740","volume":"8693","author":"T Lin","year":"2014","unstructured":"Lin, T., Maire, M., Belongie, S. J., Hays, J., Perona, P., Ramanan, D., Doll\u00e1r, P., & Zitnick, C. L. (2014). Microsoft COCO: Common objects in context. Proceedings of the European Conference on Computer Vision, 8693, 740\u2013755.","journal-title":"Proceedings of the European Conference on Computer Vision"},{"key":"6605_CR29","first-page":"10622","volume":"32","author":"Z Liu","year":"2019","unstructured":"Liu, Z., Wang, Z., Liang, P. P., Salakhutdinov, R., Morency, L., & Ueda, M. (2019). Deep gamblers: Learning to abstain with portfolio theory. Advances in Neural Information Processing Systems, 32, 10622\u201310632.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR30","first-page":"21464","volume":"33","author":"W Liu","year":"2020","unstructured":"Liu, W., Wang, X., Owens, J. D., & Li, Y. (2020). Energy-based out-of-distribution detection. Advances in Neural Information Processing Systems, 33, 21464\u201321475.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR31","doi-asserted-by":"crossref","unstructured":"Liu, X., Lochman, Y., & Zach, C. (2023). GEN: pushing the limits of softmax-based out-of-distribution detection. in Conference on Computer Vision and Pattern Recognition, pp. 23946\u201323955.","DOI":"10.1109\/CVPR52729.2023.02293"},{"key":"6605_CR32","doi-asserted-by":"crossref","unstructured":"Ma, N., Zhang, X., Zheng, H., & Sun, J. (2018). Shufflenet V2: Practical guidelines for efficient CNN architecture design. in European Conferenc on Computer Vision, pp. 122\u2013138.","DOI":"10.1007\/978-3-030-01264-9_8"},{"key":"6605_CR33","first-page":"7047","volume":"31","author":"A Malinin","year":"2018","unstructured":"Malinin, A., & Gales, M. J. F. (2018). Predictive uncertainty estimation via prior networks. Advances in Neural Information Processing Systems, 31, 7047\u20137058.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR34","doi-asserted-by":"crossref","unstructured":"Ming, Y., Yin, H., & Li, Y. (2022). On the impact of spurious correlation for out-of-distribution detection. in Thirty-Sixth AAAI Conference on Artificial Intelligence, pp. 10051\u201310059.","DOI":"10.1609\/aaai.v36i9.21244"},{"key":"6605_CR35","volume-title":"Foundations of machine learning","author":"M Mohri","year":"2018","unstructured":"Mohri, M., Rostamizadeh, A., & Talwalkar, A. (2018). Foundations of machine learning. London: MIT Press."},{"key":"6605_CR36","unstructured":"Netzer, Y., Wang, T., Coates, A., Bissacco, A., Wu, B., & Ng, A. Y. (2011). Reading digits in natural images with unsupervised feature learning. in NIPS workshop on deep learning and unsupervised feature learning, pp. 1-9."},{"key":"6605_CR37","doi-asserted-by":"crossref","unstructured":"Nilsback, M., & Zisserman, A. (2006). A visual vocabulary for flower classification. in IEEE Computer Society Conference on Computer Vision and Pattern.","DOI":"10.1109\/CVPR.2006.42"},{"key":"6605_CR38","doi-asserted-by":"crossref","unstructured":"Parkhi, O. M., Vedaldi, A., Zisserman, A., & Jawahar, C. V. (2012). Cats and dogs. in Conference on Computer Vision and Pattern Recognition.","DOI":"10.1109\/CVPR.2012.6248092"},{"key":"6605_CR39","first-page":"14680","volume":"32","author":"J Ren","year":"2019","unstructured":"Ren, J., Liu, P. J., Fertig, E., Snoek, J., Poplin, R., DePristo, M. A., Dillon, J. V., & Lakshminarayanan, B. (2019). Likelihood ratios for out-of-distribution detection. Advances in Neural Information Processing Systems, 32, 14680\u201314691.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR40","unstructured":"Salehi, M., Mirzaei, H., Hendrycks, D., Li, Y., Rohban, M. H., & Sabokrou, M. (2022). A unified survey on anomaly, novelty, open-set, and out of-distribution detection: Solutions and future challenges. in Transactions on Machine Learning Research, pp. 1-81."},{"key":"6605_CR41","unstructured":"Sastry, C. S., & Oore, S. (2020). Detecting out-of-distribution examples with gram matrices. in International Conference on Machine Learning, pp. 8491\u20138501."},{"key":"6605_CR42","unstructured":"Sehwag, V., Chiang, M., & Mittal, P. (2021). SSD: A unified framework for self-supervised outlier detection. in 9th International Conference on Learning Representations, pp. 1\u201317."},{"key":"6605_CR43","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9781107298019","volume-title":"Understanding Machine Learning From Theory to Algorithms","author":"S Shalev-Shwartz","year":"2014","unstructured":"Shalev-Shwartz, S., & Ben-David, S. (2014). Understanding Machine Learning From Theory to Algorithms. New York: Cambridge University Press."},{"key":"6605_CR44","doi-asserted-by":"crossref","unstructured":"Shrivastava, A., Pfister, T., Tuzel, O., Susskind, J., Wang, W., & Webb, R. (2017). Learning from simulated and unsupervised images through adversarial training. in Conference on Computer Vision and Pattern Recognition, pp. 2242\u20132251.","DOI":"10.1109\/CVPR.2017.241"},{"key":"6605_CR45","first-page":"144","volume":"34","author":"Y Sun","year":"2021","unstructured":"Sun, Y., Guo, C., & Li, Y. (2021). ReAct: Out-of-distribution detection with rectified activations. Advances in Neural Information Processing Systems, 34, 144\u2013157.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR46","doi-asserted-by":"crossref","unstructured":"Sun, T., Li, D., & Wang, B. (2021). Stability and generalization of decentralized stochastic gradient descent. in Thirty-Fifth AAAI Conference on Artificial Intelligence, pp. 9756\u20139764.","DOI":"10.1609\/aaai.v35i11.17173"},{"key":"6605_CR47","first-page":"1","volume":"33","author":"J Tack","year":"2020","unstructured":"Tack, J., Mo, S., Jeong, J., & Shin, J. (2020). CSI: Novelty detection via contrastive learning on distributionally shifted instances. Advances in Neural Information Processing Systems, 33, 1\u201314.","journal-title":"Advances in Neural Information Processing Systems"},{"key":"6605_CR48","unstructured":"Wah, C., Branson, S., Welinder, P., Perona, P., & Belongie, S. (2011). The Caltech-UCSD birds-200-2011 dataset. Technical report"},{"issue":"8","key":"6605_CR49","doi-asserted-by":"publisher","first-page":"7765","DOI":"10.1109\/TCYB.2021.3051368","volume":"52","author":"Y Wang","year":"2022","unstructured":"Wang, Y., He, P., Shi, P., & Zhang, H. (2022). Fault detection for systems with model uncertainty and disturbance via coprime factorization and gap metric. IEEE Transactions on Cybernetics, 52(8), 7765\u20137775.","journal-title":"IEEE Transactions on Cybernetics"},{"issue":"8","key":"6605_CR50","doi-asserted-by":"publisher","first-page":"8399","DOI":"10.1109\/TCYB.2021.3058780","volume":"52","author":"Z Yuan","year":"2022","unstructured":"Yuan, Z., Chen, H., Li, T., Sang, B., & Wang, S. (2022). Outlier detection based on fuzzy rough granules in mixed attribute data. IEEE Transactions on Cybernetics, 52(8), 8399\u20138412.","journal-title":"IEEE Transactions on Cybernetics"},{"key":"6605_CR51","unstructured":"Zhang, H., Ciss\u00e9, M., Dauphin, Y. N., & Lopez-Paz, D. (2018). mixup: Beyond empirical risk minimization. in 6th International Conference on Learning Representations, pp. 1\u201313."},{"key":"6605_CR52","first-page":"1","volume":"2023","author":"Z Zhao","year":"2023","unstructured":"Zhao, Z., & Cao, L. (2023). Dual representation learning for out-of-distribution detection. Transactions on Machine Learning Research, 2023, 1\u201321.","journal-title":"Transactions on Machine Learning Research"},{"issue":"7","key":"6605_CR53","doi-asserted-by":"crossref","first-page":"8888","DOI":"10.1109\/TPAMI.2022.3232211","volume":"45","author":"Z Zhao","year":"2023","unstructured":"Zhao, Z., Cao, L., & Lin, K.-Y. (2023). Revealing the distributional vulnerability of discriminators by implicit generators. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(7), 8888\u20138901.","journal-title":"IEEE Transactions on Pattern Analysis and Machine Intelligence"},{"key":"6605_CR54","doi-asserted-by":"crossref","unstructured":"Zisselman, E., & Tamar, A. (2020). Deep residual flow for out-of-distribution detection. in Conference on Computer Vision and Pattern Recognition, pp. 13991\u201314000.","DOI":"10.1109\/CVPR42600.2020.01401"}],"container-title":["Machine Learning"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-024-06605-z.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10994-024-06605-z\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10994-024-06605-z.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,10,17]],"date-time":"2024-10-17T21:10:21Z","timestamp":1729199421000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10994-024-06605-z"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,8,19]]},"references-count":54,"journal-issue":{"issue":"10","published-print":{"date-parts":[[2024,10]]}},"alternative-id":["6605"],"URL":"https:\/\/doi.org\/10.1007\/s10994-024-06605-z","relation":{},"ISSN":["0885-6125","1573-0565"],"issn-type":[{"value":"0885-6125","type":"print"},{"value":"1573-0565","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,8,19]]},"assertion":[{"value":"23 February 2023","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"30 January 2024","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"4 August 2024","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"19 August 2024","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}},{"value":"Not applicable.","order":3,"name":"Ethics","group":{"name":"EthicsHeading","label":"Ethics approval"}},{"value":"The authors understand that participation is voluntary and that they are free to withdraw at any time, without giving a reason and without cost. The authors voluntarily agree to take part in this study.","order":4,"name":"Ethics","group":{"name":"EthicsHeading","label":"Consent to participate"}},{"value":"The authors give our consent for the publication of identifiable details which can include data and photographs to be published in Machine Learning.","order":5,"name":"Ethics","group":{"name":"EthicsHeading","label":"Consent for publication"}}]}}