Gated ResNet architecture for transformer multi-head attention block

dc.contributor.advisorSadeque, Farig Yousuf
dc.contributor.advisorAbedin, Jawaril Munshad
dc.contributor.authorHassan, Ahnaf
dc.contributor.authorMahde, Mubtasim Fuad
dc.date.accessioned2025-06-16T04:14:06Z
dc.date.available2025-06-16T04:14:06Z
dc.date.issued2025-01
dc.descriptionCataloged from PDF version of thesis.
dc.descriptionIncludes bibliographical references (pages 56-60).
dc.descriptionThis thesis is submitted in partial fulfillment of the requirements for the degree of Bachelor of Science in Computer Science, 2025.
dc.description.abstractTransformer model architectures show excellent performance over machine learning- related tasks, primarily focusing on natural language processing by removing the need for recurrence and convolutional techniques. Residual networks (ResNet) are a core component for transformer models to retain long-term dependencies for sequence-to-sequence-related tasks. This paper introduces a new ResNet for the at- tention layer of a transformer model. Through a ResNet connection between layers of multi-head blocks, we flow information from one layer to the next while keeping the number of parameters the same. We also explore two-layer deep connections that retain long-term dependencies even more than one layer. Furthermore, we im- plement a gating mechanism on the ResNet that will selectively allow less redundant information to flow through and ensure that the gradient convergence of the model can be accelerated. In this study, we intend to prove that the performance of a model can increase even if the parameter increases due to introducing the gated unit which is insignificant in comparison to the overall number of parameters. Therefore, en- hancing the model’s performance on seq2seq tasks without demanding additional training time and memory by adjusting a few trainable parameters introduced for the gating mechanism is the primary goal of the paper. Our model showed promis- ing results, especially on long-term dependent seq2seq tasks, by achieving a better performance score as well as maintaining similar efficiency.
dc.identifier.otherID 21341009
dc.identifier.otherID 24341116
dc.identifier.otherhttps://dspace.bracu.ac.bd/server/api/core/items/93e66427-75e0-40dd-96e3-8c59915a3d70
dc.identifier.urihttp://hdl.handle.net/10361/26030
dc.language.isoen
dc.publisherBRAC University
dc.sourceBRAC University Institutional Repository
dc.subjectTransformer model
dc.subjectResidual networks (ResNet)
dc.subjectAttention layer
dc.subjectMulti- head blocks
dc.subjectLong-term dependencies
dc.subjectSequence-to-sequence tasks
dc.subjectGating mechanism
dc.subjectGradient convergence
dc.subjectParameter increase
dc.subjectMemory reduction
dc.subjectSeq2seq tasks
dc.subjectTraining stability
dc.subjectSparse attention scores
dc.subjectModel performance
dc.subjectInformation flow
dc.subjectBLEU score
dc.titleGated ResNet architecture for transformer multi-head attention block
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Thumbnail Image
Name:
24341116_21341009_CSE.pdf
Size:
3.86 MB
Format:
Adobe Portable Document Format