Pith. sign in

REVIEW 1 cited by

How transformers learn structured data: insights from hierarchical filtering

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 2408.15138 v3 pith:G22N2X3K submitted 2024-08-27 cs.LG cond-mat.dis-nncond-mat.stat-mechcs.CL

classification cs.LGcond-mat.dis-nncond-mat.stat-mechcs.CL
keywords correlationsdatafilteringtransformersalgorithmcomputationcorrespondingevidence
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Understanding the learning process and the embedded computation in transformers is becoming a central goal for the development of interpretable AI. In the present study, we introduce a hierarchical filtering procedure for data models of sequences on trees, allowing us to hand-tune the range of positional correlations in the data. Leveraging this controlled setting, we provide evidence that vanilla encoder-only transformers can approximate the exact inference algorithm when trained on root classification and masked language modeling tasks, and study how this computation is discovered and implemented. We find that correlations at larger distances, corresponding to increasing layers of the hierarchy, are sequentially included by the network during training. By comparing attention maps from models trained with varying degrees of filtering and by probing the different encoder levels, we find clear evidence of a reconstruction of correlations on successive length scales corresponding to the various levels of the hierarchy, which we relate to a plausible implementation of the exact inference algorithm within the same architecture.

Discussion (0). Sign in to comment.

Forward citations

Cited by 1 Pith paper

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

  1. Towards Fundamental Language Models: Does Linguistic Competence Scale with Model Size?

    cs.CL 2025-09 reject novelty 5.0 of 10

    Across 23 models from 135M to 32B parameters, internal factual knowledge scales about twice as fast with model size as linguistic competence, supporting modular small-model-plus-retrieval systems.

Pith tools