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

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\times$ 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\times$ faster per training epoch and $9\times$ more memory-efficient than GaLore on a tested six-encoder transformer with single-batch training. Our method also shows $\sim 2\times$ speedup than standard pre-training on a BERT-like code-generation LLM while achieving $4.23\times$ 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.

Paper

References (42)

Scroll for more · 30 remaining

Similar papers

Peer review

Reviewer Rz1r5/10 · confidence 5/52024-07-11

Summary

The paper introduces CoMERA, a novel training method for large AI models that focuses on optimizing both computing and memory efficiency through rank-adaptive tensor compression. CoMERA aims to reduce training costs and environmental impact by achieving high compression ratios and maintaining accuracy. Key contributions include a multi-objective optimization formulation, performance optimization techniques for tensor-compressed training on GPUs, and empirical validation showing significant speedup and memory savings compared to existing methods.

Strengths

1. The experimental results demonstrate significant improvements in training speed and memory efficiency, outperforming recent methods like GaLore and LTE. 2. By addressing both computing and environmental costs, the method has practical implications for large-scale AI model training, making tensor models more practically useful in machine learning. 3. In the part of multi-objective optimization, the formulation balances compression ratio and model accuracy, providing a customizable framework for different resource requirements.

Weaknesses

While the method shows impressive results on tested models, scalability to even larger models and diverse architectures remains an area for further exploration.

Questions

1. For learning TT-ranks, this work imposes diagonal matrices D (shown in Eq. 6) with l_1 norm regularization. This technique for tensor network structure search was also utilized in the recent paper: Zheng, Yu-Bang, et al. “SVDinsTN: A Tensor Network Paradigm for Efficient Structure Search from Regularized Modeling Perspective.” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2024. 2. In line 122, could you provide more explanation of what the linear scalarization means? Does it refer solely to Eq. (7), or is there additional context? 3. Could you provide more intuition regarding Eq. (11), i.e., the achievement scalarization? While the two scalarizations in the paper may be standard methods in multi-objective optimization, a more intuitive explanation would help general readers unfamiliar with this field grasp the main idea quickly. 4. In lines 171-173, the design of the “tensor-index level” is unclear. Please improve the clarity of this part if possible. 5. In the contraction section, how many core tensors are involved in the contraction? If the number of involved tensors in the contraction is not large, why not use the default contraction path searching algorithms integrated into einsum, e.g., ‘dp’ or ‘optimal’? What benefits can be achieved from handcrafting a new contraction path for the current model compression task? 6. Could you provide more explanation in Sec. 4.3? Why can CUDA graphs improve tensor computation? What specific efforts were made in this work? Is using CUDA graphs straightforward, or does it require advanced programming techniques, such as designing a more GPU-suitable contraction order? 7. In the comparison with GaLore, why was a 3090 used instead of a 4090, which was used in the original GaLore paper? 8. Regarding the training time, only the time per epoch is given. Is it possible to provide the overall running time? Are more epochs required if tensor networks are utilized? 9. Will the codes be released once the paper is accepted?

Rating

5

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

The authors have adequately addressed the limitations.

Reviewer Rz1r2024-08-09

I appreciated the authors’ response and the clarifications provided. However, I have a few additional comments: 1.Regarding the referenced paper: -- The reference seems to focus on general tensor networks rather than specifically on the TT (Tensor Train) format. While your work indeed targets a different set of tasks, the similarity between the two papers primarily lies in the use of sparse diagonal matrices to determine ranks. However, your response mentioning ‘finding a low-rank approximation for a given tensor’ could lead to confusion. I recommend refining this point to better differentiate your work from the referenced CVPR paper. 2. Regarding the use of GPUs: -- The response mentioning the lack of a 4090 GPU in your lab is not entirely satisfying. If the choice of using a 3090 GPU is purely due to availability, it’s important to clarify this in your paper. Additionally, please ensure that the claims in your paper are accurately framed, especially when comparing your results with those of GaLore. Otherwise, there could be a risk of over-claiming or causing misunderstandings, which would be unfair to the GaLore work. 3. Regarding the release of code: -- The uncertainty surrounding the release of your code due to potential IP issues is concerning. Not providing the code could significantly reduce the contribution and impact of your paper within the research community. If possible, please provide more clarity on this matter or consider alternative ways to share your work’s findings with the community.

