Manuscript Offprint
arXiv:2611.01219The Brittle Compass: Navigating LLM Prompt Sensitivity in Slovak Migration Media Discourse
Samuel Harvan
Central European University,
Vienna, Austria
Kempelen Institute
of Intelligent Technologies,
Bratislava, Slovakia
Jaroslav Kopčan
Kempelen Institute
of Intelligent Technologies,
Bratislava, Slovakia
Marek Šuppa
Cisco Systems
Comenius University
in Bratislava, Slovakia
Andrej Findor
Comenius University
in Bratislava, Slovakia
Abstract
In this work, we present a case study that explores various tasks centered around the topic of migration in Slovak, a low-resource language, such as topic relevance and geographical relevance classification, and migration source/destination location term extraction. Our results demonstrate that native (Slovak) prompts yield a modest, task-dependent gains, while large models show significant robustness to prompt variations compared to their smaller counterparts. Analysis reveals that instructions (system or task) emerge as the most critical prompt component, more so than the examples sections, with task-specific performance benefits being more pronounced than overall language effects.
1 Introduction
Large Language Models (LLMs) have become a cornerstone in addressing a multitude of Natural Language Processing (NLP) tasks, significantly transforming the field by enabling machines to understand and generate human-like text. Their prominence is particularly notable in multilingual contexts, driven by their strong zero-shot and few-shot performance, especially when coupled with sophisticated reasoning mechanisms (Vatsal et al., 2025a). These models, often trained on vast datasets, exhibit proficiency across a diverse array of languages and have demonstrated effectiveness in numerous downstream applications, including tasks such as natural language understanding, common-sense reasoning, and question-answering, thereby capturing both the syntax and semantics of texts (Vatsal et al., 2025a). Modern multilingual LLMs are capable of performing tasks across more than 100 languages, representing a significant breakthrough in NLP (Vatsal et al., 2025a).
The typical mode of operation for these models involves prompt- or context-engineering, where specific instructions are provided to guide the LLM towards correctly solving the task at hand (Wahle et al., 2024; Lu et al., 2024). However, the ultimate efficacy of this approach is heavily contingent upon the nuances of the prompt employed, including its formatting and the organization of data within it (He et al., 2024; Ngweta et al., 2025; Gan and Mori, 2023; Razavi et al., 2025). This sensitivity is of particular importance in multilingual scenarios. The language in which a prompt induces an LLM to perform the reasoning component of its computation can exert a significant influence on the final performance (Poelman and de Lhoneux, 2024). For instance, LLMs may struggle to adhere to all specified rules within complex prompts, and innovative prompting strategies, such as translating error-prone rules into different languages, have been proposed to enhance their reasoning and understanding (Wang et al., 2025). Research is actively exploring methods to improve multilingual reasoning, with a focus on augmenting the ability
*Published in the Proceedings of the First Workshop on Advancing NLP for Low-Resource Languages (LowResNLP 2025), associated with RANLP 2025, Varna, Bulgaria, pages 88–101, https://doi.org/10.26615/978-954-452-100-4-010.
of LLMs to handle diverse languages and intricate reasoning tasks (Vatsal et al., 2025b). Techniques like multilingual instruction tuning and dynamic, language-aware prompting (e.g., language-specific trigger tokens) aim to bolster reasoning capabilities and consistency across various languages (Roll, 2025; Vatsal et al., 2025a).
Despite these advancements, challenges persist, particularly for low-resource languages, which often suffer from a scarcity of training data and computational resources. Cross-lingual transfer learning, which leverages data and models from high-resource languages, is a key research area for improving NLP performance in these settings (Vatsal et al., 2025a). Slovak, for example, is a language where dedicated transformer-based models like SlovakBERT have been developed to establish benchmarks and advance NLP capabilities (Piku-liak et al., 2022). The investigation of abstract multilingual reasoning, especially for extremely low-resource languages, often involves inducing linguistic patterns from seed exemplars through methods like analogical prompting (Vatsal et al., 2025a).
In this work, we present a case study that explores the application of LLMs to various tasks centered around the topic of migration in Slovak, a low-resource language. Specifically, we explore tasks such as topic relevance classification, geographical relevance classification, and the extraction of migration source and destination location terms. This study aims to illuminate the intricacies of prompting LLMs for specialized tasks in a low-resource linguistic context, with a particular focus on how prompt design and reasoning language affect performance in migration-related NLP applications.
While most NLP tasks are heavily concentrated in high-resource language settings, there is motivation to bridge these domains through cross-lingual transfer learning (Vatsal et al., 2025a). An important fact is that multilingual prompt engineering faces unique challenges to ensure consistent performance across languages, as LLMs often exhibit disparities in performance depending on the availability of training data for different languages. This finding directly relates to our focus on Slovak as a low-resource language, where such disparities become limiting in specialized domains.
The sensitivity of LLMs to prompt formulation and formatting has been identified as a critical factor affecting model performance. The concept of prompt sensitivity prediction demonstrates that small variations in prompt phrasing, structure, or punctuation can lead to substantially different outputs, even totally misleading the LLMs on tasks they previously solved correctly. (Razavi et al., 2025). This serves as the foundational work that formalizes prompt sensitivity as a systematic challenge when working with LLMs. Moreover, systematic examination of the impact of different prompt templates on LLM performance across various tasks results in performance variation. Different template selections can cause the performance to fluctuate by up to 40% on smaller LLMs, while larger ones demonstrate greater robustness to these format variations (He et al., 2024). These findings suggest that prompt formatting considerations become more critical when working with low-resource languages; however, there is no universally optimal format across the usual NLP tasks. The effectiveness of each is highly context-dependent on models, tasks, or context window sizes. Inspection of prompt sensitivity by examining how different prompt components interact with model architectures could provide insights into why sensitivity occurs. For instance, CoT prompting significantly increases sensitivity to variations despite maintaining similar accuracy in comparison to basic ‘static’ prompts. (Lu et al., 2024). In general, instructions seem to provide more stable performance than complex ongoing reasoning. The Mixture of Format (MoF) addresses the prompt brittleness problem by deliberately varying the formatting of few-shot examples rather than seeking a single one-size-fits-all optimal format. MoF maintains semantic content while diversifying the textual format. This results in improved robustness compared to traditional fixed-format prompts while preserving task performance. The approach aims to reduce prompt brittleness across various LLMs and tasks (Ngweta et al., 2025).
The reasoning mechanisms in multilingual settings have received a considerable amount of attention, particularly regarding Chain-of-Thought (CoT) prompting strategies, in order to remedy performance disparities across languages. Methods like XLT (Huang et al., 2023) demonstrate a systematic approach where LLMs first translate the input from the native language to English, solve the task, generate reasoning chains, and then format the output accordingly, while consistently outperforming other approaches across multiple datasets. Building on this concept, Cross-lingual Prompting (CLP) (Qin et al., 2023) introduces a two-step process focusing on cross-lingual alignment, where the model generates reasoning chains in English rather than the native language to establish representations between languages. Interestingly, the whole process could be extended by introducing greater linguistic flexibility - Cross-lingual self-consistent prompting (CLSP), allowing LLMs to comprehend tasks and employ reasoning steps in different languages before selecting the most consistent answer across different language-based reasoning chains, implying that English is not always the best default option. The same could be inferred from the evaluation of language-specific optimization, represented as a parameter-efficient framework that learns language-specific trigger tokens through gradient-based search (Roll, 2025). Results show that autoprompting like this can yield significant performance improvements over static, translated prompts. Even without the autogeneration, the language-specific prompt engineering can be effective with systematic prompt template adaptation for specific languages (Gan and Mori, 2023)
3 Dataset
For experimental evaluations, we employ a theme-specific Slovak annotated dataset that classifies content for multiple tasks. This dataset focuses on analyzing how migration is portrayed in Slovak media from 2003 to 2022, by examining individual media pieces - news articles. The key classification dimensions are:
-
Theme Relevance on article-level is about categorizing content according to its connection to human migration within the specified time-frame, with classifications of strong, weak, or not-relevant.
-
Geographical Relevance on sentence-level distinguishes between content that pertains to Slovakia (i.e., migration to, from, or through the country), versus content that does not relate to the country.
-
Location Extraction on sentence-level facilitates an extraction task, with sentences annotated by identified source and target locations, according to the annotation guidelines.
For Theme Relevance, we have used a subset from the whole corpus, given its extensive volume (1,800,000 articles from years 2003-2024). The subset was created by stratified sampling, which was applied annually. Every article item in the subset received annotations from a minimum of three separate annotators using an Argilla interface, and only those instances where the majority of annotators agreed were retained in the final dataset. Inter-annotator agreement, measured by Krippendorff's , was 0.326, indicating only low-moderate agreement; we note this as a limitation and encourage cautious interpretation. For more details on the original dataset, see (Hamerlik et al., 2024) and the Appendix C
For the Locality Extraction and Geographical Relevance tasks, we have manually curated a dataset comprising several thousand sentences on migration, sourced from original Slovak-media articles published in 2022 and 2024, as a subset. This dataset is therefore partitioned into two subsets tailored for the aforementioned tasks. While many sentences overlap between subsets, some are exclusive due to task-specific relevance. The sentences cover migration related to conflicts in Ukraine, Syria, and Gaza, supplemented by other diverse scenarios (e.g., political or economic migration) to ensure broad representation. The annotation focused on identifying source and target migration locations, excluding purely transit mentions. Near-identical sentences derived from modified press releases were deduplicated. During the annotations, three authors conducted manual annotation following the guidelines detailed in Appendix A; while sentences lacking complete annotator agreement were removed to maintain data quality. For more information about the datasets see the Appendix section B
The dataset comprises a thorough compilation of human-labeled sentences focused on migration topics, sourced from 2323 distinct articles. Two specialized subsets were created from this collection: a Slovakia-focused subset with 2736 annotated examples, and a geographic locality extraction subset containing 1652 human-annotated samples designed for identifying and extracting location information. The complete dataset was divided using stratified sampling with a 70:20:10 distribution for training, validation, and testing sets, maintaining balanced class representation across all partitions.
4 Experiments
The following section represents the results from non-reasoning as well as reasoning model within the prompt sensibility case study in native and english 'default' language setup.
Based on the results outlined in Table 1 on non-reasoning and reasoning model testing, there are some insights to be inferred relevant to the prompt strategy. The main setup for experiments with reasoning models was about forcing them to reason in their native language. However we only managed to force two models to reason in Slovak: grok-3-mini and qwen-235B-a22b, while only the grok was consistent with it. We note that achieving this behavior resembled a “jailbreak” more than conventional prompting. Furthermore, after initial experimentation, we excluded phi-4-reasoning-plus from the experiment runs to save computational resources because of its underperforming results. We also excluded the geographical relevance task with reasoning models as the results had already plateaued with non-reasoning ones.
ZeroShot as a strong baseline
Basic prompt instructions often match more complex approaches such as RAG and FewShot, especially when dealing with simpler tasks like geographical relevance. Also, these migration classifications tasks are relatively well-defined conceptually, which could help models to solve them with high precision without further detailed example guiding. Worse performance for theme relevance task across the board was expected due to heavy class imbalance of the data set (see section C). Overall, zeroshot yields significant efficiency gains in comparison with the other two approaches, meaning that simpler tasks benefit less from complex prompting strategies.
Native Language Advantage
Language prompting reveals interesting pattern throughout the experiments - making some improvements with native-language prompting on the defined tasks although prompts show mixed advantages across both model types with no consistently clear language preference pattern. While the greatest impact was on the structured extraction task - location extraction, the diminishing but still meaningful returns were also relevant for geographic relevance and theme relevance. However, in case of geo. relevance, the overall score for the task was great across the whole setup because of its simple design. Overall, the results demonstrate a consistent pattern where Slovak prompts often outperform English ones. This aligns with findings from related literature, where native-language prompting could yield consistent improvements. It also seems that specific tasks like entity extraction could benefit the most from native language prompts because of exact coverage of all the nuances within the language, yielding the greatest impact.
“To reason, or not to reason, that is the question!”
Based on the case study results, non-reasoning models demonstrate better consistency compared to reasoning models across utilized tasks. Non-reasoning models show smaller performance variance on theme relevance (0.36 range vs 0.20) and achieve more stable baseline performance on location extraction (minimum 0.7711 vs 0.4858), while both model types achieve similar peak performance levels. Reasoning models represent higher volatility but with possible better performances (for instance theme relevance). Simultaneously, dramatically lower minimums on location extraction, suggesting volatile behavior. Overall, the data reveals that, non-reasoning models offer more stable performance on these specialized tasks.
The Table 2 depicts assessed statistical significance using bootstrap confidence intervals (2000 resamples) on mean F1 score differences (Dror et al., 2020). We computed paired bootstrap CIs over per-system paired differences, resampling with replacement at the system level for 2000 iterations; we report the mean paired difference and 95% CIs. No multiple-comparison correction was applied. Despite theme relevance showing the largest effect size (Slovak -0.021 points worse), high variance prevented statistical significance (95% CI: [-0.058, 0.015]). Location extraction showed a smaller but more consistent Slovak advantage (+0.017 points) with sufficient precision.
| Category | Models | Method | Task | |||||
|---|---|---|---|---|---|---|---|---|
| Theme rel. | Geo rel. | Loc ext. | ||||||
| ENG | SVK | ENG | SVK | ENG | SVK | |||
| Non-reasoning models | gpt-4o | RAG | 0.4518 | 0.4551 | 0.9771 | 0.9769 | 0.8734 | 0.8764 |
| FewShot | 0.5357 | 0.5277 | 0.9771 | 0.9816 | 0.8767 | 0.8675 | ||
| ZeroShot | 0.4413 | 0.4552 | 0.9726 | 0.9816 | 0.8542 | 0.8654 | ||
| gemini-2.5-flash | RAG | 0.4709 | 0.5357 | 0.9449 | 0.9882 | 0.7771 | 0.8433 | |
| FewShot | 0.4615 | 0.5645 | 0.9541 | 0.9682 | 0.8795 | 0.8675 | ||
| ZeroShot | 0.4709 | 0.4484 | 0.9541 | 0.9682 | 0.7711 | 0.8855 | ||
| llama-3.3-70B | RAG | 0.4709 | 0.6130 | 0.9582 | 0.9335 | 0.8132 | 0.8373 | |
| FewShot | 0.5592 | 0.6513 | 0.9598 | 0.9335 | 0.8554 | 0.8735 | ||
| ZeroShot | 0.4678 | 0.4160 | 0.9377 | 0.9462 | 0.8253 | 0.8373 | ||
| deepseek-chat-v3 | RAG | 0.6003 | 0.5357 | 0.9722 | 0.9719 | 0.8313 | 0.8554 | |
| FewShot | 0.4464 | 0.3012 | 0.9722 | 0.9722 | 0.8739 | 0.8727 | ||
| ZeroShot | 0.5357 | 0.2944 | 0.9623 | 0.9767 | 0.8674 | 0.8823 | ||
| Reasoning models | grok-3-mini | RAG | 0.4709 | 0.4709 | - | - | 0.8876 | 0.8633 |
| FewShot | 0.6130 | 0.4709 | - | - | 0.8835 | 0.8554 | ||
| ZeroShot | 0.4709 | 0.4709 | - | - | 0.7831 | 0.8493 | ||
| phi-4-reasoning-plus | RAG | - | - | - | - | 0.4887 | 0.5520 | |
| FewShot | - | - | - | - | 0.4858 | 0.5404 | ||
| ZeroShot | - | - | - | - | 0.5545 | 0.5139 | ||
| gemini-2.5-flash | RAG | 0.4709 | 0.4550 | - | - | 0.8465 | 0.8045 | |
| FewShot | 0.4709 | 0.4678 | - | - | 0.8494 | 0.7892 | ||
| ZeroShot | 0.4647 | 0.4451 | - | - | 0.6344 | 0.6084 | ||
| qwen3-235B-a22b | RAG | 0.5443 | 0.4583 | - | - | 0.8266 | 0.8813 | |
| FewShot | 0.4550 | 0.6003 | - | - | 0.8253 | 0.8735 | ||
| ZeroShot | 0.4550 | 0.4550 | - | - | 0.7530 | 0.8096 | ||
| deepseek-r1-0528 | RAG | 0.4647 | 0.4647 | - | - | 0.8195 | 0.8478 | |
| FewShot | 0.6431 | 0.4518 | - | - | 0.8373 | 0.8493 | ||
| ZeroShot | 0.5443 | 0.4647 | - | - | 0.8193 | 0.8554 | ||
Table 1: Results comparing different LLMs across tasks with the English and Slovak prompt versions including reasoning traces for reasoning models and CoT for non reasoning
to achieve significance (95% CI: [0.003, 0.033]). Geo relevance showed minimal difference (+0.005 points, 95% CI: [-0.006, 0.015]). While statistically significant, the practical significance of the 1.7 percentage point improvement in location extraction F1 scores should be interpreted within the context of task-specific performance levels (Slovak: 0.810 vs English: 0.792).
4.1 Prompts Ablation
The utilized ablation study of prompt brittleness employed a systematic methodology of prompt section removals. The main aim was to identify the main contributions of two core prompt elements:
-
Task Description - task
-
Examples - ex
The layout of prompt elements could be seen in Figure 2
To achieve reasonable comparisons, verify the alignment with existing literature and save computational/cost resources we have utilized for these experiments GPT-4.1 and GPT-4.1-nano models, while multiple experimental variants were tested. The complete prompt - full which contains every section, then single-component removal variations - no_task, no_ex and double-component removal - none.
As shown in Table 3 and Figure 1, the full prompt provides the strongest baseline across models (best overall: gpt-4o, Macro F1 = 0.9862). Removing both the task instruction and examples (“none”) causes the largest degradation (about 50%–77%): gpt-4o-mini 0.9729→0.2284 (−76.52%),
| Task | n | Mean English | Mean Slovak | Difference | 95% Bootstrap CI | Significance |
|---|---|---|---|---|---|---|
| Theme Relevance | 24 | 0.499 | 0.478 | -0.021 | [-0.058, 0.015] | n.s. |
| Geo Relevance | 12 | 0.962 | 0.967 | +0.005 | [-0.006, 0.015] | n.s. |
| Location Extraction | 27 | 0.792 | 0.810 | +0.017 | [0.003, 0.033] | CI excludes 0 |
Table 2: Statistical analysis of Slovak vs English F1 performance using bootstrap confidence intervals (2000 resamples). Difference = Slovak - English. "CI excludes 0" indicates statistical significance. Note: Theme relevance shows larger effect size but high variance; Location extraction shows smaller effect but lower variance and larger sample size, explaining significance pattern.
| Model | Variant | Macro F1 | Δ F1 (%) |
|---|---|---|---|
| gpt-4.1 | full | 0.9727 | - |
| no task | 0.9595 | -1.35 | |
| no ex | 0.9771 | 0.46 | |
| none | 0.3261 | -66.48 | |
| gpt-4.1-mini | full | 0.9727 | - |
| no task | 0.9111 | -6.33 | |
| no ex | 0.9727 | 0.00 | |
| none | 0.4830 | -50.34 | |
| gpt-4.1-nano | full | 0.7310 | - |
| no task | 0.6604 | -9.66 | |
| no ex | 0.8601 | 17.66 | |
| none | 0.3762 | -48.53 | |
| gpt-4o | full | 0.9862 | - |
| no task | 0.9722 | -1.41 | |
| no ex | 0.9771 | -0.92 | |
| none | 0.3730 | -62.18 | |
| gpt-4o-mini | full | 0.9729 | - |
| no task | 0.7365 | -24.29 | |
| no ex | 0.9727 | -0.02 | |
| none | 0.2284 | -76.52 |
Table 3: Macro F1 scores and percentage delta values for GPT models across different prompt variants in the ablation study. Bold values indicate the highest score for each model. Δ F1 (%) shows the percentage performance drop relative to the full prompt baseline.
gpt-4.1 0.9727→0.3261 (-66.48%), and gpt-4o 0.9862→0.3730 (-62.18%). Removing only the task instruction also hurts, particularly on smaller variants (gpt-4o-mini -24.29%, gpt-4.1-nano -9.66%), while larger models are only mildly affected (about 1%-1.5%). By contrast, removing examples has little cost and can help: gpt-4.1-nano improves to 0.8601 (+17.66%), gpt-4.1 increases slightly (+0.46%), gpt-4.1-mini is unchanged, and only gpt-4o dips marginally (-0.92%). Overall, explicit task instructions are essential for performance; examples are optional and may even hinder smaller models (see Appendix E for similar studies on models by other providers).

