SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.00645 · ICLR · 2025

LoRanPAC: Low-rank Random Features and Pre-trained Models for Bridging Theory and Practice in Continual Learning

René Vidal, Liangzu Peng, Alejandro Ribeiro, Juan Litwin, Joshua Agterberg

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 8 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
liangzu/loranpac canonical 4 of 8
FunctionStatusWhere it lives
BaseLearner Ran liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("228be2f078530a4f")
CosineLinear Ran liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("2c66c724d6643c59")
accuracy Ran liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("6a91dade75e36ef6")
target2onehot Ran liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("284e2e0345abe291")
BaseNet Not yet run liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("cbea6600f1c33154")
Learner Not yet run liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("c60ef1ac569aff94")
SimpleVitNet Not yet run liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("cb37f7e5b2701cae")
get_backbone Not yet run liangzu/loranpac/models/ranpac.py
pointer only (licence: NONE) · get_code("b37a6681e485f592")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The goal of continual learning (CL) is to train a model that can solve multiple tasks presented sequentially. Recent CL approaches have achieved strong performance by leveraging large pre-trained models that generalize well to downstream tasks. However, such methods lack theoretical guarantees, making them prone to unexpected failures. Conversely, principled CL approaches often fail to achieve competitive performance. In this work, we aim to bridge this gap between theory and practice by designing a simple CL method that is theoretically sound and highly performant. Specifically, we lift pre-trained features into a higher dimensional space and formulate an over-parametrized minimum-norm least-squares problem. We find that the lifted features are highly ill-conditioned, potentially leading to large training errors (numerical instability) and increased generalization errors. We address these challenges by continually truncating the singular value decomposition of the lifted features. Our approach, termed LoRanPAC, is stable with respect to the choice of hyperparameters, can handle hundreds of tasks, and outperforms state-of-the-art CL methods on multiple datasets. Importantly, our method satisfies a recurrence relation throughout its continual learning process, which allows us to prove it maintains small training and test errors by appropriately truncating a fraction of SVD factors. This results in a stable continual learning method with strong empirical performance and theoretical guarantees. Code available: https://github.com/liangzu/loranpac.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.00645")
get_code_for_paper("2410.00645")
have("2410.00645")

Connect an agent — have() is free.