The Wayback Machine - https://web.archive.org/web/20240618203922/https://www.geeksforgeeks.org/lamarckian-evolution-and-baldwin-effect-in-evolutionary/
Open In App

Lamarckian Evolution and Baldwin Effect in Evolutionary

Last Updated : 24 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Lamarckian Evolution Theory:

The Lamarckian theory states the characteristic individual acquire during their lifetime pass them to their children. This theory is named after French biologist Jean Baptiste Lamarck. According to Lamarck’s theory, learning is an important part of the evolution of species(or for our purpose in the Evolutionary algorithm). This theory is discredited in a biological context but can be used in genetic algorithms in machine learning.

Baldwin Effect:

Baldwin proposed that individual learning can explain evolutionary phenomena that appear to require Lamarckian inheritance of acquired characteristics. The ability of individuals to learn can guide the evolutionary process. In effect, learning smooths the fitness landscape, thus facilitating evolution.

 Baldwin Effect is first demonstrated by Hinton and Nolan in the context of machine learning in 1987. They take simple Neural Networks (NNs). In one experiment they take NNs of fixed weights while other NNs set to trainable. They concluded that:

  • When there is no individual learning, the population(collection of NNs) failed to improve over time.
  • When learning is applied in early stages, the population contains many individuals with many trainable weights, but in later stages, it achieved high fitness with the number of trainable weights decreases in individuals.

G-prop algorithm:

 G-Prop is an evolutionary hybrid algorithm. It is a hybrid of Backpropagation (BP) and Multi-layer Perceptron (MLP). Below is the G-Prop algorithm.

  • Generate the initial model with random weight values and hidden layer sizes uniformly distributed from 2 to a maximum of a given value.
  • For G generations:
    • Evaluate the new individuals: train them using the training set and obtain their fitness according to the number of correct classifications on the validation set and the hidden layer size.
    • Select the n best individuals in the population based on the value fitness function and combine them, using mutation, crossover, addition, elimination, and substitution of hidden neurons.
    • Replace the n worst individuals by the new individuals.
  • Use the best individuals on the test set to obtain a testing error.

Fitness Function: The fitness function is defined as the ability to classify/approximate the validation set to segregate the best individual while training for each generation. In the case of two individuals having the same fitness function, the individual with the lowest hidden layer parameter terms better because the number of parameters is proportional to the speed of training.

  • The Lamarckian approach uses no special fitness function, instead, it uses a local search genetic operator (similar to Quick Propagation) that is designed to improve the individuals, saving the individual trained weights back to the population.
  • For the Baldwin effect, the process of using fitness function is followed:
    • In the first step, we calculate the classification/ approximation ability of an individual on the validation set before training.
    • Then it is trained and its ability is calculated using the following criteria:
      • The best individual (MLP/ANN) is that with higher classification/approximation ability after training.
      • If both MLPs show the same accuracy. Then the best is that whose classification/approximation ability before training is higher, this is because the intuition is that the MLP is more likely to have high accuracy when trained again.
      • If both MLPs has equal accuracy before and after training, then the best model is the smaller (the model which has less trainable parameters).

Results and Conclusion:


Results on Glass1a dataset



Error and Size comparison b/w Lamarckian and Baldwin Effect when learned for 300 generations

  • The author concluded that the Lamarckian strategy finds a suitable individual (MLP) in the early generations which remains the best during the whole simulation, thus evolution stops. While the Baldwin effect can be better than the Lamarckian approach but it requires more generations.
  • It is also noticed from the above conclusion that the neural networks generated by the Lamarckian strategy are small thus requires less time to train, predict, and also to design it.
  • Another important result is that the Lamarckian operator improves the fitness function in early generations. This is due to the elitist algorithm in which some part of the fittest individual is copied to the next generation. The individuals (on which the fittest individual data copied) can obtain an advantage in relation to the remaining members of the population and will continue to be the best individuals among the population until the end of the simulation

Similar Reads

Fatman Evolutionary Model in Social Networks
Prerequisite: Introduction to Social Networks In the Fatman evolutionary model, there are 3 main concepts to make an evolutionary model i.e Homophily, Social influence, and closure. Homophily- People who are similar to each other, they tend to make friends with each other.Social Influence- People change their behavior and properties because of soci
4 min read
The Hathaway Effect : Does The Anne Hathaway Effect Really True?
In today's times, Machine Learning is a technology that is being used in more industrial domains than ever before. One of the primary uses of Machine Learning is to predict the future using the existing data. The biggest industry involving predicting the future is the Stock Market Industry and naturally, Stock Market Brokers are incorporating Machi
3 min read
History and Evolution of NLP
As we know Natural language processing (NLP) is an exciting area that has grown at some stage in time, influencing the junction of linguistics, synthetic intelligence (AI), and computer technology knowledge. This article takes you on an in-depth journey through the history of NLP, diving into its complex records and monitoring its development. From
13 min read
Effect of Bias in Neural Network
Neural Network is conceptually based on actual neuron of brain. Neurons are the basic units of a large neural network. A single neuron passes single forward based on input provided. In Neural network, some inputs are provided to an artificial neuron, and with each input a weight is associated. Weight increases the steepness of activation function.
3 min read
Effect of Google Quantum Supremacy on Data Science
Prerequisite: Know About Google's Quantum Supremacy In this article, we will discuss what are the benefits of Google Quantum Supremacy claim and what are the problems that can be solved using this meanwhile we will also discuss our role as a data scientist in Quantum Computing and where do they fit in this complete conundrum. So let's get started w
7 min read
Compare effect of different scalers on data with outliers in Scikit Learn
Feature scaling is an important step in data preprocessing. Several machine learning algorithms like linear regression, logistic regression, and neural networks rely on the fine-tuning of weights and biases to generalize better. However, features with different scales could prevent such models from performing well as features with higher values dom
7 min read
Need of Data Structures and Algorithms for Deep Learning and Machine Learning
Deep Learning is a field that is heavily based on Mathematics and you need to have a good understanding of Data Structures and Algorithms to solve the mathematical problems optimally. Data Structures and Algorithms can be used to determine how a problem is represented internally or how the actual storage pattern works & what is happening under
6 min read
Find row and column index of maximum and minimum value in a matrix in R
In this article, we will discuss how to find the maximum and minimum value in any given matrix and printing its row and column index in the R Programming language. Example: Input: 11 -9 36 20 1 81 13 99 77 Output: maximum value: 99 row col 3 2 minimum value: -9 row col 1 2Finding Maximum value:In the code below, we have created a sample matrix, in
4 min read
Black and white image colorization with OpenCV and Deep Learning
In this article, we'll create a program to convert a black & white image i.e grayscale image to a colour image. We're going to use the Caffe colourization model for this program. And you should be familiar with basic OpenCV functions and uses like reading an image or how to load a pre-trained model using dnn module etc. Now let's discuss the pr
3 min read
How to Implement Softmax and Cross-Entropy in Python and PyTorch
Multiclass classification is an application of deep learning/machine learning where the model is given input and renders a categorical output corresponding to one of the labels that form the output. For example, providing a set of images of animals and classifying it among cats, dogs, horses, etc. For this purpose, where the model outputs multiple
7 min read