Authorsrebuttal2024-08-10

Thanks a lot for your further feedback! We hope our explanations successfully address your concerns. 1. ***Compare with SVDinsTN.*** Thanks! The SVDinsTN in the reference paper and our work both use diagonal matrices to control tensor ranks, but these two works are entirely different. The two works target two completely different problems. SVDinsTN aims to find a compact tensor network representation of a given tensor, whereas our work aims to adaptively determine ranks and achieve real speedup for tensor-compressed models during end-to-end training without any prior information, which is of great importance given the huge energy cost of current large AI models. It is not surprising that both works (and possibly some other works) use sparse diagonal matrices and L-1 terms to control tensor ranks. Using diagonal matrices to control the ranks of matrices is very common, like SVD. The L-1 norm is also widely used to induce sparsity in various models, like compressed sensing and Lasso regression. It is natural to combine these two techniques to control tensor ranks, regardless of tensor formats. In our work, **we did not claim this as a novel contribution**. Our main contributions are: (1) a **multi-objective optimization** approach to achieve a good balance between model size and performance in end-to-end rank-adaptive training, and (2) **numerical and GPU optimization** to achieve real 2-3X speedup on GPU. This can have a high impact: since large AI models consume too many resources, even a small reduction can save huge money and energy. Besides the results in the paper, we have proved the great promise of this method in pre-training CodeBERT in the above response. The main differences between the two works are summarized in the following table. We will include the discussions in our paper. || CoMERA |SVDinsTN| |-|-|-| | target problem | **End-to-end tensor compressed training for memory and computation reduction**|Find a compact tensor network representation of given data| | problem formulation | a multi-objective problem| a single objective problem with regularizations| | solver |a two-stage approach with two scalarization methods to solve multi-objective problem to balance model performance and size| a proximal alternating minimization method to solve the single objective problem with l1 regularizations | | tensor format | focus on Tensor-Train and can be easily applied to all general tensor networks | general tensor networks| | performance optimization| numerical and GPU optimization methods for real speedup on GPUs| N/A| 2. ***GPU.*** We rent a 4090 GPU to run experiments. The results are in **Table 1**. Compared to RTX 3090, the training on RTX 4090 uses similar memory and takes less training time, and **CoMERA is still the fastest method and consumes the least memory among all three techniques**. The **memory savings** are **almost the same** as the results reported in Figure 1 in our paper. The **speed-up factors** are **almost identical** for batch sizes 32, 64, and 128. For batch size 1, our method is 1.2X faster and 1.7X faster than GaLore on RTX 3090, respectively. The difference is because RTX 4090 GPU significantly accelerates matrix multiplications of batch size 1, while it does not accelarate that much for smaller tensor contractions. We test the times of typical matrix multiplications in CoMERA and GaLore on RTX 3090 and RTX 4090. The results are in **Table 2**. We find that r=30 matrix multiplication on RTX 3090 has a similar speedup for both batch sizes, whereas the same multiplication on RTX 4090 only has speedup for batch 32 and does not have any speedup for batch 1. We would like to note that it might be caused by that different GPU platforms have different backend overhead, which can become more dominant as computation decreases to batch=1. We will continue optimizing GPU-level kernels to accelerate small tensor contractions and expect to see a similar speedup. We will replace results in our paper with new results on RTX 4090. **Table 1. Training comparison of CoMERA with GaLore and LTE on RTX 4090 GPU.** ||| CoMERA |GaLore| LTE | |-|-|-|-|-| |batch 1|time (min)| **37.1**|44.8| N/A| | |memory (MB)|**182**|1674| N/A| |batch 32|time (min)| **3.4**|6.8| 11.1| | |memory (MB)| **1780** |3632| 4636| |batch 64|time (min)| **3.4**| 6.3| 9.1| | |memory (MB)| **3784**|4682| 6628| |batch 128|time (min)| **3.4**| 6.0|8.2| | |memory (MB)| **7002**|8048|10964| **Table 2. Time comparison of matrix multiplications on RTX 3090 GPU and on RTX 4090 GPU. The multiplication is done between matrices of sizes (batch\*128) $\times$ 768 and 768 $\times$ r. The time is in seconds.** ||| r=30| r=768| |-|-|-|-| |batch 1|RTX 3090|0.34 (4.6X)|1.58| ||RTX 4090|0.22 (**1.0X**)|0.22| |batch 32|RTX 3090|0.55 (5.4X)|2.98| ||RTX 4090|0.27 (4.5X)|1.21| 3. ***Code.*** Thanks! We will release a version of codes with confidential IP information removed.