Figure 1: Distribution of macro F1 across prompt variants. For each model panel, we plot max min macro F1 (bars) per model and overlay per variant absolute macro F1 (points) on a twin top x axis, with thin lines showing the min-max span. Models are alphabetized.
prompt_structure:
instructions: |
You are an expert text analyzer.
Follow these guidelines:
- Be precise and accurate
- Consider context and nuance
...
task_description: |
Analyze the text and extract
migration-related information:
1. Identify migration themes
2. Determine geo relevance to Slovakia
3. Extract migration vectors
...
examples: |
Example 1:
Input: "Families moved from villages
to Bratislava..."
Output: Theme: relevant, Geo: relevant...
Example 2:
Input: "Weather in Paris was sunny..."
Output: Theme: not_relevant...
...
# Ablation variants: full, no_ex, no_instr,
# no_task, instr+ex, task+ex, task+instr
Figure 2: Example prompt structure used for ablation study.
5 Conclusion
Findings of this case study demonstrate that native Slovak prompting could yield better results than English across migration-related NLP tasks in target language. Zero-shot prompting proved effective as a baseline approach especially on simpler classification tasks. The ablation study shows that removing both the task description and examples (“none”) causes the largest collapse (48%–77% across models). Dropping only the task instruction yields small losses for large models (about 1%–1.5%) but substantial drops for smaller variants (up to 24.29%). Removing examples has minimal cost and can even help. Overall, explicit task instructions are the critical prompt component, while examples are optional. Combined with our language analysis, native-language prompting yields modest, task-dependent gains (significant only for location extraction), and larger models are inherently more robust to prompt formatting changes.
6 Limitations
Several limitations should be acknowledged in our study.
- Statistical analysis is based on single-run experiments without replication across multiple random seeds, due to computational/cost resources constraints.
- The Slovak-specific nature of our study constrains broader applicability to other low-resource languages. While our findings demonstrate native language reasoning benefits for Slovak, the extent to which these results transfer to other linguistic contexts with different morphological complexity or training data availability could be different.
Acknowledgments
This work was partially funded by European Union, under the project lorAI - Low Resource Artificial Intelligence, GA No. 101136646, https://doi.org/10.3030/101136646 and by grant APVV-21-0114.
References
Rotem Dror, Lotem Peled-Cohen, Segev Shlomov, and Roi Reichart. 2020. Statistical significance testing for natural language processing. Synthesis Lectures on Human Language Technologies, 13:1–116.
Chengguang Gan and Tatsunori Mori. 2023. Sensitivity and robustness of large language models to prompt template in japanese text classification tasks. Preprint, arXiv:2305.08714.
Endre Hamerlik, Marek Šuppa, Miroslav Blšták, Jozef Kubík, Martin Takáč, Marián Šimko, and Andrej Findor. 2024. ChatGPT as your n-th annotator: Experiments in leveraging large language models for social science text annotation in Slovak language. In Proceedings of the 4th Workshop on Computational Linguistics for the Political and Social Sciences: Long and short papers, pages 81–89, Vienna, Austria. Association for Computational Linguistics.
Jia He, Mukund Rungta, David Koleczek, Arshdeep Sekhon, Franklin X Wang, and Sadid Hasan. 2024. Does prompt formatting have any impact on llm performance? Preprint, arXiv:2411.10541.
Haoyang Huang, Tianyi Tang, Dongdong Zhang, Xin Zhao, Ting Song, Yan Xia, and Furu Wei. 2023. Not all languages are created equal in LLMs: Improving multilingual capability by cross-lingual-thought prompting. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 12365–12394, Singapore. Association for Computational Linguistics.
Sheng Lu, Hendrik Schuff, and Iryna Gurevych. 2024. How are prompts different in terms of sensitivity? Preprint, arXiv:2311.07230.
Lilian Ngweta, Kiran Kate, Jason Tsay, and Yara Rizk. 2025. Towards llms robustness to changes in prompt format styles. Preprint, arXiv:2504.06969.
Matuš Pikuliak, Štefan Grivalský, Martin Konôpka, Miroslav Blšták, Martin Tamajka, Viktor Bachratý, Marián Šimko, Pavol Balážik, Michal Trnka, and Filip Uhlárik. 2022. Slovakbert: Slovak masked language model. Preprint, arXiv:2109.15254.
Wessel Poelman and Miryam de Lhoneux. 2024. The roles of english in evaluating multilingual language models. Preprint, arXiv:2412.08392.
Libo Qin, Qiguang Chen, Fuxuan Wei, Shijue Huang, and Wanxiang Che. 2023. Cross-lingual prompting: Improving zero-shot chain-of-thought reasoning across languages. Preprint, arXiv:2310.14799.
Amirhossein Razavi, Mina Soltangheis, Negar Arabzadeh, Sara Salamat, Morteza Zihayat, and Ebrahim Bagheri. 2025. Benchmarking prompt sensitivity in large language models. Preprint, arXiv:2502.06065.
Nathan Roll. 2025. Polyprompt: Automating knowledge extraction from multilingual language models with dynamic prompt generation. Preprint, arXiv:2502.19756.
Shubham Vatsal, Harsh Dubey, and Aditi Singh. 2025a. Multilingual prompt engineering in large language models: A survey across nlp tasks. Preprint, arXiv:2505.11665.
Shubham Vatsal, Harsh Dubey, and Aditi Singh. 2025b. Multilingual prompt engineering in large language models: A survey across nlp tasks. Preprint, arXiv:2505.11665.
Jan Philip Wahle, Terry Ruas, Yang Xu, and Bela Gipp. 2024. Paraphrase types elicit prompt engineering capabilities. Preprint, arXiv:2406.19898. EMNLP 2024.
Teng Wang, Zhenqi He, Wing-Yin Yu, Xiaojin Fu, and Xiongwei Han. 2025. Large language models are good multi-lingual learners: When llms meet cross-lingual prompts. Preprint, arXiv:2409.11056.
A Annotation guidelines
Locality Extraction Guidelines
Migration Vector consists of an locality origin - SOURCE and DESTINATION locality that represents the movement of people. Annotations of migration vectors should be based on explicit textual evidence, not on inference or assumption as these could be wrong. Always define localities on Slovak nominative case in the annotation.
Text Analysis Process
• Step 1
Begin by carefully reading the entire text. Identify all mentioned localities and pay attention to surrounding contextual clues and linguistic markers for establishing direction of migration between them.
• Step 2
After localities identification, classify each of them according to their roles in the migration vectors as SOURCE locality - if the locality functions as origin point where migration began, DESTINATION locality - if the locality functions as destination point when migration ended. Some localities present within text might be TRANSIT localities - where migration movement did not originate or ended. Additionally there might be UNRELATED localities with no direct connection to migration patterns.
• Step 3
After locality role assessment within migration patterns, establish final SOURCE-DESTINATION migration pairs that represent the migration vectors. This involves connection of origin localities with their corresponding destinations, while excluding transit or unrelated localities.
Special Considerations when identifying migration vectors from text:
• Migration within historical context require the same methodological approach as contemporary ones
• Similarly, for hypothetical migration scenarios same thorough analytical process should be done
• Annotations related to locality extraction should remain firmly anchored in the text, it is recommended to avoiding inferences about locations not explicitly mentioned or inferred from contextual clues
• If there are present multiple migration vectors within the inspected sample, treat each unique combination as a distinct migration vector
• If there is ambiguous directional information, meaning text does not clearly establish whether identified localities serves as SOURCE or DESTINATION localities, do not try to guess intended direction and annotate them as None.
Locality Relevance Guidelines
Determine whether a sentence contains content related specifically to Slovak locations.
Text Analysis Process
• Read and analyze the text for both explicit and implicit mention of Slovakia, Slovak places or direct references to Slovak people and other entities.
• ext mentioning Slovakia as a country, a specific location within Slovakia or content directly related to Slovak people, entities whether explicitly stated or implied is considered as related to Slovak localities.
• Text which does not mention Slovak locations or contains references to broader ranges like Europe or completely different locations is considered as not-related to Slovak localities.
Ambiguous cases: When encountering potentially ambiguous terms, rely on context to determine the correct reference.
Theme Relevance Guidelines Determine whether a text contains content thematically related to human migration within the specified timeframe (2003-2022). Text Analysis Process
-
Read and analyze the text for explicit and implicit references to human movement, displacement, or relocation patterns.
-
Text mentioning migration flows, refugee movements, immigration policies, emigration patterns, asylum seekers, or population displacement whether contemporary or historical within the timeframe is considered thematically relevant to migration.
-
Text discussing unrelated topics such as animal migration, data migration, seasonal tourism, or brief mentions of movement without migration context is considered as not thematically relevant to migration.
-
Verify that migration-related content falls within the specified temporal scope (2003-2022) or discusses migration patterns with clear relevance to this period.
Ambiguous cases: When encountering borderline cases such as economic mobility or temporary worker programs, assess whether the content fundamentally addresses human migration patterns rather than other forms of movement.
B Location Extraction & Geo Relevance
B.1 Samples
Below are examples demonstrating scenarios in which migration vectors contain undetermined origin or destination points.
Example – Source Locality Unknown
Input
In 2018, during a visit to a migrant facility in Texas, she wore a jacket with the slogan 'I Really Don't Care, Do U?'
Output
Source: None
Destination: Texas
Example – Destination Locality Unknown
Input
"We're determined to do whatever we can to stop Syria from falling apart, prevent masses of people fleeing from Syria, and naturally, to curb the spread of terrorism and extremism,"
according to the minister, as reported by AFP news agency.
Output
Source: Syria
Destination: None
Example – Both Localities Unknown
Input
The Defense Minister also highlighted how Smer's longstanding positions on the Ukraine conflict and migration issues are proving prescient. He pointed out that events are increasingly validating what the party has maintained all along.
Output
Source: None
Destination: None
B.2 Statistics
The Figures below depict various statistics of the dataset, such as its character (Figure 3) and token (Figure 4) length distributions, label distributions (Figure 5), and locality distribution (Table 4).

