Skip to content

Neural Network

I. Combining biological inspiration with mathematics — overview of Neural Network

    %%{init: { 'theme': 'base', 'themeVariables': { 'edgeLabelBackground': '#fff' }}}%%
flowchart LR
    A1["Simple data input"] -- "Non-linear activation and weighted summation" --> B1["Complex pattern recognition and inference"]
    style A1 fill:#f9f9f9,stroke:#333,stroke-width:1px
    style B1 fill:#e1f5fe,stroke:#01579b,stroke-width:1px
  

Definition: an artificial neural network algorithm that imitates how neurons operate in the human brain, learning non-linear patterns in data through multiple layers of nodes connected by weights ( Weights )

Characteristics: ( Non-linearity ) able to model complex non-linear relationships through activation functions ( Universal Approximator ) theoretically holds the universality ( Universal Approximator ) to approximate any complex function ( Parallel Processing ) a structure in which many computations can run simultaneously, making it well suited to GPU acceleration

II. Layer structure and core mechanisms of Neural Network

A. Signal propagation and the training process of a neural network

    graph TD
    A2["Data input"] --> B2["Forward Propagation"]
    B2 --> C2["Loss computation\n(Loss Function)"]
    C2 --> D2["Backpropagation"]
    D2 --> E2["Weight update\n(Optimizer)"]
  

B. Core components and detailed functions

CategoryKey ElementDetailed Description
Neuron (Node)PerceptronThe basic unit that takes an input, multiplies it by a weight, and adds a bias ( Bias )
Activation FunctionActivation FunctionTransforms the output signal to introduce non-linearity (e.g., ReLU, Sigmoid, Softmax)
Loss FunctionLoss FunctionMeasures the difference between the true value and the predicted value (e.g., MSE, Cross-Entropy)
BackpropagationBackpropagationPropagates the error at the output layer back toward the input layer using the chain rule ( Chain Rule )
OptimizationOptimizerUpdates the weights to minimize loss (e.g., SGD, Adam, RMSprop)

III. Limitations and solutions of Neural Network

ItemProblem (Limit)Solution
Vanishing GradientVanishing GradientUse the ReLU activation function and apply Batch Normalization
OverfittingOverfittingDropout, L1/L2 Regularization, Early Stopping
Black BoxExplainabilityXAI (Explainable AI) techniques and attention ( Attention ) map analysis

Technology trends: as neural networks addressed the challenges that arise as they grow deeper, they evolved into Deep Learning, and today the Transformer architecture serves as the core underlying technology for large language models ( LLM )