Authorsrebuttal2024-08-12

Reminder: discussion window will close in 1 day

Dear Reviwer Rz1r, Thanks a lot for your detailed technical comments and your follow-up discussion.We fully understand that you may super busy with many deadlines at this moment. As the discussion window will close in 1 day, I would highly appreciate it if you confirm your comments have been addressed or not. In our original rebuttal, we have addresed the main weaklness (lack of large-scale experiment) by providing the pre-training result of CodeBERT to show the significant training cost reduction. We also provided details to address your 9 questions (e.g., explanation of various scalarization techniques, difference of our contraction sequence optimization with that in einsum, CuDAGraph optimization, overall training time). In the recent discussion, we have further provided details regarding the comparison with SVDinsTN, result on RTX 4090 (which does not change much from RTX 3090) and code release issue. If our responses have well addressed your comments, we would highly appreciate it if you can acknowledge this. If some of our responses need further clarification, please feel free to let us know! We are staying online to provide potential further clarifications in a timely manner. Thanks again for your detailed technical comments & engagement in the discussion. Warm regards, The authors.

Reviewer Rz1r2024-08-13

Thank you for the detailed response. “The SVDinsTN in the reference paper and our work both use diagonal matrices to control tensor ranks, but these two works are entirely different.” -- Yes, it's true. I agreed that the two works are different since you targeted two different tasks. That is why I put this concern in the question part rather than the weakness part. Thank you for the clarification. I mentioned it again in my last reply since the authors said the referenced paper was for TT (tensor-train). It is a confusing point since that I checked that paper. it seems for a general tensor network rather than the specific TT model. "We rent a 4090 GPU to run experiments." -- Thank you. I have this concern since in the GaLore paper the main claim is given with the setting of 4090 rather than 3090. It naturally made me to have the question why not to use the same hardware for comparison? Is there any deeper concern from the side of authors? The first-round response from authors is unexpected since I don't realize that 4090 is so difficult to have in the experiment like other more expensive GPUs. But the good thing is that you finally successfully get it. "We will replace results in our paper with new results on RTX 4090." -- Thanks , but I don't think it's necessary. It is good to see the proposed tensor-based method works well with a weaker device (3090) than other works like GaLore (using 4090). My concern is mainly for fair and more clear comparison. Putting the new results in the supp. would be very appreciated. "We will release a version of codes with confidential IP information removed." -- Thank you for the promise. It is very important for reproducibility and potential impact for the community.

Authorsrebuttal2024-08-13

Happy to know technical issues are fixed

Dear Reviewer Rz1r, Thanks a lot for your further follow-up discussion. I'm glad that we are on the same page: (1) the SVDinsTN and our work are entirely different. (2) The use of RTX 3090 GPU rather than 4090 is not a big issue. Just two tiny additional notes: (1) in our first rebuttal, we indeed pointed out (see our table) that SVDinsTN considered general tensor networks (rather than tensor train in our work),(2) in our paper we implemented all methods (including GaLore and LTE) on RTX 3090 to ensure a fair comparision. We will make these points more explicitly in our revised paper to avoid similar misunderstanding in the future.

Reviewer Rz1r2024-08-13

