{"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/language-codec-reducing-the-gaps-between","title":"Language-Codec: Bridging Discrete Codec Representations and Speech Language Models","arxiv_id":"2402.12208","date":"2024-02-19","proceeding":null,"authors":["Shengpeng Ji","Minghui Fang","Jialong Zuo","Ziyue Jiang","Dingdong Wang","Hanting Wang","Hai Huang","Zhou Zhao"],"abstract":"In recent years, large language models have achieved significant success in generative tasks related to speech, audio, music, and other signal domains. A crucial element of these models is the discrete acoustic codecs, which serve as an intermediate representation replacing the mel-spectrogram. However, there exist several gaps between discrete codecs and downstream speech language models. Specifically, 1) Due to the reconstruction paradigm of the Codec model and the structure of residual vector quantization, the initial channel of the codebooks contains excessive information, making it challenging to directly generate acoustic tokens from weakly supervised signals such as text in downstream tasks. 2) numerous codebooks increases the burden on downstream speech language models. Consequently, leveraging the characteristics of speech language models, we propose Language-Codec. In the Language-Codec, we introduce a Masked Channel Residual Vector Quantization (MCRVQ) mechanism along with improved fourier transform structures and attention blocks, refined discriminator design to address the aforementioned gaps. We compare our method with competing audio compression algorithms and observe significant outperformance across extensive evaluations. Furthermore, we also validate the efficiency of the Language-Codec on downstream speech language models. The source code and pre-trained models can be accessed at https://github.com/jishengpeng/languagecodec .","url_abs":"https://arxiv.org/abs/2402.12208v4","url_pdf":"https://arxiv.org/pdf/2402.12208v4.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":"language-codec-reducing-the-gaps-between","repo_url":"https://github.com/jishengpeng/languagecodec","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"audio-compression","task_name":"Audio Compression"},{"task_slug":"audio-generation","task_name":"Audio Generation"},{"task_slug":"quantization","task_name":"Quantization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.12208","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.12208"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/jishengpeng/languagecodec","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":7,"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":"e4db9b5f77eb31d1","entry":"gradient_norm","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/helpers.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/helpers.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e4db9b5f77eb31d1"}},{"code_sha256_prefix":"5923f41e711c0b69","entry":"safe_log","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/modules.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/modules.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5923f41e711c0b69"}},{"code_sha256_prefix":"f1abe87534e9b4b5","entry":"symexp","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/modules.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/modules.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f1abe87534e9b4b5"}},{"code_sha256_prefix":"3acb919a94ac1a19","entry":"symlog","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/modules.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/modules.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3acb919a94ac1a19"}},{"code_sha256_prefix":"705b857d58937815","entry":"instantiate_class","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/pretrained_model.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/pretrained_model.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"705b857d58937815"}},{"code_sha256_prefix":"e9b4eebcade00ef9","entry":"plot_spectrogram_to_numpy","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/helpers.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/helpers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e9b4eebcade00ef9"}},{"code_sha256_prefix":"4ad86e574a34c6ea","entry":"save_figure_to_numpy","repo":"jishengpeng/languagecodec","repo_kind":"official","path":"languagecodec_decoder/helpers.py","file_url":"https://github.com/jishengpeng/languagecodec/blob/HEAD/languagecodec_decoder/helpers.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4ad86e574a34c6ea"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}