[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-443816-105":59,"doc-detail-443816-en":131,"doc-similar-443816":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","a-diagnostic-framework-for-compositional-generalization-via-nl-to-fol-translation","A Diagnostic Framework for Compositional Generalization via NL-to-FOL Translation","","Large language models have renewed interest in whether connectionist systems can exhibit compositionality without explicit symbolic processing, yet interpretability limitations hinder judgments about true compositional generalization. This paper proposes a targeted evaluation framework to measure how transformer models translate natural language into first-order logic, requiring fine-grained linguistic analysis and compositional testing. Two T5 variants are fine-tuned and assessed with four metrics across three experiments, revealing strong in-distribution performance but sharp declines as structural complexity grows.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-diagnostic-framework-for-compositional-generalization-via-nl-to-fol-translation/443816/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-diagnostic-framework-for-compositional-generalization-via-nl-to-fol-translation/443816.png","ImageObject",300,407,{"name":92,"@type":93},"anakgang17","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-09-29",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",12,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What does the proposed framework evaluate for compositional generalization?","Question",{"text":113,"@type":114},"It evaluates a transformer-based model’s ability to translate natural language sentences into first-order logic expressions, probing compositional recombination of learned structures.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How are the transformer models assessed in the experiments?",{"text":118,"@type":114},"Two T5 model sizes are fine-tuned on a dedicated dataset and evaluated using four task-specific metrics: well-formedness, exact match, formal match, and equivalence.",{"name":120,"@type":111,"acceptedAnswer":121},"What failure patterns are reported when complexity increases?",{"text":122,"@type":114},"Performance drops markedly with longer sentences and increases in the number of truth-functional connectives, predicates, and hierarchical composition depth. The models also fail to generalize when complexity increases only through repeated applications of a single connective.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},443816,1790821080,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},962090883568,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","A Diagnostic Framework for Compositional Generalization via NL-to-FOL Translation  \nbrahim Ethem Deveci1  \nReceived: 31 October 2025 / Accepted: 6 June 2026 © The Author(s) 2026  \nAbstract  \nWith the emergence of large language models and their impressive performance across diverse natural language processing tasks, the question of whether connectionist models can exhibit compositionality without relying on symbolic processing has regained attention in both cognitive science and artiﬁcial intelligence. However, interpretability challenges faced by neural networks make it difﬁcult to determine whether they genuinely generalize compositional structures. In this paper, we introduce a targeted evaluation framework designed to directly assess the ability of transformer-based language models to translate natural language sentences into ﬁrst-order logic expressions, a task that requires both nuanced linguistic understanding and compositional generalization. To demonstrate our framework, we ﬁne-tune two different sizes of the T5 language model using our dataset, evaluating their performance through three experiments that employ four task-speciﬁc evaluation metrics. Our ﬁndings reveal that while these models achieve high scores on test data sharing the logical and structural complexity of the training set, their performance drops markedly as sentence length, the number of truth-functional connectives and predicates, and the depth of hierarchical composition increase. More strikingly, the models fail to generalize even when complexity increases solely through repeated applications of a single truth-functional connective.  \nKeywords Compositionality · Large Language Models · Neural Machine Translation  \n1 Introduction  \nCompositionality, the principle that complex expressions are formed through the systematic recombination of simpler constituents, has long posed a central challenge inartiﬁcial intelligence (AI) and cognitive science. Understanding and modeling compositionality is crucial, as it enables systems to generalize from known components  \nB Ibrahim Ethem Deveci˙  [ethem.deveci@metu.edu.tr](ethem.deveci@metu.edu.tr)  \n1 Graduate School of Informatics, Department of Cognitive Science, Middle East Technical University, Ankara, Türkiye  \n1 3  \nto novel expressions. A key debate concerns whether connectionist systems can adequately support compositionality (Fodor & Pylyshyn, 1988; Smolensky, 1991), given that compositionality underlies both productivity and systematicity in language and reasoning. Despite substantial progress in natural language processing (NLP) driven by transformer-based large language models (LLMs) (Vaswani et al., 2017), their ability to achieve compositional generalization through next-token prediction remains contested (Dziri et al., 2023; Mccoy et al., 2023). This debate is further complicated by interpretability challenges; the massive scale and opaque mechanisms of LLMs make it difﬁcult to trace predictions or diagnose errors using traditional explanation methods (Bereska & Gavves, 2024; Zhao et al., 2024), preventing us from directly identifying the sources of mistakes and guiding targeted improvements in model design or training.  \nThis paper presentsan evaluation framework for assessing LLMs’ability to translate natural language(NL)intoﬁrst-order logic(FOL)expressions(NL-to-FOL), atask that systematically assesses compositional generalization by testing a model’s capacity to syntactically recombine learned structures. Weﬁne-tune two T5(Text-to-Text Transfer Transformer) models (Raffel et al., 2019) and evaluate their performance using four task-speciﬁc metrics: well-formedness, exact match, formal match, and equivalence. These metrics enable nuanced and multifaceted analysis ofmodel predictions, offering interpretive insights even when direct model interpretability is limited.  \nTo support this evaluation, we introduce WillowNLtoFOL, a novel dataset designed for the NL-to-FOL task. Using this data, we dem","cbCaiba1t2OUr9zR","https://ap.wps.com/l/cbCaiba1t2OUr9zR","pdf",360095,21,"English","# Introduction\n# Challenges, Significance, and Related Work","[{\"question\":\"What does the proposed framework evaluate for compositional generalization?\",\"answer\":\"It evaluates a transformer-based model’s ability to translate natural language sentences into first-order logic expressions, probing compositional recombination of learned structures.\"},{\"question\":\"How are the transformer models assessed in the experiments?\",\"answer\":\"Two T5 model sizes are fine-tuned on a dedicated dataset and evaluated using four task-specific metrics: well-formedness, exact match, formal match, and equivalence.\"},{\"question\":\"What failure patterns are reported when complexity increases?\",\"answer\":\"Performance drops markedly with longer sentences and increases in the number of truth-functional connectives, predicates, and hierarchical composition depth. The models also fail to generalize when complexity increases only through repeated applications of a single connective.\"}]","A Diagnostic Framework for Compositional Generalization via NL-to-FOL Translation | PDF",1790705546,53,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5f6a109687c29eb2228a6825575b2fb8.webp",983,1415,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/18866f48b593a9afffd4aca6971f992d.webp",982,1414,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/798bb2758871a41c70f4523e4db31e3a.webp",981,1412,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9ecf0454cc43fed9a6474e93055d744a.webp",980,1411,{"list":165,"token":66},[166,173,180,187,194,200,206,213,219,225],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},85083,"Attribute Retrieving for Open-Vocabulary Endoscopic Compositional Referring Segmentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809289044/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=ZrNALrxek8quLphglBtBvldN%2FRE%3D","attribute-retrieving-for-open-vocabulary-endoscopic-compositional-referring-segmentation",25,1784200938,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},149266,"EmoMBTI‑Net - introducing and leveraging a novel emoji dataset for personality profiling with large language models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869414239/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=puVVWqKtNdQtIYEpD%2FiPUsXtLgE%3D","emombti-net-introducing-and-leveraging-a-novel-emoji-dataset-for-personality-profiling-with-large-language-models",24,1787797302,{"doc_id":181,"doc_title":182,"file_type":138,"home_preview_img_url":183,"slug":184,"view_count":185,"category_name":40,"create_tm":186},136125,"CSF: Black-box Fingerprinting via Compositional Semantics for Text-to-Image Models - Abstract and Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229862518485/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=lOBThx%2FFdjAJR3%2BxswKT4JqPViU%3D","csf-black-box-fingerprinting-via-compositional-semantics-for-text-to-image-models-abstract-and-introduction",11,1787349571,{"doc_id":188,"doc_title":189,"file_type":138,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":40,"create_tm":193},657628,"GiLT - Graph-Infused Layers Transformer Language Model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975638493/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=urAoKYb0xuRzpZN6ysFTrAFrRUo%3D","gilt-graph-infused-layers-transformer-language-model",16,1792985444,{"doc_id":195,"doc_title":196,"file_type":138,"home_preview_img_url":197,"slug":198,"view_count":52,"category_name":40,"create_tm":199},363288,"Fine-tuned lightweight language models for structured extraction of liver cancer imaging free-text report - a comparative analysis with existing large language models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229913288604/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=LD4tU0VNGPUY3eBgNz55SjLqVbY%3D","fine-tuned-lightweight-language-models-for-structured-extraction-of-liver-cancer-imaging-free-text-report-a-comparative-analysis-with-existing-large-language-models",1790150637,{"doc_id":201,"doc_title":202,"file_type":138,"home_preview_img_url":203,"slug":204,"view_count":46,"category_name":40,"create_tm":205},84315,"Understanding and Mitigating the Video-Action Generalization Gap via Temporal Ratio","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809161421/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=JO3Ur16mToWwxeHluIhP%2BSeuH58%3D","understanding-and-mitigating-the-video-action-generalization-gap-via-temporal-ratio",1784194787,{"doc_id":207,"doc_title":208,"file_type":138,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":40,"create_tm":212},85991,"Dual-Process Atomic Skill Learning Decoupling Semantic Reasoning and Real-Time Control","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809495462/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=4BNqaZUCLWbXIb3PwiVVyCe5%2BiI%3D","dual-process-atomic-skill-learning-decoupling-semantic-reasoning-and-real-time-control",33,1784207628,{"doc_id":214,"doc_title":215,"file_type":138,"home_preview_img_url":216,"slug":217,"view_count":171,"category_name":40,"create_tm":218},84185,"Distributed Sparse Interventions in Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809146149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=MZuJbx8c0BjYRFrRqrRWFn6tiHM%3D","distributed-sparse-interventions-in-language-models",1784193735,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":56,"category_name":40,"create_tm":224},122695,"Natural Language Explanations for Machine Learning Classification Decisions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836790532/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=FafLqHj%2BLNiiD%2B%2F4KW%2BVhveGtG0%3D","natural-language-explanations-for-machine-learning-classification-decisions",1785812298,{"doc_id":226,"doc_title":227,"file_type":138,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":40,"create_tm":231},82922,"ClassicLogic: A Knowledge-Driven Benchmark of Classic Puzzle Games for Evaluating Compositional Generalization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808919115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=MjDbwd2k4POIsGX6ff%2F1i426cGE%3D","classiclogic-a-knowledge-driven-benchmark-of-classic-puzzle-games-for-evaluating-compositional-generalization",23,1784183968]