EMNLP papers
Search EMNLP papers by title, author, or track. Open a paper’s abstract to read more.
Explore the EMNLP analysisSearch results
1,281–1,300 of 1,560
- EMNLP · Findings
Lusopol: How do LLMs Handle Politically Charged Questions? The Use Case of Portugal
Giuseppe Attanasio, Inês Vieira, Inês Calvo, Beatriz Canaverde, Ben Peters, Orfeas Menis Mastromichalakis, Miguel Faria, James Furtado, Iago Paulo, David Semedo, Joao Magalhaes, Andre Martins
Abstract
As large language models (LLMs) are adopted worldwide, evaluating their alignment across diverse cultural contexts is essential, especially when handling sensitive, politically charged requests. Yet what counts as “sensitive” is shaped by social, historical, and cultural factors, leaving model robustness across cultures poorly understood. We investigate this in the context of Portugal, a country whose layered history surfaces many culturally sensitive topics absent from existing benchmarks. We introduce Lusopol, a benchmark of 1{,}400 English and Portuguese prompts spanning seven thematic categories—from colonial history and the Estado Novo dictatorship to contemporary political issues—designed to stress-test models under deliberately controversial framings. Testing 16 state-of-the-art LLMs on Lusopol, we find substantial performance variance: frontier closed models and leading open-weight families set the pace, while European-focused open models lag behind. To close this gap, we synthesize a preference corpus of more than 7.5K samples. Targeted alignment training on this resource significantly reduces skewed responses and makes European open models competitive, demonstrating that culturally situated preference data is a practical path toward closing the alignment gap for underrepresented societies.
Abstract source - EMNLP · Findings
Do LLMs Use Cultural Knowledge Without Being Told? A Multilingual Evaluation of Implicit Pragmatic Adaptation
Mehwish Nasim, Sanjeevan Selvaganapathy, Neel Ganapathi Sabhahit, Marie Griesbach, Pranav Bhandari, Janina Lütke Stockdiek, Lennart Schäpermeier, Usman Naseem, Christian Grimme
Abstract
Many benchmarks show that large language models can answer direct questions about culture. We study a different question: do they also change how they speak when culture is only implied by the situation? We introduce a triad-diagnostic framework; applying it to four deployed endpoints to evaluate 60 culturally grounded conversational scenarios. We examine responses across five languages in three conditions: a neutral baseline (Prompt A), an explicit cultural instruction (Prompt B), and implicit situational cueing (Prompt C). We use an LLM-judge ensemble with explicit rubrics to score responses on 12 pragmatic features covering deference to authority, individual-versus-group framing, and uncertainty management. We define Pragmatic Context Sensitivity (PCS) as the fraction of the judge-scored Prompt A\rightarrowB feature shift that reappears under Prompt A\rightarrowC. Across four deployed LLM endpoints and five languages (English, German, Hindi, Nepali, and Urdu), the primary stable-only PCS mean is 0.196 (SD = 0.113), indicating that the tested models recover only about one-fifth of the explicitly prompted rubric-aligned shift. Transfer is strongest for authority-related cues (0.299) and weakest for individual-versus-group framing (0.120). We argue that multilingual cultural pragmatics is an explicit-versus-implicit deployment problem, not only a factual knowledge problem.
Abstract source - EMNLP · Findings
The Judge Can Debias Itself: Awareness and Self-Debiasing for Reliable LLM-as-a-Judge
Youbing Yin, Jingyu Wu, Anoop Kumar, Scott Novotney, Daben Liu, Erin Babinsky
Abstract
LLM-as-a-Judge systems are increasingly employed for automated evaluation, yet remain susceptible to systematic biases that undermine their reliability. We demonstrate that the judge can effectively debias itself without additional training. We propose two lightweight strategies: bias-aware prompting, which explicitly alerts the judge to potential target biases prior to evaluation, and self-debiasing, in which the judge critiques the initial judgment for bias influence. To broaden the evaluation scope, we introduce three novel benchmarks—authority bias (fabricated citations), confidence bias (assertive phrasing), and formatting bias (structured presentation)—and evaluate across seven bias types in total. Across three frontier models, self-debiasing improves performance in 20 out of 21 model–bias combinations with gains up to 15 percentage points, while bias-aware prompting also yields consistent improvements. The recent fine-tuned external critic, however, does not generalize as reliably to the newly-introduced bias types (degradation observed in 5 out of 9 cases). Our findings demonstrate that prompting a judge to reason about bias, either preemptively or retrospectively, is a robust and generalizable approach for enhancing evaluation integrity.
Abstract source - EMNLP · Findings
PercepLog-0: LLM-Augmented Backward Chaining for Legal Reasoning
Parisa Kordjamshidi, Sai Amrit Bulusu, Madhavan Seshadri, Samer Aslan, Leslie Barrett, Enrico Santus
Abstract
In-depth logical reasoning in domains such as legal analysis remains challenging for large language models (LLMs), exhibiting brittle and inconsistent performance on tasks requiring multi-step deductive inference. This limitation is expected, as LLMs primarily rely on learned distributional associations rather than performing explicit step-by-step logical inference through formal rule application. To address this gap, we propose a novel framework, called PercepLog, that incorporates a classical deductive reasoning algorithm, backward chaining, within an outer control loop, while utilizing LLMs for primitive operations such as substitution and unification. By following the backward chaining algorithm, the framework benefits from the interpretability and explainability of symbolic reasoning procedures while retaining the flexibility of LLM perception for processing natural-language legal text. We evaluate the proposed method on statutory reasoning tasks across a range of legal domains as well general logical reasoning. The results demonstrate that our approach enables more robust, explainable, and principled reasoning over unstructured legal text, where exhaustive formalization is often brittle and prone to hallucination. Our method yields average relative performance improvements of 58% over direct LLM reasoning and 16% over formal LLM-based translation and Prolog inference pipelines.
Abstract source - EMNLP · Findings
Beyond Retrieval: Learning Compact User Representations for Scalable LLM Personalization
Heng Cao, Fan Zhang, Jian Yao, Yujie Zheng, Changlin Zhao, Lu Hao, Yuxuan Wei, Wangze Ni, Huaiyu Fu, Yuqian Sun, Xuyan Mo
Abstract
Personalizing large language models requires adapting model behavior to individual users while preserving robustness and deployment-scale efficiency. Existing approaches typically personalize LLMs either at the input level, by retrieving user histories or constructing profile prompts, or at the parameter level, by maintaining user-specific parameter-efficient modules. The former makes personalization sensitive to retrieval quality and prompt design, whereas the latter incurs storage and maintenance costs that grow with the user population. To address these limitations, we propose TAP-PER (Temporal Attentive Prefix for PERsonalization), a prefix-based framework that encodes user preferences as learnable representations, avoiding the serialization of user histories into prompts and replacing heavy per-user adapters with lightweight user-state prefix embeddings. Inspired by personalized recommendation systems, TAP-PER decomposes user modeling into user-state and query-conditioned components, and incorporates temporal signals to capture the evolving nature of user interests. Experiments on six LaMP tasks show that TAP-PER consistently outperforms prompt-based and model-based baselines across classification, rating, and generation settings. Moreover, TAP-PER uses 130× fewer per-user parameters than OPPU and roughly half the total parameter footprint of PER-PCS at the 1,000-user scale, demonstrating scalable personalization without prompt-serialized histories or heavy per-user adapters.
Abstract source - EMNLP · Findings
ERGA: An Explorer–Refiner Game with Backdoor-Adjusted Verdict Aggregation for LLM-based Claim Verification
Wanlong Yu, Feng Liu, Zhiliang Tian, Zhen Huang, Yonghui Wang, Jingyuan Huang, Dongsheng Li
Abstract
LLM-based fact-checking verifies complex claims through decomposition, retrieval, and reasoning aggregation. Existing methods expand verification inputs to cover more factual conditions, but added fragments can be redundant or misleading, compete with decisive evidence, and bias predictions toward surface relevance. Debiasing methods mitigate this bias by estimating shortcut effects from claim-side cues or biased signals in constructed inputs. However, because they calibrate verifier predictions after input construction, they are not designed to repair missing or noisy verification states. Thus, complex fact-checking should balance factual coverage and noise control during verification-state construction. We propose ERGA, an Explorer–Refiner Game with Backdoor-Adjusted Verdict Aggregation. ERGA formulates verification as editable state construction, initializing the state from decomposed verification units, retrieved evidence, and local analyses. It then runs an adversarial Explorer–Refiner game over this state: the Explorer strengthens under-covered factual signals, while the Refiner merges redundancy and separates weak or misleading fragments. Through this game interaction, ERGA obtains a refined state with a better coverage–noise balance and a removed fragment record. For verdict aggregation, ERGA uses the removed-fragment record to condition verifier predictions and aggregates them in a backdoor-adjusted form to reduce residual shortcut effects. Experiments on HoVer and FEVEROUS-S show that ERGA outperforms strong baselines.
Abstract source - EMNLP · Findings
Separating Syntax from Language: A Mechanistic Account of Translation in Multilingual LLMs
Mikhail Sonkin, Tanja Baeumel, Daniil Gurgurov, Josef Van Genabith, Simon Ostermann
Abstract
Multilingual large language models (mLLMs) achieve strong performance in machine translation, yet our understanding of the mechanisms by which they transform representations from one language to another remains incomplete. Prior work suggests that translation decomposes into separable processes within an mLLM, where conceptual content is first represented independently, followed by a production into language-specific form.In this work, we show that translation is even more modular than previously assumed and that the output language production in translation processes is actually further separable into a syntax and a surface language process. We construct controlled multilingual datasets that isolate cross-linguistic differences in word order and use causal interventions and probing to track how representations are transformed during translation. We find that models first construct target-side word order before realizing the target language surface form. We identify individual attention heads that are selectively sensitive to syntactic transformations while remaining largely invariant to language identity. These results establish the commitment to a syntactic structure as an independent stage in translation, extending prior decompositions and showing how translation is implemented by functionally different components within mLLMs.
Abstract source - EMNLP · Findings
PPE-Bench: A Benchmark for Evaluating MLLM Unlearning under Private-Public Entanglement
Xianren Zhang, Delvin Ce Zhang, Dongwon Lee, Suhang Wang
Abstract
Multimodal Large Language Models (MLLMs) have shown strong capabilities, but they may memorize private information from web data, raising privacy concerns. Machine unlearning offers a way to remove such private knowledge without retraining from scratch. However, existing MLLM unlearning benchmarks have two major limitations. First, they rely on simplified images that contain only the single target individual, failing to reflect the visual complexity of real-world photos. Second, they typically assume that the forget set and retain set are fully separated, ignoring the fact that private information is often visually entangled with benign public information. For example, a private individual may appear with a public figure or in front of a well-known landmark, where unlearning the private target should not damage the public context. To address these limitations, we propose PPE-Bench, a new benchmark for evaluating MLLM unlearning under private-public entanglement. Each image contains a target individual to be forgotten and public information to be preserved, including public figure and landmark. We further introduce two simple but effective methods to better preserve public information during unlearning. Through experiments, we find that existing unlearning methods can reduce private information leakage, but often substantially harm adjacent public information.
Abstract source - EMNLP · Findings
Accurate but Not Humble: Evaluating Epistemic Humility in LLM Agents under Knowledge Conflict
Kaiser Sun, Bernal Jiménez Gutiérrez, Hongjun Liu, Jingyu Zhang, Jie Gao, Mark Dredze, Daniel Khashabi
Abstract
When retrieved evidence contradicts an agent’s prior beliefs, does it revise its answer, acknowledge uncertainty, or persist with an incorrect conclusion? Existing evaluations of agentic systems focus primarily on task success, offering limited insight into how agents handle such conflicts. We propose to evaluate agents on epistemic humility (EH): the agent’s willingness to recognize, act on, and communicate uncertainty during task execution. We operationalize EH through three trajectory-level behavioral dimensions: _Identify_, _Solve_, and _Escalate_ (ISE). Through _knowledge conflict_, situations where the backbone language model’s parametric knowledge contradicts the evidence it encounters, or where two contextual sources disagree, we build a two-level evaluation framework: (1) controlled single-step conflicts, and (2) naturally occurring conflicts during multi-step agentic executions, each level paired with matched no-conflict controls. Evaluating four agents, we find an inverse relationship between task accuracy and epistemic humility: the most accurate agents are often the most likely to give overconfident answers despite recognizing conflicts or risks. Trajectory-level analysis further reveals that agents frequently detect conflicts in early steps of execution but fail to maintain or resolve them in later steps. Finally, we show that Model-level interventions can improve EH, but often at the cost of task accuracy, suggesting that epistemic humility emerges from the interaction among the backbone model, agent harness, and evaluation environment.
Abstract source - EMNLP · Findings
Listening to the Slides: Multimodal LLM Speech Inpainting with Acoustic-Aware-Loss
Yanir Edri, Bracha Laufer-Goldshtein
Abstract
Speech inpainting reconstructs missing or corrupted speech segments, enabling restoration of damaged virtual lectures and online presentations. While existing audio-only approaches perform well for short gaps, their performance degrades significantly for long-duration missing regions. In this work, we introduce a novel multimodal speech inpainting framework that leverages accompanying presentation slides as semantic grounding for reconstructing both short and long missing speech segments (10 ms–1500 ms). Our approach reformulates speech inpainting from a local signal-reconstruction problem into a contextual speech generation task using a LALM. To improve acoustic flexibility during generation, we propose ASG, a token-grouping strategy that relaxes conventional hard-label training. In addition, we incorporate an auxiliary CTC objective to improve alignment between generated speech and target lexical content. Experiments on the M3AV-CHI benchmark demonstrate that the proposed multimodal framework substantially outperforms an audio-only baseline and consistently improves intelligibility and reconstruction quality across challenging long-duration gaps. Code and demo samples are available online.https://github.com/yanir1/Speech-Inpainting
Abstract source - EMNLP · Findings
IndicSafe: A Benchmark for Evaluating Multilingual LLM Safety in South Asia
Priyaranjan Pattnayak, Garima Panwar, Sanchari Chowdhuri
Abstract
As large language models (LLMs) are deployed in multilingual settings, their safety behavior in culturally diverse, low-resource languages remains poorly understood. We present the first systematic evaluation of LLM safety across 12 Indic languages, spoken by over 1.2 billion people but underrepresented in LLM training data. Using a dataset of 6,000 culturally grounded prompts spanning caste, religion, gender, health, and politics, we assess 18 leading LLMs on translated variants of the same prompt.Our analysis reveals a previously underexamined failure mode: cross-language exact agreement is only 20.69%, indicating that identical prompts frequently receive different safety judgments across languages, while cross-model exact agreement is just 2.77%. Some models over-refuse or overflag politically sensitive content, whereas others fail to flag unsafe generations or shift failures into ambiguous outputs. We quantify these behaviors using prompt-level entropy, category bias scores, and multilingual consistency indices.Our findings demonstrate critical safety generalization failures in multilingual LLMs and show that safety alignment does not reliably transfer across languages. We release IndicSafe, the first benchmark to enable culturally informed safety evaluation for Indic deployments, and advocate for language-aware alignment strategies grounded in regional harms.
Abstract source - EMNLP · Findings
TaoAnalysisBench: Do Automated Theorem Prover LLMs Generalize Beyond MathLib?
Alexander K Taylor, Junyi Zhang, Ethan Ji, Vigyan Sahai, Haikang Deng, Yuanzhou Chen, Yifan Yuan, Di Wu, Jia-Chen Gu, Kai-Wei Chang, Nanyun Peng, Amit Sahai, Wei Wang
Abstract
Automated theorem proving (ATP) benchmarks largely consist of problems formalized in MathLib, so current ATP training and evaluation are heavily biased toward MathLib’s definitional framework. However, frontier mathematics is often exploratory and prototype-heavy, relying on bespoke constructions that deviate from standard libraries. In this work, we evaluate the robustness of current ATP systems when applied to a novel definitional framework. We introduce TaoAnalysisBench, an undergraduate-level benchmark derived from the exercises and definitional frameworks given in Terence Tao’s Analysis I, which formalizes analysis by constructing core mathematical concepts from scratch, without relying on standard Mathlib definitions, as well as by mixing from-scratch and MathLib constructions. For fair evaluation, we build an agentic pipeline that automatically extracts a compilable, self-contained local environment for each problem. To isolate the effect of definitional frameworks, we additionally translate every problem into a mathematically equivalent Mathlib formulation, yielding paired TaoAnalysisBench-Mathlib statements for direct comparison. While state-of-the-art ATP models perform capably within the MathLib framework, performance drops by an average of 2.18x on the definitionally equivalent Tao formulation. This indicates that the main bottleneck is limited generalization across definitional frameworks rather than task difficulty. TaoAnalysisBench thus highlights a gap between benchmark performance and applicability, and provides a concrete foundation for developing and testing provers better aligned with research mathematics.
Abstract source - EMNLP · Findings
Detecting Post-generation Edits to Watermarked LLM Outputs via Error-Correcting Codes
Zewei Deng, Muhammad Siddeek, Liyan Xie, Mohamed Mohamed, Mengdi Wang, H. Vincent Poor, Andrea Goldsmith
Abstract
Watermarking has become a key mechanism for distinguishing AI-generated from human-written texts. In practical settings, however, content produced by large language models (LLMs) is often subject to critical post-generation edits, posing challenges for detecting and localizing such modifications. In this work, we propose incorporating error-correcting codes, specifically Varshamov-Tenengolts (VT) codes, by embedding VT code strings into watermarked LLM outputs, thus enabling post-generation edit detection of token insertions and deletions. We accompany such a watermarking procedure with a watermark detector and a post-edit detector. We evaluate our method on open-source LLM using synthetic edits and demonstrate excellent empirical performance of post-generation edit detection.
Abstract source - EMNLP · Findings
Health-SCORE: Improving Open-Ended Health LLMs Using Scalable Rubric-Based Rewards
Zhichao Yang, Sepehr Janghorbani, Dongxu Zhang, Jun Han, Qian Qian, Andrew Ressler II, Gregory D Lyng, Sanjit Singh Batra, Robert E. Tillman
Abstract
Reinforcement learning is a powerful approach for improving language models, but applying it to open-ended domains such as healthcare remains challenging because high-quality responses are often multidimensional, context dependent, and difficult to capture with a single reward signal. Rubrics offer a natural form of supervision by providing a structured representation of the criteria that define a strong response. Existing rubric-based approaches, however, often rely on instance-specific criteria, creating two important limitations: (1) such rubrics are typically unavailable for unseen examples at test time; and (2) constructing new rubrics for every instance incurs substantial reward design costs. We introduce Health-SCORE, a scalable framework that captures recurring principles of response quality in the form of reusable meta-rubrics. Rather than relying on manually constructed instance-level criteria, Health-SCORE captures generalizable principles that can be applied across examples, tasks, and healthcare datasets. These meta-rubrics support two forms of model improvement: they can serve as structured, safety-aware reward signals for reinforcement learning during post-training, and they can be incorporated directly into prompts to guide model behavior at inference time. Across several open-ended healthcare benchmarks, models trained with Health-SCORE achieve performance competitive with models trained using human-authored instance-level rewards, while substantially reducing reward-design costs and improving generalizability.
Abstract source - EMNLP · Findings
Sense and Sensitivity: Benchmarking LLM Clinical Triage Recommendations with Physician Experts
Abinitha Gourabathina, Haoran Zhang, Yuexing Hao, Walter Gerych, Marzyeh Ghassemi
Abstract
As large language models (LLMs) are increasingly used in clinical settings, it is critical to evaluate their reliability under realistic variation in clinical text. We study this question in clinical triage, comparing LLMs to practicing physicians under text perturbations that preserve the underlying clinical setting. We introduce a benchmark of over 6{,}000 clinical scenarios, 7{,}000 physician annotations, and 225{,}000 model responses. Using this benchmark, we make two key observations. First, LLMs are more likely than physicians to recommend unnecessary care at baseline, and this tendency increases under perturbed inputs. Further, we find that LLM recommendations are more sensitive to gender and tone perturbations than human recommendations. Together, these results demonstrate that LLMs can vary under clinically irrelevant textual changes, highlighting the need for deployment-oriented evaluations grounded in expert physician behavior.
Abstract source - EMNLP · Findings
When Trivia Is Not Trivial: Everyday Knowledge Failures in Multilingual LLMs
Anna Mosolova, Djamé Seddah
Abstract
Quiz rooms, trivia nights, and quiz shows challenge human knowledge across a wide range of topics, from canonical facts to everyday culture. In this paper, we examine whether large language models (LLMs) can perform competitively in such settings, using quiz-style questions to test them on both common and niche topics. We introduce TriviaRoomQA, a multilingual benchmark designed to evaluate everyday, culturally grounded, and long-tail knowledge across 288 topics. The benchmark contains 3,300 parallel multiple-choice questions in six European languages and additional 5,340 French-only questions for a more fine-grained case study. We evaluate 30 open-weight LLMs from European, Asian, and North American providers, covering models from 7 to 70B parameters. We find that models are strong on knowledge-intensive topics such as history, geography, and mathematics, but substantially weaker on everyday popular-culture topics such as celebrities, music, movies, and news. Moreover, model performance varies across languages even for the same underlying questions, suggesting that access to factual knowledge is not always language-independent. In sum, our dataset and experiments demonstrate an important knowledge gap which is not captured by existing academic-based saturated benchmarks.
Abstract source - EMNLP · Findings
RFCLLM: Evaluating LLMs’ Reasoning Ability of Network Protocol State Machines
Anqi Chen, Dan Goldwasser, Cristina Nita-Rotaru
Abstract
Mapping textual specifications into formal representations is essential for ensuring the correctness of protocol designs and implementations. LLM-generated mappings, used for networking security or testing, are assumed to capture a perfect understanding of the specification, which may not hold in practice. The goal of this paper is to assess the extent to which LLMs can interpret the specification correctly. We examine the degree to which an LLM’s implicit representation of a finite-state transition system–defined via natural language descriptions–aligns with a manually generated ground-truth model.We designed 4 tasks and 1482 task queries for 16 protocols. We evaluated different judge biases, observed the inherent difficulty gaps between tasks, looked into the effect of 4 context types, and the influence of protocol characteristics. Our work contributes to a step toward verifying whether LLMs can really be trusted in FSM (Finite State Machine) reasoning of protocol specifications.
Abstract source - EMNLP · Findings
Characterizing Opinion Evolution of Networked LLMs
Caleb Probine, Yigit Ege Bayiz, Filippos Fotiadis, Samuel Li, Yunhao Yang, Ufuk Topcu
Abstract
Large language models (LLMs) increasingly interact with one another in multi-agent systems, from simulations of human discourse to influence operations and fully LLM-driven social platforms. These interactions give rise to new regimes of opinion propagation that are not yet well understood. We investigate whether classical opinion dynamics models, which have long been used to explain how interactions shape collective beliefs in human societies, can capture the behavior of LLM networks. Specifically, we quantify the relative contributions of classical opinion-dynamics mechanisms, including neighbor influence, stubbornness, homophily, and bias, to the evolution of LLM opinions. Among the mechanisms considered, a bias term capturing regression toward a model- and topic-dependent opinion emerges as a significant explanatory component, with its inclusion reducing cumulative estimated mean opinion error by up to 88%. We additionally observe similar trends across the evaluated model families, discussion topics, and network structures.
Abstract source - EMNLP · Findings
Gradient-Stable Attention Heads Signal LLM Correctness
Sophie Ostmeier, Brian Axelrod, Maya Varma, Asad Aali, Yabin Zhang, Magdalini Paschali, Sanmi Koyejo, Curtis Langlotz, Akshay S Chaudhari
Abstract
Large language models (LLMs) often generate plausible yet incorrect answers, posing risks in safety-critical settings such as medicine. Human evaluation is expensive, and LLM-as-judge approaches risk introducing hidden errors. Recent single-pass white-box methods detect contextual hallucinations using linear probes over model internals, but their generalization to out-of-domain, out-of-task, and training-free settings remains poorly understood. We introduce HeadEntropy, a method that predicts answer correctness by measuring how susceptible each attention head’s pattern is to modification under further gradient updates. The key insight is that the trace of the softmax Jacobian is a monotonic function of 2-Rényi entropy, linking attention spread to gradient stability during training, even without the reference annotation. With no training, HeadEntropy reaches 0.736 AUROC, outperforms every training-free baseline in paired comparison across 5 models and 5 datasets, and matches a hidden-state probe transferred across domains, at under 1% of inference cost. We evaluate broadly across 5 instruction-tuned LLMs and 5 datasets spanning general knowledge, multi-hop reasoning, mathematical reasoning, claim verification, and medicine. The code is available at https://github.com/StanfordMIMI/HeadEntropy.
Abstract source - EMNLP · Findings
Debug or Regenerate? Test-Guided Selection for LLM Code Repair
Atharv Kulkarni, Archiki Prasad, Vivek Srikumar, Elias Stengel-Eskin, Hyunji Lee, Mohit Bansal
Abstract
Large language models (LLMs) are increasingly used as coding assistants, but the programs they generate often fail. Such failures can be addressed by debugging the existing implementation or regenerating a new solution from the problem specification, with existing repair workflows typically defaulting to debugging. We find that the effectiveness of debugging and regeneration depends strongly on initial program quality, suggesting that no single repair strategy is universally optimal. Motivated by this observation, we present PATSSEL (Program-Adaptive Test-guided Repair Strategy Selection), a test-guided repair selection framework that dynamically chooses between debugging and regeneration. Rather than committing to a single repair strategy, PATSSEL generates debugged and regenerated candidates for each buggy program, evaluates them using generated verifier tests, and selects the stronger candidate, leveraging the complementary strengths of debugging and regeneration. Experiments on LeetCodeDataset, LiveCodeBench, and HE+Fix show that PATSSEL achieves average absolute improvements of 2.7% with Qwen3-8B and 3.2% with Llama3-8B over the best single-strategy baselines under the same inference compute budget and routing using gold unit tests. The gains persist across repair models, routing models, and stronger debugger models. Further analysis shows that PATSSEL benefits from the complementary strengths of debugging and regeneration, highlighting the importance of adaptive strategy selection for reliable LLM-based code repair.
Abstract source