活性化関数Scaled Sigmoid (sSigmoid)更新日:2026-11-24概要シグモイド関数の原点付近の傾きが 1/4 と小さく、出力の平均が 0 にならないことによる学習の難しさを軽減するために、4倍して2を引き、原点付近の形をTanhにそろえた活性化関数です。出力範囲は(-2, 2)に広がります。 sSigmoid(x)=4⋅Sigmoid(x)−2sSigmoid(x) = 4 \cdot Sigmoid(x) - 2sSigmoid(x)=4⋅Sigmoid(x)−2 出力は、 −2<sSigmoid(x)<2-2 < sSigmoid(x) < 2−2<sSigmoid(x)<2 です。PyTorch の実装例▶コードを開くpythonコピー# PyTorch import torch import torch.nn as nn class NN(nn.Module): def __init__(self): super().__init__() def s_sigmoid(self, x): return 4 * (1 / (1 + torch.exp(-x))) - 2 def forward(self, x): x = self.s_sigmoid(x) return x参考文献B. Xu, R. Huang, and M. Li, "Revise Saturated Activation Functions," ICLR Workshop, 2016.S. R. Dubey, S. K. Singh, and B. B. Chaudhuri, "Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark," Neurocomputing, 503, 92–108, 2022.← 一覧に戻る