Increasing the Efficiency of the Transformer Architecture of ChatGPT During Inference Using Nanophotonics
ISEF · 2024 Robotics and Intelligent Machines
Overview
ChatGPT is a widely utilized resource with billions of users projected worldwide, simultaneously handling numerous tasks. However, its cost and efficiency have become a matter of concern due to its transformer architecture, which exhibits an inference time complexity of ??(??^2) despite its ability to train on extensive datasets. To address these challenges, I propose employing the Receptance Weighted Key Value (RWKV) architecture—a recently introduced model that can be trained as a Transformer and used more efficiently like a recurrent neural network (RNN)—as an alternative, aiming to enhance efficiency and reduce expenses. Nevertheless, I discover that RWKV encounters the problem of vanishing gradients, which makes the training of RWKV sub-optimal. To overcome both vanishing and exploding gradients, I introduce a phase-coded parameterization in our algorithms inspired by nanophotonics. Furthermore, by leveraging optical processing units based on the nanophotonics computation modeled by phase-coded parameterizations, these text generative algorithms can achieve greater efficiency gains and cost reductions.
Competition history
- ISEF 2024
Resources
Related projects
ISEF · 2022
A Novel Optical Approach: Developing a Generic Nanophotonic Processor (GNP) for Classical and Quantum Computing Applications
ISEF · 2025
OATNet: A Computational and Mathematical Model of a Novel Neural Network Architecture Utilizing Ternary Weight Decomposition and Element-Wise Methods for Mitigating Computational Complexity
ISEF · 2023
A Single Usage Is All You Need: Generating an Entire Text by Using a Causal Language Model Once
ISEF · 2025
Enhancing GPU Data Transfer Efficiency via Optimization of V100 Architecture and Markov-Based Predictive Caching With Quaning
Closest projects by meaning, across every fair and year in the corpus.
Source: Regeneron International Science and Engineering Fair