Thanks for the quick response. "(1) the SVDinsTN and our work are entirely different. " -- For further clarification, I respectfully adjust your claim to the following : the SVDinsTN and our work (CoMERA) targeted on entirely different tasks but with a similar technical trick (ie., imposing diagonal matrices with sparsity constraint for rank selection) This is more close to my point. Furthermore, I appreciate again the authors's effort for the mentioned revision promises of improving the clarity of the paper and code releasing. Best,

Reviewer hvAM6/10 · confidence 3/52024-07-12

Summary

The manuscript presents techniques for efficient training from scratch based on tensor decompositions. The authors propose several modifications to the basic training approach to improve accuracy as well as several optimizations for tensor-compressed training, achieving training speedup. In the experiments, the proposed methodology is used to compress a transformer model and a recommender system model.

Strengths

The authors present a new approach for training a model with tenzorized weights, which allows for adaptation of ranks during training. They also managed to optimize the process and achieve a real-time speed-up, which is not an easy task when working with tensorized models. The described methods are useful and have the potential to significantly contribute to further advancements in efficient operation for tensor decomposition formats.

Weaknesses

1) There are several places where a comparison with the baseline time (e.g., uncompressed) would be appropriate, such as in Figures 5 and 8. 2) Experiments with the transformers are limited. Training a model on MNLI from scratch may not accurately reflect the behaviour of the method for language models, as MNLI is a relatively simple classification dataset that might not require a large number of parameters. It would be beneficial if the paper included an experiment or a simulation of some kind in a pre-training setting for language models, such as pretraining Roberta on C4

Questions

1) I am a little confused about how to adapt the rank to achieve further compression. It is not clear from the text what the procedure is and when it is applied during training. Specifically, it is not explained how the ranks are chosen and at what point of time the procedure is applied. I would recommend incorporating a new paragraph into the paper that provides a more detailed explanation of the procedure, as well as some practical advice on how to apply it in various scenarios. This could help readers better understand the potential uses and benefits of this approach. 2) As for the transformer model, I am also interested about the model upper compression limit that still maintains training speedup? I would imagine maintaining good performance can only be possible with lower compression ratios (say x2-5).

Rating

6

Confidence

3

Soundness

2

Presentation

3

Contribution

3

Limitations

-

Authorsrebuttal2024-08-11

Dear Reviewer hvAM, We sincerely appreciate your valuable comments and suggestions for our paper CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization. We have carefully addressed all your comments in our response above: * For the baseline times, the results are provided in the above response and will be included in our revision. * Regarding the scalability of our approach, we have demonstrated the significant potential of this method in **pre-training CodeBERT, a model with 357 million parameters**, as detailed in the above response and main author rebuttal. * We have added more explanations in our responses regarding our rank-adaptive training for further compression and will include additional details in our revised manuscript. * We conducted experiments to illustrate the relationship between compression ratios and speedup. The results, along with some mathematical analysis, are presented in our responses. As the discussion period is drawing to a close in a few days, we would be very grateful if you could take a moment to review our responses. If our replies have satisfactorily addressed your concerns, we greatly appreciate it if you could acknowledge this in the discussion thread. If there are any remaining questions or concerns, please do not hesitate to reach out to us. We will stay online these days and are ready to respond promptly. Thank you again for your time and consideration. We look forward to your feedback.

Reviewer 6ExQ6/10 · confidence 4/52024-07-12

Summary

This work proposes using low-rank tensor train decomposition to accelerate deep learning model training and save memory usage. In the algorithm, both embedding tables in recommendation systems and large linear weights are written as a tensor train, and rank-adaptive optimization is used to adaptively reduce the rank without sacrificing the model accuracy. Multiple techniques, including TT embedding lookup, contraction path optimization, and CUDA graphs are combined to improve the efficiency. Experimental results show good memory saving and speedup without sacrificing model accuracy.

Strengths

originality: the idea to adaptively change the TT rank during training looks new. In addition to the training algorithm, multiple performance optimization techniques make the paper solid. In particular, the TT embedding lookup algorithm that does sampling and contraction in a interleaved way is also useful.

