{"id":{"repo_id":"nanyang","oai_identifier":"oai:dr.ntu.edu.sg:10356/216757"},"canonical_url":"https://search.ndltd.org/etd/nanyang/oai:dr.ntu.edu.sg:10356/216757","repository":{"repo_id":"nanyang","name":"Nanyang Technological University","base_url":"https://dr.ntu.edu.sg/oai/request"},"display":{"title":"Transformer performance enhancement via hardware acceleration, partially homomorphic federated learning and memory protection","abstract":"Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios.","abstract_html":"Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios.","abstract_has_math":false,"creators":["Koca, Nazim Altar"],"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":["Chang Chip Hong"],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-29T08:11:42Z","subjects":["Engineering"],"languages":["en"],"rights":["This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10356/216757"],"render_values":[{"text":"https://hdl.handle.net/10356/216757","href":"https://hdl.handle.net/10356/216757","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.32657/10356/216757","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.32657/10356/216757","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","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%2F216757","prefix":"oai_dc"},"source_record":{"url":"https://dr.ntu.edu.sg/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adr.ntu.edu.sg%3A10356%2F216757","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":["Chang Chip Hong"]},{"key":"dc:creator","label":"Author","values":["Koca, Nazim Altar"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-06-15T04:57:58Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-06-15T04:57:58Z"]},{"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-Doctor of Philosophy"]}]},{"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"]},{"key":"dc:rights","label":"Dc Rights","values":["This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.32657/10356/216757"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10356/216757"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"cerif:openaire","label":"Cerif Openaire","values":["<Publication xmlns=\"https://www.openaire.eu/cerif-profile/1.1/\" id=\"6947fb76-a0de-4595-bdc8-c902edc71aef\"> <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>Transformer performance enhancement via hardware acceleration, partially homomorphic federated learning and memory protection</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026</PublicationDate> <DOI>10.32657/10356/216757</DOI> <Authors> <Author> <DisplayName>Koca, Nazim Altar</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"]},{"key":"dc:description.abstract","label":"Abstract","values":["Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios."]},{"key":"dc:description.degree","label":"Dc Description Degree","values":["Doctor of Philosophy"]},{"key":"dc:format.mimetype","label":"Dc Format Mimetype","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Transformer performance enhancement via hardware acceleration, partially homomorphic federated learning and memory protection"]},{"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=\"6947fb76-a0de-4595-bdc8-c902edc71aef\"> <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>Transformer performance enhancement via hardware acceleration, partially homomorphic federated learning and memory protection</Title> <PublishedIn> <Publication> </Publication> </PublishedIn> <PublicationDate>2026</PublicationDate> <DOI>10.32657/10356/216757</DOI> <Authors> <Author> <DisplayName>Koca, Nazim Altar</DisplayName> <Affiliation> <OrgUnit> </OrgUnit> </Affiliation> </Author> </Authors> <Editors> </Editors> <Publishers> <Publisher> <DisplayName>Nanyang Technological University</DisplayName> <OrgUnit /> </Publisher> </Publishers> <Keyword>Engineering</Keyword> <Abstract>Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios.</Abstract> <Access xmlns=\"http://purl.org/coar/access_right\" > </Access> </Publication>"],"dc:contributor.school":["School of Electrical and Electronic Engineering"],"dc:contributor.supervisor":["Chang Chip Hong"],"dc:creator":["Koca, Nazim Altar"],"dc:date.accessioned":["2026-06-15T04:57:58Z"],"dc:date.available":["2026-06-15T04:57:58Z"],"dc:date.issued":["2026"],"dc:description.abstract":["Transformer neural networks have emerged as powerful models dominating various machine learning tasks. However, the extensive computational and power demands of Transformer networks present significant challenges for their deployment in resource-constrained environments. This thesis proposes efficient and innovative hardware solutions to accelerate critical nonlinear layers, specifically the softmax function and layer normalization of the Transformer. These layers are crucial for model accuracy and efficiency, but can become bottlenecks as model complexity and data size increase. The proposed solutions reduce hardware implementation overheads without compromising inference performance. While Transformer models are originally designed for natural language processing, they have become popular in various domains due to their ability to capture long range dependencies in data with the attention mechanism. Combining transformers with federated learning (FL) allows for training powerful, privacy-preserving, and robust models that can be adapted to different modalities and tasks. A fundamental challenge in FL frameworks is secure data aggregation. Privacy-preserving data aggregation is commonly achieved with computationally intensive homomorphic encryption schemes. Instead of accelerating the Paillier cryptosystem that is widely used for aggregating model updates in FL, we explore hardware acceleration techniques for Fast Additive Homomorphic Encryption (FAHE) to achieve an order-of-magnitude faster encryption and decryption than Paillier, while maintaining additive homomorphism for privacy-preserving aggregation in FL. RISC-V has been widely adopted for AI workloads due to its open and modular architecture, which allows for rapid development and architectural adaptation to optimize performance and energy efficiency for specific tasks. Like all modern processors, RISC-V implementations are highly vulnerable to physical memory errors, which disproportionally impact Transformer models due to their reliance on attention mechanisms and the large amount of memory used to store and process input sequences. The final contribution of this thesis addresses the reliability and protection of RISC-V memory in transformer neural network implementation. Specifically, the smaller feature sizes and lower operating voltage of RISC-V make it more susceptible to single-event upsets (SEUs). Recognizing the sensitivity of transformer model performance on weights and program execution corruption by SEUs, we rigorously investigate and comparatively analyze three prominent memory protection techniques: Error Correction Codes (ECC), Triple Modular Redundancy (TMR), and Dual Modular Redundancy (DMR) combined with ECC. Collectively, these contributions enhance the practical application of Transformer neural networks by improving their efficiency, broader applicability, and robustness, ultimately enabling their deployment in various real-world scenarios."],"dc:description.degree":["Doctor of Philosophy"],"dc:format.mimetype":["application/pdf"],"dc:identifier.doi":["10.32657/10356/216757"],"dc:identifier.uri":["https://hdl.handle.net/10356/216757"],"dc:language.iso":["en"],"dc:publisher":["Nanyang Technological University"],"dc:rights":["This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0)."],"dc:subject":["Engineering"],"dc:title":["Transformer performance enhancement via hardware acceleration, partially homomorphic federated learning and memory protection"],"dc:type":["Thesis-Doctor of Philosophy"],"dspace:entity.type":["Publication"]},"updated_at":"2026-11-29T08:11:42Z"}