1 / 43

The Particle Swarm: Theme and Variations on Computational Social Learning

The Particle Swarm: Theme and Variations on Computational Social Learning. James Kennedy Washington, DC Kennedy.Jim@gmail.com. The Particle Swarm. A stochastic, population-based algorithm for problem-solving Based on a social-psychological metaphor

Download Presentation

The Particle Swarm: Theme and Variations on Computational Social Learning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. The Particle Swarm: Theme and Variations on Computational Social Learning James Kennedy Washington, DC Kennedy.Jim@gmail.com

  2. The Particle Swarm A stochastic, population-based algorithm for problem-solving Based on a social-psychological metaphor Used by engineers, computer scientists, applied mathematicians, etc. First reported in 1995 by Kennedy and Eberhart Constantly evolving

  3. The Particle Swarm Paradigm is a Particle Swarm A kind of program comprising a population of individuals that interact with one another according to simple rules in order to solve problems, which may be very complex. It is an appropriate kind of description of the process of science.

  4. Two Spaces The social network topology, and The state of the individual as a point in a Cartesian coordinate system Moving point = a particle A bunch of them = a swarm Note memes: “evolution of ideas” vs. “Changes in people who hold ideas”

  5. Cognition as Optimization Minimizing or maximizing a function result by adjusting parameters Cognitive consistency theories, incl. dissonance Parallel constraint satisfaction Feedforward Neural Nets Particle swarm describes the dynamics of the network, as opposed to its equilibrium properties

  6. Mind and Society Minsky: Minds are simply what brains do. No: minds are what socialized human brains do. … solipsism …

  7. Dynamic Social Impact Theory Nowak, A., Szamrej, J., & Latané, B. (1990). From private attitude to public opinion: A dynamic theory of social impact. Psychological Review, 97, 362-376. i=f(SIN) Computer simulation – 2-d CA Each individual is both a target and source of influence “Euclidean” neighborhoods Binary, univariate individuals “Strength” randomly assigned Polarization

  8. Particle Swarms: The Population To understand the particle swarm, you have to understand the interactions of the particles One particle is the stupidest thing in the world The population learns Every particle is a teacher and a learner Social learning, norms, conformity, group dynamics, social influence, persuasion, self-presentation, cognitive dissonance, symbolic interactionism, cultural evolution …

  9. Neighborhoods: Population topology Gbest Lbest (All N=20) Particles learn from one another. Their communication structure determines how solutions propagate through the population.

  10. von Neumann (“Square”) Topology Regular, easy to understand, works adequately with a variety of versions – perhaps not the best for any version, but not the worst.

  11. The Particle Swarm: Pseudocode

  12. Pseudocode Chunk #1 CurrentEvali = eval() If CurrentEvali < pbesti then do pbesti = CurrentEvali For d=1 to Dimension pid =xid Next d If CurrentEval i < pbestgbest then gbest=i End if Can come at top or bottom of the loop In gbest topology, g=gbest It’s useful to track the population best

  13. Pseudocode Chunk #2 Constriction Type 1”: W=0.7298, AC=W*2.05=1.496 Clerc 2006; W=0.7, AC=1.43 Inertia: W might vary with time, in (0.4, 0.9), etc., AC=2.0 typically Note three components of velocity Vmax - not necessary, might help Q: Are these formulas arbitrary?

  14. Some Standard Test Functions Rosenbrock Sphere Rastrigin Schaffer’s f6 Griewank

  15. Test Functions: Typical Results

  16. Step-Size Depends on Neighbors pi=0 pg=0 Movement of the particle through the search space is centered on the mean of pi and pg on each dimension, and its amplitude is scaled to their difference. Exploration vs. exploitation: automatic pi=+2 pg=-2 pi=+0.1 pg=-0.1 … “the box” …

  17. Search distribution – Scaled to Neighborhood Previous bests constant at +10 A million iterations Q: What is the distribution of points that are tested by the particle?

  18. “Bare Bones” particle swarm x = G((pi + pg)/2, abs(pi – pg)) G(mean, s.d.) is Gaussian RNG Simplified (!) Works pretty well, but not as good as canonical.

  19. Kurtosis Peaked -- fat tails Tails trimmed Empirical observations with p’s held constant Not trimmed

  20. Kurtosis High peak, fat tails Mean moments of the canonical particle swarm algorithm with previous bests set at +20, varying the number of iterations.

  21. Bursts of Outliers “Volatility clustering” seems to typify the particle’s trajectory

  22. Adding Bursts of Outliers to Bare Bones PSO Griewank30 Sphere Rosenbrock Griewank10 f6 Rastrigin (Bubbled line is canonical PS)

  23. “The Box” Where the particle goes next depends on which way it was already going, the random numbers, and the sign and magnitude of the differences. The area where it can go it crisply bounded, but the probability inside the box is not uniformly dense.

  24. Empirical distribution of means of random numbers from different ranges Simulate with uniform RNG, trim tails

  25. TUPS: Truncated-Uniform Particle Swarm Start at current position: x(t) Move weighted amount same direction: W1× (x(t) – x(t-1)) Find midpoint of extremes, and difference between them, on each dimension (the sides of the box) Weight that, add it to where you are, call it the “center” Generate uniformly distributed random number around the center, range slightly less than the length of the side That’s x(t+1)

  26. TUPS: Truncated-Uniform Particle Swarm

  27. Binary Particle Swarms S(x) = 1 / (1 + exp(-x)) v = [the usual] if rand() < S(v) then x = 1 else x = 0 Transform velocity with sigmoid function in (0 .. 1) Use it as a probability threshold Though this is a radically different concept, the principles of particle interaction still apply (because the power is in the interactions).

  28. FIPS -- The “fully-informed” particle swarm (Rui Mendes) v(t+1) = W1 × v(t) + Σ(rand() × W2/K × (pk – x(t))) x(t+1)=x(t)+v(t+1) (K=number of neighbors, k=index of neighbor, W2 is a sum.) Note that pi is not a source of influence in FIPS. Doesn’t select best neighbor. Orbits around the mean of neighborhood bests. This version is more dependent on topology.

  29. Deconstructing Velocity Because x(t+1) = x(t) + v(t+1) we know that on the previous iteration, x(t) = x(t-1) + v(t) So we can find v(t) v(t) = x(t) – x(t-1) and can substitute that into the formula, to put it all in one line: xid (t+1) = xid (t) + W1(xid (t) - xid(t-1)) + (rand()×(W2)×(pid - xid(t)) + (rand()×(W2)×(pgd - xid(t))

  30. Generalization and Verbal Representation We can generalize the canonical and FIPS versions: xid (t+1) = xid (t) + W1(xid (t)- xid (t-1)) + Σ(rand()×(W2/K)×(pkd - xid(t))) … or in words … NEW POSITION = CURRENT POSITION + PERSISTENCE + SOCIAL INFLUENCE

  31. Social Influence has two components: Central Tendency, and Dispersion NEW POSITION= CURRENT POSITION + PERSISTENCE + SOCIAL CENTRAL TENDENCY + SOCIAL DISPERSION … Hmmm, this gives us something to play with …!

  32. Gaussian “Essential” Particle Swarm Note that only the last term has randomness in it – the rest is deterministic meanp=(pid + pgd)/2 disp=abs(pid – pgd)/2 xid (t+1)= xid (t) + W1(xid (t)- xid (t-1)) + W2*(meanp – xid) + G(0,1)*disp NEW POSITION= CURRENT POSITION + PERSISTENCE + SOCIAL CENTRAL TENDENCY + SOCIAL DISPERSION G(0,1) is a Gaussian RNG

  33. Gaussian Essential Particle Swarm xid (t+1)= xid (t) + W1(xid (t)- xid (t-1)) + W2*(meanp – xid) + G(0,1)*disp

  34. Various Probability Distributions There is clearly room for exploration here.

  35. Gaussian FIPS Fully-informed – uses all neighbors FIPScenter= mean of (pkd – xid) FIPSrange = mean of abs(pid - pkd) xid= xid + W1 × (xid(t)-xid(t-1)) + W2 × FIPScenter + G(0,1) × (FIPSrange/2);

  36. Gaussian FIPS Gaussian FIPS compared to Canonical PSO, square topology.

  37. Gaussian FIPS vs. Canonical PSO Modified Bonferroni correction t(38), alpha=0.05 Ref: Jaccard, J. & Wan, C. K. (1996). LISREL approaches to interaction effects in multiple regression. Thousand Oaks, CA: Sage Publications.

  38. Mendes: Two Measures of Performance Color and shape indicate parameters of the social network – degree, clustering, etc.

  39. Best Topologies FIPS versions Best-neighbor versions

  40. Worst FIPS Sociometries and Proportions Successful

  41. Understanding the Particle Swarm Lots of variations in particle movement formulas Teachers and learners Propagation of knowledge is central Interaction method and social network topology … interact It’s simple, but difficult to understand

  42. In Sum • There is some fundamental process • Uses information from neighbors • Seems to require balance between “persistence” and “influence” • Decomposing a version we know is OK • We can understand it • We can improve it • Particle Trajectories • Arbitrary? -- not quite • Can be replaced by RNG (trajectory is not the essence) • How it works • It works by sharing successes among individuals • Need to look more closely at the sharing phenomenon itself

  43. Send me a note Jim Kennedy Kennedy.Jim@gmail.com

More Related