Weaknesses

presentation: section 4.2 is hard to understand. For contraction path optimization, it would be good to visualize the process using tensor diagrams. limitation of the proposed algorithm: it would be good to discuss the limitation of the algorithm in detail. In particular, I believe low-rank weights can help only under relatively small datasets/tasks, under which the low-rankness is a good regularization. Under large dataset/foundation model setting, I suspect the work can beat the baseline algorithms. In particular, the algorithm is also different from previous algorithms that use low-rank. In previous works, low-rank approximation is only applied on gradients rather than weights. To claim that the work can help foundation model training, we need larger datasets.

Questions

1. line 42: replies -> relies 2. How to choose a reasonable initial TT rank? 3. how does accuracy compare between CoMERA, GaLore, and LTE?

Rating

6

Confidence

4

Soundness

2

Presentation

2

Contribution

3

Limitations

n/a

Authorsrebuttal2024-08-12

Reminder: discussion window will close in 1 day

Dear Reviewer 6ExQ, Thanks a lot for your constructive comments about our submission CoMERA. We fully understand that you may busy with many deadlines at this moment. As the discussion window will close in 1 day, I would highly appreciate it if you could read our rebuttal. In summary, we have (1) provided a detailed tensor network diagram in the attached PDF file, (2) shown the promising comperssion and 2.5X speedup in pre-training CodeBERT-large, (3)addressed other minior issues such as typos, initial rank setting and accuracy of GaLore and LTE. If our responses have well addressed your comments, we would highly appreciate it if you can acknowledge this. If some of our responses needs further clarification, please feel free to let us know! We are staying online, and we are happy to provide potential further clarification in a timely manner.

Reviewer 6ExQ2024-08-13

Reply to comments

I would like to thank authors for the detailed feedback. I've decided to raise my score to 6.

Authorsrebuttal2024-08-13

Thanks for your discussion

Dear Reviewer 6ExQ, Thanks for your participation in the discussion and for recognizing our work. Your review feedback helped a lot to improve the quality of our work.

Reviewer 1f6L5/10 · confidence 4/52024-07-13

Summary

This paper leverages the tensor decomposition concept in model training and tries to address two questions: the first is how to enable rank-adaptive, and the second one is how to obtain real efficiency. This paper achieves a 2 − 3× speedup per training epoch compared with standard training with on-par accuracy.

Strengths

* An easy paper to follow * Although tensor decomposition is not new, they successfully enable real speed-up with several performance optimization techniques. * Real speed up and on-par accuracy on small models.

Weaknesses

* The problem formulation in 3.1 and how to solve the l0 norm is not quite new. * Contraction Path Optimization is also not a new topic. The authors should cite previous work, e.g. [1] and discuss differences, and highlight the uniqueness. * Does this training take more time in terms of convergence? And could the author discuss more about the training difficulty of tensorized layers and normal layers. [1] Gu, Jiaqi, et al. "Heat: Hardware-efficient automatic tensor decomposition for transformer compression." arXiv preprint arXiv:2211.16749 (2022).

Questions

See weakness before.

Rating

5

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

N/A

Authorsrebuttal2024-08-12

follow-up clarification about CodeBERT-large pretraining accuracy and tensor rank/architecture search.