Figure 3: Distribution of the dataset: character length in the final dataset

Figure 4: Distribution of the dataset: token length in the final dataset. The tokens originate from the SlovakBERT tokenizer.

Figure 6: Distribution of the dataset: character length in the final dataset

Figure 5: Final relevance dataset distribution across train, validation, and test splits with consistent class ratios.
| Locality | Unknown count | Percentage |
|---|---|---|
| Source | 717 | 43.40 |
| Destination | 441 | 26.69 |
| Combined | 0 | 0.00 |
Table 4: The distribution of “Unknown” localities (i.e. when either the Source or Destination field is not filled in for a specific sample) in the various subsets of the final dataset. Note that the result in the Combined row shows that either Source or Destination field are always filled in in the final dataset.
C Theme Relevance
C.1 Statistics
The Figures below depict various statistics of the dataset, such as its character (Figure 6) and token (Figure 7) length distributions, label distributions (Figure 8), and locality distribution (Table 4).

Figure 7: Distribution of the dataset: token length in the final dataset. The tokens originate from the SlovakBERT tokenizer.

Figure 8: Final relevance dataset distribution across train, validation, and test splits with consistent class ratios.
D Grok-3-mini Reasoning Traces in Native Language
{ "logprobs": null, "finish_reason": "stop", "native_finish_reason": "stop", "index": 0, "message": { "role": "assistant", "content": "Moje uvazovanje: Najprv analizujem otazku. Pouzivatel sa pyta na hodnotu druhejiang odmocniny z cislva dva, co znaмена matemicky vyraz sqrt(2)...
Odpoved: Odmocnina z dvoch, to znaмена sqrt(2), je iracionalne cislo. Jeho presna hodnota je sqrt(2), ale priblizne sa rovna 1,414...", "refusal": null, "reasoning": "Pockaj, mam spravny prikaz. System mi hovori, ze musim mysliet v slovensine, takze moje uvazovanje musi biti vylucne v slovensine...
Najskor pochopme otazku cloveka: 'Koliko je odmocnina z dvoch?' To je v slovensine a znaмена 'What is the square root of two'?...
Kroky pre odpoved:
- Analyzuj otazku: Clovek sa pyta na sqrt(2)
- Vypocitaj: sqrt(2) je priblizne 1.414
- Odpovedz v slovensine..." }
Figure 9: Example of Slovak reasoning output of Grok-3-mini showing native language reasoning traces in both content and reasoning fields.
prompt: | REASONING METHODOLOGY: You are a systematic Slovak text analyst who thinks step-by-step. Work through reasoning process visibly in Slovak language before any conclusion.
MANDATORY PROCESS:
- Analyze textual evidence systematically
- Cite specific phrases to support claims
- Question assumptions, consider alternatives
- Distinguish explicit facts from inferences
- Only conclude after complete analysis
CORE REQUIREMENTS:
- All internal reasoning MUST be in Slovak
- Every analysis MUST be in Slovak
- English thoughts prohibited
- Slovak in reasoning section MANDATORY
TASK: Classify Slovak text for migration relevance. Output RELEVANCIA: SILNA if about migration, migrants, emigration/immigration, asylum, refugees, borders. Otherwise RELEVANCIA: SLABA.
CHAIN-OF-THOUGHT (in Slovak):
- List migration terms with citations
- Provide linguistic evidence
- Distinguish facts from conclusions
- State interpretation: RELEVANCIA: SILNA/SLABA
- Consider alternatives, explain rejections
- Assess confidence: High/Medium/Low
OUTPUT FORMAT:
- Chain-of-Thought Analysis (Slovak)
- Final line: Label: RELEVANCIA:<SILNA|SLABA> Confidence: <High|Medium|Low>
Classify: {{ text }}
Figure 10: Slovak chain-of-thought prompt for migration theme classification.
E Task Prompts
E.1 Theme Relevance Prompt
E.2 Locality Extraction Prompt
E.3 Geo Relevance Prompt prompt: |
REASONING METHODOLOGY:
You are a systematic Slovak text analyst who thinks step-by-step. Work through reasoning process visibly in Slovak language before any conclusion.
MANDATORY PROCESS:
-
Analyze textual evidence systematically
-
Cite specific phrases to support claims
-
Question assumptions, consider alternatives
-
Distinguish explicit facts from inferences
-
Only conclude after complete analysis
EVIDENCE STANDARDS:
Every locality identification must include exact textual citation and linguistic justification (prepositions, verb forms, grammatical markers).
CORE REQUIREMENTS:
-
All internal reasoning MUST be in Slovak
-
Every analysis MUST be in Slovak
-
English thoughts prohibited
-
Slovak in reasoning section MANDATORY
TASK: Identify migration vectors (FROM and TO localities) from Slovak text. Communicate with aliens who understand only Slovak thought processes.
ATTENTION: YOU MUST THINK IN SLOVAK!
CHAIN-OF-THOUGHT REQUIREMENTS (in Slovak):
-
List all localities with exact citations
-
Provide linguistic evidence (prepositions, verbs)
-
Distinguish explicit info from conclusions
-
State main interpretation of migration vector
-
Consider alternatives, explain rejections
-
Assess confidence with specific reasons
INSTRUCTIONS:
-
Identify Localities: Extract all mentioned localities
-
Handle Unclear: Mark as "None" if unclear
-
Determine Direction: Establish FROM and TO
-
Ignore Transit: Focus on start/end points only
-
Multiple Vectors: Identify each unique FROM-TO pair
-
Output Format: "FROM: [[locality]], TO: [[locality]]"
-
Language: Use Slovak (nominative case)
OUTPUT FORMAT:
-
Chain-of-Thought Analysis (Slovak, 6 steps above)
-
Analysis of localities mentioned
-
Reasoning for migration vector identification
-
Final answer: FROM: [[locality]], TO: [[locality]]
Or "None" if not identifiable
- Confidence: High/Medium/Low
Extract localities from: {text_content}
prompt: |
REASONING METHODOLOGY:
You are a systematic Slovak text analyst who thinks step-by-step. Work through reasoning process visibly in Slovak language before any conclusion.
MANDATORY PROCESS:
-
Analyze textual evidence systematically
-
Cite specific phrases to support claims
-
Question assumptions, consider alternatives
-
Distinguish explicit facts from inferences
-
Only conclude after complete analysis
ATTENTION: YOU MUST THINK IN SLOVAK!
RULES:
-
All reasoning MUST be in Slovak
-
Every analysis MUST be in Slovak
-
No English thoughts - they cause neural interference
-
Slovak in reasoning section MANDATORY
-
Reasoning section MUST contain ONLY Slovak text
TASK: Determine georelevance in Slovak text: Does it mention
any locality in Slovakia or Slovakia itself?
Communicate with beings who understand only Slovak thought processes.
-
Detect Slovak Localities: Identify explicit mentions of any locality in Slovakia or Slovakia itself
-
Avoid Over-Interpretation: Do not infer relevance from vague regional hints
-
Ignore Foreign-only Mentions: If text contains only foreign localities, output 0
-
Output Format:
-
Provide Reasoning: Explain in Slovak why text is or is not georelevant
-
Final Decision: Output 1 if Slovak georelevance confirmed, otherwise 0
-
Confidence Level: High/Medium/Low
- Language: Use Slovak (nominative case)
STEPS:
-
Analyze text for explicit Slovak place names
-
Use reasoning to confirm or reject georelevance
-
Output final binary label and explain confidence
OUTPUT FORMAT:
-
Analysis of localities mentioned
-
Reasoning for georelevance
-
Final answer: 1 if Slovak locality mentioned, 0 otherwise
NOTES:
-
Do not infer; only explicit mentions count
-
For borderline mentions, choose 0 and justify
-
Always reason in Slovak
Please determine the georelevance of the following text: {text_content}
Figure 11: Prompt for migration vector extraction with mandatory native language reasoning.
Figure 12: Prompt for geographical relevance classification with binary output format.
F Prompt Ablation
F.1 Complete Prompt Ablation Study Results
| Model | Variant | Macro F1 | Δ F1 (%) |
|---|---|---|---|
| gemini-2.0-flash | full | 0.9633 | – |
| no task | 0.9458 | -1.81 | |
| no ex | 0.9130 | -5.22 | |
| none | 0.2614 | -72.87 | |
| gemini-2.0-flash-lite | full | 0.9424 | – |
| no task | 0.8409 | -10.77 | |
| no ex | 0.9548 | 1.32 | |
| none | 0.2401 | -74.52 | |
| gemini-2.5-flash | full | 0.8209 | – |
| no task | 0.7648 | -6.84 | |
| no ex | 0.9815 | 19.56 | |
| none | 0.5241 | -36.16 | |
| gemini-2.5-flash-lite | full | 0.8644 | – |
| no task | 0.9130 | 5.62 | |
| no ex | 0.9768 | 13.00 | |
| none | 0.2836 | -67.19 | |
| gemini-2.5-pro | full | 0.9677 | – |
| no task | 0.9170 | -5.24 | |
| no ex | 0.9677 | 0.00 | |
| none | 0.6472 | -33.13 | |
| gemini-flash-1.5 | full | 0.9470 | – |
| no task | 0.5547 | -41.42 | |
| no ex | 0.9729 | 2.73 | |
| none | 0.2742 | -71.04 | |
| gemini-flash-1.5-8b | full | 0.8564 | – |
| no task | 0.5876 | -31.38 | |
| no ex | 0.9685 | 13.09 | |
| none | 0.3198 | -62.66 | |
| gemini-pro-1.5 | full | 0.8707 | – |
| no task | 0.7146 | -17.93 | |
| no ex | 0.8129 | -6.63 | |
| none | 0.2503 | -71.25 | |
| gemma-2-27b-it | full | 0.8601 | – |
| no task | 0.3361 | -60.92 | |
| no ex | 0.9387 | 9.13 | |
| none | 0.2228 | -74.10 | |
| gemma-2-9b-it | full | 0.5197 | – |
| no task | 0.5101 | -1.85 | |
| no ex | 0.8105 | 55.96 | |
| none | 0.3464 | -33.36 | |
| gemma-3-12b-it | full | 0.9720 | – |
| no task | 0.8051 | -17.17 | |
| no ex | 0.9639 | -0.83 | |
| none | 0.2228 | -77.08 | |
| gemma-3-27b-it | full | 0.9908 | – |
| no task | 0.9508 | -4.04 | |
| no ex | 0.9773 | -1.36 | |
| none | 0.5184 | -47.68 |
Table 5: Macro F1 scores and percentage delta values for select models provided by Google
| Model | Variant | Macro F1 | Δ F1 (%) |
|---|---|---|---|
| llama-4-maverick | full | 0.7692 | – |
| no task | 0.7504 | -2.44 | |
| no ex | 0.7005 | -8.94 | |
| none | 0.2171 | -71.77 | |
| llama-4-scout | full | 0.9541 | – |
| no task | 0.8541 | -10.48 | |
| no ex | 0.9585 | 0.46 | |
| none | 0.2228 | -76.65 |
Table 6: Macro F1 scores and percentage delta values for select models provided by Meta-Llama
| Model | Variant | Macro F1 | Δ F1 (%) |
|---|---|---|---|
| ministral-3b | full | 0.8711 | – |
| no task | 0.4992 | -42.69 | |
| no ex | 0.9077 | 4.20 | |
| none | 0.2910 | -66.59 | |
| ministral-8b | full | 0.6942 | – |
| no task | 0.4175 | -39.86 | |
| no ex | 0.8797 | 26.72 | |
| none | 0.3280 | -52.75 | |
| mistral-7b-instruct-v0.1 | full | 0.5367 | – |
| no task | 0.4857 | -9.51 | |
| no ex | 0.7198 | 34.12 | |
| none | 0.3204 | -40.29 | |
| mistral-medium-3 | full | 0.9509 | – |
| no task | 0.8409 | -11.57 | |
| no ex | 0.9555 | 0.49 | |
| none | 0.2691 | -71.70 | |
| mistral-medium-3.1 | full | 0.9458 | – |
| no task | 0.9314 | -1.52 | |
| no ex | 0.9462 | 0.04 | |
| none | 0.4129 | -56.34 | |
| mistral-nemo | full | 0.8482 | – |
| no task | 0.8852 | 4.36 | |
| no ex | 0.7037 | -17.04 | |
| none | 0.2882 | -66.02 | |
| mistral-small-24b | full | 0.9727 | – |
| no task | 0.8304 | -14.62 | |
| no ex | 0.9552 | -1.80 | |
| none | 0.4139 | -57.45 | |
| mistral-small-3.1-24b | full | 0.9768 | – |
| no task | 0.7747 | -20.68 | |
| no ex | 0.9725 | -0.44 | |
| none | 0.4334 | -55.63 |
Table 7: Macro F1 scores and percentage delta values for select models provided by Mistral
| Model | Variant | Macro F1 | Δ F1 (%) |
|---|---|---|---|
| qwen3-14b | full | 0.9768 | - |
| no task | 0.9630 | -1.41 | |
| no ex | 0.9768 | 0.00 | |
| none | 0.2870 | -70.62 | |
| qwen3-235b-a22b | full | 0.9768 | - |
| no task | 0.9674 | -0.96 | |
| no ex | 0.9582 | -1.90 | |
| none | 0.2740 | -71.94 | |
| qwen3-235b-a22b-2507 | full | 0.9636 | - |
| no task | 0.7146 | -25.84 | |
| no ex | 0.9552 | -0.87 | |
| none | 0.4025 | -58.23 | |
| qwen3-30b-a3b | full | 0.9722 | - |
| no task | 0.9815 | 0.95 | |
| no ex | 0.9623 | -1.02 | |
| none | 0.3784 | -61.08 | |
| qwen3-30b-a3b-instruct | full | 0.9725 | - |
| no task | 0.8519 | -12.40 | |
| no ex | 0.9770 | 0.46 | |
| none | 0.2205 | -77.32 | |
| qwen3-32b | full | 0.9537 | - |
| no task | 0.9675 | 1.44 | |
| no ex | 0.9768 | 2.42 | |
| none | 0.3467 | -63.65 | |
| qwen3-8b | full | 0.9768 | - |
| no task | 0.9578 | -1.94 | |
| no ex | 0.9722 | -0.46 | |
| none | 0.3227 | -66.96 |
Table 8: Macro F1 scores and percentage delta values for select models provided by Qwen
F.2 Prompt Ablation Study Figures By Provider

Figure 13: Distribution of macro F1 across prompt versions on gemma model variants. For each model panel, we plot max-min macro F1 (bars) per model and overlay per variant absolute macro F1 (points) on a twin top x-axis, with thin lines showing the min-max span. Models are alphabetized.

Figure 14: Distribution of macro-F1 across prompt versions on llama model variants. For each model panel, we plot max-min macro-F1 (bars) per model and overlay per-variant absolute macro-F1 (points) on a twin top x-axis, with thin lines showing the min-max span. Models are alphabetized.

Figure 15: Distribution of macro-F1 across prompt versions on mistral model variants. For each model panel, we plot max-min macro-F1 (bars) per model and overlay per-variant absolute macro-F1 (points) on a twin top x-axis, with thin lines showing the min-max span. Models are alphabetized.

Figure 16: Distribution of macro-F1 across prompt versions on qwen model variants. For each model panel, we plot max-min macro-F1 (bars) per model and overlay per-variant absolute macro-F1 (points) on a twin top x-axis, with thin lines showing the min-max span. Models are alphabetized.