---
title: "Seed-Free Synthetic Data Generation Framework for"
description: "Pengpun and colleagues generate Thai instruction data without seed examples and test how far 5,000 examples can take a Thai assistant."
canonical: "https://research.elamur.ai/free/en/papers/pengpun-2024-seed-free-synthetic-data-generation/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/pengpun-2024-seed-free-synthetic-data-generation/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2024](https://md.research.elamur.ai/free/en/papers/2024/) / Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai

# Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai

Paper · 2024 · Parinthapat Pengpun, Can Udomcharoenchaikit, Weerayut Buaphet et al.

**Authors:** [Parinthapat Pengpun](https://md.research.elamur.ai/free/en/authors/parinthapat-pengpun/), [Can Udomcharoenchaikit](https://md.research.elamur.ai/free/en/authors/can-udomcharoenchaikit/), [Weerayut Buaphet](https://md.research.elamur.ai/free/en/authors/weerayut-buaphet/) and [Peerat Limkonchotiwat](https://md.research.elamur.ai/free/en/authors/peerat-limkonchotiwat/) · **Year:** 2024 · **Venue:** Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **6** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/pengpun-2024-seed-free-synthetic-data-generation/cited-by/) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2024.acl-srw.50/)
- [PDF](https://aclanthology.org/2024.acl-srw.50.pdf)

## Summary

A collection of instructions for training a Thai assistant can be built by writing examples in Thai or by translating examples from another language. The first route requires people to write and review the examples. The second can supply material at scale, but the language may sound less natural and the subjects may reflect the setting in which the originals were written. Pengpun and colleagues ask whether a small, deliberately constructed synthetic dataset can support competitive instruction following in Thai. Instruction [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) is the stage at which a pretrained system learns from examples of requests and suitable responses. The authors focus on the examples used at that stage. [Low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/)

Their pipeline starts by asking Claude-3 Haiku to propose topics, including topics about Thai culture. It uses those topics to find passages in Wikipedia or generate passages in different writing styles. It then writes Thai examples for answering questions about a passage, summarizing a passage, choosing among alternative answers, and holding a brief conversation. A similarity filter removes examples whose content closely resembles that of another example. The authors call the pipeline seed-free because it starts without a collection of demonstration instructions. Its inputs include prompts written for the generator and, for some examples, passages drawn from Wikipedia.

The authors fine-tune the same Llama-3 8B base separately on each of five datasets, all containing 5,000 examples. The strongest synthetic set combines direct Thai generation, broad topic coverage with similarity filtering, and material about Thai culture. On WangchanThaiInstruct, it achieves an average BERTScore of 69.50% on the Thai Culture Test Set and 73.20% on the General Test Set. BERTScore measures similarity between generated answers and reference answers. The complete recipe ranks second by that measure on both splits, behind Typhoon-Instruct and ahead of WangchanX and OpenThaiGPT. The other synthetic settings score lower. Since those settings change several parts of the recipe at once, the experiment establishes the advantage of the complete recipe among the tested alternatives more clearly than the contribution of each ingredient.

The ranking depends on what the comparison measures. The strongest synthetic setting produces shorter responses than Typhoon-Instruct and trails it on tasks such as brainstorming, creative writing, and summarization. It leads Typhoon-Instruct in multiple-choice BERTScore on both splits while trailing it on some other metrics for that same task. The paper therefore provides a specific result about data efficiency. A small, carefully constructed Thai dataset can compete with established Thai assistants on semantic similarity to benchmark answers, while response detail and other measures of answer quality can favor a different system.

## Deep dive: Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai

Pengpun and colleagues generate Thai instruction data without seed examples and test how far 5,000 examples can take a Thai assistant. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why the source of the instructions matters

A system can have learned a language during pretraining and still respond poorly when someone asks it to perform a task in that language. Pretraining supplies a starting point. Instruction tuning gives the system examples of the behavior required after a request, such as returning a category, writing a summary in a specified format, or answering from a supplied passage. The examples have to teach both what the request means and what a suitable response looks like. If the application is a Thai assistant, the wording of the request and the form of the response both matter.

The paper places this problem in the broader study of [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/). The authors cite work showing that strong performance in well-resourced languages can coexist with uneven performance in languages with fewer resources. They discuss tutoring, medical chatbots, and content moderation as reasons to care about better language coverage. Those applications motivate the study. The experiments themselves concentrate on general instruction following and on instructions with Thai cultural content.

The authors distinguish three properties of a useful training set. Fluency concerns whether the Thai reads naturally and follows the language's grammar. It applies to requests as well as answers. Diversity concerns the breadth of topics and domains represented by the examples. Many slight rewrites of a narrow group of requests can fill a dataset while offering relatively little variety in what the assistant is asked to do. Cultural context concerns the subjects, customs, and background knowledge that make examples relevant to people using Thai. A request can be fluent Thai and still come from a collection with little material about Thailand.

Earlier Thai efforts illustrated these properties in different ways. Human-written examples in the Han Instruct Dataset offered a source of natural Thai for WangchanX. Translated UltraChat gave SambaLingo access to a collection spanning many topics. Iapp Wiki QA, which the paper describes as part of OpenThaiGPT's training data, drew questions from Thai Wikipedia. The authors take those examples as reasons to design a synthetic collection that brings language quality, coverage, and cultural relevance into the same recipe.

#### The training routes available for Thai

Machine-translated instruction collections offered one way to adapt an existing system. The paper describes SambaLingo as using translated English data alongside continued pretraining for several target languages, including Thai. Continued pretraining extends the earlier learning stage before the system is adapted to answer instructions. Both stages can contribute to the quality of the final answers, which makes it hard to attribute the outcome solely to the later instruction examples.

The authors describe a different mixture for the WangchanX demonstration system they evaluate. It combines English datasets, Thai translations of English material, and 6k human-written Thai examples, for a reported total of 64k instruction examples. Gemini provided the translations mentioned in that account. Including English originals and Thai material in the same collection gives the learner experience with several sources of instructions. It also means that the resulting system tests a broader adaptation recipe than direct synthetic generation in Thai. [Gemini](https://md.research.elamur.ai/free/en/papers/gemini-team-2023-gemini-family-highly-capable-multimodal/)

Typhoon-Instruct uses continued pretraining on filtered web material and instruction tuning on translated and synthetic material. The paper describes some of its Thai synthetic data as generated with Self-Instruct. The authors do not give an exhaustive inventory or an exact instruction count for Typhoon-Instruct. OpenThaiGPT also uses continued pretraining and instruction tuning. The authors give concrete training counts for earlier OpenThaiGPT releases, including one that used 200k samples and another that used 300k. They report that the composition and count for the evaluated release were unspecified. These accounts show the scale of several earlier Thai efforts while leaving some uncertainty about the resources used by the particular systems in the benchmark.

The paper's experiment starts from a pretrained Llama-3 checkpoint and changes the later instruction data. This setup makes it possible to ask a narrower question than whether the entire Thai adaptation process can be performed with a small corpus. The learner already has the capabilities it acquired during pretraining. The experiment tests what a relatively small collection can accomplish when used to turn that starting point into a system that follows requests in Thai.

#### What earlier synthetic generation supplied

Self-Instruct began with 175 instructions written by people. It used those as seeds for generating new instructions and tasks and produced 82k samples. The seed collection gave the generator concrete examples of the kind of material to produce. For a language in which suitable instruction data is scarce, assembling that collection is itself part of the problem. Pengpun and colleagues use topic prompts and instructions for writing tasks to start the generation process.

WizardLM starts from Alpaca training data and applies prompts that make an instruction more demanding or generate a fresh instruction in a related domain. The paper reports that this process produced 250k examples. Complexity is the concern that distinguishes this account from the Thai study. A mechanism that makes an existing request harder can generate varied challenges, while the Thai study first needs to decide which subjects and language uses should appear in the collection. [WizardLM](https://md.research.elamur.ai/free/en/papers/xu-2023-wizardlm-empowering-large-pre-trained/)

UltraChat provides a precedent for generating conversations around different kinds of material. It uses several sources to obtain subjects and context, including information from Wikidata and search engines, material types identified in webpages, and writing instructions generated by GPT-3. The account in the paper describes an iterative exchange between two ChatGPT instances to simulate the user and assistant. In Pengpun and colleagues' pipeline, a conversation example is a single request and reply. That distinction later matters when the authors examine the brevity of the answers produced by their Thai system. [UltraChat](https://md.research.elamur.ai/free/en/papers/ding-2023-enhancing-chat-language-models-scaling/)

#### Why try a small collection

The authors draw on two earlier studies of efficient instruction tuning in English. LIMA assembled 1000 examples from online sources and human-written instructions. The paper describes ablations in which greater diversity and quality were associated with better performance, whereas doubling the amount of data by itself yielded no improvement. In one contrast, the more varied material from StackExchange outperformed a larger, more homogeneous wikiHow collection. In another, filtering for quality helped. These findings motivated the possibility that how examples are selected can matter more than the number of rows added.

Model-oriented data selection, or MoDS, asked a related question starting from an existing collection. Its procedure first filters for quality, then chooses a set intended to cover different regions of the data. After an initial fine-tuning pass, it adds examples that address gaps in the learner's performance. Pengpun and colleagues report that tuning with 4,000 MoDS-selected examples outperformed training on the full 214k collection. That result concerned the value of selecting examples from a pool. For the Thai study, the immediate question is how to create such a pool when suitable starting instructions are scarce. The pipeline treats coverage as something to shape both before examples are written, through topic generation, and after they are written, through filtering.

### The method, step by step

#### From a topic to a training example

The pipeline separates deciding what an example should be about from deciding what the assistant should do with it. A topic is a short description of a subject. A context is a passage that can provide material for a particular task. The instruction tells the assistant what to do, and the output is the example response the learner is meant to imitate. For a passage-based question, these pieces play different roles. The subject guides the choice of reading material, the passage contains what the question is about, and the response shows how to answer. A conversation can start with the subject alone.

The system used to write the examples is Claude-3 Haiku. The learner that receives those examples is Llama-3 8B. The task prompts guide Haiku in constructing requests and their answers, while the finished examples are used to adapt Llama-3. Wikipedia retrieval also happens during data construction. It supplies passages around which the generator can write exercises, where the exercise calls for a passage. It is part of preparing the instruction data.

From topic prompts to a Thai instruction-tuned assistant The steps in order.

#### Generating topics

The authors use separate prompts for general subjects and Thai cultural subjects. The general prompt leaves the range open. Everyday conversation, advice, mathematics, history, and philosophy appear among its suggestions. The cultural prompt asks the generator to adopt the perspective of a Thai person familiar with local customs, language, and history. It steers the topics towards areas such as traditions and food while leaving room for the generator to propose the specific subject. The two prompts therefore influence what goes into the candidate pool before any questions or responses are written.

Each prompt requests 20 topics per call, with the output structured as a list of short strings. Both use a temperature of 0.95. Temperature governs how freely the generator samples possible continuations. Here the relatively high setting serves a stage whose job is to propose a wide range of subjects. The pipeline repeats the request to accumulate a topic pool and removes duplicate topics. A topic can then lead to different pieces of context or different task formats. Removing repeated topic strings at this stage addresses a different source of repetition from the later filter, which compares completed examples.

The published counts for the complete setting are internally inconsistent. The dataset description gives 750 as its total number of topics and specifies 400 cultural and 300 general topics as the breakdown. These statements leave the precise allocation unresolved. The design choice the description establishes is that the complete setting draws from both topic categories. Some of the comparisons deliberately use general topics alone, and the fluency-only setting uses a considerably narrower pool.

#### Finding or writing a passage

For a task that needs a passage, the pipeline randomly chooses between using Wikipedia and generating a text. On the retrieval branch, it sends the topic to Wikipedia through the MediaWiki API. It obtains the top 10 articles returned as relevant and randomly takes one of them. The selected article is divided into sections, each of which can serve as a passage for an instruction. A question can thus be about a manageable part of an article, and the response can be written from the same material the learner will receive with the instruction.

The random choice among search results introduces a way for the same query to lead to different material without asking the generator to invent the content of every passage. Retrieval gives the exercise a source text whose claims are available for the generator to use. The process still relies on the search results and on what the selected section contains. Topical relevance enters through the query and search ranking. The task prompt then tries to keep the example tied to the result it receives.

The other branch asks Haiku to produce a passage about the topic in a randomly selected style. The set of styles includes news and blog writing, messages and emails, fiction, transcripts, poetry and songs, scientific and medical writing, social posts, and how-to material. This is another way to vary the examples. A summary of a news piece and a summary of a series of messages may call on the same broad skill, but they expose the learner to different ways that information can be presented. The generated passage then serves the same role as a retrieved section for the task prompt that follows.

There are consequently separate decisions about subject, source, and form. A cultural topic can direct the exercise toward Thailand, the context branch can determine where the passage comes from, and the task prompt can decide how the learner should use that passage. Those decisions give the authors several practical controls over the candidate data. A general topic can lead to a passage that happens to mention a cultural subject, and a culturally prompted topic can lead to a passage of varying quality. The switches control how material is requested and gathered.

#### Turning passages and topics into tasks

Closed [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) asks the assistant to find an answer in the material provided with the request. For each passage used in this task, Haiku is asked to write 5 question-and-answer pairs at a temperature of 0.35. The prompt encourages it to question different parts of the passage so that all the examples do not depend on the same sentence or fact. It also directs the generator to rely only on the passage. The authors added that emphasis after observing that Haiku sometimes brought assumed common knowledge into its answers. An example can then teach the intended behavior of using the evidence available to the person reading the same passage.

For [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/), Haiku receives a passage and a randomly chosen format. The answer takes the form of bullet points, paragraphs, or a numbered list. The prompt asks for both the summary and an instruction that would elicit that summary in the appropriate form. The temperature is 0.35. The pairing matters because the response demonstrates how to obey a request about presentation as well as how to condense the content. The same underlying task can therefore provide examples of several ways a reader might ask for the important information.

The conversation prompt takes a topic directly. It produces an example user message and an assistant reply, with the user opening through a question or a statement related to the topic. The assistant is prompted to answer in a friendly, casual way. The temperature is 0.8. Each example stops after the reply. It shows how to respond to a conversational opening. A follow-up that depends on an earlier turn, asks for clarification, or changes the request lies outside this format.

Multiple choice uses a passage to write a question, plausible options, and an answer. The appendix supplies a format with 4 choices and asks for an explanation and reasoning before stating the correct option. It calls for only 1 correct answer. This task uses a temperature of 0.4. The authors noticed that Haiku tended to place the correct option first, so the pipeline shuffles the choices. It asks Haiku in advance to avoid wording that depends on the ordering of the options. For instance, an option referring to a pair by their positions could change its meaning after the shuffle. The shuffle counters a regularity that would otherwise give the learner a clue unrelated to the passage.

Each prompt specifies an output structure suited to its task. The closed-question records pair a question field with an answer field. The summary record pairs the requested instruction with the summary. The conversational record separates the opening message from the reply. The multiple-choice layout distinguishes the question, choices, and answer. These conventions let the pipeline collect the right fields for tuning. The benchmark later extends beyond these generation categories, so part of the evaluation concerns how well the resulting system follows requests for which the pipeline has no dedicated task prompt.

#### Why the authors chose Haiku

The authors chose Claude-3 Haiku on the basis of capability, cost, and the Thai they observed it producing. They describe it as relatively inexpensive for its performance and report that its Thai read more fluently and coherently than that of GPT-3.5-Turbo, a system they considered to be in a similar price range. They also found that its [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) used fewer units to represent Thai text. A token is a unit of text processed by the system. Using fewer such units for the same Thai passage was a practical consideration for a pipeline that generates topics, contexts, instructions, and answers.

The paper connects that choice to earlier work describing Claude-3's performance on [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). The study itself uses Haiku as the example writer and varies how its output is processed in the synthetic conditions. The claim about how natural its Thai sounded is an observation supporting the generator choice. It has a different evidentiary status from the benchmark scores obtained after fine-tuning. [From LLM to NMT](https://md.research.elamur.ai/free/en/papers/enis-2024-llm-nmt-advancing-low-resource/)

#### Filtering examples by meaning

Different topics and random sampling can still yield near duplicates. Two records might use slightly different wording to ask for much the same answer. To detect cases like that, the pipeline joins the instruction, its context where applicable, and the expected output into a single text for comparison. BGE-M3 converts each joined text into an embedding, a vector of numbers used to represent its content. The authors cite its performance in Thai as their reason for using it. The comparison therefore concerns the content of the whole example, including the material the learner reads and the response it is supposed to produce. [M3-Embedding](https://md.research.elamur.ai/free/en/papers/chen-2024-m3-embedding-multi-linguality/)

The pipeline performs an approximate nearest-neighbor search over the example embeddings. The search seeks a close match for each record without requiring an exhaustive exact ranking. It uses cosine similarity, which compares the direction of the vectors. In the paper, the removal rule is given in words. Written symbolically, the threshold is:

```
cos(u, v) > 0.95
```

Here `u` is the embedding of the example being checked and `v` is the embedding of its nearest match returned by the search. The expression `cos(u, v)` denotes their cosine similarity. The parentheses enclose the two vector arguments, and the comma separates them. The `>` sign means that the value must exceed the threshold `0.95` for the removal rule to apply. The authors describe removing the example under consideration when the match is above that cutoff. [Semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/)

Topic selection and this filter address different forms of redundancy. Topic selection determines where the generation process looks for material. The filter checks whether completed examples end up close in the embedding representation. A broad topic pool may still yield several requests that resemble one another, while a narrow pool may produce many differently worded requests that stay within a small subject area. The complete recipe uses both controls. The cutoff is a rule for identifying close neighbors, and the paper evaluates the resulting dataset as a whole.

#### Constructing the training conditions

The authors train on five collections of 5,000 examples each. Their labels use F for fluency, C for cultural context, and D for diversity. A plus sign indicates that the authors intended to include the named property, while a minus sign indicates that the construction was designed to reduce it or omit a mechanism for supplying it. The signs describe the experimental recipe. As an example, a translated record can still read fluently, even though it belongs to a collection labeled F−.

The complete F+ C+ D+ setting uses direct Thai generation, a mix of Thai cultural and general topics, and the diversity filter. It retains the Thai wording produced by the pipeline. This is the condition that most directly implements the paper's proposal. The comparison settings use different ways of narrowing coverage, altering the language, or drawing on other material.

The fluency-only setting also generates the examples directly. It uses just 10 randomly generated topics, all general, and leaves out the diversity filter. This preserves direct Thai wording while restricting the pool of subjects and forgoing the explicit mechanism for adding cultural topics. In the diversity-only setting, the authors use 750 general topics and apply the diversity filter. They then translate the examples from Thai into English and back to Thai with nllb-200-distilled-600M. The round trip is intended to introduce some of the effects of assembling a Thai collection through machine translation.

For the cultural-context-only setting, the authors randomly select 1000 examples from the complete set as the basis. They translate those examples into English with NLLB, use QCPG to produce 4 paraphrases per example, and translate the resulting collection back into Thai. The paper lists 4,000 paraphrases and 1,000 originals in the 5,000-example collection. Reusing a smaller pool of underlying material is intended to narrow its domain coverage. Drawing on the complete collection is intended to keep some of its Thai cultural subject matter through the transformations.

The setting labeled as having none of the three properties has a different source. It starts from 1,000 randomly selected rows of UltraChat-200k. The authors generate 4 paraphrases per row and translate the resulting 5,000 examples into Thai with NLLB. They use UltraChat as a starting collection without the targeted Thai cultural material. Reusing the source examples limits the diversity of underlying requests, and translating the results is their way of approximating lower fluency. This condition provides a reference for the other datasets, with the important difference that it starts from an existing conversation collection.

#### Fine-tuning the same starting checkpoint

Each collection is used in a separate run starting from base Llama-3 8B. The training uses QLoRA, an adapter method that updates a relatively small set of trainable parameters while the underlying weights are stored in a compressed representation. The checkpoint is loaded in 4-bit form. The paper specifies a sequence length of 4000 and targets linear layers with adapters of rank 32, alpha 16, and dropout 0.05. Rank sets the size of the low-rank update, alpha controls its scaling, and dropout helps regularize the adapter during training.

The runs use a micro-batch size of 1 and accumulate gradients across 8 steps before an update. The optimizer is Paged AdamW 8bit, with a learning rate of 0.00015, a warmup ratio of 0.5, and weight decay of 0.0. The optimizer governs how the computed gradients change the trainable parameters, and warmup governs the initial rise in the learning rate. The authors train for 3 epochs, or passes through the training set. They schedule 1 evaluation and 1 save per epoch and report a training seed of 42. This seed fixes a source of randomness in the training configuration. The seed examples absent from the data-generation recipe are a different sense of the word.

The configuration also uses BF16 precision, gradient checkpointing, and Flash Attention. Gradient checkpointing trades some recomputation for lower memory use. The paper reports around 80 hours of GPU use in total on an RTX 3090. The common checkpoint and training configuration allow the synthetic runs to be compared while keeping the learner and the reported tuning setup fixed. The authors make their code and dataset available in the `seed-free-synthetic-instruct` repository.

### Experiments and results

#### What the benchmark asks the assistant to do

The authors use WangchanThaiInstruct to compare instruction following on a Thai Culture Test Set and a General Test Set. Together they contain 6,287 samples spanning legal, medical, and finance domains. The benchmark was created and checked by human annotators. The distinction between the two test sets allows the authors to examine both requests involving Thai cultural context and requests that are more general. Both splits contain the same broad categories of task. [Evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

Some tasks constrain what a suitable response looks like. Classification asks the assistant to put an input into pre-defined categories. Closed question answering asks it to find the information needed to answer in a supplied text. Multiple choice provides candidate answers and asks for a selection. Open question answering allows a more open-ended response to a question. In the authors' discussion of response length, open QA is among the tasks where a short answer can frequently serve the request.

Other tasks give the assistant more discretion over content and structure. Brainstorming calls for ideas or possible solutions, so an answer can be judged in part by what range of suggestions it supplies. Creative writing asks for a coherent piece shaped by a prompt or theme. Summarization asks for a shorter account of a text and leaves a choice about which details are important unless the request specifies them. These distinctions matter because a system that habitually gives brief replies can be well suited to naming a category and still leave out material that the reference covers in a writing or summarization task.

The synthetic pipeline has dedicated prompts for closed QA, multiple choice, and summarization. Conversation provides another kind of training example. The benchmark includes tasks such as brainstorming, classification, and creative writing, for which the authors did not design dedicated generation prompts. Performance on those tasks is therefore evidence about instruction following beyond the named task formats used to build the data. It cannot identify which particular examples supplied the behavior, since all the tuned systems started from a pretrained checkpoint.

#### Systems and scoring

The comparison contains the five Llama-3 8B variants tuned by the authors and three established Thai systems. The external systems are LLaMa3-8b-WangchanX-sft-Demo, Typhoon-Instruct-v1.5 8B, and OpenThaiGPT-v1.0.0 8B. The comparisons among the synthetic settings hold the reported instruction count and tuning procedure fixed. The comparisons with the external systems show how the resulting assistants perform against other available Thai systems whose training histories differ.

BERTScore is the authors' main measure for interpreting the benchmark. It compares representations of the generated answer and the reference answer to give credit for semantic resemblance. Text that expresses a similar answer in different words can receive credit through that comparison. The benchmark guidance cited by the authors regards it as the most reliable of the measures they use. Its scores still express similarity to a reference. In particular, a multiple-choice BERTScore is a score on the resulting answer text, including any explanation it contains. A dedicated count of correctly selected options would answer a different question.

The paper also reports [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/), [ChrF](https://md.research.elamur.ai/free/en/concepts/chrf/), METEOR, several ROUGE scores, and SQuAD F1 where applicable. These measures give different kinds of weight to agreement between a reference and an answer. ChrF looks at sequences of characters. The ROUGE variants report forms of overlap at different granularities, and the SQuAD F1 entries concern answer overlap on tasks where the authors report that measure. The tables include no SQuAD F1 row for brainstorming, creative writing, or summarization. Reporting several measures lets the reader see where an apparent advantage carries across different comparisons of the answer text.

#### Average results across tasks

On the Thai Culture Test Set, the complete synthetic setting has an average BERTScore of 69.50%. Typhoon-Instruct leads with 74.10%, while WangchanX scores 68.80% and OpenThaiGPT scores 64.50%. The complete setting is the only synthetic variant to reach the range occupied by those external systems on this aggregate. Its ranking supports the authors' central comparison with established Thai instruction-tuned systems.

Average BERTScore across tasks on the WangchanThaiInstruct Thai Culture Test Set The complete synthetic recipe ranks behind Typhoon-Instruct and ahead of the other systems.

**The numbers**

| System or setting | BERTScore % |
| --- | --- |
| No properties | 45.90 |
| Fluency only | 57.30 |
| Cultural context only | 49.60 |
| Diversity only | 48.20 |
| Fluency, cultural context, and diversity (this paper) | 69.50 |
| WangchanX | 68.80 |
| Typhoon-Instruct | 74.10 |
| OpenThaiGPT | 64.50 |

The ordering among the complete recipe and the external systems is the same on the General Test Set. The complete recipe has an average BERTScore of 73.20%. Typhoon-Instruct records 76.50%, WangchanX 72.20%, and OpenThaiGPT 67.50%. The general split matters for interpreting the result. The winning synthetic recipe includes Thai cultural material, and its advantage over the other synthetic settings also appears on general requests. Its performance is consistent with a collection that supports more than culture-specific tasks.

Average BERTScore across tasks on the WangchanThaiInstruct General Test Set The complete synthetic recipe retains its position behind Typhoon-Instruct on general requests.

**The numbers**

| System or setting | BERTScore % |
| --- | --- |
| No properties | 50.90 |
| Fluency only | 59.70 |
| Cultural context only | 52.60 |
| Diversity only | 49.50 |
| Fluency, cultural context, and diversity (this paper) | 73.20 |
| WangchanX | 72.20 |
| Typhoon-Instruct | 76.50 |
| OpenThaiGPT | 67.50 |

The other metrics qualify that comparison. On the Thai Culture Test Set, the aggregate ChrF score is 9.47 for the complete setting, against 17.28 for WangchanX, 17.21 for Typhoon-Instruct, and 14.54 for OpenThaiGPT. The culture split's aggregate BLEU scores tell a similar story, with 0.10 for the complete setting and 2.32 for Typhoon-Instruct. The stronger semantic ranking can coexist with much lower surface overlap with the reference answers. The training design gives the complete setting its strongest result when semantic similarity is the criterion.

SQuAD F1 has another ordering. In the aggregate reported for the Thai Culture Test Set, the complete setting scores 5.32, ahead of OpenThaiGPT at 3.58 and behind Typhoon-Instruct at 7.10 and WangchanX at 8.30. On the General Test Set, the corresponding scores are 4.58 for the complete setting, 3.31 for OpenThaiGPT, 7.26 for Typhoon-Instruct, and 7.43 for WangchanX. This aggregate is reported alongside metrics such as BERTScore, although its task-level entries occur only for the applicable tasks. A change in the metric can change which comparison system the synthetic recipe surpasses.

#### Where the averages conceal different outcomes

Brainstorming on the Thai Culture Test Set gives the complete synthetic setting a BERTScore of 70.48. It exceeds WangchanX at 68.99 and sits below OpenThaiGPT at 71.76 and Typhoon-Instruct at 80.43. On the General Test Set, the complete setting records 73.55 and Typhoon-Instruct records 79.79. This is a case where the overall ranking understates how much the identity of the next-best external system can depend on the specific task and split.

For creative writing, the complete setting scores 64.13 in culture-split BERTScore and 69.37 on the general split. Typhoon-Instruct scores 79.61 on the culture split and 77.02 on the general split. WangchanX records 64.18 and 69.33 on the corresponding splits. The complete setting changes places with WangchanX between the two splits, and Typhoon-Instruct leads both comparisons. The task is especially relevant to the authors' error analysis because a request for an extended piece gives a concise system room to depart substantially from the reference in both content and length.

Summarization shows a similar gap from Typhoon-Instruct even though the synthetic pipeline has a dedicated summarization prompt. On the Thai Culture Test Set, the complete setting records 75.77 BERTScore, WangchanX 75.74, and Typhoon-Instruct 84.06. On the General Test Set, their respective scores are 78.67, 78.37, and 85.97. The complete setting is close to WangchanX on this semantic measure, while Typhoon-Instruct is ahead. Culture-split ROUGE-L supplies a different view of the same task. It is 10.80 for the complete setting, 20.27 for WangchanX, and 30.71 for Typhoon-Instruct.

For closed QA, the complete setting's culture-split BERTScore is 60.91, compared with 61.49 for WangchanX and 65.67 for Typhoon-Instruct. On the general split, it records 68.44 against 70.43 for WangchanX and 77.57 for Typhoon-Instruct. Open QA reverses the placing of WangchanX and the complete setting under BERTScore. The complete setting scores 71.47 on the culture split and 75.97 on the general split, with WangchanX at 68.23 and 72.78. Typhoon-Instruct leads those comparisons with 76.95 and 80.28. Giving the synthetic generator a dedicated closed QA prompt is therefore only one part of the explanation for the eventual benchmark ranking.

Classification provides an example of a more constrained task. The complete setting has a BERTScore of 73.55 on the culture split, compared with 73.36 for WangchanX and 78.52 for Typhoon-Instruct. On the general split, it records 75.55, WangchanX records 75.70, and Typhoon-Instruct records 80.03. The benchmark averages combine this sort of short, constrained response with much longer writing tasks. Looking at the task scores keeps the reader from assigning the aggregate ranking to every type of request.

#### The multiple-choice exception

Multiple choice is the clearest case in which the complete setting exceeds Typhoon-Instruct in BERTScore. On the Thai Culture Test Set, it scores 70.36 against Typhoon-Instruct's 53.20. OpenThaiGPT leads that split on the metric at 71.94. On the General Test Set, the complete setting scores 70.90, ahead of OpenThaiGPT at 69.97, WangchanX at 66.83, and Typhoon-Instruct at 54.80. The gap between the complete setting and Typhoon-Instruct thus runs in the opposite direction from their ranking on the benchmark as a whole.

Multiple-choice BERTScore on the WangchanThaiInstruct General Test Set The complete synthetic recipe leads the comparison on semantic similarity for multiple-choice answers.

**The numbers**

| System or setting | BERTScore % |
| --- | --- |
| WangchanX | 66.83 |
| Typhoon-Instruct | 54.80 |
| OpenThaiGPT | 69.97 |
| Fluency, cultural context, and diversity (this paper) | 70.90 |

The SQuAD F1 entries qualify the result. On culture-specific multiple choice, the complete setting scores 6.39, compared with 7.18 for Typhoon-Instruct and 10.97 for WangchanX. On general multiple choice, it scores 5.05, against 6.60 for Typhoon-Instruct and 6.63 for WangchanX. The task shows how much the evaluation criterion matters. The complete setting can lead on semantic resemblance in the general split even as other systems lead a measure of answer overlap. This is a stronger account of its result than reading the semantic score as an option-selection accuracy rate.

### What the ablations show

#### What the synthetic comparisons hold fixed

The synthetic runs are an ablation in the broad sense that they compare deliberately altered versions of the data recipe. All start from base Llama-3 8B, use the reported tuning setup, and receive 5,000 examples. Within this group, the complete dataset leads consistently in BERTScore, both in the aggregate and for the individual tasks reported on the two splits. This makes the complete recipe's advantage more informative than a comparison in which it might simply have benefited from using more training rows or a different starting checkpoint.

The fluency-only condition has the best aggregate BERTScore among the reduced recipes on each split. Its direct Thai wording is shared with the complete setting, although it draws from only 10 general topics and skips the similarity filter. That comparison shows that keeping direct Thai generation while narrowing topic coverage and removing explicit cultural prompting leaves a substantial gap from the complete setting. It also shows that the narrow direct-generation condition can outperform broader translated material by the paper's preferred aggregate metric.

A task breakdown gives that observation more substance. In closed QA on the Thai Culture Test Set, the fluency-only setting records 48.22 BERTScore, compared with 42.27 for the cultural-context-only setting and 36.98 for the diversity-only setting. In general closed QA, the corresponding scores are 56.25, 50.62, and 40.48. The fluency-only condition also exceeds the no-properties condition on both splits for that task. The result is consistent with direct Thai generation helping under this setup. It also reflects differences in what passages and examples enter the collections, so it has several possible explanations.

Even this ranking among partial recipes depends on the task. In general brainstorming, the diversity-only setting records 58.54 BERTScore and the fluency-only setting 58.46. On culture-specific brainstorming, both trail the complete setting at 70.48, while the fluency-only setting records 55.38 and the diversity-only setting 53.41. These contrasts make the broad pattern clearer. The full recipe transfers well across the benchmark. A condition's strength relative to another partial recipe can still depend on what the assistant is asked to produce.

#### What the changes cannot isolate

The experiment compares the complete recipe with conditions intended to retain one property and with an UltraChat-derived condition intended to lack them all. It leaves recipes with two of the properties untested. There is no direct-generation condition that keeps the complete level of topic breadth and filtering while changing only whether the topics are explicitly Thai cultural. There is likewise no comparison that holds the entire topical pool fixed and changes only whether similarity filtering is applied. Evidence that the full configuration beats these particular alternatives supports using the combined recipe. Establishing that every component is individually necessary would require comparisons that change each component while preserving the others.

The labels also stand for interventions that can have more than one effect. A trip through English can alter meaning, phrasing, or response structure as well as naturalness in Thai. Paraphrasing from a smaller sample can reduce the breadth of underlying requests while supplying considerable surface variation. A change from generated data to UltraChat changes the source of the instructions and the mix of requests that can enter the learner's training. Accordingly, the score for a cultural-context-only or diversity-only set reflects its whole construction. It is difficult to infer the independent value of cultural content or diversity from that score.

The cultural condition exposes a further distinction between selecting material and verifying its properties after processing. It starts with a sample of the complete collection, which includes general and cultural topics. The subsequent paraphrases and translations retain that source connection while potentially changing the way details are expressed. The study uses the construction procedure to define cultural context in the training sets. A separate assessment of how much culturally specific content survives would provide a different kind of evidence.

#### What response length explains

The authors also compare the strongest synthetic setting directly with Typhoon-Instruct across the individual tasks. Their reported Wilcoxon rank-sum tests compare the distributions of task scores for the two systems. The paper reports p \< 0.05 for every task comparison on the two test sets, with an average test statistic of -6.512 and an average p-value of 0.00073 across the comparisons. This establishes evidence of differences under the reported tests. The task scores give their direction and show that multiple choice is an exception to the main tendency.

The authors then examine generation length across the tasks and test sets. They find that the complete synthetic setting tends to give shorter replies. For the length comparison, the Wilcoxon rank-sum statistic is W = -54.233, with p \< 0.00001. This is a test of output length. The authors use it to interpret the score pattern because a brief reply can leave out details mentioned by the human reference. Missing details can affect semantic resemblance as well as measures that reward shared sequences of text.

Brainstorming and creative writing illustrate the proposed explanation. A short brainstorming reply may answer the request while offering fewer ideas than the reference. A short piece of creative writing may cover less of the requested theme. Summarization has an additional tension because concision is part of the task and the reference still rewards coverage of the important content. By comparison, naming a category or giving a short answer can satisfy many classification or open QA requests. In those cases, the length preference gives the system fewer opportunities to omit something the reference mentions.

The authors suggest that the preference for short answers may arise from the short, single-turn conversations used in their data, while Typhoon-Instruct was exposed to translated long dialogues such as those in UltraChat. The length analysis makes that explanation plausible. The two systems also differ in other parts of their training, and the paper gives no run that changes only the length or number of turns in the synthetic dialogues. The source of the brevity therefore remains a hypothesis about the training recipe. The observed differences in generation length and benchmark scores are the direct findings.

### Limitations

#### Limits identified by the authors

The authors identify the mixture of synthetic and human-generated instructions as an open question. Their complete recipe demonstrates what can be obtained from a small synthetic instruction collection. They do not test which kinds of human-written examples would be most valuable alongside it or what balance of the two sources would give the best results. A practical project could have a modest amount of carefully reviewed Thai data available. The paper does not estimate whether substituting or adding those examples would improve on the complete synthetic setting.

They also call for extensive human evaluation. The benchmark's human annotators prepared and checked the instructions and references. The paper's comparison of generated answers then uses automatic metrics. Human judgments of the resulting answers would supply evidence about whether users find them useful, adequately detailed, and natural in context. This is especially relevant to open-ended questions, where several different responses can be appropriate, and to the length finding, where a reader might prefer either a concise response or a more developed one depending on the request.

The authors suggest extending the generation procedure to multi-turn conversations and testing a stronger generator. A dialogue with follow-up messages would present the learner with requests that depend on earlier answers. It would also give the authors a way to test their hypothesis about short training dialogues and brief answers. The authors propose experiments in other low-resource languages as well. Thai is the case they test, and generation and retrieval would need to be evaluated under the linguistic and cultural conditions of another language.

#### Limits of the benchmark and data comparisons

The strongest headline concerns average BERTScore on WangchanThaiInstruct. That benchmark lets the authors assess a range of requests in legal, medical, and finance domains. It also gives them splits that differ in the intended role of Thai cultural knowledge. It does not by itself establish open-domain coverage or conversational quality over multiple turns. The application areas used to motivate the paper, such as tutoring and medical assistance, would also require evidence about the correctness and usability of answers in their actual settings.

Scores on a culture-specific split indicate performance on the questions selected for that benchmark. The pipeline's way of eliciting cultural material is to prompt for Thai topics and use the resulting topics to select or write passages. There is no separate assessment in the study of whose customs, language use, or experiences those topics represent. The cultural label therefore has a concrete operational meaning in generation and testing, with limited evidence about broader cultural coverage. The same distinction applies to fluency. Direct Thai generation is a way to preserve the original wording of Haiku's output, while a fluency evaluation with Thai readers would measure the naturalness and appropriateness of that wording directly.

The study fixes the synthetic instruction count at 5,000. This makes the comparison among recipes easier to interpret and provides a demonstration at that size. It leaves the relationship between dataset size and performance open. Smaller collections might be sufficient for some of the benchmark tasks, and larger collections might have different effects on weaker tasks such as creative writing. The paper cannot locate a minimum sufficient dataset size or determine where adding examples would stop helping.

The comparison with published Thai systems offers evidence of competitiveness under a shared evaluation. Their training regimes, however, differ in pretraining history, sources of instruction data, and scale. WangchanX has a reported instruction count of 64k. The exact instruction count for the Typhoon system is unspecified in the paper, and the numerical counts for earlier OpenThaiGPT releases cannot identify the count for the evaluated OpenThaiGPT release. The secure conclusion concerns the measured standing of an assistant tuned on 5,000 examples. A ratio comparing that count with all the external systems would require exact counts for the evaluated releases.

Data efficiency also refers to a particular stage of the work. The authors report the size of the final instruction sets and the GPU time used for tuning. Their pipeline requires calls to a generator, retrieval where applicable, and embedding-based filtering. Some comparison datasets also require translation and paraphrasing. The study provides no comparable accounting of the complete cost for the alternative Thai systems. Its training results show what the compact synthetic collection can accomplish once assembled, leaving the full cost comparison open.

Finally, the method is described at the level of its main controls. Some details would be needed for an independent implementation to reproduce the exact data mixture. The total and breakdown of topics in the complete setting do not align as stated. The description gives the two passage branches and explains that the choice between them is random, without specifying the resulting mixture of Wikipedia and generated passages. For similarity filtering, the cutoff is given, but the description does not resolve how representatives are retained when several examples share one another as close neighbors. These uncertainties limit precise reconstruction from the method description and leave room for different datasets to result from implementations of the same general design.

### What came after

Stenlund's 2026 study examines the viability and limitations of synthetic instruction generation for low-resource Nordic languages. It takes up the same broad question of whether generated instructions can support adaptation in a language setting with scarce instruction data and places that question in a different linguistic context. Pengpun and colleagues had explicitly proposed looking beyond Thai to see how a synthetic pipeline would fare under different linguistic and cultural conditions. [Synthetic Instruction Generation for Low-Resource Nordic Languages](https://md.research.elamur.ai/free/en/papers/stenlund-2026-synthetic-instruction-generation-low-resource/)

The connection is an extension of the research question. The Nordic study cites the Thai work, and its stated scope concerns synthetic data for instruction tuning in other low-resource languages. The citation leaves open which parts of the Thai procedure were adopted, including cultural topic prompting, Wikipedia passage retrieval, and semantic filtering. The Thai experiment establishes how its own recipe performed on WangchanThaiInstruct. Whether those design choices carry the same benefits across languages remains a separate empirical question.

## Cite

Cite as Parinthapat Pengpun, Can Udomcharoenchaikit, Weerayut Buaphet and Peerat Limkonchotiwat. 2024. Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{pengpun2024seed,
  title = {{Seed-Free Synthetic Data Generation Framework for Instruction-Tuning LLMs: A Case Study in Thai}},
  author = {Parinthapat Pengpun, Can Udomcharoenchaikit, Weerayut Buaphet and Peerat Limkonchotiwat},
  booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 4: Student Research Workshop)},
  year = {2024},
  url = {https://aclanthology.org/2024.acl-srw.50/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
