{"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/can-transformers-do-enumerative-geometry","title":"Can Transformers Do Enumerative Geometry?","arxiv_id":"2408.14915","date":"2024-08-27","proceeding":null,"authors":["Baran Hashemi","Roderic G. Corominas","Alessandro Giacchetto"],"abstract":"How can Transformers model and learn enumerative geometry? What is a robust procedure for using Transformers in abductive knowledge discovery within a mathematician-machine collaboration? In this work, we introduce a Transformer-based approach to computational enumerative geometry, specifically targeting the computation of $\\psi$-class intersection numbers on the moduli space of curves. By reformulating the problem as a continuous optimization task, we compute intersection numbers across a wide value range from $10^{-45}$ to $10^{45}$. To capture the recursive nature inherent in these intersection numbers, we propose the Dynamic Range Activator (DRA), a new activation function that enhances the Transformer's ability to model recursive patterns and handle severe heteroscedasticity. Given precision requirements for computing the intersections, we quantify the uncertainty of the predictions using Conformal Prediction with a dynamic sliding window adaptive to the partitions of equivalent number of marked points. To the best of our knowledge, there has been no prior work on modeling recursive functions with such a high-variance and factorial growth. Beyond simply computing intersection numbers, we explore the enumerative \"world-model\" of Transformers. Our interpretability analysis reveals that the network is implicitly modeling the Virasoro constraints in a purely data-driven manner. Moreover, through abductive hypothesis testing, probing, and causal inference, we uncover evidence of an emergent internal representation of the the large-genus asymptotic of $\\psi$-class intersection numbers. These findings suggest that the network internalizes the parameters of the asymptotic closed-form and the polynomiality phenomenon of intersection numbers in a non-linear manner. This opens up new possibilities in inferring asymptotic closed-form expressions directly from limited amount of data.","url_abs":"https://arxiv.org/abs/2408.14915v3","url_pdf":"https://arxiv.org/pdf/2408.14915v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"can-transformers-do-enumerative-geometry","repo_url":"https://github.com/Baran-phys/DynamicFormer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"activation-function-synthesis","task_name":"Activation Function Synthesis"},{"task_slug":"causal-inference","task_name":"Causal Inference"},{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"inductive-bias","task_name":"Inductive Bias"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"regression-1","task_name":"regression"},{"task_slug":"scientific-discovery","task_name":"scientific discovery"}],"methods":[{"method_slug":"causal-inference","method_name":"Causal inference"},{"method_slug":"dra","method_name":"DRA"}],"datasets_introduced":[{"slug":"psi-class-ntersectioni","name":"Psi-Class Intersection Numbers","full_name":""}],"methods_introduced":[{"slug":"dra","name":"DRA","full_name":"Dynamic Range Activator"}],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2408.14915","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.14915"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Baran-phys/DynamicFormer","reach":null}],"summary":{"ran":1,"ran_draft_wrong":1,"ran_fixture":1},"by_repo_kind":{"official":{"samples":3,"ran":3,"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":"40c25964a3430ff5","entry":"DRA","repo":"Baran-phys/DynamicFormer","repo_kind":"official","path":"dra/activations.py","file_url":"https://github.com/Baran-phys/DynamicFormer/blob/HEAD/dra/activations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"40c25964a3430ff5"}},{"code_sha256_prefix":"2bef68417b5cfe4c","entry":"class2dict","repo":"baran-phys/dynamicformer","repo_kind":"official","path":"model/TR_ABCD2seq.py","file_url":"https://github.com/baran-phys/dynamicformer/blob/HEAD/model/TR_ABCD2seq.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2bef68417b5cfe4c"}},{"code_sha256_prefix":"2ca96479944a28d4","entry":"update_info","repo":"baran-phys/dynamicformer","repo_kind":"official","path":"model/TR_ABCD2seq.py","file_url":"https://github.com/baran-phys/dynamicformer/blob/HEAD/model/TR_ABCD2seq.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2ca96479944a28d4"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}