{"id":{"repo_id":"nanyang","oai_identifier":"oai:dr.ntu.edu.sg:10356/218874"},"canonical_url":"https://search.ndltd.org/etd/nanyang/oai:dr.ntu.edu.sg:10356/218874","repository":{"repo_id":"nanyang","name":"Nanyang Technological University","base_url":"https://dr.ntu.edu.sg/oai/request"},"display":{"title":"Bridging logic and syntax: a dual-optimization framework for reliable structured generation in large language models","abstract":"Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows.","abstract_html":"Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows.","abstract_has_math":false,"creators":["Zhao, Weijie"],"institution":"Nanyang Technological University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":"School of Electrical and Electronic Engineering","contributors":[],"advisors":["Lihui Chen"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-27T08:09:09Z","subjects":["Engineering"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10356/218874","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10356/218874","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Ananyang%3Aoai%3Adr.ntu.edu.sg%3A10356%2F218874","prefix":"oai_dc"},"source_record":{"url":"https://dr.ntu.edu.sg/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.ntu.edu.sg%3A10356%2F218874","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.school","label":"School","values":["School of Electrical and Electronic Engineering"]},{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Lihui Chen"]},{"key":"dc:creator","label":"Author","values":["Zhao, Weijie"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-07-10T07:09:38Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-07-10T07:09:38Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Nanyang Technological University"]},{"key":"dc:type","label":"Dc Type","values":["Thesis-Master by Coursework"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Engineering"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10356/218874"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"cerif:openaire","label":"Cerif Openaire","values":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"e367610e-7e8e-4c31-a641-408b9ad03adf\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Language>en</Language> <Title>Bridging logic and syntax: a dual-optimization framework for reliable structured generation in large language models</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026</PublicationDate> <Authors> <Author> <DisplayName>Zhao, Weijie</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"]},{"key":"dc:description.abstract","label":"Abstract","values":["Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Master's degree"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Bridging logic and syntax: a dual-optimization framework for reliable structured generation in large language models"]},{"key":"dspace:entity.type","label":"Dspace Entity Type","values":["Publication"]}]}],"canonical_facts":{"cerif:openaire":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"e367610e-7e8e-4c31-a641-408b9ad03adf\"> <Type xmlns=\"https://www.openaire.eu/cerif-profile/vocab/COAR_Publication_Types\">http://purl.org/coar/resource_type/c_1843</Type> <Language>en</Language> <Title>Bridging logic and syntax: a dual-optimization framework for reliable structured generation in large language models</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026</PublicationDate> <Authors> <Author> <DisplayName>Zhao, Weijie</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"],"dc:contributor.school":["School of Electrical and Electronic Engineering"],"dc:contributor.supervisor":["Lihui Chen"],"dc:creator":["Zhao, Weijie"],"dc:date.accessioned":["2026-07-10T07:09:38Z"],"dc:date.available":["2026-07-10T07:09:38Z"],"dc:date.issued":["2026"],"dc:description.abstract":["Large Language Models (LLMs) often struggle to generate strictly structured outputs, suffering from format illusions and semantic drift. In order to solve this problem, I have proposed a Dual-Optimization Structured Generation (DOSG) framework, which seamlessly integrates prompt engineering with deterministic reasoning constraints. DOSG consists of two core modules: a task-specific S-CoT prompt template adapted from the Structured Chain-of-Thought framework proposed by Li et al. (2025), and a Constraint Enforcement Module (CEM) that compiles target JSON schemas into Finite-State Machines (FSMs) for real-time logit masking. The original contribution of this study lies in adapting S-CoT to schema-constrained structured extraction and integrating it with CEM within a unified DOSG framework. Format illusions and semantic drift are mitigated through the collaboration between these two modules. The comparative experiment includes two datasets - Customer Review Dataset and Financial News Dataset - and two models – Llama-3-8B and GPT-4o. The results show that DOSG has achieved 100% syntactic compliance rate and 97% token efficiency. For the smaller open-weights model, the F1-score rises by a 25 percentage from 0.51 to 0.76. These results show that DOSG provides a structured solution for integrating LLMs into existing workflows."],"dc:description.degree":["Master's degree"],"dc:format.mimetype":["application/pdf"],"dc:identifier.uri":["https://hdl.handle.net/10356/218874"],"dc:language.iso":["en"],"dc:publisher":["Nanyang Technological University"],"dc:subject":["Engineering"],"dc:title":["Bridging logic and syntax: a dual-optimization framework for reliable structured generation in large language models"],"dc:type":["Thesis-Master by Coursework"],"dspace:entity.type":["Publication"]},"updated_at":"2026-11-27T08:09:09Z"}