Md. Asif Uddin

    Proposition 3I.9.P0332 of 100 in the corpus

    A convolution over a sequence pays for range with depth and dilation.

    A convolutional layer evaluates known input positions in parallel. Its receptive field is finite; increasing the dilation schedule extends that field without a recurrent state.

    Fifteen input positions reach one dilated-convolution outputA centred width-three convolution uses dilations one, two and four. Tracing the selected top output backward gives three positions in layer two, seven in layer one, and all fifteen input positions. Dim nodes are not on a path to that output. A causal version shifts the window left.inputlayer 1dil 1 · span 3layer 2dil 2 · span 7layer 3dil 4 · span 15Trace the selected output downward: each layer reads three positions below.Centred windows shown. A causal window reads only the present and past.
    Fig. 3 — Type D · Comparison — Paths from fifteen inputs to one selected output through width-three centred convolutions with dilations 1, 2 and 4. A causal stack shifts this window into the past. Positions within each layer can be evaluated in parallel when the preceding layer is available.

    Replace the running state with a window

    A recurrent cell reads the previous state. A sequence convolution reads a window from the preceding layer. If that layer’s inputs are already known, all positions in the next layer can be evaluated together.

    For a causal kernel of width kk and dilation dd, the output at position tt reads t,t−d,…,t−(k−1)dt,t-d,\ldots,t-(k-1)d. No later input enters. Left padding supplies the boundary convention. A centred window instead reads both sides and is suitable only when that future context is allowed.

    The diagram is a centred-window view of receptive-field growth, not a causal language-model mask. The span calculation is the same; the alignment differs.

    Let RℓR_\ell be the receptive-field span after layer ℓ\ell, with stride one and no pooling. Each layer extends the span by (k−1)dℓ(k-1)d_\ell. Starting at R0=1R_0=1 and adding the increments gives

    RL=1+(k−1)∑ℓ=1Ldℓ,dℓ=2ℓ−1  ⟹  RL=1+(k−1)(2L−1).\begin{aligned} R_L&=1+(k-1)\sum_{\ell=1}^L d_\ell,\\ d_\ell=2^{\ell-1} &\implies R_L=1+(k-1)(2^L-1). \end{aligned}
    (I.9.8)

    This is the span in original input positions, for a stride-one stack.

    Equation (I.9.8) gives RL=1+L(k−1)R_L=1+L(k-1) with no dilation. At width three and dilations 1,2,41,2,4, the spans are 3,7,153,7,15. This schedule covers every offset inside the span. An arbitrary dilation schedule need not: using only even dilations leaves odd offsets unseen. I.9.X10 distinguishes span from actual coverage.

    The full convolution operation belongs to Chapter I.11. Here it is a comparison of routes by which distant inputs can affect one another.

    Path length is not the same as total work

    For a length-TT sequence and hidden width HH, the following comparison fixes the model and asks what happens as TT grows.

    ComputationSequential stages with known inputsHow distant positions communicate
    Dense nonlinear RNNTT cell stepsA chain with length proportional to separation
    Width-kk dilated convolutionLL layersThrough a receptive field that can grow exponentially in LL
    Dense self-attentionOne attention layer, apart from internal reductionsA direct allowed query-key connection

    A recurrent hidden-to-hidden multiplication costs O(TH2)O(TH^2) over the sequence. A width-kk, HH-channel convolution costs O(TkH2)O(TkH^2) per layer, with LL such layers in a stack. Dense attention’s pairwise interaction costs O(T2H)O(T^2H), in addition to its projections. Parallel stages do not remove this work.

    A straightforward dense attention implementation materialises a TT by TT score array. Implementations that tile the computation can avoid retaining that whole array, so “attention always uses quadratic memory” is too broad. The dense pairwise arithmetic remains quadratic in TT in this comparison.

    These are architectural costs, not a speed benchmark. Dimensions, kernels, batching and hardware determine the observed runtime.

    Training parallelism does not mean parallel generation

    In teacher-forced next-token training, all preceding ground-truth tokens are already available. A causal convolution or masked-attention layer can process positions together without reading a future target.

    During ordinary autoregressive generation, token t+1t+1 depends on the token sampled at tt. The next input is not yet available. This dependency remains for recurrent, convolutional and attention-based decoders. Caching reduces repeated computation; it does not remove the sampling order.

    A bidirectional recurrent encoder is another distinction. It can use both past and future context for a fully observed sequence, but cannot be inserted unchanged into a causal predictor. Check the leakage in I.9.X09.

    Why this leads to attention

    A fixed-state encoder makes the decoder retrieve source information from one vector. Bahdanau and colleagues let the decoder select among a collection of encoder states instead. That addressed the access bottleneck without requiring the encoder itself to stop being recurrent.

    The Transformer then used attention without recurrent sequence transitions. It changed both information access and the number of sequential training stages. Those are concrete differences; neither is a theorem that attention is the best model for every sequence.

    For a streaming sensor with a small sufficient state, carrying that state can be exactly the useful constraint. For a task requiring selective access to many earlier positions, storing and retrieving separate representations may be worth its cost. First name what must be remembered and when it must be available. Then count the work.

    Sources