Papers
Topics
Authors
Recent
Search
2000 character limit reached

GATE_S Weight-Sharing Variant

Updated 6 February 2026
  • GATE_S weight-sharing variant is a neural network design that uses a shared affine transformation combined with lightweight, gate-specific adapters to drastically reduce parameter counts.
  • It dynamically learns weight-sharing patterns across LSTM, highway networks, and graph-structured data, enabling adaptable architectures for varied topologies.
  • Empirical results show that GATE_S achieves similar or improved performance compared to standard models while reducing computational overhead by up to 4×.

The GATE_S weight-sharing variant refers to a class of neural network architectures that impose explicit parameter-sharing schemes within and across neural layers—particularly in gated recurrent models (e.g., LSTMs, highway networks) and local-receptive-field constructions on graphs—in order to achieve substantial reductions in both memory footprint and computational overhead while retaining expressiveness and accuracy. Distinct implementations of the GATE_S variant are discussed in "Semi-tied Units for Efficient Gating in LSTM and Highway Networks" (Zhang et al., 2018) and "Learning Local Receptive Fields and their Weight Sharing Scheme on Graphs" (Vialatte et al., 2017). Both works formalize general methods for dynamically learning the parameter-sharing structure itself (as opposed to imposing static sharing), enabling adaptability to varied topologies and learning tasks.

1. Weight-Sharing in Gates: Motivation and Rationale

In conventional gated architectures, subunits such as the input, forget, and output gates in LSTMs, as well as analogous gates in highway networks, each possess independent, full-rank affine transformation matrices. For an LSTM layer with hidden size HH and input size XX, this results in four separate sets of weights: W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_4 and corresponding biases, entailing O(4XH+4H2+4H)O(4XH + 4H^2 + 4H) parameters and quadrupling matrix-vector computations per step. As XX and HH scale or as models deepen, this becomes prohibitively expensive.

The central observation motivating GATE_S is that these affine transformations across the subunits have identical form and thus can be decomposed into a shared affine transformation followed by lightweight, gate-specific, parametric adapters. This decomposition drastically reduces model size and computational cost, while retaining subunit diversity through per-gate scaling operations.

2. GATE_S Formulation in Gated Architectures

2.1 Shared Affine Transform and Parametric Nonlinearities

A GATE_S (also called semi-tied unit, or STU) gated layer replaces all gate-specific affine mappings with a single shared projection ete_t:

et=Wxt+Uht−1+be_t = W x_t + U h_{t-1} + b

(W∈RH×XW \in \mathbb{R}^{H \times X}, U∈RH×HU \in \mathbb{R}^{H \times H}, XX0).

Each gate, denoted XX1 (input, forget, output, candidate), then uses a unique pair of vectors XX2 to define a parametric nonlinearity:

  • Parametric sigmoid: XX3
  • Parametric tanh: XX4
  • Parametric ReLU: XX5

The full STU-LSTM equations integrate these as follows (with a shared peephole vector XX6): XX7 This framework similarly extends to highway networks, with transform and carry gates, as well as candidate activations, all receiving distinct XX8 and XX9.

2.2 Parameter Count and Computational Complexity

For LSTM layers, standard parameterization requires W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_40 parameters. GATE_S reduces this to W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_41, representing approximately a W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_42 reduction in storage and large matrix-vector multiplications. For highway networks, the reduction achieves a W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_43 factor, as each component (transform/carry/candidate) is tied to the shared weights with lightweight adapters (Zhang et al., 2018).

3. GATE_S Weight-Sharing on Graphs

The GATE_S variant is generalized to arbitrary graph-structured data in (Vialatte et al., 2017), introducing a learnable, soft-parameterized weight-sharing scheme over local receptive fields. Given an adjacency matrix W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_44 (directed or undirected), the layer maintains:

  • A weight pool W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_45 (single-channel) or W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_46 (multi-channel), for filter size W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_47
  • A sharing tensor W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_48, where for each W1,U1,…,W4,U4W_1,U_1,\ldots,W_4,U_49 edge, O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)0 is a soft assignment vector over O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)1 slots, with O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)2 and O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)3 when O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)4

