<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">ojapps</journal-id>
      <journal-title-group>
        <journal-title>Open Journal of Applied Sciences</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2165-3925</issn>
      <issn pub-type="ppub">2165-3917</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/ojapps.2026.164060</article-id>
      <article-id pub-id-type="publisher-id">ojapps-150597</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Biomedical</subject>
          <subject>Life Sciences</subject>
          <subject>Chemistry</subject>
          <subject>Materials Science</subject>
          <subject>Computer Science</subject>
          <subject>Communications</subject>
          <subject>Engineering</subject>
          <subject>Physics</subject>
          <subject>Mathematics</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Lightweight Capsule Network Based on Weight Sharing and Top-K Routing</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Mu</surname>
            <given-names>Dazhong</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name name-style="western">
            <surname>Li</surname>
            <given-names>Ran</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="fn" rid="fn-equal">†</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai, China </aff>
      <author-notes>
        <fn fn-type="equal" id="fn-equal">
          <p>These authors contributed equally to this work.</p>
        </fn>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The authors declare no conflicts of interest regarding the publication of this paper.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>02</day>
        <month>04</month>
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>04</month>
        <year>2026</year>
      </pub-date>
      <volume>16</volume>
      <issue>04</issue>
      <fpage>1017</fpage>
      <lpage>1033</lpage>
      <history>
        <date date-type="received">
          <day>06</day>
          <month>03</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>30</day>
          <month>03</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>02</day>
          <month>04</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2026 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/ojapps.2026.164060">https://doi.org/10.4236/ojapps.2026.164060</self-uri>
      <abstract>
        <p>Capsule networks can effectively model the spatial hierarchical relationships among features; however, the dynamic routing mechanism introduces a large number of parameters and high computational complexity, which limits their practical deployment in real-world engineering applications. To address these issues, this paper proposes a lightweight capsule network named WTCaps, based on weight sharing and Top-K routing pruning. Specifically, a weight-sharing strategy is introduced in the capsule transformation stage to significantly reduce the number of model parameters. Meanwhile, a Top-K routing pruning mechanism is employed to perform dynamic routing only among a small subset of highly relevant higher-level capsules, thereby effectively decreasing computational complexity. In addition, a lightweight spatial attention mechanism is incorporated to enhance the representation of critical regions, improving classification performance while maintaining model efficiency. Experimental results on multiple public datasets demonstrate that WTCaps achieves classification accuracy comparable to or better than existing capsule networks, with substantial reductions in both parameter count and computational cost. Furthermore, the proposed model exhibits strong robustness in rotated digit recognition and overlapping digit recognition tasks. This study provides a feasible solution for the efficient design and practical application of capsule networks.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Capsule Network</kwd>
        <kwd>Lightweight Model</kwd>
        <kwd>Deep Learning</kwd>
        <kwd>Weight Sharing</kwd>
        <kwd>Dynamic Routing</kwd>
        <kwd>Attention Mechanism</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>With the continuous development of deep learning techniques, neural network-based visual models have achieved remarkable success in tasks such as image classification and object recognition. Among them, Convolutional Neural Networks (CNNs) [<xref ref-type="bibr" rid="B1">1</xref>] have become the mainstream approach in current visual tasks due to their local connectivity and weight-sharing mechanisms, which enable effective extraction of local image features. However, traditional CNNs primarily represent features in the form of scalars and rely on pooling operations to achieve spatial dimensionality reduction. This process weakens the ability to capture spatial relationships among features to a certain extent. When objects exhibit variations in pose, scale, or partial occlusion, CNN-based models often require large amounts of training data and deeper network architectures to achieve satisfactory robustness.</p>
      <p>To address these limitations, Capsule Network (CapsNet) was proposed by Geoffrey Hinton and colleagues [<xref ref-type="bibr" rid="B2">2</xref>]. In this framework, capsules represented as vectors or matrices are used to encode features. Such representations not only indicate the probability of feature existence but also explicitly capture the pose information of objects. Capsule networks employ a dynamic routing mechanism to establish connections between lower-level capsules and higher-level capsules, thereby enabling more effective modeling of part-whole relationships. In tasks such as handwritten digit recognition, capsule networks have demonstrated strong structural representation capability and certain robustness to interference, which has attracted widespread attention. However, the original capsule network still faces significant efficiency challenges in practical applications. On the one hand, independent transformation matrices are typically used for feature mapping between lower-level and higher-level capsules, causing the number of model parameters to grow linearly or even faster with the number of capsules. On the other hand, the dynamic routing process repeatedly computes coupling coefficients and agreement measures among all capsule pairs, leading to high computational complexity and long inference time. These issues limit the application of capsule networks in resource-constrained scenarios and constitute a major obstacle to their broader adoption.</p>
      <p>To address the issues of large parameter size and high computational cost in capsule networks, existing studies have explored various strategies. For example, some works introduce weight-sharing strategies to reduce the number of transformation matrices [<xref ref-type="bibr" rid="B3">3</xref>], simplify or replace the dynamic routing algorithm to lower computational cost [<xref ref-type="bibr" rid="B4">4</xref>], or incorporate attention mechanisms to enhance the representation of critical information [<xref ref-type="bibr" rid="B5">5</xref>]. Although these approaches alleviate the complexity of capsule networks to some extent, several limitations remain. Some methods mainly focus on parameter compression while having limited impact on the overall computational cost, whereas others fail to fully exploit the differences in spatial importance among features within lower-level capsules, resulting in a trade-off between model efficiency and performance.</p>
      <p>Based on the above analysis, this paper investigates the problem of lightweight design and efficient inference for capsule networks. While maintaining the structural advantages of capsule networks as much as possible, improvements are made to their key components. Specifically, this work redesigns the transformation mechanism between capsules and the routing strategy, and incorporates a feature enhancement mechanism along the spatial dimension to explore a more balanced capsule network architecture in terms of parameter scale and computational efficiency. Experimental results demonstrate that the proposed method can effectively reduce the number of model parameters while maintaining strong classification performance, and it also shows advantages in practical inference efficiency.</p>
    </sec>
    <sec id="sec2">
      <title>2. Related Work</title>
      <sec id="sec2dot1">
        <title>2.1. Capsule Networks</title>
        <p>Capsule Network was proposed by Geoffrey Hinton and Sara Sabour, aiming to characterize both the existence probability of features and their spatial attributes through vectorized representations, thereby compensating for the limitations of traditional Convolutional Neural Networks in modeling spatial hierarchical relationships. Compared with scalar neurons, capsules are capable of simultaneously representing whether a feature exists as well as its pose, orientation, and other spatial information, which provides advantages in tasks such as image classification and object recognition.</p>
        <p>In recent years, research on capsule networks has mainly focused on network architecture design, routing mechanism improvements, and the expansion of application scenarios. From the perspective of network structure, researchers have attempted to enhance the feature representation capability of models by stacking multiple capsule layers or introducing different forms of capsule modules [<xref ref-type="bibr" rid="B6">6</xref>]. Regarding routing mechanisms, dynamic routing serves as a core component of capsule networks. Through multiple iterations, it aggregates information from lower-level capsules to higher-level capsules and is considered a key factor contributing to the modeling capability of capsule networks. For example, [<xref ref-type="bibr" rid="B4">4</xref>] introduces sparse attention routing to improve both efficiency and accuracy.</p>
        <p>However, as the number and dimensionality of capsules increase, the dynamic routing mechanism requires iterative computation over a large number of capsule pairs, resulting in a significant growth in both model parameters and computational complexity. This issue limits the practical deployment of capsule networks, especially in scenarios with constrained computational resources.</p>
      </sec>
      <sec id="sec2dot2">
        <title>2.2. Lightweight Research on Capsule Networks</title>
        <p>To address the large parameter scale and high computational cost of capsule networks, existing studies have explored lightweight improvements from perspectives such as network architecture design and routing strategies. Among these approaches, parameter compression and weight sharing are common techniques for reducing model complexity. By sharing transformation parameters among multiple capsules, the number of transformation matrices can be effectively reduced, thereby alleviating the parameter growth problem as the capsule scale increases. For instance, [<xref ref-type="bibr" rid="B3">3</xref>] proposed the concept of shared-weight capsules, where all primary capsules share a single transformation matrix when mapping to a higher-level capsule. This approach significantly reduces the number of parameters and lowers computational complexity.</p>
        <p>In addition, some studies attempt to simplify the dynamic routing process. One approach is to reduce the number of routing iterations. For example, [<xref ref-type="bibr" rid="B7">7</xref>] replaces traditional dynamic routing with a non-iterative self-attention routing mechanism, thereby reducing both computation and parameter requirements. Another direction focuses on optimizing routing computation through parallelization. For instance, [<xref ref-type="bibr" rid="B8">8</xref>] proposes a parallelized dynamic routing strategy that reduces computational complexity and demonstrates significant advantages over the traditional CapsNet in terms of hardware resource utilization, inference speed, and energy consumption. Although these methods improve operational efficiency to some extent, they may also affect the precision of agreement modeling between capsules.</p>
        <p>Overall, existing lightweight research has made certain progress in reducing the number of parameters, but limitations remain in controlling computational complexity. Some methods compress parameters without significantly reducing the computational overhead in the routing stage. Therefore, how to simultaneously balance parameter scale and computational efficiency while maintaining model performance remains a key issue in lightweight capsule network research.</p>
      </sec>
      <sec id="sec2dot3">
        <title>2.3. Attention Mechanism</title>
        <p>The Attention Mechanism has been widely applied in convolutional neural networks and sequence modeling tasks as an effective method for feature selection and information weighting [<xref ref-type="bibr" rid="B9">9</xref>]. Its core idea is to assign different weights to different features, guiding the model to focus on information that is more important for the current task, thereby improving overall representation capability.</p>
        <p>In recent years, some studies have explored integrating attention mechanisms into capsule networks to enhance the ability of capsules to perceive critical information. Such methods typically introduce attention modules either during the feature extraction stage or the capsule aggregation stage. By weighting lower-level features or capsule outputs, these approaches highlight important regions or key capsules. For example, [<xref ref-type="bibr" rid="B10">10</xref>] employs a multi-branch attention mechanism to facilitate information transmission between capsule layers.</p>
        <p>Although the attention mechanism can improve the feature representation capability of capsule networks to a certain extent, its introduction is often accompanied by additional parameters and computational overhead, which conflicts with the goal of lightweight capsule networks. Therefore, how to effectively integrate attention mechanisms with capsule network architectures while controlling model complexity—so that useful feature representations are enhanced without significantly increasing computational burden—remains an open research problem.</p>
      </sec>
    </sec>
    <sec id="sec3">
      <title>3. Proposed Model</title>
      <sec id="sec3dot1">
        <title>3.1. Overall Model Architecture Design</title>
        <p>To address the issues of large parameter scale and high computational complexity in traditional Capsule Network architectures, this paper proposes a lightweight improved model based on the classical capsule network framework. The complete architecture of the proposed model is illustrated in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The overall structure still follows the fundamental design of convolutional feature extraction, the PrimaryCaps layer, and the higher-level capsule classification layer, in order to preserve the capability of capsule networks to model spatial hierarchical relationships and pose information. On this basis, targeted improvements are made to the original architecture from three aspects: model parameter organization, feature representation enhancement, and dynamic routing computation strategy.</p>
        <p>First, a parameter-sharing mechanism is introduced during the transformation process of higher-level capsules. This mechanism reduces redundant linear transformation parameters between lower-level capsules and higher-level capsules, thereby effectively compressing the model size. Second, a lightweight spatial attention mechanism is incorporated at the PrimaryCaps stage to adaptively reweight feature responses at different spatial locations, enhancing the discriminative power of the capsule input features. Finally, during the dynamic routing stage, a score-based routing pruning strategy is adopted. Dynamic routing computation is performed only among a small number of higher-level capsules with high matching scores, thereby reducing the computational overhead of the routing process.</p>
        <p>Through these improvements, the proposed model maintains the structural advantages of the original capsule network while effectively reducing the parameter scale and providing a feasible approach for further lowering computational complexity.</p>
        <fig id="fig1">
          <label>Figure 1</label>
          <graphic xlink:href="https://html.scirp.org/file/2313728-rId19.jpeg?20260402023737" />
        </fig>
        <p><bold>Figure 1.</bold> WTCaps network model diagram.</p>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. Shared Transformation Matrix</title>
        <p>In the classical Capsule Network architecture, feature mapping from lower-level capsules to higher-level capsules is achieved through a set of independent linear transformation matrices. Specifically, for each pair consisting of a lower-level capsule and a higher-level capsule, the network learns a dedicated transformation matrix to map the pose vector of the lower-level capsule into the prediction space of the corresponding higher-level capsule. Let the output vector of the<italic>iii</italic>-th lower-level capsule be:</p>
        <disp-formula id="FD1">
          <label>(1)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>u</mml:mi>
                <mml:mi>i</mml:mi>
              </mml:msub>
              <mml:mo>∈</mml:mo>
              <mml:msup>
                <mml:mi>ℝ</mml:mi>
                <mml:mi>d</mml:mi>
              </mml:msup>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>The prediction vector corresponding to the <inline-formula><mml:math><mml:mi> j </mml:mi></mml:math></inline-formula> higher-level capsule is computed using an independent transformation matrix:</p>
        <disp-formula id="FD2">
          <label>(2)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mover accent="true">
                  <mml:mi>u</mml:mi>
                  <mml:mo>^</mml:mo>
                </mml:mover>
                <mml:mrow>
                  <mml:mi>j</mml:mi>
                  <mml:mrow>
                    <mml:mo>|</mml:mo>
                    <mml:mi>i</mml:mi>
                  </mml:mrow>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mi>W</mml:mi>
                <mml:mrow>
                  <mml:mi>i</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:msub>
                <mml:mi>u</mml:mi>
                <mml:mi>i</mml:mi>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> W </mml:mi><mml:mrow><mml:mi> i </mml:mi><mml:mi> j </mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> denotes the transformation matrix between the <italic>iii</italic>-th lower-level capsule and the <italic>jjj</italic>-th higher-level capsule. This design implies that each capsule pair requires its own set of parameters. As the number of capsules increases, the number of parameters grows rapidly, leading to significant parameter redundancy.</p>
        <p>To address this issue, this paper redesigns the transformation mechanism between capsules by introducing a parameter-sharing strategy based on higher-level capsules. Instead of assigning an independent transformation matrix to each pair of lower-level and higher-level capsules, only one shared linear transformation matrix is learned for each higher-level capsule. All lower-level capsules use this shared parameter when mapping to that higher-level capsule:</p>
        <disp-formula id="FD3">
          <label>(3)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mover accent="true">
                  <mml:mi>u</mml:mi>
                  <mml:mo>^</mml:mo>
                </mml:mover>
                <mml:mrow>
                  <mml:mi>j</mml:mi>
                  <mml:mrow>
                    <mml:mo>|</mml:mo>
                    <mml:mi>i</mml:mi>
                  </mml:mrow>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mi>W</mml:mi>
                <mml:mi>j</mml:mi>
              </mml:msub>
              <mml:msub>
                <mml:mi>u</mml:mi>
                <mml:mi>i</mml:mi>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> W </mml:mi><mml:mi> j </mml:mi></mml:msub><mml:mo> ∈ </mml:mo><mml:msup><mml:mi> ℝ </mml:mi><mml:mrow><mml:mi> d </mml:mi><mml:mo> ' </mml:mo><mml:mo> × </mml:mo><mml:mi> d </mml:mi></mml:mrow></mml:msup></mml:mrow></mml:math></inline-formula> represents the shared transformation matrix corresponding to the <italic>jjj</italic>-th higher-level capsule. Through this approach, lower-level capsules no longer rely on independent parameters for differentiation, thereby significantly reducing the parameter scale of the model.</p>
        <p>After the pose mapping stage, the input vector of a higher-level capsule is obtained by computing the weighted sum of prediction vectors from all lower-level capsules:</p>
        <disp-formula id="FD4">
          <label>(4)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>s</mml:mi>
                <mml:mi>j</mml:mi>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mstyle displaystyle="true">
                <mml:munder>
                  <mml:mo>∑</mml:mo>
                  <mml:mi>i</mml:mi>
                </mml:munder>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>a</mml:mi>
                    <mml:mrow>
                      <mml:mi>i</mml:mi>
                      <mml:mi>j</mml:mi>
                    </mml:mrow>
                  </mml:msub>
                  <mml:msub>
                    <mml:mover accent="true">
                      <mml:mi>u</mml:mi>
                      <mml:mo>^</mml:mo>
                    </mml:mover>
                    <mml:mrow>
                      <mml:mi>j</mml:mi>
                      <mml:mrow>
                        <mml:mo>|</mml:mo>
                        <mml:mi>i</mml:mi>
                      </mml:mrow>
                    </mml:mrow>
                  </mml:msub>
                </mml:mrow>
              </mml:mstyle>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> a </mml:mi><mml:mrow><mml:mi> i </mml:mi><mml:mi> j </mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> represents the contribution coefficient of the <italic>i</italic> lower-level capsule to the <italic>j</italic> higher-level capsule, which measures the degree of agreement between them. Functionally, this coefficient is similar to the routing coefficient in the original capsule network. However, it no longer relies on the coupling modeled by independent transformation matrices; instead, it acts as an independent weighting factor in constructing the input of higher-level capsules.</p>
        <p>Finally, the output of the higher-level capsule is obtained through a nonlinear squashing function:</p>
        <disp-formula id="FD5">
          <label>(5)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>v</mml:mi>
                <mml:mi>j</mml:mi>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:mtext>squash</mml:mtext>
              <mml:mrow>
                <mml:mo>(</mml:mo>
                <mml:mrow>
                  <mml:msub>
                    <mml:mi>s</mml:mi>
                    <mml:mi>j</mml:mi>
                  </mml:msub>
                </mml:mrow>
                <mml:mo>)</mml:mo>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>which ensures that the length of the output vector reflects the probability of the existence of the corresponding class.</p>
        <p>Through the proposed parameter-sharing mechanism, the model substantially reduces redundant linear transformation parameters between lower-level and higher-level capsules while preserving the core principles of capsule networks.</p>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. Top-K Routing Pruning Mechanism</title>
        <p>In the classical Capsule Network, the dynamic routing process computes coupling coefficients between each lower-level capsule and all higher-level capsules, and continuously updates them through multiple iterations. Although this fully connected routing strategy can effectively model the relationship between parts and wholes, its computational complexity grows linearly with the number of lower-level and higher-level capsules, resulting in considerable computational overhead in practical applications. In the PrimaryCaps layer, a large number of lower-level capsules are typically generated. However, many of them contribute little to the final classification result but still fully participate in the routing computation, leading to significant redundancy.</p>
        <p>To address this issue, this paper introduces a Top-K routing pruning mechanism in the dynamic routing stage. By pre-screening the matching relationships between lower-level and higher-level capsules, only a subset of routing connections with higher contributions is retained for subsequent dynamic routing computation. In this way, the computational cost of the routing stage can be reduced without significantly affecting model performance. The schematic diagram of the Top-K routing process is shown in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p>
        <p>Specifically, under the shared transformation matrix setting, a lower-level capsule obtains a prediction vector for the j higher-level capsule after linear transformation. Based on the consistency relationship between the prediction vector and the current output vector of the higher-level capsule, the matching score between them can be defined as:</p>
        <disp-formula id="FD6">
          <label>(6)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>s</mml:mi>
                <mml:mrow>
                  <mml:mi>i</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mo>=</mml:mo>
              <mml:msub>
                <mml:mover accent="true">
                  <mml:mi>u</mml:mi>
                  <mml:mo>^</mml:mo>
                </mml:mover>
                <mml:mrow>
                  <mml:mi>j</mml:mi>
                  <mml:mrow>
                    <mml:mo>|</mml:mo>
                    <mml:mi>i</mml:mi>
                  </mml:mrow>
                </mml:mrow>
              </mml:msub>
              <mml:mo>⋅</mml:mo>
              <mml:msub>
                <mml:mi>v</mml:mi>
                <mml:mi>j</mml:mi>
              </mml:msub>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>This score essentially measures the degree of support that the <italic>iii</italic>-th lower-level capsule provides to the <italic>jjj</italic>-th higher-level capsule, and it is consistent in form with the agreement term used to update routing logits in the original dynamic routing algorithm.</p>
        <p>In the Top-K routing pruning strategy, routing coefficients are not computed and updated for all capsule pairs. Instead, for each lower-level capsule, the top K candidate higher-level capsules with the highest matching scores are selected from all higher-level capsules, forming a candidate set <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> K </mml:mi><mml:mi> i </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> . Only when <inline-formula><mml:math><mml:mrow><mml:mi> j </mml:mi><mml:mo> ∈ </mml:mo><mml:msub><mml:mi> K </mml:mi><mml:mi> i </mml:mi></mml:msub></mml:mrow></mml:math></inline-formula> does the lower-level capsule participate in the dynamic routing computation of the corresponding higher-level capsule. All other routing connections are directly pruned for the current sample.</p>
        <p>Based on this mechanism, the normalization process of routing coefficients is restricted within the Top-K subspace:</p>
        <disp-formula id="FD7">
          <label>(7)</label>
          <mml:math display="inline">
            <mml:mrow>
              <mml:msub>
                <mml:mi>a</mml:mi>
                <mml:mrow>
                  <mml:mi>i</mml:mi>
                  <mml:mi>j</mml:mi>
                </mml:mrow>
              </mml:msub>
              <mml:mrow>
                <mml:mo>{</mml:mo>
                <mml:mrow>
                  <mml:mtable>
                    <mml:mtr>
                      <mml:mtd>
                        <mml:mrow>
                          <mml:mfrac>
                            <mml:mrow>
                              <mml:mi>exp</mml:mi>
                              <mml:mrow>
                                <mml:mo>(</mml:mo>
                                <mml:mrow>
                                  <mml:msub>
                                    <mml:mi>b</mml:mi>
                                    <mml:mrow>
                                      <mml:mi>i</mml:mi>
                                      <mml:mi>j</mml:mi>
                                    </mml:mrow>
                                  </mml:msub>
                                </mml:mrow>
                                <mml:mo>)</mml:mo>
                              </mml:mrow>
                            </mml:mrow>
                            <mml:mrow>
                              <mml:mstyle displaystyle="true">
                                <mml:munder>
                                  <mml:mo>∑</mml:mo>
                                  <mml:mrow>
                                    <mml:mi>k</mml:mi>
                                    <mml:mo>∈</mml:mo>
                                    <mml:msub>
                                      <mml:mi>K</mml:mi>
                                      <mml:mi>i</mml:mi>
                                    </mml:msub>
                                  </mml:mrow>
                                </mml:munder>
                                <mml:mrow>
                                  <mml:mi>exp</mml:mi>
                                  <mml:mrow>
                                    <mml:mo>(</mml:mo>
                                    <mml:mrow>
                                      <mml:msub>
                                        <mml:mi>b</mml:mi>
                                        <mml:mrow>
                                          <mml:mi>i</mml:mi>
                                          <mml:mi>k</mml:mi>
                                        </mml:mrow>
                                      </mml:msub>
                                    </mml:mrow>
                                    <mml:mo>)</mml:mo>
                                  </mml:mrow>
                                </mml:mrow>
                              </mml:mstyle>
                            </mml:mrow>
                          </mml:mfrac>
                          <mml:mo>,</mml:mo>
                        </mml:mrow>
                      </mml:mtd>
                      <mml:mtd>
                        <mml:mrow>
                          <mml:mi>j</mml:mi>
                          <mml:mo>∈</mml:mo>
                          <mml:msub>
                            <mml:mi>K</mml:mi>
                            <mml:mi>i</mml:mi>
                          </mml:msub>
                        </mml:mrow>
                      </mml:mtd>
                    </mml:mtr>
                    <mml:mtr>
                      <mml:mtd>
                        <mml:mrow>
                          <mml:mn>0</mml:mn>
                          <mml:mo>,</mml:mo>
                        </mml:mrow>
                      </mml:mtd>
                      <mml:mtd>
                        <mml:mrow>
                          <mml:mtext>otherwise</mml:mtext>
                        </mml:mrow>
                      </mml:mtd>
                    </mml:mtr>
                  </mml:mtable>
                </mml:mrow>
              </mml:mrow>
            </mml:mrow>
          </mml:math>
        </disp-formula>
        <p>where <inline-formula><mml:math><mml:mrow><mml:msub><mml:mi> b </mml:mi><mml:mrow><mml:mi> i </mml:mi><mml:mi> j </mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></inline-formula> denotes the routing logits, whose update rule still follows the iterative procedure of the original dynamic routing algorithm. It can be seen that the Top-K routing pruning strategy does not alter the core principle of dynamic routing; instead, it explicitly constrains the routing search space, thereby reducing unnecessary interactions between irrelevant capsules.</p>
        <p>Through this mechanism, the number of higher-level capsules involved in the routing computation for each lower-level capsule is reduced to K. As a result, the computational cost of operations such as vector inner products and weighted summations in the routing stage is significantly decreased. Meanwhile, since the retained routing connections correspond to higher matching scores, the pruning strategy can also suppress noisy routing to some extent, which helps improve the stability of the dynamic routing process.</p>
        <fig id="fig2">
          <label>Figure 2</label>
          <graphic xlink:href="https://html.scirp.org/file/2313728-rId48.jpeg?20260402023737" />
        </fig>
        <p><bold>Figure 2.</bold> TOP-K routing diagram.</p>
      </sec>
      <sec id="sec3dot4">
        <title>3.4. Spatial Attention Mechanism</title>
        <p>Under the shared transformation matrix and the Top-K routing pruning mechanism, the number of parameters and the computational complexity in the higher-level capsule stage are significantly reduced. However, this lightweight design also places higher demands on the quality of feature representations produced by lower-level capsules. If the lower-level capsules contain excessive irrelevant regions or background noise, it may negatively affect the consistency computation of prediction vectors during the subsequent routing process.</p>
        <p>To address this issue, this paper introduces a lightweight spatial attention mechanism into the PrimaryCaps layer to adaptively reweight spatial features before generating lower-level capsules. The attention structure is inspired by the spatial attention component of Convolutional Block Attention Module (CBAM) [<xref ref-type="bibr" rid="B11">11</xref>]. By modeling the importance of different spatial locations, this mechanism guides the network to focus on more discriminative regional features.</p>
        <p>It should be noted that this spatial attention module only performs weighting on feature maps without altering their spatial dimensions or the number of channels. Moreover, it does not introduce additional capsule structures. Therefore, it does not increase the number of capsules nor interfere with the subsequent capsule reshaping and routing mechanisms. The attention-enhanced feature maps are then used to construct lower-level capsule vectors, thereby improving their stability and effectiveness under the shared-weight transformation and Top-K routing pruning settings.</p>
        <p>By introducing spatial attention at the lower-level capsule stage, the proposed method maintains the lightweight advantage of the model while effectively alleviating the potential performance degradation caused by parameter sharing and routing pruning.</p>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Experiments</title>
      <p>In the experimental design, the performance of the proposed model is evaluated from multiple perspectives. First, the dataset and model parameters are set up. Subsequently, the model is assessed in terms of image classification performance, robustness to affine-transformed images, and computational efficiency.</p>
      <p>The experiments are conducted on a personal computer with the following hardware configuration: an NVIDIA GeForce GTX 4090 GPU, Windows 11 operating system, Intel<sup>®</sup> Core™ i9-10900X CPU @ 3.70 GHz. The models are implemented in Python using the PyTorch deep learning framework. The datasets are divided into training, validation, and test sets, with the validation set consisting of 20% of the training samples. The hyperparameters are set as follows: batch size = 128, optimizer = Adam, initial learning rate = 0.001 with an adaptive learning rate schedule monitored by validation loss. If the validation loss does not improve for 15 consecutive epochs, the learning rate is multiplied by 0.1, but not reduced below 1e-6. Models are trained for 200 epochs, and the model with the highest validation accuracy is selected for testing.</p>
      <sec id="sec4dot1">
        <title>4.1. Dataset Description</title>
        <p>This study evaluates the classification performance of the proposed model on five publicly available datasets: MNIST, Fashion-MNIST, CIFAR-10, SVHN, and SmallNORB.</p>
        <p>MNIST: A grayscale handwritten digit dataset containing classes 0 - 9, with images of size 28 × 28. It consists of 60,000 training images and 10,000 test images.</p>
        <p>Fashion-MNIST: A grayscale image dataset of 70,000 fashion products in 10 categories, with images of size 28 × 28.</p>
        <p>CIFAR-10: A dataset of 60,000 RGB natural images across 10 categories, with image size 32 × 32. Each category contains 5,000 training images and 1,000 test images.</p>
        <p>SVHN: A dataset for digit classification, containing over 600,000 real-world RGB images of printed digits (0 - 9), each of size 32 × 32.</p>
        <p>SmallNORB: A dataset of 3D toy objects across 5 categories, with each object captured at 18 different azimuth angles (0˚ - 340˚) and 9 different elevations, with image size 96 × 96.</p>
      </sec>
      <sec id="sec4dot2">
        <title>4.2. Classification Results</title>
        <p>To verify the classification performance and lightweight efficiency of the proposed WTCaps model, comparative experiments were conducted on MNIST, Fashion-MNIST, SVHN, CIFAR-10, and SmallNORB datasets against several representative capsule network models. The experimental results are summarized in <bold>Table 1</bold>.</p>
        <p>The results indicate that WTCaps achieves stable classification performance across all five datasets. Specifically, the error rates on MNIST, SVHN, and CIFAR-10 are comparable to those of current mainstream capsule network methods. In terms of parameter scale, WTCaps contains 4.20 M parameters, significantly fewer than models such as DRCaps, AWRCaps, Aff-CapsNet, and Self-Routing. Meanwhile, WTCaps achieves classification performance that is better than or comparable to other lightweight methods, including CAPCaps and GraCapsnets.</p>
        <p>Overall, the experimental results demonstrate that the proposed WTCaps model, based on weight sharing and Top-K routing pruning, effectively reduces model parameter size while maintaining strong classification performance, achieving a reasonable balance between accuracy and model complexity.</p>
        <p><bold>Table 1.</bold>Classification error rates and parameters of different models on five datasets.</p>
        <table-wrap id="tbl1">
          <label>Table 1</label>
          <table>
            <tbody>
              <tr>
                <td rowspan="2">
                  <bold>Model</bold>
                </td>
                <td colspan="2">
                  <bold>MNIST</bold>
                </td>
                <td colspan="2">
                  <bold>FashionMNIST</bold>
                </td>
                <td colspan="2">
                  <bold>SVHN</bold>
                </td>
                <td colspan="2">
                  <bold>CIFAR10</bold>
                </td>
                <td colspan="2">
                  <bold>SmallNorb</bold>
                </td>
              </tr>
              <tr>
                <td>
                  <bold>Errors</bold>
                  <bold>/%</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Errors</bold>
                  <bold>/%</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Errors</bold>
                  <bold>/%</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Errors</bold>
                  <bold>/%</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Errors</bold>
                  <bold>/%</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
              </tr>
              <tr>
                <td>
                  Attn-Routing [
                  <xref ref-type="bibr" rid="B12">12</xref>
                  ]
                </td>
                <td>0.54</td>
                <td>5.31</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>12.71</td>
                <td>9.60</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  EM-Routing [
                  <xref ref-type="bibr" rid="B13">13</xref>
                  ]
                </td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>11.90</td>
                <td>0.45</td>
                <td>1.80</td>
                <td>0.30</td>
              </tr>
              <tr>
                <td>
                  VB-Routing [
                  <xref ref-type="bibr" rid="B14">14</xref>
                  ]
                </td>
                <td>-</td>
                <td>-</td>
                <td>5.20</td>
                <td>0.17</td>
                <td>3.90</td>
                <td>0.32</td>
                <td>11.20</td>
                <td>0.32</td>
                <td>1.60</td>
                <td>0.17</td>
              </tr>
              <tr>
                <td>
                  Self-Routing [
                  <xref ref-type="bibr" rid="B15">15</xref>
                  ]
                </td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>3.12</td>
                <td>140.30</td>
                <td>7.86</td>
                <td>140.30</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  DRCaps [
                  <xref ref-type="bibr" rid="B2">2</xref>
                  ]
                </td>
                <td>0.32</td>
                <td>6.10</td>
                <td>5.45</td>
                <td>6.10</td>
                <td>3.85</td>
                <td>6.10</td>
                <td>9.94</td>
                <td>6.10</td>
                <td>3.52</td>
                <td>6.10</td>
              </tr>
              <tr>
                <td>
                  Aff-CapsNet [
                  <xref ref-type="bibr" rid="B16">16</xref>
                  ]
                </td>
                <td>0.46</td>
                <td>8.20</td>
                <td>7.47</td>
                <td>8.20</td>
                <td>7.85</td>
                <td>8.20</td>
                <td>23.72</td>
                <td>8.20</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  MS-CapsNet [
                  <xref ref-type="bibr" rid="B17">17</xref>
                  ]
                </td>
                <td>-</td>
                <td>-</td>
                <td>7.30</td>
                <td>10.80</td>
                <td>-</td>
                <td>-</td>
                <td>24.30</td>
                <td>11.20</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  FRMS [
                  <xref ref-type="bibr" rid="B18">18</xref>
                  ]
                </td>
                <td>0.42</td>
                <td>1.20</td>
                <td>6.00</td>
                <td>1.20</td>
                <td>-</td>
                <td>-</td>
                <td>15.60</td>
                <td>1.20</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  GraCapsnets [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>-</td>
                <td>2.98</td>
                <td>2.48</td>
                <td>7.99</td>
                <td>2.48</td>
                <td>-</td>
                <td>-</td>
              </tr>
              <tr>
                <td>
                  AWRCaps [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
                <td>0.32</td>
                <td>5.80</td>
                <td>5.18</td>
                <td>5.8</td>
                <td>3.69</td>
                <td>5.8</td>
                <td>9.54</td>
                <td>5.80</td>
                <td>2.99</td>
                <td>5.8</td>
              </tr>
              <tr>
                <td>
                  CAPCaps [
                  <xref ref-type="bibr" rid="B21">21</xref>
                  ]
                </td>
                <td>0.29</td>
                <td>3.00</td>
                <td>5.41</td>
                <td>3.00</td>
                <td>3.46</td>
                <td>3.54</td>
                <td>7.40</td>
                <td>3.54</td>
                <td>4.90</td>
                <td>3.54</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>0.33</td>
                <td>4.20</td>
                <td>5.25</td>
                <td>4.20</td>
                <td>3.52</td>
                <td>4.20</td>
                <td>7.66</td>
                <td>4.20</td>
                <td>3.27</td>
                <td>4.20</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot3">
        <title>4.3. Ablation Study</title>
        <p>To analyze the impact of each improved module on model performance and complexity, ablation experiments were conducted on the MNIST and CIFAR-10 datasets, as shown in <bold>Table 2</bold>, with the baseline model being the traditional capsule network model [<xref ref-type="bibr" rid="B2">2</xref>]. The results indicate the following: Weight Sharing (WS): Introducing the weight-sharing mechanism reduces the number of model parameters from 6.10 M to 4.30 M. However, a slight decrease in classification accuracy is observed, indicating that while weight sharing effectively compresses the model size, it imposes some constraints on feature representation capability. Top-K Routing Pruning (TR): When only the Top-K routing pruning is applied, the model parameter count remains unchanged, but FLOPs decrease significantly from 552.38 M to 260.15 M, demonstrating a clear reduction in computational complexity. Classification accuracy, however, also decreases slightly, suggesting that excessive pruning of routing connections may result in the loss of discriminative information. Spatial Attention (CA): Introducing the spatial attention mechanism alone has little effect on model parameters or computational complexity, but classification accuracy improves on both datasets, validating the effectiveness of spatial attention in enhancing feature discriminability.</p>
        <p>Combining TR and CA leads to a substantial reduction in computational complexity while achieving better classification performance compared to using TR alone, indicating that spatial attention can partially mitigate performance loss caused by routing pruning.</p>
        <p>Finally, the full WTCaps model, incorporating WS, TR, and CA, reduces the parameter count and FLOPs to 4.20 M and 200.90 M, respectively, while achieving classification accuracies of 99.67% on MNIST and 92.34% on CIFAR-10. These results demonstrate that the proposed method achieves a favorable balance between model lightweight efficiency and classification performance.</p>
        <p><bold>Table 2</bold><bold>.</bold> Generalization performance from MNIST and CIFAR10 datasets.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Flops/</bold>
                  <bold>MFlops</bold>
                </td>
                <td>
                  <bold>MNIST</bold>
                  <bold>Accuracy/%</bold>
                </td>
                <td>
                  <bold>CIFAR10</bold>
                  <bold>Accuracy/%</bold>
                </td>
              </tr>
              <tr>
                <td>Baseline</td>
                <td>6.10</td>
                <td>552.38</td>
                <td>99.68</td>
                <td>90.06</td>
              </tr>
              <tr>
                <td>Baseline + WS</td>
                <td>4.30</td>
                <td>552.38</td>
                <td>99.52</td>
                <td>88.41</td>
              </tr>
              <tr>
                <td>Baseline + TR</td>
                <td>6.10</td>
                <td>260.15</td>
                <td>99.50</td>
                <td>89.02</td>
              </tr>
              <tr>
                <td>Baseline + CA</td>
                <td>6.10</td>
                <td>560.10</td>
                <td>99.71</td>
                <td>91.18</td>
              </tr>
              <tr>
                <td>Baseline + WS + CA</td>
                <td>4.30</td>
                <td>560.10</td>
                <td>99.60</td>
                <td>90.02</td>
              </tr>
              <tr>
                <td>Baseline + TR + CA</td>
                <td>6.10</td>
                <td>200.90</td>
                <td>99.61</td>
                <td>91.05</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>4.20</td>
                <td>200.90</td>
                <td>99.67</td>
                <td>92.34</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot4">
        <title>4.4. Robustness to Affine-Transformed Images</title>
        <p>To evaluate the robustness of the proposed algorithm to affine transformations, all models were trained on the MNIST dataset and then tested on the affNIST dataset. In this setup, the training images were generated by first padding the original MNIST images (28 × 28) to 40 × 40 pixels and then randomly placing the digits within the 40 × 40 background. This procedure introduces variations in position and scale, allowing assessment of the model’s ability to maintain accurate classification under affine transformations.</p>
        <p><bold>Table 3</bold><bold>.</bold>Generalization performance from MNIST to affNIST dataset.</p>
        <table-wrap id="tbl3">
          <label>Table 3</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>MNIST Accuracy</bold>
                </td>
                <td>
                  <bold>affNIS</bold>
                  <bold>T</bold>
                  <bold>Accuracy</bold>
                </td>
              </tr>
              <tr>
                <td>
                  CNN [
                  <xref ref-type="bibr" rid="B1">1</xref>
                  ]
                </td>
                <td>99.2%</td>
                <td>85.90%</td>
              </tr>
              <tr>
                <td>
                  DRCaps [
                  <xref ref-type="bibr" rid="B2">2</xref>
                  ]
                </td>
                <td>99.2%</td>
                <td>79.0%</td>
              </tr>
              <tr>
                <td>
                  HitNet [
                  <xref ref-type="bibr" rid="B22">22</xref>
                  ]
                </td>
                <td>99.6%</td>
                <td>83.3%</td>
              </tr>
              <tr>
                <td>
                  GCaps [
                  <xref ref-type="bibr" rid="B23">23</xref>
                  ]
                </td>
                <td>98.4%</td>
                <td>89.1%</td>
              </tr>
              <tr>
                <td>
                  SparseCaps [
                  <xref ref-type="bibr" rid="B24">24</xref>
                  ]
                </td>
                <td>99.0%</td>
                <td>90.1%</td>
              </tr>
              <tr>
                <td>
                  Attn-Routing [
                  <xref ref-type="bibr" rid="B11">11</xref>
                  ]
                </td>
                <td>99.5%</td>
                <td>91.6%</td>
              </tr>
              <tr>
                <td>
                  SCAE [
                  <xref ref-type="bibr" rid="B25">25</xref>
                  ]
                </td>
                <td>98.5%</td>
                <td>92.2%</td>
              </tr>
              <tr>
                <td>
                  Aff-CapsNet [
                  <xref ref-type="bibr" rid="B16">16</xref>
                  ]
                </td>
                <td>99.23%</td>
                <td>93.12%</td>
              </tr>
              <tr>
                <td>
                  EM-Routing [
                  <xref ref-type="bibr" rid="B13">13</xref>
                  ]
                </td>
                <td>99.2%</td>
                <td>93.1%</td>
              </tr>
              <tr>
                <td>
                  AWRCaps [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
                <td>99.2%</td>
                <td>96.73%</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>99.2%</td>
                <td>96.69%</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The test set was generated by first padding the original MNIST images to 40 × 40 pixels, and then applying affine transformations to the digits. These transformations included rotations within ±20˚, shearing within ±45˚, horizontal and vertical scaling in the range of 0.8 - 1.2, and random translations up to 8 pixels in each direction, resulting in the affNIST dataset. For fair comparison, only models that achieved at least 99.2% test accuracy on the original MNIST dataset were evaluated on affNIST. The proposed capsule network model achieved a classification accuracy of 96.69% on affNIST, as shown in <bold>Table 3</bold>. These results demonstrate that the proposed method achieves state-of-the-art generalization performance on affine-transformed images.</p>
      </sec>
      <sec id="sec4dot5">
        <title>4.5. Robustness to Rotated Digit Images</title>
        <p>To further evaluate the robustness of the proposed WTCaps model under complex geometric transformations, comparative experiments were conducted on the rotated MNIST and rotated SVHN datasets, with rotation angles set to ranges of ±θ<sub>1</sub> and ±θ<sub>2</sub>, respectively, as summarized in <bold>Table 4</bold>.</p>
        <p>The experimental results show that under standard testing conditions without rotation, all models achieve high classification accuracy. As the rotation range increases, the classification performance of all models declines to varying degrees; however, capsule network-based methods generally exhibit stronger robustness. Compared to ResNet18, WTCaps shows a smaller decrease in accuracy under large-angle rotations, indicating better adaptability to pose variations. In comparison with other capsule network models such as DRCaps, DeepCaps, and CAPCaps, WTCaps maintains comparable classification performance on rotated MNIST and rotated SVHN datasets, and in some rotation ranges, achieves slightly better or equivalent results.</p>
        <p>These results indicate that, even with significantly reduced model parameters and computational complexity, WTCaps effectively preserves the inherent robustness of capsule networks to spatial transformations such as rotation.</p>
        <p><bold>Table 4.</bold>Classification performance of different algorithms on Rotated MNIST and Rotated SVHN.</p>
        <table-wrap id="tbl4">
          <label>Table 4</label>
          <table>
            <tbody>
              <tr>
                <td rowspan="2">
                  <bold>Model</bold>
                </td>
                <td colspan="3">
                  <bold>MNIST Accuracy/%</bold>
                </td>
                <td colspan="3">
                  <bold>SVHN Accuracy/%</bold>
                </td>
              </tr>
              <tr>
                <td>
                  <bold>0</bold>
                </td>
                <td>
                  <bold>(</bold>
                  <bold>−</bold>
                  <bold>30˚,</bold>
                  <bold>30˚</bold>
                  <bold>)</bold>
                </td>
                <td>
                  <bold>(</bold>
                  <bold>60˚,</bold>
                  <bold>60˚</bold>
                  <bold>)</bold>
                </td>
                <td>
                  <bold>0</bold>
                </td>
                <td>
                  <bold>(</bold>
                  <bold>−30˚,</bold>
                  <bold>30˚</bold>
                  <bold>)</bold>
                </td>
                <td>
                  <bold>(</bold>
                  <bold>−60˚,</bold>
                  <bold>60˚</bold>
                  <bold>)</bold>
                </td>
              </tr>
              <tr>
                <td>
                  DRCaps [
                  <xref ref-type="bibr" rid="B2">2</xref>
                  ]
                </td>
                <td>99.68</td>
                <td>97.70</td>
                <td>89.14</td>
                <td>96. 15</td>
                <td>92.89</td>
                <td>85.25</td>
              </tr>
              <tr>
                <td>Resnet18</td>
                <td>99.27</td>
                <td>97.10</td>
                <td>80.75</td>
                <td>95.78</td>
                <td>75.17</td>
                <td>70.76</td>
              </tr>
              <tr>
                <td>
                  DeepCaps [
                  <xref ref-type="bibr" rid="B26">26</xref>
                  ]
                </td>
                <td>99.72</td>
                <td>97.82</td>
                <td>88.20</td>
                <td>97.16</td>
                <td>91.80</td>
                <td>83.55</td>
              </tr>
              <tr>
                <td>
                  CAPCaps [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
                <td>99.71</td>
                <td>97.88</td>
                <td>89.26</td>
                <td>96.54</td>
                <td>94.70</td>
                <td>87.51</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>99.67</td>
                <td>97.86</td>
                <td>89.28</td>
                <td>96.48</td>
                <td>94.68</td>
                <td>87.65</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot6">
        <title>4.6. Performance on Overlapping Digit Recognition</title>
        <p>To evaluate the model’s ability to model and separate overlapping targets in complex scenarios, comparative experiments were conducted on the MultiMNIST dataset using several representative methods. The MultiMNIST dataset contains images with multiple overlapping digits, placing higher demands on the model’s feature disentanglement and object perception capabilities, as shown in <bold>Table 5</bold>.</p>
        <p>The results indicate that traditional CNNs achieve relatively low recognition accuracy on this task, whereas methods incorporating capsule structures and dynamic routing mechanisms significantly improve classification performance. Compared with capsule network models such as Dynamic Routing and Aff-CapsNet, WTCaps achieves comparable classification accuracy to AWRCaps while drastically reducing the number of parameters. Specifically, WTCaps achieves a test accuracy of 95.95% with only 4.20 M parameters.</p>
        <p>Although AWRCaps attains slightly higher accuracy, its larger parameter scale makes the model less compact. WTCaps strikes a better balance between model compactness and recognition performance. These results demonstrate that the proposed weight-sharing and Top-K routing pruning mechanisms maintain the capsule network’s strong modeling capability for overlapping objects while effectively reducing model size, highlighting the practical applicability of WTCaps in complex visual scenarios.</p>
        <p><bold>Table 5.</bold>Classification performance of different algorithms on MultiMNIST.</p>
        <table-wrap id="tbl5">
          <label>Table 5</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>MutliMNIST</bold>
                  <bold>Accuracy</bold>
                </td>
                <td>
                  <bold>Params</bold>
                </td>
              </tr>
              <tr>
                <td>
                  CNN [
                  <xref ref-type="bibr" rid="B1">1</xref>
                  ]
                </td>
                <td>91.99%</td>
                <td>24.56 M</td>
              </tr>
              <tr>
                <td>
                  DRCaps [
                  <xref ref-type="bibr" rid="B2">2</xref>
                  ]
                </td>
                <td>94.80%</td>
                <td>11.36 M</td>
              </tr>
              <tr>
                <td>
                  Aff-CapsNet [
                  <xref ref-type="bibr" rid="B15">15</xref>
                  ]
                </td>
                <td>95.49%</td>
                <td>8.20 M</td>
              </tr>
              <tr>
                <td>
                  AWRCaps [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
                <td>95.97% ± 0.18</td>
                <td>5.80 M</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>95.95% ± 0.22</td>
                <td>4.20 M</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="sec4dot7">
        <title>4.7. Visualization of Reconstruction Results</title>
        <p>To further verify the feature representation capability of the proposed WTCaps model during the lightweighting process, experiments were conducted to analyze its reconstruction performance. In capsule networks, a reconstruction branch is introduced after the classification capsules, using the input image as a supervisory signal to reconstruct the original sample. This process provides an intuitive visualization of the model’s ability to capture the pose and structural information of the target object. The reconstruction results are shown in <xref ref-type="fig" rid="fig3">Figure 3</xref>.</p>
        <p>The experimental results indicate that, compared with baseline capsule networks, WTCaps is still able to reconstruct the overall contours and key structural features of input digits fairly accurately, even under significantly reduced parameters and computational complexity. No noticeable shape distortions or semantic omissions were observed. This demonstrates that the proposed weight-sharing and Top-K routing pruning strategies do not compromise the capsule network’s ability to model spatial hierarchical relationships. These results further confirm that WTCaps maintains strong feature representation and structural reconstruction capabilities while achieving model lightweighting.</p>
        <fig id="fig3">
          <label>Figure 3</label>
          <graphic xlink:href="https://html.scirp.org/file/2313728-rId49.jpeg?20260402023738" />
        </fig>
        <p><bold>Figure 3.</bold> Reconstruction results of DRCaps and WTCaps.</p>
      </sec>
      <sec id="sec4dot8">
        <title>4.8. Comparison of Computational Efficiency</title>
        <p>To more comprehensively evaluate the characteristics of the proposed algorithm, a comparative experiment on computational efficiency was conducted. Classic capsule network models and recent lightweight capsule network models were tested using input images of the same size and number of channels, and their parameter counts and floating-point operations (FLOPs) were measured to assess computational performance, as shown in <bold>Table 6</bold>.</p>
        <p>The results indicate that traditional capsule networks, such as DRCaps and AWRCaps, maintain good performance but suffer from high parameter counts and FLOPs. In contrast, GraCapsNet and CAPCaps reduce model parameters to some extent through structural simplification, but their computational complexity remains relatively high.</p>
        <p>The proposed WTCaps model achieves a more balanced performance in both parameter scale and computational complexity. Specifically, WTCaps contains only 4.20M parameters—significantly fewer than DRCaps and AWRCaps—and reduces the computation to 200.90 MFLOPs, approximately 63.6% lower than DRCaps. These results demonstrate that WTCaps effectively reduces redundant computations in the dynamic routing stage without significantly increasing structural complexity, thereby significantly improving overall computational efficiency while preserving the capsule network’s modeling capabilities.</p>
        <p><bold>Table 6.</bold>Comparison of the computational efficiency of different algorithms.</p>
        <table-wrap id="tbl6">
          <label>Table 6</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>Params/M</bold>
                </td>
                <td>
                  <bold>Flops/</bold>
                  <bold>MFlops</bold>
                </td>
              </tr>
              <tr>
                <td>
                  DRCaps [
                  <xref ref-type="bibr" rid="B2">2</xref>
                  ]
                </td>
                <td>6.10</td>
                <td>552.38</td>
              </tr>
              <tr>
                <td>
                  GraCapsnet [
                  <xref ref-type="bibr" rid="B18">18</xref>
                  ]
                </td>
                <td>2.48</td>
                <td>380.00</td>
              </tr>
              <tr>
                <td>
                  CAPCaps [
                  <xref ref-type="bibr" rid="B20">20</xref>
                  ]
                </td>
                <td>3.00</td>
                <td>380.00</td>
              </tr>
              <tr>
                <td>
                  AWRCaps [
                  <xref ref-type="bibr" rid="B19">19</xref>
                  ]
                </td>
                <td>5.80</td>
                <td>552.38</td>
              </tr>
              <tr>
                <td>WTCaps</td>
                <td>4.20</td>
                <td>200.90</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
    </sec>
    <sec id="sec5">
      <title>5. Conclusions</title>
      <p>This paper addresses the challenges faced by capsule networks in practical applications, including large model parameter sizes, high computational complexity, and inefficient dynamic routing. We propose a lightweight capsule network, WTCaps, based on weight sharing and a Top-K routing mechanism. By systematically improving the traditional capsule network architecture, WTCaps effectively reduces model parameters and computational overhead while preserving the advantages of capsule networks in modeling spatial relationships, thereby enhancing its practical applicability.</p>
      <p>Specifically, the proposed approach introduces a weight-sharing mechanism in the digit capsule layer, allowing higher-level capsules of the same category to share transformation matrices, which significantly reduces the number of model parameters. Next, a Top-K routing pruning strategy is employed to limit the number of candidate capsules participating in dynamic routing, thereby reducing redundant computations during the routing stage and lowering overall computational complexity. Additionally, a lightweight spatial attention mechanism is incorporated in the PrimaryCaps layer to enhance the model’s focus on key local features, mitigating potential performance loss caused by model lightweighting.</p>
      <p>Extensive experiments demonstrate that WTCaps achieves competitive classification performance across multiple datasets, while outperforming several existing lightweight capsule network methods in terms of parameter size and computational cost. Moreover, WTCaps maintains strong robustness in rotated and overlapping digit recognition tasks, validating the effectiveness and generalization capability of the proposed method.</p>
      <p>Although WTCaps achieves a balance between efficiency and performance, there remains room for further optimization. Future work may explore more refined routing pruning strategies, adaptive routing mechanisms, and integration with other lightweight techniques to further enhance the performance and practical value of capsule networks in complex visual tasks.</p>
    </sec>
    <sec id="sec6">
      <title>Funding</title>
      <p>Shanghai Municipl Education Commission AI Program-SHJWAIJK241201.</p>
      <p>Key R&amp;D Program of the Ministry of Science and Technology (2022YFF0607701).</p>
      <p>National Natural Science Foundation of China (12372384, 12072200).</p>
    </sec>
    <sec id="sec7">
      <title>NOTES</title>
      <p>*First author.</p>
      <p><sup>#</sup>Corresponding author.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Gu, J., Wang, Z., Kuen, J., Ma, L., Shahroudy, A., Shuai, B., <italic>et al</italic>. (2018) Recent Advances in Convolutional Neural Networks. <italic>Pattern</italic><italic>Recognition</italic>, 77, 354-377. https://doi.org/10.1016/j.patcog.2017.10.013 <pub-id pub-id-type="doi">10.1016/j.patcog.2017.10.013</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.patcog.2017.10.013">https://doi.org/10.1016/j.patcog.2017.10.013</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Gu, J.</string-name>
              <string-name>Wang, Z.</string-name>
              <string-name>Kuen, J.</string-name>
              <string-name>Ma, L.</string-name>
              <string-name>Shahroudy, A.</string-name>
              <string-name>Shuai, B.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Recent Advances in Convolutional Neural Networks</article-title>
            <source>Pattern Recognition</source>
            <volume>77</volume>
            <pub-id pub-id-type="doi">10.1016/j.patcog.2017.10.013</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Sabour, S., Frosst, N. and Hinton, G.E. (2017) Dynamic Routing between Capsules. arXiv: 1710.09829.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Sabour, S.</string-name>
              <string-name>Frosst, N.</string-name>
              <string-name>Hinton, G.E.</string-name>
            </person-group>
            <year>2017</year>
            <article-title>Dynamic Routing between Capsules</article-title>
            <fpage>1710</fpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Huang, R., Li, J., Wang, S., Li, G. and Li, W. (2020) A Robust Weight-Shared Capsule Network for Intelligent Machinery Fault Diagnosis. <italic>IEEE</italic><italic>Transactions</italic><italic>on</italic><italic>Industrial</italic><italic>Informatics</italic>, 16, 6466-6475. https://doi.org/10.1109/tii.2020.2964117 <pub-id pub-id-type="doi">10.1109/tii.2020.2964117</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tii.2020.2964117">https://doi.org/10.1109/tii.2020.2964117</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Huang, R.</string-name>
              <string-name>Li, J.</string-name>
              <string-name>Wang, S.</string-name>
              <string-name>Li, G.</string-name>
              <string-name>Li, W.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>A Robust Weight-Shared Capsule Network for Intelligent Machinery Fault Diagnosis</article-title>
            <source>IEEE Transactions on Industrial Informatics</source>
            <volume>16</volume>
            <pub-id pub-id-type="doi">10.1109/tii.2020.2964117</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Geng, X., Wang, J., Gong, J., Xue, Y., Xu, J., Chen, F., <italic>et al</italic>. (2024) OrthCaps: An Orthogonal CapsNet with Sparse Attention Routing and Pruning. 2024 <italic>IEEE</italic>/ <italic>CVF Confere</italic><italic>nce on Computer Vision and Pattern Recognition</italic> ( <italic>CVPR</italic>), Seattle, 16-22 June 2024, 6037-6046. https://doi.org/10.1109/cvpr52733.2024.00577 <pub-id pub-id-type="doi">10.1109/cvpr52733.2024.00577</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/cvpr52733.2024.00577">https://doi.org/10.1109/cvpr52733.2024.00577</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Geng, X.</string-name>
              <string-name>Wang, J.</string-name>
              <string-name>Gong, J.</string-name>
              <string-name>Xue, Y.</string-name>
              <string-name>Xu, J.</string-name>
              <string-name>Chen, F.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>OrthCaps: An Orthogonal CapsNet with Sparse Attention Routing and Pruning</article-title>
            <source>2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</source>
            <volume>16</volume>
            <pub-id pub-id-type="doi">10.1109/cvpr52733.2024.00577</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Jiao, Y., Zhao, L. and Xu, H. (2021) Research on Capsule Network Based on Attention Mechanism. <italic>International</italic><italic>Journal</italic><italic>of</italic><italic>Advanced</italic><italic>Network</italic>, <italic>Monitoring</italic><italic>and</italic><italic>Controls</italic>, 6, 1-8. https://doi.org/10.21307/ijanmc-2021-011 <pub-id pub-id-type="doi">10.21307/ijanmc-2021-011</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.21307/ijanmc-2021-011">https://doi.org/10.21307/ijanmc-2021-011</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Jiao, Y.</string-name>
              <string-name>Zhao, L.</string-name>
              <string-name>Xu, H.</string-name>
              <string-name>Network, M</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Research on Capsule Network Based on Attention Mechanism</article-title>
            <source>International Journal of Advanced Network</source>
            <volume>6</volume>
            <pub-id pub-id-type="doi">10.21307/ijanmc-2021-011</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Garau, N., Bisagno, N., Sambugaro, Z. and Conci, N. (2022). Interpretable Part-Whole Hierarchies and Conceptual-Semantic Relationships in Neural Networks. 2022 <italic>IEEE</italic>/ <italic>CVF Conference on Computer Vision and Pattern Recognition</italic>( <italic>CVPR</italic>), New Orleans, 18-24 June 2022, 13679-13688. https://doi.org/10.1109/cvpr52688.2022.01332 <pub-id pub-id-type="doi">10.1109/cvpr52688.2022.01332</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/cvpr52688.2022.01332">https://doi.org/10.1109/cvpr52688.2022.01332</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Garau, N.</string-name>
              <string-name>Bisagno, N.</string-name>
              <string-name>Sambugaro, Z.</string-name>
              <string-name>Conci, N.</string-name>
            </person-group>
            <year>2022</year>
            <pub-id pub-id-type="doi">10.1109/cvpr52688.2022.01332</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Mazzia, V., Salvetti, F. and Chiaberge, M. (2021) Efficient-CapsNet: Capsule Network with Self-Attention Routing. <italic>Scientific</italic><italic>Reports</italic>, 11, Article No. 14634. https://doi.org/10.1038/s41598-021-93977-0 <pub-id pub-id-type="doi">10.1038/s41598-021-93977-0</pub-id><pub-id pub-id-type="pmid">34282164</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41598-021-93977-0">https://doi.org/10.1038/s41598-021-93977-0</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Mazzia, V.</string-name>
              <string-name>Salvetti, F.</string-name>
              <string-name>Chiaberge, M.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Efficient-CapsNet: Capsule Network with Self-Attention Routing</article-title>
            <source>Scientific Reports</source>
            <volume>11</volume>
            <elocation-id>No</elocation-id>
            <pub-id pub-id-type="doi">10.1038/s41598-021-93977-0</pub-id>
            <pub-id pub-id-type="pmid">34282164</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B8">
        <label>8.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Javadinia, S. and Baniasadi, A. (2023) PDR-CapsNet: An Energy-Efficient Parallel Approach to Dynamic Routing in Capsule Networks. arXiv: 2310.03212.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Javadinia, S.</string-name>
              <string-name>Baniasadi, A.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>PDR-CapsNet: An Energy-Efficient Parallel Approach to Dynamic Routing in Capsule Networks</article-title>
            <fpage>2310</fpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B9">
        <label>9.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Brauwers, G. and Frasincar, F. (2023) A General Survey on Attention Mechanisms in Deep Learning. <italic>IEEE</italic><italic>Transactions</italic><italic>on</italic><italic>Knowledge</italic><italic>and</italic><italic>Data</italic><italic>Engineering</italic>, 35, 3279-3298. https://doi.org/10.1109/tkde.2021.3126456 <pub-id pub-id-type="doi">10.1109/tkde.2021.3126456</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/tkde.2021.3126456">https://doi.org/10.1109/tkde.2021.3126456</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Brauwers, G.</string-name>
              <string-name>Frasincar, F.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>A General Survey on Attention Mechanisms in Deep Learning</article-title>
            <source>IEEE Transactions on Knowledge and Data Engineering</source>
            <volume>35</volume>
            <pub-id pub-id-type="doi">10.1109/tkde.2021.3126456</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B10">
        <label>10.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Zeng, R., Qin, Y. and Song, Y. (2024) A Non-Iterative Capsule Network with Interdependent Agreement Routing. <italic>Expert</italic><italic>Systems</italic><italic>with</italic><italic>Applications</italic>, 238, Article ID: 122284. https://doi.org/10.1016/j.eswa.2023.122284 <pub-id pub-id-type="doi">10.1016/j.eswa.2023.122284</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.eswa.2023.122284">https://doi.org/10.1016/j.eswa.2023.122284</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Zeng, R.</string-name>
              <string-name>Qin, Y.</string-name>
              <string-name>Song, Y.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>A Non-Iterative Capsule Network with Interdependent Agreement Routing</article-title>
            <source>Expert Systems with Applications</source>
            <volume>238</volume>
            <fpage>122284</fpage>
            <elocation-id>ID</elocation-id>
            <pub-id pub-id-type="doi">10.1016/j.eswa.2023.122284</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B11">
        <label>11.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Woo, S., Park, J., Lee, J. and Kweon, I.S. (2018) CBAM: Convolutional Block Attention Module. In: Ferrari, V., Hebert, M., Sminchisescu, C. and Weiss, Y., eds., <italic>Computer Vision—ECCV</italic>2018, Springer, 3-19. https://doi.org/10.1007/978-3-030-01234-2_1 <pub-id pub-id-type="doi">10.1007/978-3-030-01234-2_1</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/978-3-030-01234-2_1">https://doi.org/10.1007/978-3-030-01234-2_1</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Woo, S.</string-name>
              <string-name>Park, J.</string-name>
              <string-name>Lee, J.</string-name>
              <string-name>Kweon, I.S.</string-name>
              <string-name>Ferrari, V.</string-name>
              <string-name>Hebert, M.</string-name>
              <string-name>Sminchisescu, C.</string-name>
              <string-name>Weiss, Y.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>CBAM: Convolutional Block Attention Module</article-title>
            <source>In: Ferrari</source>
            <volume>3</volume>
            <pub-id pub-id-type="doi">10.1007/978-3-030-01234-2_1</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B12">
        <label>12.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Choi, J., Seo, H., Im, S. and Kang, M. (2019) Attention Routing between Capsules. 2019 <italic>IEEE</italic>/ <italic>CVF International Conference on Computer Vision Workshop</italic>( <italic>ICCVW</italic>), Seoul, 27-28 October 2019, 1981-1989. https://doi.org/10.1109/iccvw.2019.00247 <pub-id pub-id-type="doi">10.1109/iccvw.2019.00247</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/iccvw.2019.00247">https://doi.org/10.1109/iccvw.2019.00247</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Choi, J.</string-name>
              <string-name>Seo, H.</string-name>
              <string-name>Im, S.</string-name>
              <string-name>Kang, M.</string-name>
            </person-group>
            <year>2019</year>
            <article-title>Attention Routing between Capsules</article-title>
            <source>2019 IEEE/CVF International Conference on Computer Vision Workshop (ICCVW)</source>
            <volume>27</volume>
            <pub-id pub-id-type="doi">10.1109/iccvw.2019.00247</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B13">
        <label>13.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Hinton, G.E., Sabour, S. and Frosst, N. (2018) Matrix Capsules with EM Routing. <italic>International Conference on Learning Representations</italic> 2018, Vancouver, 30 April-3 May 2018, 1-15.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Hinton, G.E.</string-name>
              <string-name>Sabour, S.</string-name>
              <string-name>Frosst, N.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Matrix Capsules with EM Routing</article-title>
            <source>International Conference on Learning Representations 2018</source>
            <volume>30</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B14">
        <label>14.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">De Sousa Ribeiro, F., Leontidis, G. and Kollias, S. (2020) Capsule Routing via Variational Bayes. <italic>Proceedings</italic><italic>of</italic><italic>the</italic><italic>AAAI</italic><italic>Conference</italic><italic>on</italic><italic>Artificial</italic><italic>Intelligence</italic>, 34, 3749-3756. https://doi.org/10.1609/aaai.v34i04.5785 <pub-id pub-id-type="doi">10.1609/aaai.v34i04.5785</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1609/aaai.v34i04.5785">https://doi.org/10.1609/aaai.v34i04.5785</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Ribeiro, F.</string-name>
              <string-name>Leontidis, G.</string-name>
              <string-name>Kollias, S.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Capsule Routing via Variational Bayes</article-title>
            <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>
            <volume>34</volume>
            <pub-id pub-id-type="doi">10.1609/aaai.v34i04.5785</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B15">
        <label>15.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Hahn, T., Pyeon, M. and Kim, G. (2019) Self-Routing Capsule Networks. <italic>Proceedings of the</italic> 33 <italic>rd International Conference on Neural Information Processing Systems</italic>, Vancouver, 8-14 December 2019, 7658-7667.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Hahn, T.</string-name>
              <string-name>Pyeon, M.</string-name>
              <string-name>Kim, G.</string-name>
              <string-name>Systems, V</string-name>
            </person-group>
            <year>2019</year>
            <article-title>Self-Routing Capsule Networks</article-title>
            <source>Proceedings of the 33rd International Conference on Neural Information Processing Systems</source>
            <volume>8</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B16">
        <label>16.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Gu, J. and Tresp, V. (2020) Improving the Robustness of Capsule Networks to Image Affine Transformations. 2020 <italic>IEEE</italic>/ <italic>CVF Conference on Computer Vision and Pattern Recognition</italic> ( <italic>CVPR</italic>), Seattle, 13-19 June 2020, 7283-7291. https://doi.org/10.1109/cvpr42600.2020.00731 <pub-id pub-id-type="doi">10.1109/cvpr42600.2020.00731</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/cvpr42600.2020.00731">https://doi.org/10.1109/cvpr42600.2020.00731</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Gu, J.</string-name>
              <string-name>Tresp, V.</string-name>
            </person-group>
            <year>2020</year>
            <article-title>Improving the Robustness of Capsule Networks to Image Affine Transformations</article-title>
            <source>2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</source>
            <volume>13</volume>
            <pub-id pub-id-type="doi">10.1109/cvpr42600.2020.00731</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B17">
        <label>17.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Xiang, C., Zhang, L., Tang, Y., Zou, W. and Xu, C. (2018) MS-CapsNet: A Novel Multi-Scale Capsule Network. <italic>IEEE</italic><italic>Signal</italic><italic>Processing</italic><italic>Letters</italic>, 25, 1850-1854. https://doi.org/10.1109/lsp.2018.2873892 <pub-id pub-id-type="doi">10.1109/lsp.2018.2873892</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/lsp.2018.2873892">https://doi.org/10.1109/lsp.2018.2873892</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Xiang, C.</string-name>
              <string-name>Zhang, L.</string-name>
              <string-name>Tang, Y.</string-name>
              <string-name>Zou, W.</string-name>
              <string-name>Xu, C.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>MS-CapsNet: A Novel Multi-Scale Capsule Network</article-title>
            <source>IEEE Signal Processing Letters</source>
            <volume>25</volume>
            <pub-id pub-id-type="doi">10.1109/lsp.2018.2873892</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B18">
        <label>18.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zhang, S., Zhao, W., Wu, X. and Zhou, Q. (2021) Fast Dynamic Routing Based on Weighted Kernel Density Estimation. <italic>Concurrency</italic><italic>and</italic><italic>Computation</italic>: <italic>Practice</italic><italic>and</italic><italic>Experience</italic>, 33, e5281. https://doi.org/10.1002/cpe.5281 <pub-id pub-id-type="doi">10.1002/cpe.5281</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/cpe.5281">https://doi.org/10.1002/cpe.5281</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zhang, S.</string-name>
              <string-name>Zhao, W.</string-name>
              <string-name>Wu, X.</string-name>
              <string-name>Zhou, Q.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Fast Dynamic Routing Based on Weighted Kernel Density Estimation</article-title>
            <source>Concurrency and Computation: Practice and Experience</source>
            <volume>33</volume>
            <pub-id pub-id-type="doi">10.1002/cpe.5281</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B19">
        <label>19.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Gu, J. (2021) Interpretable Graph Capsule Networks for Object Recognition. <italic>Proceedings</italic><italic>of</italic><italic>the</italic><italic>AAAI</italic><italic>Conference</italic><italic>on</italic><italic>Artificial</italic><italic>Intelligence</italic>, 35, 1469-1477. https://doi.org/10.1609/aaai.v35i2.16237 <pub-id pub-id-type="doi">10.1609/aaai.v35i2.16237</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1609/aaai.v35i2.16237">https://doi.org/10.1609/aaai.v35i2.16237</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Gu, J.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Interpretable Graph Capsule Networks for Object Recognition</article-title>
            <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>
            <volume>35</volume>
            <pub-id pub-id-type="doi">10.1609/aaai.v35i2.16237</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B20">
        <label>20.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Song, Y., Qin, Y.Z. and Zeng, R. (2023) Attention-Based Capsule Network with Shared Parameters. <italic>Control and Decision</italic>, 38, 1577-1585.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Song, Y.</string-name>
              <string-name>Qin, Y.Z.</string-name>
              <string-name>Zeng, R.</string-name>
            </person-group>
            <year>2023</year>
            <article-title>Attention-Based Capsule Network with Shared Parameters</article-title>
            <source>Control and Decision</source>
            <volume>38</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B21">
        <label>21.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Zhu, Z.H. and Song, Y. (2024) Lightweight Capsule Network Fusing Attention and Capsule Pooling. <italic>Electronics Science and Technology</italic>, 37, 1-8, 31.</mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Zhu, Z.H.</string-name>
              <string-name>Song, Y.</string-name>
            </person-group>
            <year>2024</year>
            <article-title>Lightweight Capsule Network Fusing Attention and Capsule Pooling</article-title>
            <source>Electronics Science and Technology</source>
            <volume>37</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B22">
        <label>22.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Deliege, A., Cioppa, A. and Van Droogenbroeck, M. (2019) An Effective Hit-Or-Miss Layer Favoring Feature Interpretation as Learned Prototypes Deformations. arXiv: 1911.05588.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Deliege, A.</string-name>
              <string-name>Cioppa, A.</string-name>
              <string-name>Droogenbroeck, M.</string-name>
            </person-group>
            <year>2019</year>
            <article-title>An Effective Hit-Or-Miss Layer Favoring Feature Interpretation as Learned Prototypes Deformations</article-title>
            <fpage>1911</fpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B23">
        <label>23.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Lenssen, J.E., Fey, M. and Libuschewski, P. (2018) Group Equivariant Capsule Networks. <italic>Proceedings of the</italic> 32 <italic>nd International Conference on Neural Information Processing Systems</italic>, Montréal, 3-8 December 2018, 8858-8867.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Lenssen, J.E.</string-name>
              <string-name>Fey, M.</string-name>
              <string-name>Libuschewski, P.</string-name>
              <string-name>Systems, M</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Group Equivariant Capsule Networks</article-title>
            <source>Proceedings of the 32nd International Conference on Neural Information Processing Systems</source>
            <volume>3</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B24">
        <label>24.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Rawlinson, D., Ahmed, A. and Kowadlo, G. (2018) Sparse Unsupervised Capsules Generalize Better. arXiv: 1804.06094.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Rawlinson, D.</string-name>
              <string-name>Ahmed, A.</string-name>
              <string-name>Kowadlo, G.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Sparse Unsupervised Capsules Generalize Better</article-title>
            <fpage>1804</fpage>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B25">
        <label>25.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Kosiorek, A., Sabour, S., The, Y.W., <italic>et al</italic>. (2019) Stacked Capsule Autoencoders. <italic>Proceedings of the</italic> 33 <italic>rd International Conference on Neural Information Processing Systems</italic>, Vancouver, 8-14 December 2019, 15512-15522.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Kosiorek, A.</string-name>
              <string-name>Sabour, S.</string-name>
              <string-name>The, Y.W.</string-name>
              <string-name>Systems, V</string-name>
            </person-group>
            <year>2019</year>
            <article-title>Stacked Capsule Autoencoders</article-title>
            <source>Proceedings of the 33rd International Conference on Neural Information Processing Systems</source>
            <volume>8</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B26">
        <label>26.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Rajasegaran, J., Jayasundara, V., Jayasekara, S., Jayasekara, H., Seneviratne, S. and Rodrigo, R. (2019) DeepCaps: Going Deeper with Capsule Networks. 2019 <italic>IEEE</italic>/ <italic>CVF</italic><italic>Conference</italic><italic>on</italic><italic>Computer</italic><italic>Vision</italic><italic>and</italic><italic>Pattern</italic><italic>Recognition</italic> ( <italic>CVPR</italic>), Long Beach, 15-20 June 2019, 10717-10725. https://doi.org/10.1109/cvpr.2019.01098 <pub-id pub-id-type="doi">10.1109/cvpr.2019.01098</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/cvpr.2019.01098">https://doi.org/10.1109/cvpr.2019.01098</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Rajasegaran, J.</string-name>
              <string-name>Jayasundara, V.</string-name>
              <string-name>Jayasekara, S.</string-name>
              <string-name>Jayasekara, H.</string-name>
              <string-name>Seneviratne, S.</string-name>
              <string-name>Rodrigo, R.</string-name>
            </person-group>
            <year>2019</year>
            <article-title>DeepCaps: Going Deeper with Capsule Networks</article-title>
            <source>2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</source>
            <volume>15</volume>
            <pub-id pub-id-type="doi">10.1109/cvpr.2019.01098</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>