Toward generalizable learning of all (linear) first-order methods via memory augmented Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dutta, Sanchayan, Sra, Suvrit
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910807856513024
author Dutta, Sanchayan
Sra, Suvrit
author_facet Dutta, Sanchayan
Sra, Suvrit
contents We show that memory-augmented Transformers can implement the entire class of linear first-order methods (LFOMs), a class that contains gradient descent (GD) and more advanced methods such as conjugate gradient descent (CGD), momentum methods and all other variants that linearly combine past gradients. Building on prior work that studies how Transformers simulate GD, we provide theoretical and empirical evidence that memory-augmented Transformers can learn more advanced algorithms. We then take a first step toward turning the learned algorithms into actually usable methods by developing a mixture-of-experts (MoE) approach for test-time adaptation to out-of-distribution (OOD) samples. Lastly, we show that LFOMs can themselves be treated as learnable algorithms, whose parameters can be learned from data to attain strong performance.
format Preprint
id arxiv_https___arxiv_org_abs_2410_07263
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Toward generalizable learning of all (linear) first-order methods via memory augmented Transformers
Dutta, Sanchayan
Sra, Suvrit
Machine Learning
Optimization and Control
We show that memory-augmented Transformers can implement the entire class of linear first-order methods (LFOMs), a class that contains gradient descent (GD) and more advanced methods such as conjugate gradient descent (CGD), momentum methods and all other variants that linearly combine past gradients. Building on prior work that studies how Transformers simulate GD, we provide theoretical and empirical evidence that memory-augmented Transformers can learn more advanced algorithms. We then take a first step toward turning the learned algorithms into actually usable methods by developing a mixture-of-experts (MoE) approach for test-time adaptation to out-of-distribution (OOD) samples. Lastly, we show that LFOMs can themselves be treated as learnable algorithms, whose parameters can be learned from data to attain strong performance.
title Toward generalizable learning of all (linear) first-order methods via memory augmented Transformers
topic Machine Learning
Optimization and Control
url https://arxiv.org/abs/2410.07263