The effective weight matrix for signal propagation is built via: O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)5 so that output features are aggregated as: O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)6

O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)7 is trained jointly with O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)8 under convex constraints (simplex projection), enabling the model to learn arbitrary soft parameter-sharing patterns across the graph.

4. Implementation Aspects and Optimization Procedures

4.1 Initialization and Regularization

In the STU/LSTM case, scaling vectors O(4XH+4H2+4H)O(4XH + 4H^2 + 4H)9 and XX0 are initialized to 1.0. For graph-based GATE_S, XX1 can be initialized by one-hot assignment (e.g., circulant for grids) or uniform randomization projected onto the simplex per edge.

Regularization employs weight-decay on XX2, and optionally XX3, with standard values (XX4). For stochastic optimization, gradients through the parameterized activations are carefully computed:

  • For XX5, XX6

Gradients for shared weights are normalized by the number of subunits (e.g., divided by 4 in LSTM; for recurrent layers, further divided by unroll steps).

4.2 Computational Notes

On practical hardware (TensorFlow/CuDNN for graphs), the extra cost of building the composite weight matrix XX7 in the GATE_S graph layer results in runtimes approximately XX8-XX9 slower than standard matrix-multiplied CNN layers of similar size, due to the flexibility of the learned weight-sharing step (Vialatte et al., 2017).

5. Empirical Evaluations

Speech recognition experiments on the British-English MGB dataset demonstrate that STU-LSTM (GATE_S) achieves performance within HH0–HH1% absolute word error of standard LSTM and highway baselines, while reducing parameter count and computation by HH2-HH3. For instance, with a standard LSTM (hidden size HH4, 55h training), WER is HH5\%; STU-LSTM matches this with HH6\%, using HH7 fewer hidden-layer parameters (Zhang et al., 2018).

In image understanding, experiments on MNIST and CIFAR-10 demonstrate that the GATE_S variant on graphs nearly matches (and in certain graph constructions, exceeds) the accuracy of conventional convolutional or fixed-topology GCN baselines, even when pixel order is scrambled or the feature graph is non-Euclidean. Notably, with the underlying grid known, GATE_S recovers standard convolutional results; with structure unknown, it discovers a near-optimal weight-sharing scheme, thus maintaining or exceeding the performance of vanilla conv, MLP, GCN, and GAT models (Vialatte et al., 2017).

6. Relation to Other Models and Generalization

When specialized to grid-structured data and initialized with circulant constraints, the GATE_S scheme exactly reproduces standard convolutions (Toeplitz weight sharing). Unlike GATs, which distribute attention scores over edges, GATE_S imposes explicit, learnable assignment of shared filters across neighborhoods, without reliance on positional or coordinate-based translation definitions, and generalizes to arbitrary graph structures.

The key distinction is the replacement of implicit translation invariance (Euclidean convolutions) with a flexible, explicitly parameterized weight-sharing structure (soft assignment tensor HH8 in graph-based layers, parametric nonlinearities in STUs), enabling the architecture to adapt to non-Euclidean topologies or data where spatial locality or translation symmetry is unknown or irrelevant.

7. Summary and Implications

The GATE_S weight-sharing variant offers a principled mechanism to achieve major reductions in storage and computation for both sequence modeling (via semi-tied units in gated architectures) and general graph-structured data (via soft parameter-sharing across arbitrary receptive fields). When the underlying domain supports usual convolutional weight sharing, GATE_S collapses to standard models; when not, it learns problem-specific sharing patterns with minimal loss in accuracy. This suggests that GATE_S architectures are particularly advantageous when model efficiency is crucial or when the underlying topology is unknown or complex (Vialatte et al., 2017, Zhang et al., 2018).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to GATE_S Weight-Sharing Variant.