Dear Reviewer 1f6L, Thanks a lot for your discussion and detailed technical discussion. We agree that there are plenty of work about searching tensor ranks and architectures in the machine learning community. Almost all of them are about tensor data compression and post-training model compression. We would like to remark that **searching the architecture and ranks in training is a much more challenging and a rarely investigated task**: the model parameters that we need to compress is not given in advance, and we can not afford a training for each architecture/rank setting due to the huge training cost. This is completely different from tensor data compression and post-training compression, where one can easily evaluate the quality of their rank/architecture setting by doing a cheap forward propagation. This is also why compressed training (even in the simpler low-rank matrix format) is a much more challenging and more important task. Regarding the compression ratio and accuracy in tensor-compressed pre-training, we also would like to remark **three key different features in the LLM domain**: (1) It is natural that compressed models have larger training loss, since its optimization feasible set is smaller than that of an uncompressed training. However, **a slightly larger training loss does not mean worse testing accuracy, because tensorized models have shown smaller generalization gaps (i.e., the difference between training accuracy and testing accuracy) than uncompressed models in many cases**. As an example, let us consider BERT-large pre-training using the same model architecture on the WikiText dataset. Standard pre-training produced a training loss of 1.26, our CoMERA produced a trainining loss of 1.45 (which is worse by 0.19). However, **the compressed model produced by CoMERA outperformed standard BERT-Large in 2 of 3 downstream testing tasks** due to its smaller generalization gaps, as shown below: **Testing accuracy of standard BERT and tensorized BERT on various downstream tasks.** |Models| Accuracy on SST2 |Accuracy on MRPC| Accuracy on SQuAD| |-|-|-|-| |Standard BERT-Large |91.74%| 86.00%|**90.68%**| | Tensorized BERT-Large (ours)|**92.10%**|**86.82%**|88.76%| Since the downstream testing datasets of CodeBERT were not released to the public by its developers, we could not do the same downstream testing at this moment (we are trying to generate a few downstream testing dataset for CodeBERT by ourselves, but it takes time). However, we can make a prediction based on the available training results. Right now, the training loss of CodeBERT using standard pre-training is $0.24$, and training loss produced by our CoMERA is $0.36$. The difference is only **0.12**, which is much better than the loss difference (**0.19**) on the WikiText dataset. Considering the smaller generalization gap of tensorized models, it is reasonable to predict that our compressed CodeBERT-large model will have **better (or at least similar) testing accuracy on downstream code generation tasks**, if those testing datasets are available. (2) Different from regular neural network training which often uses a small dataset and thus the network is often over-parameterized and can have a large compression ratio, LLMs (even small-size LLM like BERT) are pre-trained with a super large dataset and the network is **under-parameterized**. Meanwhile, when those LLMs are released by their developers (often giant tech companies), many tricks have been tried to make sure that these LLMs cannot be dramatically compressed, otherwise customers will quckly swith to much smaller LLMs. As a result, **even a $4.25\times$ overall compression ratio is very large for LLM pre-training**. Note that (i) we only compressed part of the layers (with $\sim 10\times$ compressed ratio on these layers). The embedding tables and output linear layers used a transposted architecture and thus we didn't compress them; (ii) The LLM compression ratio can be further boosted if we combine CoMERA with quantization techniques. (3) **The importance of $2.5\times$ speedup factor and $4.25$ overall compression ratio on CodeBERT-large should not be underestimated**. This means that we can reduce the GPU-hours by $>2.5\times$. **A $2.5\times$ GPU-hour reduction can make a huge impact in the LLM community**, since current LLM pre-training costs millions of US dollars per training run. As a comparison, the recently released and very popular GaLore (oral paper at ICML'2024) has much less memory saving than CoMERA (as shown in our paper) and actually slows down the training. Again, we would like to thank Reviewer 1f6L for his/her technical feedback, which will greatly improve the quality of our work. We hope that the above technical details and potential impact in the LLM community can be considered.

Reviewer 1f6L2024-08-12

Thank you for your quick response. First, the evaluated test accuracy on standard BERT already shows the CoMERA may lead to accuracy loss on SQUAD (90.68% compared to 88.76%). The results cannot convince me that CoMERA can yield on-par accuracy with the claimed speedup on large models. I do not judge that the claimed speedup is not significant. My concern is whether sacrificing the accuracy in the pre-training stage is meaningful and whether your claimed compression ratio may not hold for large models. Second, your comment on GaLore is not right and fairly assessed. GaLore theoretically guarantees the same performance as full-rank training, but CoMERA cannot.

Authorsrebuttal2024-08-12

Thanks for your follow-up, and further discussion about pre-training performance.

