Papers › CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization

CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization

23 May 2024arXiv:2405.14377archive 2025-07-28

Zi Yang, Ziyue Liu, Samridhi Choudhary, Xinfeng Xie, Cao Gao, Siegfried Kunzmann, Zheng Zhang

Training large AI models such as LLMs and DLRMs costs massive GPUs and computing time. The high training cost has become only affordable to big tech companies, meanwhile also causing increasing concerns about the environmental impact. This paper presents CoMERA, a Computing- and Memory-Efficient training method via Rank-Adaptive tensor optimization. CoMERA achieves rank-adaptive tensor-compressed (pre)-training via a multi-objective optimization formulation and improves the training to provide both a high compression ratio and excellent accuracy in the training process. Our optimized numerical computation (e.g., optimized tensorized embedding and tensor-network contractions) and GPU implementation eliminate part of the run-time overhead in the tensorized training on GPU. This leads to, for the first time, 2-3× speedup per training epoch compared with standard training. CoMERA also outperforms the recent GaLore in terms of both memory and computing efficiency. Specifically, CoMERA is 2× faster per training epoch and 9× more memory-efficient than GaLore on a tested six-encoder transformer with single-batch training. Our method also shows ∼2× speedup than standard pre-training on a BERT-like code-generation LLM while achieving 4.23× compression ratio in pre-training. With further HPC optimization, CoMERA may reduce the pre-training cost of many other LLMs. An implementation of CoMERA is available at https://github.com/ziyangjoy/CoMERA.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2405.14377")

Code

Syntology Ran 9 of 11 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ziyangjoy/comera officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 9 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
6ran
2unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ziyangjoy/comera. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

TT_forward ziyangjoy/comera/tensor_layers_CoMERA/layers.py official repository ran no licence file found · pointer only · 3b4208c2e336c84c · report
collate_fn_custom ziyangjoy/comera/MNLI_trainer.py official repository ran · our draft was wrong no licence file found · pointer only · 74e4c79da1ad1e63 · report
collate_fn_custom_graph_old ziyangjoy/comera/MNLI_trainer.py official repository ran · our draft was wrong no licence file found · pointer only · dfbfbadf59838ca7 · report
collate_fn_custom_old ziyangjoy/comera/MNLI_trainer.py official repository ran · our draft was wrong no licence file found · pointer only · 7067bf064400d6c5 · report
config_class ziyangjoy/comera/tensor_layers_CoMERA/layers.py official repository ran no licence file found · pointer only · f2b48295cc45f2df · report
split_galore_params ziyangjoy/CoMERA/utils.py official repository ran no licence file found · pointer only · ea0fb1428f2cc2e8 · report
split_tensor_params ziyangjoy/CoMERA/utils.py official repository ran no licence file found · pointer only · aee26c824bf192b9 · report
split_tensor_rank_params ziyangjoy/CoMERA/utils.py official repository ran no licence file found · pointer only · 993569c3fe92ff48 · report
truncate ziyangjoy/CoMERA/data_process.py official repository ran fingerprinted no licence file found · pointer only · 2afb43ca8be6a440 · report
TensorTrain ziyangjoy/comera/tensor_layers_CoMERA/layers.py official repository unverified no licence file found · pointer only · 733fa1ce8c23101d · report
TensorizedLinear_module ziyangjoy/comera/tensor_layers_CoMERA/layers.py official repository unverified no licence file found · pointer only · 3b58c2c59a777c56 · report

Tasks

Code GenerationRecommendation Systems

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections