{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/frugal-memory-efficient-optimization-by","title":"FRUGAL: Memory-Efficient Optimization by Reducing State Overhead for Scalable Training","arxiv_id":"2411.07837","date":"2024-11-12","proceeding":null,"authors":["Philip Zmushko","Aleksandr Beznosikov","Martin Takáč","Samuel Horváth"],"abstract":"With the increase in the number of parameters in large language models, the process of pre-training and fine-tuning increasingly demands larger volumes of GPU memory. A significant portion of this memory is typically consumed by the optimizer state. To overcome this challenge, recent approaches such as low-rank adaptation (LoRA (Hu et al., 2021)), low-rank gradient projection (GaLore (Zhao et al., 2024)), and blockwise optimization (BAdam (Luo et al., 2024)) have been proposed. However, in all these algorithms, the $\\textit{effective rank of the weight updates remains low-rank}$, which can lead to a substantial loss of information from the gradient. This loss can be critically important, especially during the pre-training stage. In this paper, we introduce $\\texttt{FRUGAL}$ ($\\textbf{F}$ull-$\\textbf{R}$ank $\\textbf{U}$pdates with $\\textbf{G}$r$\\textbf{A}$dient sp$\\textbf{L}$itting), a new memory-efficient optimization framework. $\\texttt{FRUGAL}$ leverages gradient splitting to perform low-dimensional updates using advanced algorithms (such as Adam), while updates along the remaining directions are executed via state-free methods like SGD or signSGD (Bernstein et al., 2018). Our framework can be integrated with various low-rank update selection techniques, including GaLore and BAdam. We provide theoretical convergence guarantees for our framework when using SGDM for low-dimensional updates and SGD for state-free updates. Additionally, our method consistently outperforms concurrent approaches across various fixed memory budgets, achieving state-of-the-art results in pre-training and fine-tuning tasks while balancing memory efficiency and performance metrics.","url_abs":"https://arxiv.org/abs/2411.07837v1","url_pdf":"https://arxiv.org/pdf/2411.07837v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"frugal-memory-efficient-optimization-by","repo_url":"https://github.com/fzmushko/frugal","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":null,"task_name":"GPU"}],"methods":[{"method_slug":"sgd","method_name":"SGD"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2411.07837","atlas_url":"https://app.syntology.ai/?focus=2411.07837","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.07837"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/fzmushko/frugal","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":3,"unverified":4},"by_repo_kind":{"official":{"samples":8,"ran":4,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"f725bc2d76076485","entry":"apply_rotary_pos_emb","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/modeling_llama.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/modeling_llama.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f725bc2d76076485"}},{"code_sha256_prefix":"9abbd152ba303087","entry":"get_cosine_schedule_with_multiple_warmups","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/training_utils.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/training_utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9abbd152ba303087"}},{"code_sha256_prefix":"f58a7fbb020fe7cd","entry":"get_cyclical_cosine_schedule_with_min_lr","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/training_utils.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/training_utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f58a7fbb020fe7cd"}},{"code_sha256_prefix":"b99eea6376d1e212","entry":"rotate_half","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/modeling_llama.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/modeling_llama.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b99eea6376d1e212"}},{"code_sha256_prefix":"be7fc68fbf7d7bd7","entry":"check_args_torchrun_main","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/args_utils.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/args_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"be7fc68fbf7d7bd7"}},{"code_sha256_prefix":"96cffaa90db37d36","entry":"check_args_trainer_finetuning","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/args_utils.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/args_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"96cffaa90db37d36"}},{"code_sha256_prefix":"f9d92971ebcb2964","entry":"get_scheduler","repo":"fzmushko/frugal","repo_kind":"official","path":"utils/training_utils.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/utils/training_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f9d92971ebcb2964"}},{"code_sha256_prefix":"204c6ebe745d2795","entry":"prepare_proj_params","repo":"fzmushko/frugal","repo_kind":"official","path":"frugal/proj_optimizer_templates.py","file_url":"https://github.com/fzmushko/frugal/blob/HEAD/frugal/proj_optimizer_templates.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"204c6ebe745d2795"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}