Dear Reviewer 1f6L, Thanks for your quick follow-up and insightful discussion. Your comment on Galore is insightful. Indeed the comparision should not be just focused on compression ratio and GPU-hours. We completely agree that Galore has better convergence gaurantee. Specifically, it will keep the same accuracy with standard training, under the assumption that the SVD compression in gradient compression does not lose much gradient information. Meanwhile, we also would like to gentlely point out that Galore will not gaurantee convergence and may face divergence issue when it has the same high compression ratio as CoMERA, since the gradient information loss is huge. It is also worth noting that practical LLM pre-training iterations are normally **bounded by the given limited budget (e.g., dollar amounts or GPU-hours)**. As a result, many large-size LLMs are pre-trained for only 1 or 2 epochs in practice. **With the same limited budget of GPU-hours, CoMERA can train $2.5\times$ more iterations than standard pre-training and GaLore, achieving better acuracy**. Regarding the testing accuracy of CoMERA: the testing accuracy of LLMs are evaluated on **multiple downstream tasks**, which are quite different from the pre-training dataset. As a result, a model (even if it has better training loss) often behave very differently on various downstream tasks: it may has better testing accuracy on some tasks, but meanwhile has worse testing accuracy on other tasks. This is very normal, and is exactly the case in our tensorized BERT-large model: our model outperformed the baseline BERT-large on two downstream tasks (SST2 and MRPC), and under-performed basline BERT-large on one downstream task SQuAD. Currently our produced model beats standard BERT-large on **two out of three** downstream tasks (**at the cost of $2.5\times$ less GPU-hours** in pre-training), and we look forward to its future performance as our pre-training methods keep evolving. Thanks agian for your timely discussion. Your participation in the discussion is highly appreciated: it will enable a fair and thorough evaluation of our work. Please feel free to let us know if you have further questions. Best regards, The authors.

Reviewer 1f6L2024-08-13

