human competitiveness of genetic programming for spectrum
play

Human Competitiveness of Genetic Programming for Spectrum Based - PowerPoint PPT Presentation

Human Competitiveness of Genetic Programming for Spectrum Based Fault Localisation Shin Yoo 1 , Xiaoyuan Xie 2 , Fei-Ching Kuo 3 , Tsong Yueh Chen 3 , Mark Harman 4 1: KAIST, Republic of Korea 2: Wuhan University, China 3: Swinburne University


  1. Human Competitiveness of Genetic Programming for Spectrum Based Fault Localisation Shin Yoo 1 , Xiaoyuan Xie 2 , Fei-Ching Kuo 3 , Tsong Yueh Chen 3 , Mark Harman 4 1: KAIST, Republic of Korea 2: Wuhan University, China 3: Swinburne University of Technology, Australia 4: University College London/Facebook, UK HUMIES@GECCO 2017

  2. Automated Debugging • Debugging is hard for humans: we increasingly have to work on and with large code base written by others. • Debugging is hard for machines : automated repair techniques rely heavily on automated fault localisation.

  3. Spectrum Based Fault Localisation Program

  4. Spectrum Based Fault Localisation Program Tests

  5. Spectrum Based Fault Localisation Program Spectrum Tests

  6. Spectrum Based Fault Localisation e p e f − e p + n p + 1 Program Spectrum Risk Evaluation Formula Tests

  7. Spectrum Based Fault Localisation e p e f − e p + n p + 1 Program Spectrum Risk Evaluation Formula Tests Ranking

  8. Spectrum Based Fault Localisation e p e f − e p + n p + 1 Program Spectrum Risk Evaluation Formula Higher ranking = Fewer statements to check Tests Ranking

  9. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  10. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  11. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  12. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • e f 1 0 0 2 0.00 9 s 3 • e f + n f 1 0 0 2 0.00 9 s 4 • Tarantula = e f e p 1 0 0 2 0.00 9 s 5 e p + n p + • e f + n f 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  13. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  14. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  15. Spectrum Based Fault Localisation Structural Test Test Test Spectrum Tarantula Rank Elements t 1 t 2 t 3 e p e f n p n f 1 0 0 2 0.00 9 s 1 • 1 0 0 2 0.00 9 s 2 • 1 0 0 2 0.00 9 s 3 • 1 0 0 2 0.00 9 s 4 • 1 0 0 2 0.00 9 s 5 • 1 1 0 1 0.33 4 s 6 • • s 7 (faulty) 0 2 1 0 1.00 1 • • 1 1 0 1 0.33 4 s 8 • • 1 2 0 0 0.50 2 s 9 • • • Result P F F

  16. (Empirical) State of the Art (circa 2012) Over 30 formulæ in the literature, manually developed over a decade’s time: none guaranteed to perform best for all types of faults

  17. (Empirical) State of the Art (circa 2012) e f 2 e f e f + n p + 2( e p + n f ) e f + n f + e p 2( e f + n p ) e f 2( e f + n p ) + e p + n f e f e f + n f + e p e f + 2( n f + e p ) Over 30 formulæ in the literature, e f manually developed over a decade’s time: e f + n p n f + e p none guaranteed to perform best for all types of faults n f + e p e f 2 e f e f + n p 2 e f + n f + e p e f + n f + e p + n p e f + n f + e p + n p e f + n p − n f − e p 1 e f e f 2( + ) e f e f + n f + e p + n p e f + n f e f + e p e f + n f e p e f e p + n p + e f + n f

  18. Evolving Formulæ e p e f − e p + n p + 1 Program Spectrum Risk Evaluation Formula Tests Ranking

  19. Evolving Formulæ Program Spectrum P S e p e f − Tests e p + n p + 1 P S Risk Evaluation Formula Training Data Ranking

  20. Evolving Formulæ Program Spectrum P S GP Tests P S Training Data Ranking

  21. Evolving Formulæ Program Spectrum P S GP Tests P S Training Data Fitness (minimise)

  22. Evolving Formulæ e 2 f (2 e p + 2 e f + 3 n p ) Program Spectrum P S GP Tests e 2 f ( e 2 f + √ n p ) P S . . . Training Data Fitness (minimise)

  23. Our Claims

  24. Our Claims GP evolved SBFL formulas are provably better than many human designs.

  25. Our Claims GP evolved SBFL formulas are provably better than many human designs. We proved that no human can surpass what GP evolved , ever.

  26. Our Claims GP evolved SBFL formulas are provably better than many human designs. We proved that no human can surpass what GP evolved , ever. GP has transformed the future research on fault localisation.

  27. Crash Course into Our Proof System Statement Ranking To show that Y dominates X, we show that: S Y B S X S Y B ⊆ S X B ∧ S X A ⊆ S Y B A S Y F S X (assuming that we break ties F in F sets consistently) S Y Equivalence is defined as: S X A A X ↔ Y ⇐ ⇒ X → Y ∧ Y → X Formula X Formula Y

  28. Crash Course into Our Proof System • Maximal Groups: a set of formulas that are equivalent to each other, but are strictly better to some others • Previous work theoretically proved the existence of maximal groups with respect to the space of known formulas: • ER1 (contains 2 manually designed formulas) and ER5 (contains 3 manually designed formulas)

  29. GP’s Human Competitiveness • GP expanded the known Name Formula expression ⇢ − 1 if e f <F maximal groups: Naish1 if e f = F P − e p ER1’ e p Naish2 e f − e p + n p +1 • GP added one additional 1 GP13 e f (1 + 2 e p + e f ) formula to ER1 Wong1 e f ER5 e f Russel & Rao e f + n f + e p + n p ⇢ 0 • GP founded three new if e f <F Binary 1 if e f = F maximal groups, each 2( e f + √ n p ) + √ e p GP02 containing one GP-evolved q | e 2 f − √ e p | GP03 formula p GP19 | e p − e f + n f − n p | e f

  30. GP’s Human Competitiveness • We have proved that there is no greatest formula (i.e. one that outperforms all maximals): • GP evolved the best possible formula. • No future human endeavour can surpass GP’s results.

  31. GP’s Influence on Future Research • Manually designing SBFL formulae is no longer productive . • We need richer information than program spectrum: GP can deal with increased complexity better than human. • GP continues to produce state-of-the-art localisation results , outperforming SVMs (ISSTA 2017).

  32. Automated Debugging Debugging is hard. • Debugging is hard for humans: we increasingly have to work on and with large code base written by others. • Debugging is hard for machines : automated repair techniques rely heavily on automated fault localisation.

  33. Automated Debugging Debugging is hard. • Debugging is hard for humans: we increasingly have to work on and with large code base written by others. • Debugging is hard for machines : automated repair techniques rely heavily on automated fault localisation. GP’s Human GP-evolved fault localisation Competitiveness • GP expanded the known Name Formula expression techniques were provably better ⇢ − 1 if e f <F maximal groups: Naish1 P − e p if e f = F ER1’ Naish2 e p e f − e p + n p +1 • GP added one additional 1 GP13 e f (1 + 2 e p + e f ) formula to ER1 Wong1 e f ER5 e f Russel & Rao e f + n f + e p + n p ⇢ 0 • GP founded three new than over a decade’s manual work. if e f <F Binary 1 if e f = F maximal groups, each GP02 2( e f + √ n p ) + √ e p containing one GP-evolved q GP03 | e 2 f − √ e p | formula p GP19 e f | e p − e f + n f − n p |

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend