{"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-2603-15250","title":"In-Context Symbolic Regression for Robustness-Improved Kolmogorov-Arnold Networks","arxiv_id":"2603.15250","date":"2026-03-16","proceeding":null,"authors":["Francesco Sovrano","Lidia Losavio","Giulia Vilone","Marc Langheinrich"],"abstract":"Symbolic regression aims to replace black-box predictors with concise analytical expressions that can be inspected and validated in scientific machine learning. Kolmogorov-Arnold Networks (KANs) are well suited to this goal because each connection between adjacent units (an \"edge\") is parametrised by a learnable univariate function that can, in principle, be replaced by a symbolic operator. In practice, however, symbolic extraction is a bottleneck: the standard KAN-to-symbol approach fits operators to each learned edge function in isolation, making the discrete choice sensitive to initialisation and non-convex parameter fitting, and ignoring how local substitutions interact through the full network. We study in-context symbolic regression for operator extraction in KANs, and present two complementary instantiations. Greedy in-context Symbolic Regression (GSR) performs greedy, in-context selection by choosing edge replacements according to end-to-end loss improvement after brief fine-tuning. Gated Matching Pursuit (GMP) amortises this in-context selection by training a differentiable gated operator layer that places an operator library behind sparse gates on each edge; after convergence, gates are discretised (optionally followed by a short in-context greedy refinement pass). We quantify robustness via one-factor-at-a-time (OFAT) hyper-parameter sweeps and assess both predictive error and qualitative consistency of recovered formulas. Across several experiments, greedy in-context symbolic regression achieves up to 99.8% reduction in median OFAT test MSE.","url_abs":"https://arxiv.org/abs/2603.15250","url_pdf":"https://arxiv.org/pdf/2603.15250","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":{"atlas_url":"https://app.syntology.ai/?focus=2603.15250","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2603.15250"}},"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/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","reach":null}],"summary":{"unverified":13},"by_repo_kind":{"found_in_text":{"samples":13,"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":13,"samples":[{"code_sha256_prefix":"fd8395b1625b9d53","entry":"B_batch","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/spline.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/spline.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":"fd8395b1625b9d53"}},{"code_sha256_prefix":"8f3ac91daf07057f","entry":"coef2curve","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/spline.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/spline.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":"8f3ac91daf07057f"}},{"code_sha256_prefix":"df7c37789eb3b2f4","entry":"compactify_symbolic_formula","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/MultKAN.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/MultKAN.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":"df7c37789eb3b2f4"}},{"code_sha256_prefix":"d522c15fd033946f","entry":"create_dataset","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/utils.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/utils.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":"d522c15fd033946f"}},{"code_sha256_prefix":"7a2b9e36c5366434","entry":"curve2coef","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/spline.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/spline.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":"7a2b9e36c5366434"}},{"code_sha256_prefix":"e03cff3b7849d0f8","entry":"fit_params","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/utils.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/utils.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":"e03cff3b7849d0f8"}},{"code_sha256_prefix":"b3eda756e423e040","entry":"list_local_feynman_dataset_names","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"ablation.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/ablation.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":"b3eda756e423e040"}},{"code_sha256_prefix":"936dd012a7ff17ec","entry":"list_local_feynman_dataset_names","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"example_feynman.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/example_feynman.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":"936dd012a7ff17ec"}},{"code_sha256_prefix":"8c6f3cc35fd8be3b","entry":"load_local_feynman_dataset_as_kan","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"ablation.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/ablation.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":"8c6f3cc35fd8be3b"}},{"code_sha256_prefix":"b98e5ba4724a49e8","entry":"load_local_feynman_dataset_as_kan","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"example_feynman.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/example_feynman.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":"b98e5ba4724a49e8"}},{"code_sha256_prefix":"842a0b15a9c1bf31","entry":"masked_softmax_stable","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/gated_kan.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/gated_kan.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":"842a0b15a9c1bf31"}},{"code_sha256_prefix":"b58bf5e11c735750","entry":"old_fit_params","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"symbolic_kan/utils.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/symbolic_kan/utils.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":"b58bf5e11c735750"}},{"code_sha256_prefix":"2150acab88a3bc3c","entry":"parse_mid","repo":"Francesco-Sovrano/In-Context-Symbolic-Regression-KAN","repo_kind":"found_in_text","path":"ablation.py","file_url":"https://github.com/Francesco-Sovrano/In-Context-Symbolic-Regression-KAN/blob/HEAD/ablation.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":"2150acab88a3bc3c"}}]},"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}