{"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-03486","title":"DeepDFA: Injecting Temporal Logic in Deep Learning for Sequential Subsymbolic Applications","arxiv_id":"2602.03486","date":"2026-02-03","proceeding":null,"authors":["Elena Umili","Francesco Argenziano","Roberto Capobianco"],"abstract":"Integrating logical knowledge into deep neural network training is still a hard challenge, especially for sequential or temporally extended domains involving subsymbolic observations. To address this problem, we propose DeepDFA, a neurosymbolic framework that integrates high-level temporal logic - expressed as Deterministic Finite Automata (DFA) or Moore Machines - into neural architectures. DeepDFA models temporal rules as continuous, differentiable layers, enabling symbolic knowledge injection into subsymbolic domains. We demonstrate how DeepDFA can be used in two key settings: (i) static image sequence classification, and (ii) policy learning in interactive non-Markovian environments. Across extensive experiments, DeepDFA outperforms traditional deep learning models (e.g., LSTMs, GRUs, Transformers) and novel neuro-symbolic systems, achieving state-of-the-art results in temporal knowledge integration. These results highlight the potential of DeepDFA to bridge subsymbolic learning and symbolic reasoning in sequential tasks.","url_abs":"https://arxiv.org/abs/2602.03486","url_pdf":"https://arxiv.org/pdf/2602.03486","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=2602.03486","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.03486"}},"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/KRLGroup/DeepDFAGrounding","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/KRLGroup/NeuralRewardMachines","reach":null}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":14,"ran":2,"repositories":2}},"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":14,"samples":[{"code_sha256_prefix":"1472729bb694a181","entry":"ProbabilisticAutoma","repo":"KRLGroup/NeuralRewardMachines","repo_kind":"found_in_text","path":"RL/NRM/DeepAutoma.py","file_url":"https://github.com/KRLGroup/NeuralRewardMachines/blob/HEAD/RL/NRM/DeepAutoma.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":"1472729bb694a181"}},{"code_sha256_prefix":"f4d06a59cfdfe5c9","entry":"sftmx_with_temp","repo":"KRLGroup/NeuralRewardMachines","repo_kind":"found_in_text","path":"RL/NRM/DeepAutoma.py","file_url":"https://github.com/KRLGroup/NeuralRewardMachines/blob/HEAD/RL/NRM/DeepAutoma.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f4d06a59cfdfe5c9"}},{"code_sha256_prefix":"a4c200f8dd7d5bb5","entry":"create_complete_set_traces_one_true_literal","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"create_dataset.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/create_dataset.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":"a4c200f8dd7d5bb5"}},{"code_sha256_prefix":"703bec97007e2772","entry":"create_complete_set_traces_one_true_literal_2","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"create_dataset.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/create_dataset.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":"703bec97007e2772"}},{"code_sha256_prefix":"10728c30a581790e","entry":"create_mask_classifier","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"minimization.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/minimization.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":"10728c30a581790e"}},{"code_sha256_prefix":"c61d49927bf735ca","entry":"create_traces_set_one_true_literal_balanced","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"create_dataset.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/create_dataset.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":"c61d49927bf735ca"}},{"code_sha256_prefix":"da98d518c543e5b0","entry":"divide_args_n","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"DeepAutoma.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/DeepAutoma.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":"da98d518c543e5b0"}},{"code_sha256_prefix":"fbd39e9fb8213265","entry":"eval_acceptance","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/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":"fbd39e9fb8213265"}},{"code_sha256_prefix":"99e1d633cb48cb20","entry":"eval_accuracy","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/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":"99e1d633cb48cb20"}},{"code_sha256_prefix":"62c688922c90223f","entry":"final_states_loss","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"losses.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/losses.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":"62c688922c90223f"}},{"code_sha256_prefix":"aeb3a805ccbbd597","entry":"final_states_loss_log","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"losses.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/losses.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":"aeb3a805ccbbd597"}},{"code_sha256_prefix":"bc8c5eb96017b698","entry":"not_final_states_loss","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"losses.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/losses.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":"bc8c5eb96017b698"}},{"code_sha256_prefix":"7067559cd6cbcff3","entry":"set_seed","repo":"KRLGroup/DeepDFAGrounding","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/KRLGroup/DeepDFAGrounding/blob/HEAD/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":"7067559cd6cbcff3"}},{"code_sha256_prefix":"b20f158840390817","entry":"transacc2pythomata","repo":"KRLGroup/NeuralRewardMachines","repo_kind":"found_in_text","path":"RL/NRM/DeepAutoma.py","file_url":"https://github.com/KRLGroup/NeuralRewardMachines/blob/HEAD/RL/NRM/DeepAutoma.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":"b20f158840390817"}}]},"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}