I am still doubtful about your statement about your fine-tuning accuracy. Based on my understanding, SQuAD is a relatively harder task than SST2 and MRPC (https://delvify.ai/glue/). For easier tasks, the compressed model may perform well at testing, while for harder tasks, the compressed model shows reduced accuracy(90.68 --> 88.76, as in your case). So, my major concern still remains that your claimed compression ratio and speedup are only feasible for simple tasks, which may not hold for harder tasks/pretraining, making your claim that you can train LLM from scratch(as you compare with Galore) weaker. The accuracy number further makes me concerned about this point. Also, I am not very confident whether LLM shows low-rank characteristics for the weight matrix, and enforcing the model's weight matrix in a low-rank format since that training begins may not be a good choice. My score is between 5 and 6, and I'd like to see the author report the claimed speedup with a comparable loss with the baseline in the pre-training stage of larger models instead of the speedup on smaller models/under considerable loss in the future version.

Authorsrebuttal2024-08-13

Thanks, and further information about pre-training (including LlaMA models)

Dear Reviewer 1f6L, Thanks a lot for your further follow-up discussion: we highly appreciate it, especially considering that yourself may also have many deadlines at this critical moment. Your conern is very valid. Meanwhile, we would like to share more details and our own experience about the evaluation and pre-training of LLMs. Regarding the SQuAD: you are VERY right, this is a more challenging downstream task. But the reason of performance difference across various downstream tasks is not just caused by the diffculty of a specific task like SQuAD. For instance, if we want to achieve a different compression ratio, we find that the accuracy on SQuAD can be higher than the basline, but the acuracy on the easier task MRPC may drop a little bit. As a result, we think that the main reasons are as follows: --(1) **We tested the pre-trained model on downstream tasks without any fine-tuning**. The performance on various downstream tasks definitely can be further improved if fine-tuning is performed using each downstream dataset. --(2) Since we did not conduct task-specific fine-tuning, we are atually evaluating a pre-trained model directly on multiple very differerent downstream tasks. Mathematically, this is equivallent to solving an optimization problem with objective function $f_0(x)$ (in pre-training), then evaluating its solution quality on three different objective functions $f_1(x), f_2(x)$ and $f_3(x)$ (on downstream tasks). Without fine-tuning (i.e., optimizing $f_1(x), f_2(x)$ and $f_3(x)$ **individually**), it is very normal that some tasks show superior performacne and some tasks show slightly degraded performance. Regarding pre-training **larger LLMs** like LLaMa-1B (probably you mean LlaMA-7B?). It is indeed our goal to test our method on large models like LlaMA. However, as an academic group, we are constrainted by the computing budget. Here is one budget data sample: pre-training GPT-2 (with 762 Million parameters) would need 100,000 A100 GPU-hours (equivalent to 250,000 USD based on market cloud computing price). Based on the scaling law released by Google Deepmind (Hoffmann, et al., “Training compute-optimal large language models,”arXiv:2203.15556, 2022), we estimate that the pre-training budget of LlaMa-1B would be around **430,000 USD**, which is far beyond the financial capability of most (if not all) academic groups. Pre-training LlaMA-7B will cost **millions of USD**. We are trying very hard to get more computing resources to validate our ideas on LlaMA-scale models, which is super challenging as an academic group. To be honest, starting up a company may be a better option to achieve this goal (that's why we said that we had some IP concerns when replying to a reviewer's question about a full code release). We will be very happy to share our result with the community in the future, if we can get the testing results on LlaMA-scale models. Thanks again for your insightful discussions. Your active paticipation in the disucssion is highly appreciated.

Authorsrebuttal2024-08-11

Dear Reviewer 1f6L, We sincerely appreciate your fruitful comments and suggestions for our paper **CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization**. We have carefully addressed all your comments in our response above. In particular, we have clarified the **novelty of our work**, provided a **comparison with HEAT**, and discussed the **convergence and overall training time** of the proposed algorithm. Additionally, beyond the results mentioned in the paper, we have demonstrated the significant potential of this method in **pre-training CodeBERT, a model with 357 million parameters**, as detailed in the main author rebuttal. As the discussion period is drawing to a close in a few days, we would be very grateful if you could take a moment to review our responses. If our replies have satisfactorily addressed your concerns, we greatly appreciate it if you could acknowledge this in the discussion thread. If there are any remaining questions or concerns, please do not hesitate to reach out to us. We will stay online these days and are ready to respond promptly. Thank you again for your time and consideration. We look forward to your feedback.

Reviewer 1f6L2024-08-12

Thank you for your reply

Thank you so much for your rebuttal and address my questions. This paper formulates an optimization framework to search for ranks inside the tensor training format. I still think this question/problem setup is well exposed in efficient ML works (like search pruning ratio, etc.). Although the optimization description is huge, it is not new to me. Moreover, the claimed benefits is not validated on a large model, and I suppose on the large model (especially pre-training), we need to keep a tight compression ratio to have a comparable accuracy (I saw unmatched accuracy on CodeBert) However, I am very happy to see this work deliver a real training speedup via contraction path order optimization and some CUDA implementation optimization. It would be great to see codes open-sourced. I would like to keep my rating to 6. Thank you so much.

Authorsrebuttal2024-08-11

Dear Reviewer 6ExQ, We sincerely appreciate your valuable comments and suggestions for our paper CoMERA: Computing- and Memory-Efficient Training via Rank-Adaptive Tensor Optimization. We have carefully addressed all your comments in our response above. For the tensor diagrams for the contraction paths, we have attached our previously prepared **tensor diagrams in the attached PDF** and will include them in our revision to improve readability. Regarding the scalability of our approach, we have demonstrated the significant potential of this method in **pre-training CodeBERT, a model with 357 million parameters**, as detailed in the above response and main author rebuttal. Additionally, we have discussed the differences between our approach and previous low-rank methods, such as GaLore, and answered other questions in the above response. As the discussion period is drawing to a close in a few days, we would be very grateful if you could take a moment to review our responses. If our replies have satisfactorily addressed your concerns, we greatly appreciate it if you could acknowledge this in the discussion thread. If there are any remaining questions or concerns, please do not hesitate to reach out to us. We will stay online these days and are ready to respond promptly. Thank you again for your time and consideration. We look forward to your feedback.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC