Toward Principled Flexible Scaling for Self-Gated Neural Activation

Sudong Cai, Shuyuan Zheng, Bingzhi Chen, Shuai Yuan, Chuan Xiao, Jianbin Qin, Bing WangICLR 2026

TL;DR

FleS (Flexible Scaling) is a novel activation framework designed to solve "non-local tension"—a phenomenon where standard self-gated activations (like Swish or GELU) saturate and fail to fully utilize the rich context provided by Transformer layers. By adaptively scaling the steepness and range of activation curves based on channel-wide statistics, FleS allows models to maintain discriminative power even for highly informative features. This leads to significant accuracy gains across vision and NLP benchmarks with negligible computational overhead.

The Problem: Non-Local Tension in Transformers

Neural networks rely on nonlinear activation functions to learn complex patterns. While traditional functions like ReLU are "rigid," modern "self-gated" variants like Swish ($\text{SiLU}$) or GELU use a gating mechanism to weight inputs dynamically.

However, a critical "explanatory gap" exists: while these self-gated functions work well in CNNs, they often fail to yield similar improvements in Transformers. The authors attribute this to non-local tension. In Transformers, attention mechanisms already "super-charge" features with global context. These highly enriched features often fall into the saturated (flat) regions of standard gating functions (such as the top of a Sigmoid curve).

When the gate is flat, it assigns nearly identical weights to both "important" and "extremely important" features. This "convergence limitation" effectively neutralizes the fine-grained context the Transformer worked so hard to build, preventing the activation layer from acting as an effective feature selector.

The Solution: Flexible Scaling (FleS)

To overcome this saturation trap, the authors propose FleS, which introduces two learnable, adaptive scaling coefficients to the standard self-gated formula:

$$\phi(\tilde{x}) = \kappa_{ve} \rho(\kappa_{ho} \tilde{x}) \tilde{x}$$

  • $\kappa_{ho}$ (Horizontal Scaling): Modulates the steepness of the activation curve, allowing the model to "zoom in" on informative response intervals.
  • $\kappa_{ve}$ (Vertical Scaling): Adjusts the dynamic range (bounds) of the gate.
Architecture of the Flexible Scaling Unit

The Implementation Detail: To make these scales adaptive, FleS uses a lightweight MLP to predict $\kappa_{ve}$ and $\kappa_{ho}$ from the effective mean response ($\bar{x}_c^+$). Crucially, the authors argue that only positive pre-activations should be used to calculate these statistics. Including negative values can cause "cancellation effects" that muddy the signal, as positive responses carry the dominant optimization gradient.

Key Insights

  • Activation as Decision Making: The paper reinterprets the neuron's affine-activation pipeline as a multi-criteria decision-making process. The filter represents the "ideal pattern," and the activation function acts as a "ranker" deciding which features are worthy of updating the filter.
  • Sign-Awareness Matters: Treating positive and negative features differently when calculating scaling factors is vital. By focusing on the "effective mean response" (positives only), the scaling factors become much more stable and representative of the channel's true importance.
  • Efficiency vs. Power: FleS-enhanced "Micro" models can sometimes outperform "Base" models that are significantly larger, proving that better feature gating can compensate for raw parameter count.

Key Results

The authors validated FleS across a wide array of standard benchmarks, including ImageNet-1K, MS COCO, ImageNet-LT, and GLUE.

Performance comparison of FleS against baseline activation functions
  • Vision Transformers: On ImageNet, FleS improved Swin-Micro from 78.7% to 80.3% and Swin-T from 81.3% to 82.3%. As shown in the performance tables, it consistently outperforms other advanced activations like Meta-ACON and StarReLU on architectures like Swin-Min and PoolFormer.
  • ResNet-50: Even in traditional CNNs, FleS pushed Top-1 accuracy to 80.1%, outperforming SOTA methods like IIEU and AdaS.
  • Object Detection: On MS COCO, FleS provided a +0.7 mAP boost over the GELU baseline.
  • NLP (GLUE): FleS-SeqGate (a variant for sequences) enabled a BERT-Tiny model to surpass the much larger BERT-Mini in average score.
  • Computational Cost: The added MLP is tiny (reduction ratio of 32), resulting in negligible increases in FLOPs (e.g., remaining at 1.6G for Swin-Min).

Limitations and Future Work

  • Neighborhood Selection: For dense tasks like object detection, FleS requires choosing a spatial window size to compute local statistics. This is currently an empirical choice and adds a small deployment burden.
  • Complexity of Indicators: While the current "positive-only" mean is effective, more sophisticated, unified schemes for extracting rectified statistics could further improve adaptability.
  • Scaling to LLMs: While tested on BERT-Tiny, evaluating FleS on massive Large Language Models (LLMs) remains an open area for future exploration.

Summary updated

BibTeX
@inproceedings{cai2026toward,
  author = {Sudong Cai and Shuyuan Zheng and Bingzhi Chen and Shuai Yuan and Chuan Xiao and Jianbin Qin and Bing WANG},
  title = {{Toward Principled Flexible Scaling for Self-Gated Neural Activation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=XGODWn7HeJ},
}
Figure