{"id":{"repo_id":"sjsu","oai_identifier":"oai:scholarworks.sjsu.edu:etd_projects-2456"},"canonical_url":"https://search.ndltd.org/etd/sjsu/oai:scholarworks.sjsu.edu:etd_projects-2456","repository":{"repo_id":"sjsu","name":"San Jose State University","base_url":"https://scholarworks.sjsu.edu/do/oai/"},"display":{"title":"Optimizing Web Design Code Generation: A Comparative Study of Finetuning, Pretrained Models, and RAG (Retrieval Augmented Generation)","abstract":"Website Creation is revolutionized by automated code generation, reducing the development effort, speeding the production process, and ensuring consistency in design. Automated web design code generation has emerged as a transformative tool bridging the gap between design and development. In this research, a website design tool is developed and used to create visual layouts, exporting them as JSON designs. These JSON outputs were then transformed into textual prompts, optimized using established HCI principles and UI/UX rules to ensure consistency, visual hierarchy, aesthetics and minimalistic design, accessibility, user-friendly navigation and flexibility. These generated prompts were fed into large language models for code generation. In this research, three methodologies are compared: pretrained large language models, retrieval augmented generation (RAG), and finetuning. While the pretrained models provided basic outputs with limited adaptability, RAG improved contextual relevance but was constrained by storage requirements and limited flexibility in adapting to diverse designs. Finetuning on a custom dataset of 450 diverse web design templates demonstrated superior performance, producing accurate, responsive, and aesthetically coherent designs that adhered to HCI principles and UI/UX rules. Each methodology is thoroughly evaluated, and its strengths and limitations are clearly outlined. This study highlights the efficacy of finetuning in automating and enhancing design to code generation. In this research, a user survey was conducted to evaluate the generated web designs based on various attributes of web design.","abstract_html":"Website Creation is revolutionized by automated code generation, reducing the development effort, speeding the production process, and ensuring consistency in design. Automated web design code generation has emerged as a transformative tool bridging the gap between design and development. In this research, a website design tool is developed and used to create visual layouts, exporting them as JSON designs. These JSON outputs were then transformed into textual prompts, optimized using established HCI principles and UI/UX rules to ensure consistency, visual hierarchy, aesthetics and minimalistic design, accessibility, user-friendly navigation and flexibility. These generated prompts were fed into large language models for code generation. In this research, three methodologies are compared: pretrained large language models, retrieval augmented generation (RAG), and finetuning. While the pretrained models provided basic outputs with limited adaptability, RAG improved contextual relevance but was constrained by storage requirements and limited flexibility in adapting to diverse designs. Finetuning on a custom dataset of 450 diverse web design templates demonstrated superior performance, producing accurate, responsive, and aesthetically coherent designs that adhered to HCI principles and UI/UX rules. Each methodology is thoroughly evaluated, and its strengths and limitations are clearly outlined. This study highlights the efficacy of finetuning in automating and enhancing design to code generation. In this research, a user survey was conducted to evaluate the generated web designs based on various attributes of web design.","abstract_has_math":false,"creators":["Chavan, Srinivas Rao"],"institution":null,"degree_name":"Master of Science in Computer Science (MSCS)","degree_level":null,"degree_discipline":"Computer Science","degree_department":null,"school":null,"contributors":["Nada Attar","Sayma Akther","Gaojian Huang"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-26T14:03:24Z","subjects":["Automated Code Generation","Finetuning","HCI Principles","Large Language Models","Retrieval Augmented Generation (RAG)","UI/UX Rules","Other Computer Engineering"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier","label":"Identifier","values":["https://scholarworks.sjsu.edu/etd_projects/1456"],"render_values":[{"text":"https://scholarworks.sjsu.edu/etd_projects/1456","href":"https://scholarworks.sjsu.edu/etd_projects/1456","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.31979/etd.fenk-k7vc","outbound_label":"DOI","outbound_source":"dc:identifier","record_url":"https://doi.org/10.31979/etd.fenk-k7vc","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier","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%3Asjsu%3Aoai%3Ascholarworks.sjsu.edu%3Aetd_projects-2456","prefix":"oai_dc"},"source_record":{"url":"https://scholarworks.sjsu.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Ascholarworks.sjsu.edu%3Aetd_projects-2456","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Nada Attar","Sayma Akther","Gaojian Huang"]},{"key":"dc:creator","label":"Author","values":["Chavan, Srinivas Rao"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.available","label":"Dc Date Available","values":["2025-12-31T08:00:00Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2024-01-01T08:00:00Z"]},{"key":"dc:type","label":"Dc Type","values":["Master's Project"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science in Computer Science (MSCS)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Automated Code Generation","Finetuning","HCI Principles","Large Language Models","Retrieval Augmented Generation (RAG)","UI/UX Rules","Other Computer Engineering"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://doi.org/10.31979/etd.fenk-k7vc","https://scholarworks.sjsu.edu/etd_projects/1456"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["Website Creation is revolutionized by automated code generation, reducing the development effort, speeding the production process, and ensuring consistency in design. Automated web design code generation has emerged as a transformative tool bridging the gap between design and development. In this research, a website design tool is developed and used to create visual layouts, exporting them as JSON designs. These JSON outputs were then transformed into textual prompts, optimized using established HCI principles and UI/UX rules to ensure consistency, visual hierarchy, aesthetics and minimalistic design, accessibility, user-friendly navigation and flexibility. These generated prompts were fed into large language models for code generation. In this research, three methodologies are compared: pretrained large language models, retrieval augmented generation (RAG), and finetuning. While the pretrained models provided basic outputs with limited adaptability, RAG improved contextual relevance but was constrained by storage requirements and limited flexibility in adapting to diverse designs. Finetuning on a custom dataset of 450 diverse web design templates demonstrated superior performance, producing accurate, responsive, and aesthetically coherent designs that adhered to HCI principles and UI/UX rules. Each methodology is thoroughly evaluated, and its strengths and limitations are clearly outlined. This study highlights the efficacy of finetuning in automating and enhancing design to code generation. In this research, a user survey was conducted to evaluate the generated web designs based on various attributes of web design."]},{"key":"dc:title","label":"Title","values":["Optimizing Web Design Code Generation: A Comparative Study of Finetuning, Pretrained Models, and RAG (Retrieval Augmented Generation)"]}]}],"canonical_facts":{"dc:contributor":["Nada Attar","Sayma Akther","Gaojian Huang"],"dc:creator":["Chavan, Srinivas Rao"],"dc:date.available":["2025-12-31T08:00:00Z"],"dc:date.created":["2024-01-01T08:00:00Z"],"dc:description.abstract":["Website Creation is revolutionized by automated code generation, reducing the development effort, speeding the production process, and ensuring consistency in design. Automated web design code generation has emerged as a transformative tool bridging the gap between design and development. In this research, a website design tool is developed and used to create visual layouts, exporting them as JSON designs. These JSON outputs were then transformed into textual prompts, optimized using established HCI principles and UI/UX rules to ensure consistency, visual hierarchy, aesthetics and minimalistic design, accessibility, user-friendly navigation and flexibility. These generated prompts were fed into large language models for code generation. In this research, three methodologies are compared: pretrained large language models, retrieval augmented generation (RAG), and finetuning. While the pretrained models provided basic outputs with limited adaptability, RAG improved contextual relevance but was constrained by storage requirements and limited flexibility in adapting to diverse designs. Finetuning on a custom dataset of 450 diverse web design templates demonstrated superior performance, producing accurate, responsive, and aesthetically coherent designs that adhered to HCI principles and UI/UX rules. Each methodology is thoroughly evaluated, and its strengths and limitations are clearly outlined. This study highlights the efficacy of finetuning in automating and enhancing design to code generation. In this research, a user survey was conducted to evaluate the generated web designs based on various attributes of web design."],"dc:identifier":["https://doi.org/10.31979/etd.fenk-k7vc","https://scholarworks.sjsu.edu/etd_projects/1456"],"dc:subject":["Automated Code Generation","Finetuning","HCI Principles","Large Language Models","Retrieval Augmented Generation (RAG)","UI/UX Rules","Other Computer Engineering"],"dc:title":["Optimizing Web Design Code Generation: A Comparative Study of Finetuning, Pretrained Models, and RAG (Retrieval Augmented Generation)"],"dc:type":["Master's Project"],"thesis:degree_discipline":["Computer Science"],"thesis:degree_name":["Master of Science in Computer Science (MSCS)"]},"updated_at":"2026-11-26T14:03:24Z"}