Transformers have in-context learning capabilities, meaning they can effectively run known learning algorithms during a forward pass. The new arXiv preprint notes that recent work has shown transformers can exactly perform Lloyd's algorithm for k-means, the classic iterative clustering method.

The paper's title points to 'leaner' transformers, suggesting the authors are investigating whether more compact or efficient variants can still handle clustering tasks. The abstract is brief, but it ties the model's in-context abilities to a concrete algorithmic benchmark, which may help clarify how transformers encode and execute procedures.

Because the abstract is truncated, the specific architecture and experimental results are not yet visible. Still, the work aligns with a broader research direction that treats transformers as general-purpose algorithm learners rather than just pattern matchers.