Papatpong commited on
Commit
ea46e33
路
verified 路
1 Parent(s): 912c4f0

Upload 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -49
  2. walker_architecture.pdf +0 -0
  3. walker_trajectory.pdf +0 -0
README.md CHANGED
@@ -39,57 +39,15 @@ This is a discrete derivative of the hidden state. Attention averages over conte
39
 
40
  Attention can **look around the path**. Walker also **walks along it**.
41
 
42
- ## Architecture
43
 
44
- ### Whole model
45
 
46
- ```mermaid
47
- flowchart LR
48
- T["Input tokens"] --> E["Token embedding"]
49
- E --> B["16 blocks<br/>(see below)"]
50
- B --> N["Final norm"]
51
- N --> H["Language-model head"]
52
- H --> P["Next-token logits"]
53
- ```
54
 
55
- ### Inside one block
56
-
57
- Every block has the **Walk pathway**. Attention is present in **every fourth block**; the other blocks use the Walk pathway in its place. This swap keeps the parameter count the same.
58
-
59
- ```mermaid
60
- flowchart TB
61
- X["Block input x"] --> NRM["Normalise"]
62
-
63
- subgraph WALK["Walk pathway (every block)"]
64
- direction TB
65
- LOC["Local motion<br/>velocity at strides 1, 2, 4<br/>turn = second difference"]
66
- GLO["Global dynamics<br/>cumulative displacement<br/>moving average<br/>long strides<br/>path energy<br/>total turning"]
67
- MIX["Cross-dimension mixing"]
68
- CUR["Curvature gate<br/>scale by 1 + tanh(纬)路魏"]
69
- LOC --> MIX
70
- GLO --> MIX
71
- MIX --> CUR
72
- end
73
-
74
- subgraph ATTN["Attention (every 4th block)"]
75
- SA["Causal self-attention"]
76
- end
77
-
78
- NRM --> LOC
79
- NRM --> GLO
80
- NRM --> SA
81
-
82
- CUR --> ADD(("+"))
83
- SA --> ADD
84
- X --> ADD
85
- ADD --> FF["Feed-forward"]
86
- FF --> Y["Block output"]
87
-
88
- classDef walk fill:#d4f5d4,stroke:#2e7d32;
89
- classDef attn fill:#d4e6f5,stroke:#1565c0;
90
- class LOC,GLO,MIX,CUR walk;
91
- class SA attn;
92
- ```
93
 
94
  ### What the Walk pathway computes
95
 
@@ -188,4 +146,4 @@ $$
188
  \boxed{\text{Walker}=\text{Attention}+\text{Trajectory Modeling}}
189
  $$
190
 
191
- **Attention:** *what information is relevant?* **Walker:** *how is the representation moving?*
 
39
 
40
  Attention can **look around the path**. Walker also **walks along it**.
41
 
42
+ ![The trajectory signals: velocity, multi-step displacement and the turning angle](assets/walker_trajectory.png)
43
 
44
+ **Figure 2.** The hidden states form a path. Walker reads its velocity $d^{(1)}$, its displacement over longer strides $d^{(2)}, d^{(4)}$, and how sharply it bends ($\theta$).
45
 
46
+ ## Architecture
 
 
 
 
 
 
 
47
 
48
+ ![Walker architecture: (a) the full model, (b) one Walker block](assets/walker_architecture.png)
49
+
50
+ **Figure 1.** (a) Walker is a stack of 16 blocks between a token embedding and a language-model head. (b) Inside a block, the Walk pathway (green) runs in every block and attention (blue) runs in every fourth block, both added to the residual stream. A feed-forward sub-layer follows.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  ### What the Walk pathway computes
53
 
 
146
  \boxed{\text{Walker}=\text{Attention}+\text{Trajectory Modeling}}
147
  $$
148
 
149
+ **Attention:** *what information is relevant?* **Walker:** *how is the representation moving?*
walker_architecture.pdf ADDED
Binary file (43.1 kB). View file
 
walker_trajectory.pdf ADDED
Binary file (24 kB). View file