Papers › Mitigating the Language Mismatch and Repetition Issues in LLM-based Machine...

Mitigating the Language Mismatch and Repetition Issues in LLM-based Machine Translation via Model Editing

9 Oct 2024arXiv:2410.07054archive 2025-07-28

Weichuan Wang, Zhaoyi Li, Defu Lian, Chen Ma, Linqi Song, Ying WEI

Large Language Models (LLMs) have recently revolutionized the NLP field, while they still fall short in some specific down-stream tasks. In the work, we focus on utilizing LLMs to perform machine translation, where we observe that two patterns of errors frequently occur and drastically affect the translation quality: language mismatch and repetition. The work sets out to explore the potential for mitigating these two issues by leveraging model editing methods, e.g., by locating Feed-Forward Network (FFN) neurons or something that are responsible for the errors and deactivating them in the inference time. We find that directly applying such methods either limited effect on the targeted errors or has significant negative side-effect on the general translation quality, indicating that the located components may also be crucial for ensuring machine translation with LLMs on the rails. To this end, we propose to refine the located components by fetching the intersection of the locating results under different language settings, filtering out the aforementioned information that is irrelevant to targeted errors. The experiment results empirically demonstrate that our methods can effectively reduce the language mismatch and repetition ratios and meanwhile enhance or keep the general translation quality in most cases.

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="2410.07054")

Code

Syntology Ran 13 of 17 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 12 ran with no contract checked.

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

weichuanw/llm-based-mt-via-model-editing 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

17 samples harvested; 13 ran; 0 honoured the contract we drafted; 4 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.

1ran · our draft was wrong
12ran
4unverified

Licence: 17 of the 17 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 weichuanw/llm-based-mt-via-model-editing. “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.

add_function_vector weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/intervention_utils.py official repository ran no licence file found · pointer only · 722313ab50fd2d34 · report
batch_token_account weichuanw/llm-based-mt-via-model-editing/Support_Utils/model_inner_extraction.py official repository ran no licence file found · pointer only · 7a8316d866693800 · report
compute_best_token_rank weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/eval_utils.py official repository ran no licence file found · pointer only · a9853ae06ebc5529 · report
compute_individual_token_rank weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/eval_utils.py official repository ran no licence file found · pointer only · 06461c0c4a4708ce · report
compute_top_k_accuracy weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/eval_utils.py official repository ran no licence file found · pointer only · 6351069e7766eb7a · report
create_fewshot_primer weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/prompt_utils.py official repository ran no licence file found · pointer only · 4096df2df6445be6 · report
create_partial_fewshot_primer weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/prompt_utils.py official repository ran no licence file found · pointer only · ec0d04fa7b78facd · report
create_prompt weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/prompt_utils.py official repository ran no licence file found · pointer only · 5daf29ec78f21d13 · report
get_module weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/intervention_utils.py official repository ran · our draft was wrong no licence file found · pointer only · 8953f9ef90cf6afd · report
inter_output_vector weichuanw/llm-based-mt-via-model-editing/Support_Utils/model_inner_intervention.py official repository ran no licence file found · pointer only · eb98fe7a8942206d · report
remove_tensor_elements weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/KN_Error_Extraction.py official repository ran fingerprinted no licence file found · pointer only · 582681dd786a9140 · report
scaled_input weichuanw/llm-based-mt-via-model-editing/Support_Utils/model_IG_compute.py official repository ran no licence file found · pointer only · 7b3b641df5d1d225 · report
top_k_elements weichuanw/llm-based-mt-via-model-editing/Support_Utils/model_IG_compute.py official repository ran no licence file found · pointer only · 37b8bf35aa127ee5 · report
batch_token_indices_selection weichuanw/llm-based-mt-via-model-editing/Support_Utils/model_inner_extraction.py official repository unverified no licence file found · pointer only · 8079a3674f90f335 · report
error_prompt_pairs weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/KN_Error_Extraction.py official repository unverified no licence file found · pointer only · 4436a1b19f702127 · report
load_gpt_model_and_tokenizer weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/fv_task_adaptation/src/utils/model_utils.py official repository unverified no licence file found · pointer only · 96d96c981da2e3cb · report
task_prompt_construct weichuanw/llm-based-mt-via-model-editing/Model_Editing_Adaptation/KN_Task_Extraction.py official repository unverified no licence file found · pointer only · d1a0863f570b64cc · report

Tasks

Machine TranslationModel EditingTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Focus

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