Training-Free Universal Approximation by Prompting Random Transformers
arXiv:2608.09558
2026
Architecture
1 ideas extracted · analyzed Sep 1, 2026
What the math gives to ML
The paper gives a constructive separation between stored weights and task behavior: a frozen, randomly initialized single-layer softmax transformer can implement a kernel regressor when its prompt is chosen by solving linear systems. The transferable asset is the explicit conversion of attention logits into Gaussian-kernel exponents, turning prompt construction into linear algebra rather than gradient-based fine-tuning. This suggests testing random frozen transformers as cheap task-specific adapters, with prompts containing support points and labels and with prompt length controlling approximation quality. The main practical risk is that the required prompt norm or length may be too large for realistic transformer dimensions.
Ideas from this paper
△ Mechanism confirmed, baseline not beaten
2026
Freeze a randomly initialized single-layer transformer and use a constructed soft prompt to make its attention weights equal Gaussian-kernel weights over support examples. The resulting model performs Nadaraya-Watson regression in one forward pass, so task adaptation stores prompt tokens rather than modifying network weights. Prompt length becomes the number of kernel centers, while hidden dimension and prompt norm determine whether the required logits can be represented accurately.
Useful7/10
Difficulty5/10
Novelty7/10