Varun Gangal, CMU Based on the work of Matko Bosnjak et al
1
Programming With A Differentiable Forth Interpreter Varun Gangal, - - PowerPoint PPT Presentation
Programming With A Differentiable Forth Interpreter Varun Gangal, CMU Based on the work of Matko Bosnjak et al 1 Whats Forth? Kind of like a cross between Python and Assembly High-level imperative programming language BUT Can
Varun Gangal, CMU Based on the work of Matko Bosnjak et al
1
2
3
4
5
6
7
8
9
10
11
12
Just focus on the green lines for now! - Other 2 are sketches
Before the function call; Loop
13
Inside the Bubble Routine
14
Primitives - read, write, shift-increment, shift-decrement
15
Composites -push, pop
16
Composites - OVER, DUP, SWAP, IF.. ELSE
17
Sketches - Partial transition funcs, enc and dec specified
18
Execution - use program counter as attention vector
19
Traces - Discrete Init, later everything’s soft
20
Optimizations - For shorter gradient paths, faster training
21
22
23
24
25
Key part of Word Problem Sketch
26
27
28
Sketch-based Models generalize well across lengths - Sorting
Sketch-based Models generalize well across lengths - Adding
29
Do the optimizations help?
30
How the PC was trained
31
32