Pith. sign in

REVIEW 2 cited by

Depth-Width tradeoffs in Algorithmic Reasoning of Graph Tasks with Transformers

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2503.01805 v3 pith:7NOZ6JVN submitted 2025-03-03 cs.LG cs.AIcs.CL

classification cs.LGcs.AIcs.CL
keywords widthtasksdepthgraph-basedalgorithmicmodelsproblemscomplex
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Transformers have revolutionized the field of machine learning. In particular, they can be used to solve complex algorithmic problems, including graph-based tasks. In such algorithmic tasks a key question is what is the minimal size of a transformer that can implement the task. Recent work has begun to explore this problem for graph-based tasks, showing that for sub-linear embedding dimension (i.e., model width) logarithmic depth suffices. However, an open question, which we address here, is what happens if width is allowed to grow linearly, while depth is kept fixed. Here we analyze this setting, and provide the surprising result that with linear width, constant depth suffices for solving a host of graph-based problems. This suggests that a moderate increase in width can allow much shallower models, which are advantageous in terms of inference and train time. For other problems, we show that quadratic width is required. Our results demonstrate the complex and intriguing landscape of transformer implementations of graph-based algorithms. We empirically investigate these trade-offs between the relative powers of depth and width and find tasks where wider models have the same accuracy as deep models, while having much faster train and inference time due to parallelizable hardware.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Subquadratic Algorithms and Hardness for Attention with Any Temperature

    cs.LG 2025-05 conditional novelty 7.0 of 10

    For constant head dimension d, approximate attention can be computed in about n^{2-1/d} polylog(B/eps) time, while SETH-based lower bounds push near-quadratic hardness down to very small d.

  2. Plain Transformers are Surprisingly Powerful Link Predictors

    cs.LG 2026-02 conditional novelty 6.0 of 10

    A plain-style Transformer over sampled local subgraphs, with a multiplicative adjacency residual, reaches state-of-the-art link prediction on several benchmarks without node IDs or hand-crafted heuristics.

Pith tools