{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2605-07886","title":"Characterizing and Correcting Effective Target Shift in Online Learning","arxiv_id":"2605.07886","date":"2026-05-08","proceeding":null,"authors":["Ziyan Li","Naoki Hiratani"],"abstract":"Online learning from a stream of data is a defining feature of intelligence, yet modern machine learning systems often struggle in this setting, especially under distributional shift. To understand its basic properties, we study the relationship between online and offline learning in the context of kernel regression. We derive a closed-form expression for the function learned by online kernel regression, revealing that online kernel regression is equivalent to offline regression with shifted, inaccurate target outputs. Conversely, we show that by compensating for this effective shift in the teaching signal through target correction, online kernel-based learning can provably learn the same predictor as its offline counterpart. We derive both a closed-form expression for this target correction and an iterative form that can be applied sequentially. Applying this framework to image classification tasks on CIFAR-10 and CORe50, we show that online stochastic gradient descent with iteratively corrected targets outperforms learning with the true targets in continual learning settings. This work therefore provides a basic framework for analyzing and improving online learning in non-stationary environments.","url_abs":"https://arxiv.org/abs/2605.07886","url_pdf":"https://arxiv.org/pdf/2605.07886","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2605.07886","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.07886"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Hiratani-Lab/target_correction","reach":null}],"summary":{"ran":23,"ran_fixture":1,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":26,"ran":24,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":26,"samples":[{"code_sha256_prefix":"479cad028ee1ca1f","entry":"calc_RBF","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"479cad028ee1ca1f"}},{"code_sha256_prefix":"d749677135645894","entry":"calc_eff_label","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d749677135645894"}},{"code_sha256_prefix":"3d51ac4fb8646a94","entry":"calc_error_accuracy","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/run_ntk.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/run_ntk.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d51ac4fb8646a94"}},{"code_sha256_prefix":"5a0f8fdd3b949b2b","entry":"calc_kernel","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5a0f8fdd3b949b2b"}},{"code_sha256_prefix":"6cf947717ab2e6b4","entry":"calc_kernels","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/run_ntk.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/run_ntk.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6cf947717ab2e6b4"}},{"code_sha256_prefix":"1d021ecb0aa2fdb5","entry":"calc_kernels_jax","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/kernel_cal.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/kernel_cal.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1d021ecb0aa2fdb5"}},{"code_sha256_prefix":"74794d08619c1e54","entry":"compute_ntk_features","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/kernel_cal.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/kernel_cal.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"74794d08619c1e54"}},{"code_sha256_prefix":"f63b5f93c3384433","entry":"fh","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f63b5f93c3384433"}},{"code_sha256_prefix":"76091281a21724a3","entry":"generate_toyGP_curve","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/data.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"76091281a21724a3"}},{"code_sha256_prefix":"05d875629419e640","entry":"generate_toyGP_data","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/data.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"05d875629419e640"}},{"code_sha256_prefix":"37ac3ec91aaf9fac","entry":"get_frozen_seed","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/run_ntk.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/run_ntk.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"37ac3ec91aaf9fac"}},{"code_sha256_prefix":"53debe544ddc8c1e","entry":"infer_logits_optionA","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/ewc_gating.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/ewc_gating.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"53debe544ddc8c1e"}},{"code_sha256_prefix":"1f47aa0a1039668e","entry":"infer_logits_optionB","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/ewc_gating.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/ewc_gating.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1f47aa0a1039668e"}},{"code_sha256_prefix":"03f2bea549603bda","entry":"infer_pred_optionA_selfclass","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/ewc_gating.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/ewc_gating.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"03f2bea549603bda"}},{"code_sha256_prefix":"29a78521e201c2db","entry":"kernel_save_path","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/main_core50.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/main_core50.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"29a78521e201c2db"}},{"code_sha256_prefix":"facea36211627d04","entry":"make_order_multiclass","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/dataset.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"facea36211627d04"}},{"code_sha256_prefix":"009b9eb8119136a0","entry":"mean_and_sem","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/main_core50.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/main_core50.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"009b9eb8119136a0"}},{"code_sha256_prefix":"150719cf2414e49c","entry":"mse_from_f","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/main_core50.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/main_core50.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"150719cf2414e49c"}},{"code_sha256_prefix":"5721aed4ca95627d","entry":"off_predict","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5721aed4ca95627d"}},{"code_sha256_prefix":"1e286d5e76ff9cf9","entry":"on_predict","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/model.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1e286d5e76ff9cf9"}},{"code_sha256_prefix":"60fb650d6d546a2c","entry":"one_hot","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/data.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/data.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"60fb650d6d546a2c"}},{"code_sha256_prefix":"413e09a5ccd816d3","entry":"torch_to_jax_nhwc","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/dataset.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"413e09a5ccd816d3"}},{"code_sha256_prefix":"92d0fb4743dc5d77","entry":"whiten_data","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"ConvNTK/data.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/ConvNTK/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"92d0fb4743dc5d77"}},{"code_sha256_prefix":"c77cb9e1005460d4","entry":"whiten_like_jax","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/dataset.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c77cb9e1005460d4"}},{"code_sha256_prefix":"7a2073f56bcb379a","entry":"load_mcycle_data","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"toy_model/data.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/toy_model/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7a2073f56bcb379a"}},{"code_sha256_prefix":"a044b55d0ff0abce","entry":"ntk_feature_single","repo":"Hiratani-Lab/target_correction","repo_kind":"found_in_text","path":"image_classification/src/kernel_cal.py","file_url":"https://github.com/Hiratani-Lab/target_correction/blob/HEAD/image_classification/src/kernel_cal.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a044b55d0ff0abce"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,795 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6795},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}