forgetting to learn logic programs
play

Forgetting to learn logic programs Andrew Cropper University of - PowerPoint PPT Presentation

Forgetting to learn logic programs Andrew Cropper University of Oxford Program induction/synthesis Examples Learner Background knowledge Program induction/synthesis Examples Learner Computer program Background knowledge Examples


  1. Forgetting to learn logic programs Andrew Cropper University of Oxford

  2. Program induction/synthesis Examples Learner Background knowledge

  3. Program induction/synthesis Examples Learner Computer program Background knowledge

  4. Examples input output dog g sheep p chicken ?

  5. Examples Background knowledge head input output tail dog g empty sheep p chicken ?

  6. Examples Background knowledge head input output tail dog g empty sheep p chicken ? def f(a): t = tail(a) if empty(t): return head(a) return f(t)

  7. Examples Background knowledge head input output tail dog g empty sheep p chicken n def f(a): t = tail(a) if empty(t): return head(a) return f(t)

  8. Examples Background knowledge head input output tail dog g empty sheep p chicken n f(A,B):-tail(A,C),empty(C),head(A,B). f(A,B):-tail(A,C),f(C,B).

  9. Background knowledge defines the hypothesis space

  10. Where does background knowledge come from?

  11. Hand-crafted rules [almost every approach]

  12. Unsupervised learning ALPS [Duman č i ć et al. IJCAI 2019] Playgol [Cropper. IJCAI 2019]

  13. Supervised multi-task learning Use knowledge gained from solving one problem to help solve a different problem Metabias [Lin et al. ECAI 2014] Dreamcoder [Ellis et al. NIPS 2018]

  14. Why does it work? We increase branching but reduce depth

  15. Problem: big branching factor

  16. Idea Forget things

  17. ILP problem Given: • background knowledge B • positive examples E+ • negative examples E-

  18. ILP problem Return: A hypothesis H that with B entails E+ and not E+

  19. Forgetting problem Given background knowledge B Return B’ ⊂ B from which you can still learn the target hypothesis

  20. Why? Reduce branching and sample complexity

  21. How? Forgetgol , a multi-task ILP system based on Metagol, which takes a forgetting function as input

  22. Forgetgol Continually expands and shrinks its hypothesis space

  23. Syntactical forgetting (lossless) 1. Unfold each induced clause to remove invented predicate symbols 2. Check whether a syntactically duplicate clause already exists

  24. Statistical forgetting Assigns a cost to each clause based on: 1. How difficult it was to learn 2. How likely it is to be reused

  25. Does it work? Q. Can forgetting improve learning performance?

  26. We compare: Metabias : remember everything Metagol: remember nothing Forgetgol syn : syntactical forgetting Forgetgol stat : statistical forgetting

  27. Robot planning

  28. What happened? Metabias rarely induces a program with more than two clauses because of program reuse

  29. Lego building

  30. What happened? Less reuse (and greater search depth) so forgetting has more effect

  31. Conclusions Forgetting can improve learning performance when given >10,000 tasks, but, surprisingly, not by much

  32. Limitations and future work Better forgetting methods Larger and more diverse datasets Concept shift Recency Other program induction systems

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