{"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-2602-19788","title":"Bayesian Meta-Learning with Expert Feedback for Task-Shift Adaptation through Causal Embeddings","arxiv_id":"2602.19788","date":"2026-02-23","proceeding":"ICML","authors":["Lotta Mäkinen","Jorge Loría","Samuel Kaski"],"abstract":"Meta-learning methods perform well on new within-distribution tasks but often fail when adapting to out-of-distribution target tasks, where transfer from source tasks can induce negative transfer. We propose a causally-aware Bayesian meta-learning method, by conditioning task-specific priors on precomputed latent causal task embeddings, enabling transfer based on mechanistic similarity rather than spurious correlations. Our approach explicitly considers realistic deployment settings where access to target-task data is limited, and adaptation relies on noisy (expert-provided) pairwise judgments of causal similarity between source and target tasks. We provide a theoretical analysis showing that conditioning on causal embeddings controls prior mismatch and mitigates negative transfer under task shift. Empirically, we demonstrate reductions in negative transfer and improved out-of-distribution adaptation in both controlled simulations and a large-scale real-world clinical prediction setting for cross-disease transfer, where causal embeddings align with underlying clinical mechanisms.","url_abs":"https://arxiv.org/abs/2602.19788","url_pdf":"https://arxiv.org/pdf/2602.19788","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":"https://syntology.ai/paper/2602.19788","atlas_url":"https://app.syntology.ai/?focus=2602.19788","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.19788"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/lottamakinen/causal-meta-learning","reach":null}],"summary":{"unverified":15},"by_repo_kind":{"found_in_text":{"samples":15,"ran":0,"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":0,"samples":[{"code_sha256_prefix":"ab666833902be02f","entry":"avg_task_classification_metrics","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/accuracy.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/accuracy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ab666833902be02f"}},{"code_sha256_prefix":"8d9ac15c77d941e1","entry":"bernoulli_entropy","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"expert_model/expert_inference.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/expert_model/expert_inference.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8d9ac15c77d941e1"}},{"code_sha256_prefix":"5831505484c20cbc","entry":"classification_metrics","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/accuracy.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/accuracy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5831505484c20cbc"}},{"code_sha256_prefix":"a14916935ef030e3","entry":"compute_class_weights","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"method/hierarchical_model.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/method/hierarchical_model.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a14916935ef030e3"}},{"code_sha256_prefix":"381e3729de2de5d9","entry":"euclidean_distance","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"expert_model/expert_inference.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/expert_model/expert_inference.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"381e3729de2de5d9"}},{"code_sha256_prefix":"2df0e47bedd66200","entry":"generate_task_data","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"data_generator/data_generator.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/data_generator/data_generator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2df0e47bedd66200"}},{"code_sha256_prefix":"98c21eecf92b6f89","entry":"get_ci","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/explainability.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/explainability.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98c21eecf92b6f89"}},{"code_sha256_prefix":"050d9253698191a2","entry":"get_integrated_gradients","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/explainability.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/explainability.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"050d9253698191a2"}},{"code_sha256_prefix":"52d82e515d2d6b42","entry":"integrated_gradients_importance","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/explainability.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/explainability.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"52d82e515d2d6b42"}},{"code_sha256_prefix":"6abe6fde60ccfbe1","entry":"linear_nn_model","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"utils/bnn_models.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/utils/bnn_models.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6abe6fde60ccfbe1"}},{"code_sha256_prefix":"fcb10069f6f22115","entry":"load_task_embeddings","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"method/embedding_conditional_prior.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/method/embedding_conditional_prior.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fcb10069f6f22115"}},{"code_sha256_prefix":"276ac60ddb84440d","entry":"make_W_and_b","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"data_generator/data_generator.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/data_generator/data_generator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"276ac60ddb84440d"}},{"code_sha256_prefix":"1038c6cb8399eb78","entry":"normalize_embedding","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"expert_model/expert_inference.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/expert_model/expert_inference.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1038c6cb8399eb78"}},{"code_sha256_prefix":"71fdf177db52cc3f","entry":"sample_task_effects","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"data_generator/data_generator.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/data_generator/data_generator.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"71fdf177db52cc3f"}},{"code_sha256_prefix":"a08708159563fdb0","entry":"task_classification_metrics","repo":"lottamakinen/causal-meta-learning","repo_kind":"found_in_text","path":"metrics/accuracy.py","file_url":"https://github.com/lottamakinen/causal-meta-learning/blob/HEAD/metrics/accuracy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a08708159563fdb0"}}]},"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":null}