<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Chiplet-GAN: Chiplet-Based Accelerator Design for Scalable Generative Adversarial Network Inference [Feature]</title></titleStmt>
			<publicationStmt>
				<publisher>IEEE</publisher>
				<date>08/19/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10588096</idno>
					<idno type="doi"></idno>
					<title level='j'>IEEE circuits and systems magazine</title>
<idno>1558-0830</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Chen Yuechen</author><author>Louri Ahmed</author><author>Lombardi Fabrizio</author><author>Liu Shanshan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Generative adversarial networks (GANs) have emerged as a powerful solution for generating synthetic data when the availability of large, labeled training datasets is limited or costly in large-scale machine learning systems. Recent advancements in GAN models have extended their applications across diverse domains, including medicine, robotics, and content synthesis. These advanced GAN models have gained recognition for their excellent accuracy by scaling the model. However, existing accelerators face scalability challenges when dealing with large-scale GAN models. As the size of GAN models increases, the demand for computation and communication resources during inference continues to grow. To address this scalability issue, this article proposes Chiplet-GAN, a chiplet-based accelerator design for GAN inference. Chiplet-GAN enables scalability by adding more chiplets to the system, thereby supporting the scaling of computation capabilities. To handle the increasing communication demand as the system and model scale, a novel interconnection network with adaptive topology and passive/active network links is developed to provide adequate communication support for Chiplet-GAN. Coupled with workload partition and allocation algorithms, Chiplet-GAN reduces execution time and energy consumption for GAN inference workloads as both model and chiplet-system scales. Evaluation results using various GAN models show the effectiveness of Chiplet-GAN. On average, compared to GANAX, SpAtten, and Simba, the Chiplet-GAN reduces execution time and energy consumption by 34% and 21%, respectively. Furthermore, as the system scales for large-scale GAN model inference, Chiplet-GAN achieves reductions in execution time of up to 63% compared to the Simba, a chiplet-based accelerator.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Generative adversarial networks (GANs) have emerged as a powerful solution for generating synthetic data when the availability of large, labeled training datasets is limited or costly in large-scale machine learning systems. Recent advancements in GAN models have extended their applications across diverse domains, including medicine, robotics, and content synthesis. These advanced GAN models have gained recognition for their excellent accuracy by scaling the model. However, existing accelerators face scalability challenges when dealing with large-scale GAN models. As the size of GAN models increases, the demand for computation and communication resources during inference continues to grow. To address this scalability issue, this article proposes Chiplet-GAN, a chiplet-based accelerator design for GAN inference. Chiplet-GAN enables scalability by adding more chiplets to the system, thereby supporting the scaling of computation capabilities. To handle the increasing communication demand as the system and model scale, a novel interconnection network with adaptive topology and passive/active network links is developed to provide adequate communication support for Chiplet-GAN. Coupled with workload partition and allocation algorithms, Chiplet-GAN reduces execution time and energy consumption for GAN inference workloads as both model and chiplet-system scales. Evaluation results using various GAN models show the effectiveness of Chiplet-GAN. On average, compared to GANAX, SpAtten, and Simba, the Chiplet-GAN reduces execution time and energy consumption by 34% and 21%, respectively. Furthermore, as the system scales for large-scale GAN model inference, Chiplet-GAN achieves reductions in execution time of up to 63% compared to the Simba, a chiplet-based accelerator.</p><p>Index Terms-GAN inference, chiplet, scalability, interconnection network, machine learning.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>I. Introduction</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>G</head><p>enerative Adversarial Networks (GANs) have excellent performance in content generation, such as image synthesis and natural language processing (NLP) tasks <ref type="bibr">[1]</ref>, <ref type="bibr">[2]</ref>, <ref type="bibr">[3]</ref>, <ref type="bibr">[4]</ref>. With the most recent advancement in training algorithms and models, the latest large-scale GAN models have achieved very good performance <ref type="bibr">[5]</ref>, <ref type="bibr">[6]</ref>, <ref type="bibr">[7]</ref>, <ref type="bibr">[8]</ref>, <ref type="bibr">[9]</ref>, <ref type="bibr">[10]</ref>, <ref type="bibr">[11]</ref>. For example, TransGAN <ref type="bibr">[6]</ref> has shown excellent accuracy on image synthesis tasks by incorporating transformers into the model. To deploy these GAN models, inference is a quintessential step for the model to generate content with reduced delay <ref type="bibr">[12]</ref>. The increasing complexity and size of the large-scale GAN model for capturing more complex patterns and generating higher-quality outputs present challenges in architectural design when it comes to handling the demanding computational and communication workloads associated with model inference.</p><p>Existing research has proposed several architectures to accelerate GAN inference <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>, <ref type="bibr">[15]</ref>, <ref type="bibr">[16]</ref>. Different from convolutional neural networks, a GAN contains transposed convolution operations (TC) and transformers <ref type="bibr">[17]</ref>, which demand a significant amount of computation and communication resources. Thus, specialized accelerators are developed to handle these workloads. In GANAX <ref type="bibr">[12]</ref>, a SIMD-MIMD mixed architecture is developed to handle TC. In SpAtten <ref type="bibr">[13]</ref>, a specialized unit is designed to accelerate the computation of attention mechanisms in transformers. Existing architectures primarily excel in improving efficiency for specific functionalities, such as TC or the attention mechanism. However, as the parameters and the number of layers increase to expand the widespread usage and accuracy of GAN models, the task of scaling these architectures to meet the growing computational and communication demands becomes an increasingly pressing concern. All existing accelerators <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>, <ref type="bibr">[15]</ref> are implemented with a global controller and global buffer, which are not scalable to support more computation units for the inference of large-scale GAN models.</p><p>Recent research has provided compelling evidence of the advantages of chiplet systems in terms of computation performance and scalability <ref type="bibr">[18]</ref>, <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>, <ref type="bibr">[21]</ref>. A chiplet system provides a modular approach to semiconductor design and manufacturing, in which multiple smaller chip components (i.e., chiplets) are integrated into a single system. The chiplets are interconnected via network-on-packet (NoP) with either active or passive links on a common interposer <ref type="bibr">[22]</ref>, <ref type="bibr">[23]</ref>, <ref type="bibr">[24]</ref>. Within each chiplet, a multi-core system is implemented by using network-on-chip (NoC) to connect cores, caches, and memory interfaces. Packets are used to carry data in NoCs, and routers are implemented to direct packets to their destination. With such a design, the system offers scalability by allowing users to scale their systems by adding chiplets as needed. Existing research and commercial products have proven that these systems can integrate a large number of computation units at a lower cost and higher flexibility compared to conventional single-chip designs <ref type="bibr">[20]</ref>, <ref type="bibr">[22]</ref>, <ref type="bibr">[24]</ref>, <ref type="bibr">[25]</ref>. The flexibility and scalability are particularly useful in GAN model inference, in which varying levels of performance and functionality are required.</p><p>To the best of the authors' knowledge, there has been no prior research conducted on designing a scalable GAN inference accelerator by employing a chiplet design approach. Existing research has proposed the use of a chiplet system for deep convolutional neural networks (DCNN), which mainly consists of convolutional layers <ref type="bibr">[18]</ref>, <ref type="bibr">[19]</ref>. Different from DCNN models, TC and transformers require more computation resources with vastly different communication patterns. Compared to existing single-chip accelerator designs <ref type="bibr">[12]</ref>, <ref type="bibr">[13]</ref>, <ref type="bibr">[14]</ref>, <ref type="bibr">[15]</ref> for GAN inference that can efficiently process only one type of layer (e.g., matrix multiplication or attention mechanism), a chiplet system excels at efficiently processing multiple layers in parallel. Furthermore, the scalability inherent to a chiplet design approach ensures efficient inference not only for existing large-scale GAN models but also for future models with increasingly demanding computation and communication requirements.</p><p>This article presents Chiplet-GAN, a chiplet-based accelerator designed specifically for scalable and efficient GAN inference. Through a detailed analysis of the computation and communication requirements involved in GAN inference, it is observed that operations such as matrix multiplication, reduction operations, up-sampling, and matrix reshape operations consume a significant portion of the inference time and incur intensive communication and computation. Recognizing the distinct communication patterns exhibited by these operations, an adaptive network topology is developed to effectively address the communication demands of the workload. This adaptive interconnection network is implemented in each chiplet, enabling dynamic switching between a concentrated mesh (C-Mesh) and a mesh topology based on the functionality of the layer. For efficient communication between chiplets as Chiplet-GAN scales, NoP is implemented with both passive and active network links on the interposer to efficiently handle both short-distance and long-distance communications. Together with the NoP design and adaptive interconnection network, the efficiency of traffic forwarding is improved during GAN inference, specifically for the aforementioned operations. To complement the adaptive network topology and passive/active network links, the workload partitioning and allocation algorithms are developed. These algorithms partition the workload and strategically distribute the workloads to ensure low communication latency, which further reduces the overall execution time. The key contributions of this article are then summarized as follows.</p><p>&#9632; This article proposes Chiplet-GAN, a scalable and efficient GAN inference accelerator, by employing a chiplet design approach.</p><p>&#9632; Chiplet-GAN includes an adaptive interconnection network in chiplet to ensure low communication latency during inference as the GAN model scales.</p><p>&#9632; Network-on-packet (NoP) is designed with both active and passive network links on the interposer with a workload partitioning and allocation algorithm to ensure low communication latency between chiplets as the system scales.</p><p>&#9632; Simulation results show that compared to GA-NAX, SpAtten, and Simba, Chiplet-GAN reduces execution time and energy consumption by 34% and 21%, respectively. Furthermore, as the system scales for large-scale GAN inference, Chiplet-GAN achieves reductions in execution time of up to 63% compared to the existing chiplet-based accelerator (Simba).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>II. Motivation and Challenges</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. GAN Inference</head><p>The recent large-scale GAN model for inference poses challenges mainly due to the deep model architecture with a large number of parameters and activations. The main challenges of the scaling of the layers that are widely used in GAN models are listed as follows.</p><p>&#9632; Fully Connected/Linear/Convolution Layer: These layers involve matrix multiplications between the input activations and the learned weight matrices. These matrix multiplication operations are computationally expensive, especially when large input activations and weights are used in the model.</p><p>&#9632; Attention Mechanism: The attention mechanism, commonly used in transformer-based GANs, requires pairwise computations between all positions in the input activations. This involves computing attention weights for each position, which entails a significant amount of computation due to many matrix multiplications. Also, the transformer involves matrix reshape operations, such as matrix transpose, and incurring extensive communication traffic between computation units.</p><p>&#9632; Up-Sampling Operations: GAN models utilize upsampling operations, such as zero insertion or nearest-neighbor up-sampling. Up-sampling operations involve interpolating or expanding input activations to increase the spatial resolution, so requiring extensive data communication between computation units.</p><p>&#9632; Activation Functions: The application of nonlinear activation functions, such as ReLU (Rectified Linear Unit), and linear activation functions, such as SoftMax and normalization in the model, also contributes to the complexity of computation and communication. These activation functions are applied elementwise to the activations and require additional computation. The normalization and SoftMax functions need to survey the inputs before an element-wise operation, that requires a reduction operation prior to an elementwise operation. As the GAN model keeps scaling to capture more complex patterns and generate higher-quality outputs, efficient inference in such a model requires more communication and computation capabilities for storing, accessing, and processing input activations and parameters. Thus, a scalable system is needed to handle the increasing demand in both computation and communication for GAN inference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Chiplet Design Approach</head><p>Chiplet systems offer significant advantages in terms of performance and scalability for architecture design and semiconductor manufacturing <ref type="bibr">[18]</ref>, <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>, <ref type="bibr">[21]</ref>, <ref type="bibr">[25]</ref>. By integrating specialized chip components, known as chiplets, into a unified system, designers can better utilize each chiplet for specific tasks, resulting in enhanced performance. The modular nature of chiplet systems further enables scalability, allowing for nearly effortless addition or removal of chiplets as required. This flexibility allows system upgrades for large-scale GAN model inference workloads.</p><p>To support easy system upgrade and scaling, a network-on-packet (NoP) is implemented to connect chiplets. As shown in Fig. <ref type="figure">1</ref>, the connection between chiplets is accomplished with a passive or active network link via micro-bump (&#181;bump). Recent work <ref type="bibr">[24]</ref> has studied both designs by analyzing the positive and negative of the two designs. Active network links enable better scalability compared to passive network links with larger throughput for long-distance communication. However, implementing active network links needs routers being implemented in the interposer, which requires the packet to traverse routers in both chiplet and interposer. On the other hand, passive network links achieve lower network latency by only relying on the router in the chiplet, even though the link has lower bandwidth.</p><p>Within each chiplets, processing elements (PEs), caches, and memory interfaces are connected using NoC. All the data is transmitted using packets in both NoC and NoP. Overall, chiplet systems present a promising approach to improve performance, efficiency, and scalability in GAN inference accelerator designs.</p><p>As chiplet systems rely heavily on the interconnection network to connect and communicate between different computation units and memories, designing an efficient interconnection network poses a major challenge for efficient and scalable GAN inference. Energy and latency represent two vital aspects when designing interconnect solutions for efficient GAN inference. With the addition of more chiplets to accommodate the expanding GAN model, the NoP inevitably becomes larger; consequently, the traversal of packets through the expanded network incurs higher time and energy costs. According to the existing research <ref type="bibr">[18]</ref>, <ref type="bibr">[19]</ref>, <ref type="bibr">[20]</ref>, <ref type="bibr">[24]</ref>, <ref type="bibr">[25]</ref>, network latency and energy consumption significantly impact inference efficiency with longer execution time and high energy consumption. Thus, reducing latency and energy consumption for interconnection networks is crucial for GAN inference on a chiplet system, which often requires real-time responsiveness during deployment. Specifically, the main challenges for designing a chiplet system for GAN inference are listed below.</p><p>&#9632; Diverse Communication Pattern: Inference involving various layers in GAN models results in markedly diverse communication patterns. Given the significant effects of latency and power consumption when a packet is redirected by the routers, there's a pressing need for innovative NoC designs, which should efficiently address the distinct communication patterns observed during GAN inference within a chiplet.</p><p>&#9632; Scalable and Efficient NoP: The communication between chiplets is a major bottleneck for chipletbased design as the system scales. One major challenge in NoP design is the usage of passive and active network links.</p><p>Existing research <ref type="bibr">[24]</ref> indicates that passive links can handle high data throughput over short distances. However, their scalability is constrained by limited communication range. Conversely, active links facilitate long-distance communication, but their bandwidth is restricted due to the incorporation of routers on the interposer. Considering the benefits and limitations of both active and passive links, a novel NoP design, grounded in a strategic analysis of GAN inference workloads, is crucial for the efficiency of the chiplet-based accelerator. Additionally, the network-on-package (NoP) should be synergistically designed alongside workload partitioning and allocation algorithms, aiming to harness the strengths of both interposer types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>III. Chiplet-GAN Design</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Overview</head><p>The goal of the proposed accelerator design is to attain both improvements in efficiency and scalability for GAN inference workloads by employing a chiplet design approach. This is mainly accomplished through the following steps.</p><p>&#9632; A thorough analysis of the computation and communication requirements specific to the GAN model is conducted. This analysis involves examining the architecture of various GAN models used for image synthesis workloads and meticulously assessing the computation and communication demands of each layer as well as the overall model.</p><p>&#9632; Chiplet-GAN is proposed, featuring an adaptive network topology design for the interconnection network to facilitate the scaling of individual layers.</p><p>&#9632; Workload partition and allocation algorithms are introduced to effectively utilize the benefits of the adaptive topology design when dealing with large-scale GAN models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Layer Analysis</head><p>Table <ref type="table">1</ref> shows the list of large-scale GAN models used in this article. These models contain tens of millions of parameters and multiple layers to generate high-resolution images depending on the configuration. Additionally, newer variations of these models contain more parameters to achieve better image resolution. The basic structure of these models includes both transposed convolution (TC) and transformers, which are the two design trends for the GAN model. The TC-based model includes convolution, up-sampling functions, normalization functions, and activation functions. The transformer-based model contains attention mechanisms, linear layers, up-sampling functions, normalization functions, and activation functions. The functionality of these layers consists of several basic operations, including matrix multiplication, reduction operation, and up-sampling/matrix reshape operations. Communication and computation are needed when computation units execute these basic operations. The analysis of the computation and communication requirements for these basic operations is presented next.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Matrix Multiplication</head><p>Fully connected, linear, and convolution layers are widely used in both transformer and TC-based GANs. In a transformer, the linear layers are widely used before the attention mechanism. Also, the transformer utilizes matrix multiplication to calculate attention values. In TC-based GANs, the linear layer is used at the end of each processing block to capture the complex relationship between input and output data. Eq. ( <ref type="formula">1</ref>) shows the basic operation for a fully connected layer and linear layer, i.e., matrix multiplication. The convolution layer can also be accomplished using matrix multiplication by reshaping the input activation and weight matrices.</p><p>Eq. ( <ref type="formula">1</ref>) shows two input matrices (i.e., A, B) and one output matrices (i.e., O). m, n denotes the number of rows and columns of matrix A, and n, p denotes the number of rows and columns of matrix B. To perform matrix multiplication, the computation unit needs to load matrices A and B, which requires data communication of m * n + n * p elements. Then, the matrix multiplication requires n * m * p multiplications followed by (n-1) * m * p addition operations. After the computation, the computation unit generates and sends out the matrix O with m * n elements.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Reduction Operation</head><p>Both SoftMax and the normalization layer scale the input matrix into a specific format based on the statistics of the input activations. Since these layers improve the accuracy of the model, they are widely used in both</p><p>Table 1. GAN models. GAN Models Basic Structure Number of Parameters Task BigGANdeep [9] TC 50 million Image synthesis ViTGAN-Base [11] Transformer 38 million Image synthesis TransGAN-Base [6] Transformer 85 million Image synthesis StyleGAN2 [5] TC 24 million Text-to-Image CycleGAN [7] TC 35 million Imageto-Image Translation transformer and TC-based GANs. These layers typically contain two steps. The first step calculates the statistics of the input, which involves a reduction operation. Eqs. (2) and (3) show the function for statistic computation for SoftMax and normalization operations.</p><p>s e x j i j = = &#8721; 1</p><p>(2)</p><p>In Eqs. ( <ref type="formula">2</ref>) and ( <ref type="formula">3</ref>), the input matrix x contains a total of i elements. Both functions need to access all elements in the input matrix to get the statistics. Assume the input matrix has a size of m * n. SoftMax needs data communication of m * n elements to gather all inputs, so m * n exponent computations and m * n -1 additions to get the variable s. For the normalization layer, m * n elements are gathered to calculate the mean value of the inputs through m * n -1 addition and 1 division operations. Then, the variance is calculated through m * n subtraction and square operations, followed by m * n -1 additions and one division. Both of these layers require a reduction operation, which requires data communication, to gather the input activation and calculate the statistics. After the calculation, the element-wise operations are applied to the input matrix.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Up-Sampling/Matrix Reshape Operation</head><p>Up-sampling operations are widely used in GANs to increase the size of the output matrix, such as zero insertion and nearest neighbor. These layers require a matrix with m * n elements as the input and upscale it a time, which requires m * n + a * m * n communication.</p><p>The matrix reshape operations, such as transpose, take a matrix with m * n elements as the input and output a matrix with n * m elements. Both up-sampling and matrix reshape operations typically do not require any computation on the input activation, but they require communications to send data to the correct destination. Table <ref type="table">2</ref> summarizes the layer analysis with the computation and communication ratio (R c&amp;c ) as defined in</p><p>In Eq. ( <ref type="formula">4</ref>), the amount of communication is estimated by adding the size of both input and output matrices. The layer requires more computation when the R c&amp;c value is higher. However, a layer requires more communication with a low R c&amp;c value. By comparing the R c&amp;c value for different layers, it can be seen that except for the fully connected/linear layer, in which computation is significantly higher than communication, the remaining layers require significantly more communication compared to the fully connected/linear layer.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Static GAN Model Analysis</head><p>Fig. <ref type="figure">2</ref> shows the breakdown of the communication requirements by statically analyzing the GAN models layer by layer in Table <ref type="table">1</ref>. The analysis assumes the inference of the GAN model is executed on sixteen chiplets, which contain multiplication and addition arrays for matrix multiplication and computation units for activation functions and up-sampling operations. The workload is evenly divided and distributed by the size of the activation for each layer. Based on the analysis, the reduction operations and up-sampling/reshape operations occupy more than 72% of the total communication. 36% of the communication is due to the reduction operation to calculate the statistics for the SoftMax/normalization layer. Thus, the challenges for the inference of largescale GAN models on a scalable chiplet system are listed below. 1) Scaling Reduction Operation. The wide usage of the normalization layer results in significant communication. Most of these communications are due to the reduction operation for statistics calculation and element-wise operation. Moreover, as the size of activation increases for high-resolution image generation, supporting a large-scale reduction operation on chiplet systems becomes a challenge. 2) Scaling Matrix Multiplication. As the GAN models scale, the matrix multiplication workloads increase dramatically. To handle the increasing demand in computation for large matrix multiplication, a scalable chiplet system is needed.</p><p>3) Distributed Up-Sampling/Matrix Reshape. As the GAN models generate high-resolution data, these operations need to process a large activation matrix during inference, which involves significant communication traffic. Since existing accelerators use a scratch pad memory, both operations require a centralized global controller to reorganize Table 2. Summary of layer analysis. Layer Name R c&amp;c Fully Connected/Linear (n 2 -n)mp/mn+np+mp Layer Normalization 3mn/2mn = 1.5 SoftMax (3mn-1)/2mn&#8776;1.5 Upscaling/Matrix Reshape 0</p><p>the data mapping in the memory, which is not scalable for a chiplet system. For a chiplet system, these operations must be distributed rather than centralized, which incurs a large amount of communication between chiplets for transmitting activations. This communication incurs a high latency, especially when the packet must travel a long distance.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Architecture Design</head><p>To solve the three challenges for scalable and efficient GAN inference on a chiplet system, the architecture of Chiplet-GAN includes the following features.</p><p>&#9632; Adaptive NoC Topology: To satisfy the communication requirement for the reduction operation, designing a concentrated network allows an efficient gathering of data for the operation. However, such a network has low efficiency for scaling matrix multiplication operations, as matrix multiplication needs frequent data exchange between neighbors. To support both reduction and matrix multiplication operations, Chiplet-GAN utilizes an adaptive network topology design, which dynamically switches between mesh and concentrated mesh (C-Mesh) topologies for efficient on-chip communication. This design ensures the efficiency of the execution of both reduction and matrix multiplication operations.</p><p>&#9632; NoP With Both Active and Passive Network Links: To efficiently handle both long-distance and short-distance communication between chiplets as the system scales, both active and passive network links are implemented in the NoP. Specifically, active network links are implemented for efficient long-distance communication between chiplets and passive network links for low latency communication between two chiplets.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#9632; Workload Partitioning and Allocation:</head><p>To reduce the communication latency for GAN inference, specialized workload partition and allocation algorithms are developed based on static model analysis. The proposed partition and allocation algorithm utilizes the characteristics of both the proposed NoP design and adaptive network topology in NoC for efficient and scalable GAN inference on Chiplet-GAN.  Fig. <ref type="figure">3</ref> shows the architecture of Chiplet-GAN. The system package (Fig. <ref type="figure">3(a)</ref>) contains multiple chiplets, which is scalable for the inference of large GAN models. As shown in Fig. <ref type="figure">3(a)</ref>, each chiplet group contains four chiplets, which are connected to a router via &#181;bumps. This design handles long-distance communication between chiplets by connecting the corner router on each chiplet and the NoP router in a chiplet group using active network links. These active network links connect chiplets tiles, which not only enables the scaling of the chiplet system with additional tiles but also allows high bandwidth data exchange between tiles. For shortdistance communication between adjacent chiplets, passive network links are implemented to enable quick data exchange between the corner routers of the two chiplets.</p><p>Fig. <ref type="figure">3(b)</ref> shows the detailed design of the chiplet. The chiplet includes an adaptive network to efficiently process both reduction operation and matrix multiplication operation by switching between C-mesh and mesh topology. This is achieved by controlling the multiplexers and demultiplexers. By switching to the C-mesh topology, the latency of communication between chiplets is reduced by skipping routers and network links.</p><p>Fig. <ref type="figure">3</ref>(c) illustrates the detailed design of each processing element (PE). Each PE contains an array of multipliers and an accumulative buffer for multiplication and addition operations. The activation computation unit is designed to execute several functions, including ReLU, activation statistics computation, and matrix up-sampling/reshape. Each PE contains a PE controller, which controls the computation process and activation computation unit. The proposed PE utilizes an outputstationary data flow to reduce the frequent exchange of partial sum during the matrix multiplication. With this data flow, the GAN inference workload is partitioned by the size of the output activation of a layer. Section III.E discusses the details of workload partitioning and allocation.</p><p>Fig. <ref type="figure">4</ref> shows the detailed design of the routers and the two configurations of the topology of NoC in each chiplet. Each chiplet consists of 16 PEs, which can be configured into a 4 * 4 mesh topology (Fig. <ref type="figure">4(a)</ref>) or into a 2 * 2 C-Mesh topology (Fig. <ref type="figure">4(b)</ref>). The PEs on each chiplet are partitioned into 4 concentration regions with 4 PEs for each region. The corner router of each chiplet is connected to one memory interface and the interposer to communicate with the neighbor chiplet. The router in Fig. <ref type="figure">4</ref> transmits a packet with a five-stage pipeline, which includes route calculation, virtual channel (VC) allocation, switch allocation, switch traversal, and link traversal. The multiplexers and demultiplexers are added between the router and network interface to allow each region to switch to a concentrated topology (i.e., C-Mesh) for efficient data gathering and scattering for PEs in the region. Each region is independently controlled by the regional topology controller, and the topology is changed dynamically during the GAN inference.</p><p>To prevent the loss of in-flight packets when switching between the two topologies, the following process is developed in the regional topology controller. After the chiplet completes the inference of one layer, the topology controller prepares to switch topology by monitoring the flits in VC. When the controller observes the last flit in VC is the tail flit, the multiplexers and demultiplexers for that VC are switched immediately. Otherwise, switching of topology is delayed until the tail flit enters the VC. With this switching process, there will be no information in the network link when the controller switches network topology, as the multiplexers and demultiplexers are implemented before the VC. Also, this process ensures the packet is intact when it is traversed through the router.</p><p>Compared to the NoP and NoC designs in Simba <ref type="bibr">[18]</ref>, the Chiplet-GAN facilitates not only efficient communication for reduction and matrix multiplication operations but also low latency communication between chiplets. This is mainly due to the implementation of an active interposer with both active and passive network links and the implementation of the adaptive network to skip excessive links and routers for communication by utilizing the C-Mesh topology. Compared to the passiveonly interposer and network link for the NoP in Simba, the proposed NoP design utilizes chiplet tiles and active links for long-distance communication as systems scale and passive links for low latency communication between the adjacent chiplets. Moreover, within each chiplet, the C-Mesh topology also enables quick DRAM access through the NoC as well as easy adapting to mesh topology by only adding several multiplexers and demultiplexers to the conventional NoC routers. Section III.F discusses the configuration process of the adaptive network during the GAN inference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Workload Partitioning and Allocation</head><p>Long-distance communication between chiplet impacts the execution time of GAN inference. Although the long-distance communication cost between chiplets can be reduced by utilizing active network links and routers in NoP, the GAN inference workload must be carefully partitioned to fully utilize this feature. Moreover, for layers that require a large amount of data movement (e.g., Matrix Up-Sampling/Reshape) within a short distance, the communication cost between chiplet can be reduced by utilizing the C-Mesh topology in each chiplet and the passive network link between chiplets. Thus, the proposed workload partitioning and workload allocation algorithms are designed to utilize these network features to reduce the communication cost for GAN inference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>1) Workload Partitioning</head><p>Since each PE contains an activation computation unit, the workload is first partitioned by the layer functions. Specifically, the GAN model is partitioned by groups, which contain multiple layers with matrix multiplication operations and one layer for activation computation units. Then, the workload for each group is divided and allocated to a set of chiplet tiles depending on the size of the largest activation and the size of the accumulative buffer in each chiplet tile due to the implementation of output-stationary dataflow in each PE.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Chiplet tile # =</head><p>max activation size in the group accumulative e buffer size / chiplet tile</p><p>Eq. ( <ref type="formula">5</ref>) illustrates the calculation of the number of chiplet tiles needed for the inference of each layer group, which is the ceiling of the maximum activation size divided by the size of the accumulative buffer in each chiplet tile. With the proposed workload partitioning method, the inference of each group is allocated to a set number of chiplet tiles. As the last layer of each group is an activation layer, which involves reduction operation or matrix up sampling and reshape, the NoP router at the center of each chiplet tile is utilized for low latency communication, specifically, for a single chiplet tile, the router in NoP along with the C-Mesh topology in the four chiplet forms a concentrated network for efficient exchange of the activation statistics during reduction operation. For the group that requires more than one chiplet tile, the active network link in NoP provides low-latency communication between the adjacent chiplet tiles. Moreover, after the inference of the activation layer, the NoP is utilized to transmit the activations to the next chiplet tiles for the inference of the next layer. To reduce the communication distance between the layer groups, an effective workload allocation algorithm is essential for the efficiency of Chiplet-GAN.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>2) Workload Allocation</head><p>With the number of chiplet needed for each group, Algorithm 1 is developed to allocate the workloads on the chiplet system. The greedy algorithm is used in the allocation process to reduce the communication latency between chiplets. According to the workload partition, each layer group is assigned more than one chiplet tile. Thus, the allocation algorithm first calculates the communication cost for all the possible allocations for each layer group, then allocation with the minimal communication cost is selected.</p><p>As shown in Algorithm 1, suppose the GAN model M is partitioned into x groups (i.e., M = [group_1, group_2, &#8230;, group_x]) and the system C has n chiplets tiles (i.e., C = [chiplet_tile_1, chiplet_tile_2, &#8230;, chiplet_tile_n]). The Allocated_Group stores the results of the workload allocation. In the map_groups_to_chiplets function, the function selects and allocates the inference workload to the chiplet tiles group by group. The set for the chiplets is selected by the find_best_chiplet function, where the minimal communication cost for all the possible allocations is found by evaluating the communication cost for all the possible workload allocations. The calculate_com-munication_cost function calculates the time needed for transmitting data through the network. According to the static workload analysis, the two types of data that occupy the majority of the traffic are input activations and temporary data, which include activation statistics and partial sums. These data are transmitted through either NoP or NoC during the inference. Thus, the communication cost (C) includes the network latency of input (C i ) and the network latency of temporary data (C tp and C tc ). Considering the communication for temporary data can go through NoC and NoP, the C tp and C tc represent the communication latency for NoP and NoC, respectively. Specifically, after the allocation of the group, the input activation is transmitted from another chiplet tile, which relies on the active links in NoP to transmit activation. The network latency of input activation (C i ) is calculated based on the physical delay of the NoP through the active link (T rp_late ), the number of NoP routers traversed (H i ), the size of one flit in a packet (S f ), the size of input activations (S i ), and transmission time for one flit in NoP (T fp ). In this function, T rp_late is the physical delay caused by the network's physical aspects, which include switch and link delays. Notability, the latency for NoC communication is constant regardless of the allocation of the workload in the function for the network latency calculation of input activation (C i ), as all the activation data have to traverse the NoC in that chiplet to reach the PEs for inference. Thus, it is assumed that the communication latency in NoC is</p><p>Algorithm 1 Workload Allocation 1 def calculate_communication_cost(placed_group): 2 H i = # of NoP routers traversed for input activations of a group 3 S i = the size of input activations 4 H tp = # of NoP routers traversed for temporary data 5 S tp = the size of temporary data traversed through the active NoP link 6 N pl = # of traversed passive NoP link for temporary data 7 H tc = # of NoC routers traversed for temporary data 8 S tc = the size of temporary data traversed through NoC 9 C i = T rp_late *H i + (S i /S f )*T fp 10 C tp = T rp_late *H tp + (S tp /S f )*T fp 11 C tc = T rc_late *H tc + (S tc /S f )*(T fc + L pl *N pl ) 12 C = C i +C tp +C tc 13 return C 14 def find_best_chiplet(group, available_chiplets): 15 min_cost = infinity 16 best_chiplet = None 17 for chiplet in available_chiplets: 18 Place group to chiplet 19 for placed_group in available_allocation: 20 cost = calculate_communication_ cost(placed_group) 21 if cost &lt; min_cost: 22 min_cost = cost 23 best_chiplet = chiplet 24 return best_chiplet 25 def map_groups_to_chiplets(groups, chiplet_tiles): 26 mapped_groups = {} 27 available_chiplets = chiplet_tiles 28 for group in groups: 29 best_chiplet = find_best_chiplet(group, available_chiplets) 30 mapped_groups[group] = best_chiplet 31 available_chiplets.remove(best_chiplet) 32 return mapped_groups 33 GAN Model M = [group_1,group_2, &#8230; , group_x] 34 Chiplet System C = [chiplet_tile_1, chiplet_tile_2, &#8230;, chiplet_tile_n] 35 Allocated_Group = map_group_to_chiplets(M,C) the same, and only the communication cost for NoP is calculated.</p><p>Considering the difference in design for the links in NoC and NoP, the T rp_late and T rc_late represent the physical delay for active links in NoP and NoC, respectively, for the calculation of C tp and C tc . The calculation of C tp includes the network latency for the data traversed through the active link in the NoP, where T rp_late is used. In terms of the calculation of C tc , the network latency includes two parts, namely, the latency of traversing NoC and passive NoP links. When a layer group is allocated on more than one chiplet, the communication in the NoC is short-distance communication; thus, passive NoP links are utilized to transmit temporary data. As the change in workload allocation affects the number of passive NoP links traversed during the transmission of temporary data, the network latency of traversing both NoC and passive NoP links has to be counted. In the calculation of the network latency for NoC, T fc represents the transmission time for one flit in NoC. In the calculation of the network latency for traversing passive NoP links, the L pl represents the transmission time for one flit in passive NoP links. Notability, for the NoC communication cost, the algorithm calculates the communication latency under the C-mesh topology configuration, which is lower compared to mesh topology. The following section illustrates the configuration of the adaptive network in chiplet, which maintains low latency communications during GAN inference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>F. Adaptive Network Configuration</head><p>The network topology in each chiplet is dynamically changed depending on the function and the allocation of the layers to the accelerator. The regional topology controller for each concentration region changes the network topology to support the partitioned and placed workload for efficient communication between PEs and between chiplet. The controller selects C-Mesh topology for DRAM access, chiplet-to-chiplet communication, and reduction communication. Thus, the communication latency for chiplet-to-chiplet communication is calculated for the C-Mesh topology in each chiplet. For PE-to-PE communication, the mesh topology is selected. The controller monitors the computation process of four PEs in the concentration region. When the PEs in the region finish one layer, the controller selects the next topology based on the communication requirement for the next layer. The configuration process for matrix multiplication, reduction operation, and up-sampling/ matrix reshape operations are listed as follows.</p><p>1) Matrix Multiplication. The NoC is configured into the C-Mesh topology when loading the SRAM in each PE. Then, the network is configured into mesh for efficient exchange of data during the matrix multiplication. For the matrix multiplication workloads, which are allocated to more than two chiplets, the network is configured into a C-Mesh topology for efficient chiplet-to-chiplet communication or DRAM access after the calculation of the local partial sum. 2) Reduction Operation. The NoC is configured into C-Mesh topology for reduction operation. For reduction operation on a single chiplet, the parameter is calculated at the four corner PEs. For reduction operation across multiple chiplets, the corner PEs in each chiplet with the most connection to the neighbor in the previous layer are selected for calculating the parameter. Then, the parameters are sent back to PEs for the next operation through the concentrated network. 3) Up-Sampling/Matrix Reshape. For the matrix reshape operation, which needs to either store the activation to DRAM or communication between chiplets, the NoC is configured into the C-Mesh topology for efficient communication.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>IV. Evaluation</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>A. Simulation Setup</head><p>In this section, the performance of Chiplet-GAN is evaluated by using the SMAUG <ref type="bibr">[26]</ref> simulator. The cycle-accurate SMAUG simulation model is modified to support</p><p>Table 3. Simulation setup. PE Parameter Value Multiplier 32 bits FLOAT Accumulator 32 bits FLOAT Number of Multiplier 16 Number of Adder 16 Accumulation Buffer 144*32 bit Activation/Weight SRAM Size 244*32 bit Chiplet Parameter Value Number of PE 4*4 Link width 512 bit Packet Size 4 flit * 512 bit Payload/Packet 3 flit * 512 bit Accelerator Parameters Value Number of Chiplets 4*4 DRAM Bandwidth 1024 GB/s DRAM Size 32 GB DDR4 Frequency 2 GHz</p><p>Chiplet-GAN. Table <ref type="table">3</ref> shows the settings for the SMAUG simulator for the Chiplet-GAN. PyTorch is used with the SMAUG simulator to control the entire GAN inference process. The accelerators are synthesized using Synopsys Design Compiler with TSMC 16nm to obtain power dissipation during GAN inference and area consumption of the system. Chiplet-GAN is compared against GANAX <ref type="bibr">[12]</ref>, SpAtten <ref type="bibr">[13]</ref>, and Simba <ref type="bibr">[18]</ref> on execution time, communication latency, energy consumption, area, and scalability. GANAX is a GAN inference accelerator for TC acceleration with a single-chip design. SpAtten is an accelerator designed to accelerate the inference of transformers, which also incorporates a single-chip design. Simba is a chiplet-based accelerator that focuses on the DCNN model inference. All accelerators are implemented with the same number of computation units as well as the same size of SRAM, DRAM, and DRAM bandwidth. The inference of the models listed in Table <ref type="table">1</ref> is executed on these accelerators to generate two images during evaluation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B. Execution Time</head><p>Fig. <ref type="figure">5</ref> shows the execution time reduction normalized to Chiplet-GAN. The proposed design reduces execution time by 27%, 29%, and 45% on average, compared to GANAX, SpAtten, and Simba, respectively. Compared to Chiplet-GAN, SpAtten enhanced the efficiency of inference attention mechanism, but it takes a longer time to process up-sampling operations. Thus, Chiplet-GAN achieves a 16% execution time reduction on average for transformerbased GANs (i.e., ViTGAN and TransGAN). For TC-based models (i.e., StyleGAN2, BigGAN, and CycleGAN), which require more frequent up-sampling operations, Chiplet-GAN reduces 38% in execution time on average compared to the SpAtten. Compared to GANAX, which is optimized for up-sampling and matrix reshaping, the Chiplet-GAN achieves a 21% execution time reduction on average.</p><p>The main reason for execution time reduction is the implementation of the adaptive interconnection network design, active/passive network link in NoP, and workload allocation strategy. These design features not only reduce the communication latency but also increase the utilization of computation units with fewer idle cycles. The reduction in communication latency is shown in Fig. <ref type="figure">6</ref>, which is measured by the time elapsed between the access of the data and the beginning of the computation. Chiplet-GAN reduces communication latency by 46%, 52%, and 68% on average, compared to GANAX, SpAtten, and Simba, respectively.</p><p>Since both Simba and GANAX mainly focus on accelerating convolutional operations, the up-sampling/reshape and reduction operations are not fully accelerated when executing GAN inference. Specifically, TC acceleration, which contains zero insertion optimization, is incorporated in GANAX design. However, a notable drawback in GANAX is the lack of support for reduction operations. This limitation leads to the need for temporary storage of activations in both the DRAM and global buffer, resulting in a considerable increase in data communication   and communication latency for GANAX, especially for the models that require frequent reduction operations (e.g., ViTGAN and TransGAN). As shown in Fig. <ref type="figure">6</ref>, the GANAX and Simba achieve similar communication latency compared to Chiplet-GAN for ViTGAN and TransGAN.</p><p>On the other hand, Simba only focuses on the acceleration of DCNN inference. Thus, the lack of communication latency reduction techniques for both up-sampling/ reshape and reduction operations incurs more communication delays and longer execution time. As shown in Fig. <ref type="figure">6</ref>, Simba incurs 23% and 17% more communication latency compared to GANAX and SpAtten, respectively. Apart from lacking support for the operations during GAN inference, the long-distance communication between chiplets is another issue for Simba. This is mainly caused by the close placement of routers and passive links only NoP design, which further increases the communication latency. As a result, compared to Chiplet-GAN, the Simba incurs significantly longer execution times during GAN inference.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C. Energy Consumption</head><p>Fig. <ref type="figure">7</ref> shows the evaluation results for the energy consumption of Chiplet-GAN, GANAX, SpAtten, and Simba. All results are normalized to Chiplet-GAN. The energy is the product of execution time and power dissipation. Power dissipation includes two parts: static power and dynamic power. Chiplet-GAN reduces energy consumption by 20% on average compared to the existing accelerators. Specifically, compared to GANAX, SpAtten, and Simba, Chiplet-GAN reduces energy consumption by 14%, 19%, and 30% on average, respectively. Compared to the reduction in execution time, the energy reduction is less; this is mostly due to the extra power consumed by the adaptive interconnection network in Chiplet-GAN and the active links implemented in the interposer. The GANAX and SpAtten have simplified networks with the predetermined data flow; however, fixed data flow in existing designs results in an unscalable architecture, which significantly impacts execution time as the system scales.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D. Area Evaluation</head><p>Table <ref type="table">4</ref> summarizes the area required for the accelerators with the configuration given in Table <ref type="table">3</ref>. The results are from the synthesis report of the Synopsys Design Compiler.</p><p>Overall, Chiplet-GAN occupies less area compared to SpAtten despite the additional area needed for the connection between chiplets and interposer. This is mainly due to the implementation of a crossbar for on-chip communication, which incurs a large on-chip area in SpAtten. Compared to SpAtten, the proposed   </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Chiplet-GAN features an adaptive topology design for the interconnection network and incorporates workload partition and allocation algorithms to efficiently handle large-scale GAN models.</head><p>accelerator reduces the area by 15%. Compared to Simba and GANAX, Chiplet-GAN requires 5% and 6% more area, respectively. This is mainly due to the additional hardware needed to support adaptive interconnection networks and active/passive network links. However, when considering the significant reduction in execution time and energy consumption, the increase in area is rather marginal for implementing the proposed accelerator.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E. Scalability</head><p>To demonstrate the scalability of the system, the GAN models are scaled by increasing the size of both activa- Figs. <ref type="figure">8</ref> and <ref type="figure">9</ref> show the comparison of average execution time for all the GAN inference workloads and static power consumption under these configurations. Compared to a chiplet-based design (Simba), the Chiplet-GAN achieves up to a 63% reduction in execution time as the system scales to 64 * 64 chiplets. Compared to GANAX and SpAtten, the Chiplet-GAN reduces execution time by up to 93% as the system scales. Simba achieves better scalability compared to single-chip designs (i.e., GANAX and SpAtten) due to the chiplet design. However, compared to Chiplet-GAN, Simba still requires more execution time. This is mainly due to the high latency communication between chiplets during inference. In terms of static power consumption, both chiplet systems show an advantage in scalability as the number of components and power consumption linearly increases. Due to the simplicity of GANAX and SpAtten, they consume less power when the system is small (i.e., 4 * 4). However, the power consumption for GANAX and GANPU increases dramatically as the complexity of the global controller must be increased significantly to handle the increase in the computation units. Specifically, compared to Chiplet-GAN, the chiplet-based design (i.e., Simba) consumes up to 10% more power, whereas GANAX and SpAtten consume up to 49% and 59% more static power, respectively, as the system scales.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>V. Conclusion</head><p>In this article, we analyzed the communication and computation requirements for large-scale GAN model inference and identified three major challenges. Addressing these challenges, we proposed Chiplet-GAN, a chiplet-based accelerator for scaling reduction operation, scaling matrix multiplication, and distributed up-sampling/matrix reshape operations. To the best of our knowledge, this is the first work that proposes a chiplet-based design approach for GANs. The proposed design introduces a novel interconnection fabric with adaptive topology, active/passive network links in NoP, and a workload partition and allocation algorithm. The novel interconnection fabric enables low communication latency during GAN inference. The workload partition and allocation algorithms further reduce communication latency with a greedy algorithm. We conducted extensive simulation studies to demonstrate the effectiveness of Chiplet-GAN. Our detailed evaluation shows that Chiplet-GAN reduces the execution time by 34% and the energy consumption by 21% on average compared to GANAX, SpAtten, and Simba. As the accelerator scales to enhance computation capability for large-scale GAN inference, the proposed design reduces the execution time by up to 63% compared to the existing chiplet-based accelerator (Simba). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Acknowledgment</head></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Authorized licensed use limited to: The George Washington University. Downloaded on February 07,2025 at 17:15:37 UTC from IEEE Xplore. Restrictions apply.</p></note>
		</body>
		</text>
</TEI>
