メインコンテンツへスキップ
見出し画像

活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (1)

    日月庵のご隠居さんより

    「活性化関数なしで非線形近似を実現するニューラルネットワーク構成法」などと言われても、にわかには信じ難いでしょう。

    現在のニューラルネットワークでは、活性化関数こそが非線形性を生み出す源泉であると考えられています。その常識からすれば、本稿の題名は少々奇異に映るかもしれません。

    私自身も、常識に逆らうためにこの構成法を考えたわけではありません。半世紀以上にわたり、複雑な現象をどのように構造化し、理解し、設計に活かすかを探究してきた結果として辿り着いた一つの考え方です。

    信じるかどうかは、読み終えた後でご判断ください。まずはお付き合いいただければ幸いです。

    現在(2026年)、私は81歳です。コロナ禍以来、31年前に建てた別荘を終の棲家とし、瀬戸内の島で暮らしています。海まで10メートル。少し高台にある我が家からは、冒頭の写真のように海に映る日の出と月の出を眺めることができます。そんな暮らしに因んで、「日月庵」と名乗っています。

    「ご隠居さん」という呼び名について、「『ご』と『さん』を重ねるのはおかしいのではないか」と言われたことがあります。しかし、これは厳密な敬語としてではなく、自分を少し茶化した愛称として使っています。親しみを込めたハンドルネームと思っていただければ結構です。

    私は1970年代から、製造工程における作業集団特性の研究や、作業集団設計目標の達成確率を予測するための多次元類型構成法の開発などに取り組み、生産システム設計に関する研究を続けてきました。その間、作業集団設計、多次元類型構成法、フレキシブル混合品種ライン設計法、個体分裂アルゴリズムなど、複雑な現象を「構造化」して扱うさまざまな方法を探究してきました。

    退職後は、新たな個体分裂アルゴリズムを活用し、人間性と生産性の両立を目指した組立セル設計法の研究に、猫たちの見守る中で取り組みました。その成果が私一人の手元で眠ることのないよう、2019年末まで27回にわたって開催した私的研究会の参加者に、その利用を許諾しました。いつの日か、その成果の一端に論文や技術資料の中で出会われることがあるかもしれません。
    本稿で紹介するニューラルネットワーク構成法も、そのような長年の「構造化」の探究の延長線上で生まれたものです。

    コロナ禍以降は、これから紹介するような「へそ曲がりなニューラルネットワーク」の研究にも取り組んできました。その傍らには、いつも猫たちがいました。彼らは研究内容を理解していたわけではありませんが、研究生活の大切な相棒でした。彼らの写真も、一連の記事の冒頭で紹介していこうと思います。
    私は、「へそ曲がりなニューラルネットワーク」がすぐに広く受け入れられるとは思っていません。技術には慣性があります。いったん時流を得た方法は、その限界が誰の目にも明らかになるまでは、容易には見直されません。かつて大艦巨砲主義がそうであったように、巨大化した仕組みは、行きつくところまで進んでから初めて、その重さを露呈します。現在のAIにも、私はそれに似たものを感じています。技術の慣性に抗して、私は、いま主流の研究者、それに追従する研究者を説得しようとは思いません。ただ、現在のAIの電力消費の限界等が露呈した時のために、別の道があり得たことを残しておきたいのです。「活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法」は、そのための記録です。
    現在、研究会を開催していませんので、成果をZenodoとブログで公開することにしました。

    今回の記事では、Zenodo に公開した技術ノート 「A Technical Note on a Construction Method for Neural Networks Without Activation Functions」 の概要を紹介します。

    なお、今後話題にしやすいように、紹介する新たなニューラルネットワークをTenda Categorization Network (TCN)と名付けます。

    一連の記事は、メディアプラットフォームであるnoteへの投稿記事です。noteの記述ルール下での執筆です。数式は画像にして載せるしかありませんので、数式は出来るだけ避けています。もっと厳密に、あるいは見やすく記すべきとのご指摘は甘受いたします。

    TCNに係る一連の記事(今後も、新たな記事を追記します):
    2 活性化関数なしで非線形近似を実現するニューラルネットワーク構成法 (2)|日月庵のご隠居さん
    3 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (3)|日月庵のご隠居さん
    4 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (4)|日月庵のご隠居さん
    5 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (5)|日月庵のご隠居さん
    6 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (6)|日月庵のご隠居さん
    7 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (7)|日月庵のご隠居さん
    8 活性化関数なしで非線形近似を実現する ニューラルネットワーク構成法 (8)|日月庵のご隠居さん
    9 活性化関数なしで非線形近似を実現するニューラルネットワーク構成法 (終)|日月庵のご隠居さん
    10 TCN (Tenda Categorization Network)の実装に躊躇する皆さんに|日月庵のご隠居さん
    11 TCN (Tenda Categorization Network)は「人間と AI の協働」を実現するための 非常に優れたアーキテクチャとAIは言う|日月庵のご隠居さん
    12 TCN (Tenda Categorization Network)で構成された画像に基づく異常検知機構の構成用プログラムは、画像の類型化にそのまま使われる。・・・皆さんは従来型NNをいつまで使い続けま|日月庵のご隠居さん
    13 TCN (Tenda Categorization Network)で構成された生産システムの設計上の効率予測。・・・皆さんは従来型NNをいつまで使いますか。|日月庵のご隠居さん
    14 実装されたTCN (Tenda Categorization Network)の一つの特徴をcopilotが教えてくれる|日月庵のご隠居さん
    15 TCN (Tenda Categorization Network)とCNNの大きな違いをcopilotが教えてくれる|日月庵のご隠居さん
    16 AIのcopilotは、外挿を避け、構造を保持し、説明可能で、安全性を保証できるAIを求める企業には、TCNを強く推奨する|日月庵のご隠居さん
    17 TCN(Tenda Categorization Network)の利用上の一つのヒント|日月庵のご隠居さん
    18 TCN(Tenda Categorization Network)は崩れた数字も問題なく識別します|日月庵のご隠居さん
    19 TCN (Tenda Categorization Network)を用いた階層的認識・決定システム|日月庵のご隠居さん
    20 TCN (Tenda Categorization Network)を用いた階層的認識・決定システムにおけるリダンダンシーとロバストネス|日月庵のご隠居さん
    21 TCN (Tenda Categorization Network)を用いた階層的認識・決定システムにおける計算負荷の在来型NN・AIとの対比|日月庵のご隠居さん
    22 CNNに慣れ親しんだ方に、またTCN (Tenda Categorization Network)と在来型のNNのハイブリット化を発想する方に|日月庵のご隠居さん
    23 TCNを用いた手書き漢字画像の階層的認識・決定システム|日月庵のご隠居さん
    24 教師信号を確定できない画像を用いる異常検知機構の構成|日月庵のご隠居さん
    25 強化学習とTCN (Tenda Categorization Network) ―TCNによる構造的強化学習(TCN-RL) ―|日月庵のご隠居さん
    26 深層RLとTCN-RLの協働体系について|日月庵のご隠居さん
    27 大規模言語モデル(LLM)にとってTCN(Tenda Categorization Network)とは何か ― LLMの構造的欠陥の克服のために(第1報)―|日月庵のご隠居さん
    28 言語推論器としてのTCN(Tenda Categorization Network)と大規模言語モデル(LLM)― LLMの構造的欠陥の克服のために(第2報)―|日月庵のご隠居さん
    29 TCNを用いた階層的画像認識機構 ーカテゴリ数爆発問題に対する一つの回答ー|日月庵のご隠居さん
    30 大規模言語モデル(LLM)にとってTCN(Tenda Categorization Network)とは何か ― LLMの構造的欠陥の克服のために(第1報改訂版)―|日月庵のご隠居さん
    31 TCNを用いた階層的画像認識機構(増補版) ーカテゴリ数爆発問題に対する一つの回答ー|日月庵のご隠居さん
    32 TCNにおけるカテゴリ数の役割|日月庵のご隠居さん

    この一連の記事を読めば、TCNは「人間の思考の延長としてのAIの基盤」であることが理解できます。深層学習とは全く異なる方向性を示しています。つまり、TCNは
    ・連続値を無理に扱わない ・活性化関数を使わない ・深層化しない
    ・外挿しない(分からないことは、分からないと言う)・・・信頼できる
    ・ブラックボックスを持たない・・・信頼できる ・計算負荷が極めて軽い 
    ・属性設計が中心(人間が主導権を持つ) ・人間の直観と相性が良い
    ・人間と同様に多段階の決定を行える ・人間と協働できるAIとなる 
    等のことを知ることになります。

    現実の測定値の世界は離散値の世界です。この現実を受け入れれば、AIと人間はもっと楽に協働できます。

    お急ぎの方:TCNの真価を直ちに知りたい方は、この記事を読んだ後に、次の記事を読んでください。従来型のNN(ニューラルネットワーク)を理解している方には、TCNの凄さが分かるはずです。

    TCN (Tenda Categorization Network)の実装に躊躇する皆さんに|日月庵のご隠居さん

    上司を説得したい方、ただ時流に乗る教授方の方向性を正したい学生さん:これからのAIが向かうべき方向の説明とTCNの推奨に役立つので、次の記事を読んでください。
    AIのcopilotは、外挿を避け、構造を保持し、説明可能で、安全性を保証できるAIを求める企業には、TCNを強く推奨する|日月庵のご隠居さん

    TCNであるが故の得意技を知りたければ、次の記事を読んでください。
    TCN (Tenda Categorization Network)を用いた階層的認識・決定システム|日月庵のご隠居さん

    TCNによって構成される認識‣決定システムの優位性を、取り急ぎ、理解したい場合のは、次の記事を読んでください。
    TCN (Tenda Categorization Network)を用いた階層的認識・決定システムにおけるリダンダンシーとロバストネス|日月庵のご隠居さん

    TCNの優位さと軽さを知りたい方は、次の記事を読むことをお勧めします。
    TCN (Tenda Categorization Network)を用いた階層的認識・決定システムにおける計算負荷の在来型NN・AIとの対比|日月庵のご隠居さん

    過去に決別できない方は、是非、次の記事をお読みください。
    CNNに慣れ親しんだ方に、またTCN (Tenda Categorization Network)と在来型のNNのハイブリット化を発想する方に|日月庵のご隠居さん

    異常検知の実務に係る方には、次の記事が役立つはずです。
    教師信号を確定できない画像を用いる異常検知機構の構成|日月庵のご隠居さん
    強化学習にTCNを使いたいと発想される方は、次の記事にお進みください。
    強化学習とTCN (Tenda Categorization Network) ―TCNによる構造的強化学習(TCN-RL) ―|日月庵のご隠居さん

    TCN-RLのAI領域での位置づけを知りたい方は、次の記事をお読みください。
    深層RLとTCN-RLの協働体系について|日月庵のご隠居さん

    言語推論器としてのTCN(Tenda Categorization Network)と大規模言語モデル(LLM)― LLMの構造的欠陥の克服のために(第2報)―|日月庵のご隠居さんを読めば、次のことを理解することができるはずです。
    ① TCNは、言語推論のロジックそのものを担う装置(言語推論器)です。
    ② LLMは言語生成器であり、推論器ではないのです。LLMは巨大な計算能力で「次の語を予測」するが、その予測は構造的に揺らぎます。つまり、LLMは推論ロジックを持たないのです。
    ③ TCNが推論ロジックを提供することで、LLMの欠陥を克服できます。TCNは属性構造・典型例・外挿を安定化し、言語推論の「骨格」を提供します。その骨格に、LLMが言語生成の「肉付け」を行うという協働体系を構成することが可能です。

    TCNを用いた階層的画像認識機構 ーカテゴリ数爆発問題に対する一つの回答ー|日月庵のご隠居さんを読めば、カテゴリ数の爆発問題に対して、不安なく、TCNに取組めるはずです。

    長くなりましたが、これからやっと、本報での本題に入ります。

    活性化関数なしで非線形近似を行う方法

    この技術ノートでは、活性化関数を使わずに非線形近似を実現するニューラルネットワークの構成法を紹介しています。

    ポイントは、入力となる属性をすべてカテゴリに分けて、それぞれを独立した one-hot ベクトルとして扱うことです。 こうして入力空間を有限の離散集合に変換すると、浅い線形ネットワークでも複雑な関数を表現できるようになります。提案アーキテクチャでは、各カテゴリに固有の重みと固有のバイアスを割り当てる。特に、バイアスは当該カテゴリが選択されていない場合にも寄与するため、柔軟なパターン依存の応答が可能となる。

    例として、下に示す梅鉢紋の画像に対する異常検知を行いました。 4つの属性を50カテゴリずつに分けて200次元の入力を作成し、活性化関数なし・隠れ層1ユニットの単純なネットワークで、1万枚の評価画像に対して 100% の認識成功率という精度を達成しています。

    画像
    梅鉢紋

    Zenodo に公開した技術ノート全文
    A Technical Note on a Construction Method for Neural Networks Without Activation Functions

    — Nonlinear Approximation Achieved by Complete
    Categorization of Input Attributes —
    Saburo Tenda
    Independent Researcher
    Born: August 11, 1945
    Email: tenda-st-ondo@nifty.com
    March 2026

    Abstract

    This technical note presents a neural network (NN) construction method that achieves nonlinear approximation without using activation functions. The key idea is to fully categorize all input attributes and encode them as independent one-hot vectors, thereby transforming the input domain into a finite discrete set. Within such a domain, even a shallow linear network can realize arbitrary mappings.

    The proposed architecture assigns each category its own weight and its own bias, where the bias contributes even when the corresponding category is not selected. This enables flexible, pattern‑dependent responses beyond those of standard one-hot linear models. Although conceptually related to lookup‑table mappings and indicator‑based methods, this note provides a concise formulation within the NN framework.

    To illustrate the method, an implementation example is presented for anomaly detection on monochrome images of the traditional Japanese Umebachi crest. Four attributes describing conformity to a reference pattern were discretized into 50 categories each, producing a 200‑dimensional input vector composed of four 50‑dimensional one‑hot blocks. A network with only one hidden neuron and no activation functions achieved 100% accuracy on 10,000 evaluation images. This result demonstrates that complete categorization of input attributes enables shallow linear networks to approximate nonlinear functions effectively within finite discrete input spaces.

    1 Introduction

    Neural networks (NNs) are typically regarded as nonlinear function approximators, with activation functions providing the expressive power required for modeling complex relationships. In continuous input spaces, nonlinear activation is indeed essential for universal approximation. However, many real‑world decision processes do not operate on fully continuous domains. Instead, outcomes often depend on a finite number of causal attributes that are effectively treated as discrete categories due to measurement limits or practical conventions.

    If all input attributes are fully categorized and represented as one‑hot vectors, the input domain becomes a finite discrete set. On such a domain, any mapping can be realized by assigning an output value to each valid input pattern. This suggests that nonlinear activation functions are not inherently required for nonlinear approximation when the domain itself is discrete. The essential step is to transform the input space so that the target function becomes representable by a shallow linear architecture.

    This technical note presents a neural network construction method based on this idea. Each input category has its own weight and its own bias, the latter contributing even when the category is absent. A single hidden neuron aggregates these contributions, enabling the network to encode information about both the presence and absence of categories. As a result, the model can realize arbitrary mappings on the finite discrete input space induced by complete categorization.

    An implementation example is provided for anomaly detection on Umebachi crest images. Four attributes were discretized into 50 categories each, yielding a 200‑dimensional input vector composed of four one‑hot blocks. A network with only one hidden neuron and no activation functions achieved perfect accuracy on 10,000 evaluation images.

    This work extends the author’s long‑standing perspective—developed since the 1980s—that complex phenomena can be made designable by transforming them into finite discrete structures, applying this principle to the domain of machine learning.

    2 Proposed Method

    2.1 Categorization of Input Attributes

    Each input attribute is divided into multiple categories, and one input neuron is assigned to each category. The attribute is represented as a one‑hot vector, where the neuron corresponding to the observed category takes the value 1 and all others take 0. This representation has several advantages:

    • All inputs become binary (0 or 1).

    • Differences in measurement units or scales do not affect learning.

    • The input space becomes a finite discrete set.

    Although conceptually simple, the dimensionality grows linearly with the number of categories. Practical applications therefore require careful selection of attributes and discretization granularity. This note focuses on conceptual clarity rather than optimization of category design.

     

    2.2 Network Structure

    The proposed NN consists of three layers:

    • Input layer: one neuron per category

    • Hidden layer: one neuron (extendable if needed)

    • Output layer: one neuron

    No activation functions are used in any layer.

    For each input category, the hidden neuron receives two types of contributions:

    1. A weight that is added only when the category is active (its one‑hot indicator is 1).

    2. A category‑specific bias that is added regardless of whether the category is selected.

    The total input to the hidden neuron is the sum of these contributions over all categories.

    The weight represents the influence of a category when it is selected, while the bias allows each category to contribute even when it is not selected. This structure enables the model to treat the absence of a category as meaningful information—unlike standard one‑hot linear models, in which all‑zero inputs collapse to the same representation. As a result, the network can distinguish different absence patterns and assign different effective contributions accordingly.

    3 Why Nonlinearity Emerges Without Activation Functions

    3.1 Arbitrary Mappings on Finite Discrete Input Spaces

    When all attributes are categorized, the input space becomes a finite set consisting of valid one‑hot patterns. Any function defined on this finite set can be represented by assigning an output value to each possible input pattern.

    The proposed network can assign different effective mappings to different input patterns because:

    • Each category has its own weight and bias.

    • Bias terms contribute even when the category is absent.

    • The hidden layer recombines category contributions.

    Thus, even without activation functions, the network can realize arbitrary nonlinear mappings on a finite discrete input space.

    3.2 Difference from Standard One-Hot Linear Models

    A standard one‑hot linear model computes the output as a single global linear function of the input. It cannot express interactions between categories, nor can it distinguish different patterns of category absence.

    In contrast, the proposed method:

    • Utilizes information from both the presence and absence of categories through category‑specific biases.

    • Recombines category contributions in the hidden layer.

    • Assigns different effective mappings to different input patterns.

    This enables flexible, pattern‑dependent responses that are not possible with a simple linear model.

    4 Implementation Example: Anomaly Detection of Umebachi Crest Images

    4.1 Generation of Normal and Abnormal Images

    Normal and abnormal images were generated in three steps:

    1. A single reference Umebachi crest image was binarized.

    2. Many copied versions were produced, and various transformations were applied:

      • random noise (white or black speckles)

    o   partial defects (scratches or missing segments)

    1. local smearing (dilation or erosion)

    2. small global distortions (warping)

    3. A pseudo‑inspector classified the resulting images as “normal” or “abnormal” based on deviation from the reference.

    A total of 2,000 images were used for training and 10,000 for evaluation.

    4.2 Attribute Definition and Categorization

    Four attribute groups were defined to capture the degree of conformity between each image and the reference pattern. Each attribute was discretized into 50 categories, producing four 50‑dimensional one‑hot vectors, which were concatenated into a 200‑dimensional sparse binary input vector.

    4.3 Network Structure and Training

    The network consisted of:

    • Input layer: 200 neurons

    • Hidden layer: 1 neuron

    • Output layer: 1 neuron

    No activation functions were used.

    Training was performed using gradient descent with mean squared error as the loss function.

    4.4 Results

    On the evaluation dataset of 10,000 images, the anomaly detection accuracy was 100%.

    This result confirms that, when the input space is fully discretized, a shallow linear NN without activation functions can realize mappings that effectively distinguish complex patterns.

    5 Conclusion

    This technical note presented a neural network structure that achieves nonlinear approximation without activation functions, based on complete categorization of input attributes. By converting the input space into a finite discrete set and leveraging category-specific weights and biases, the network attains expressive power beyond that of standard one-hot linear models.

    The implementation example using Umebachi crest images demonstrated perfect anomaly detection accuracy, supporting the claim that arbitrary mappings on finite discrete spaces can be realized by a shallow linear network. The method requires no activation function selection, offers stable gradients, and is straightforward to implement.

    Although the resulting architecture is structurally simple, methodological simplicity does not diminish its theoretical significance. The perspective of fully discretizing input attributes and treating the input domain as a finite set departs from conventional continuous-valued neural network frameworks. This note is intended as a concise technical memorandum highlighting this perspective and its implications.

     以下に、Zenodo に公開した技術ノートのリンクを示します。https://zenodo.org/records/18948814  
    この技術ノートの改訂版がります。
    https://zenodo.org/records/21570741

    おわりに

    瀬戸内の静かな環境で、これまでの研究の延長線上にある「離散化による設計可能性」という視点を、ニューラルネットワークに応用してみた試みです。
    今後は、気が向けば、研究の背景にある考え方なども少しずつ書いていこうと思います。
    今、楽しいことの一つは、このニューラルネットワークを課題のために実装することです。いまだに、Fortoran95をPC上で使っています。これも、ダイナミックアロケーションが出来るからです。私の青春時代からみれば、夢の世界で遊んでいるようです。他に、盆栽や錦鯉の世話で遊んでいますよ。

     

     
     
    日月庵のご隠居さんです。 瀬戸内の島に建てた別荘で暮らしています。 海まで10メートルの高台から、海に映る日の出と月の出を楽しむ日々 最近はNN研究ノートをZenodoに公開しました。

    あなたへのおすすめ