Elamur Research

CST5: Data Augmentation for Code-Switched Semantic Parsing

Paper · 2023 · Anmol Agarwal, Jigar Gupta, Rahul Goel et al.

Summary

A conversational assistant needs to understand what a person wants even when the request moves between languages. Someone may keep an application name in English, express the surrounding instruction in Hindi, and change the order of the sentence. Recognizing the words is only part of the problem. The system must still identify the requested action, its arguments, and any relationships between them. CST5 addresses the shortage of training examples for this kind of semantic parsing: converting an utterance into a structured account of its meaning.

The paper’s central proposal is to reuse semantic annotations that already exist in English. The authors begin with English requests whose actions and argument spans have been labeled. Bilingual annotators produce code-switched counterparts while preserving identifiers attached to those spans. A multilingual text generator then learns this transformation from a small collection of paired examples. Applied to further English requests, it produces synthetic code-switched requests containing the same span identifiers. Those identifiers allow the original semantic labels to be transferred to the generated wording. The result is additional supervised training material without requiring people to reconstruct every semantic parse.

The generator is adapted from mT5, and the paper examines both small and XXL versions. Generated examples pass through deterministic structural checks before their labels are transferred. Human evaluation separately considers whether the resulting utterances sound natural and whether they preserve the source meaning. These are different questions: an output can sound plausible while changing the request. In the reported quality assessment, XXL-generated data receives 98.1% naturalness and 89.5% semantic equivalence. The small version performs substantially worse on meaning preservation, receiving 43.7% semantic equivalence despite 86.1% naturalness.

The practical test is whether these examples improve a separate semantic parser. On Hindi-English requests, the authors compare parsers trained on human examples alone with parsers receiving human and synthetic examples. Augmentation helps across the seed sizes studied. Their headline comparison is that an XXL parser using augmentation from 100 seed examples performs similarly to an XXL parser trained on 2000 human examples without augmentation. The paper describes this as a 20x reduction in labeled-data requirements under that experimental comparison. A further experiment on the weather portion of the Spanish-English CSTOP dataset reports test exact-match accuracy of 69.2% without the synthetic data and 77.8 % with it.

The work also introduces Hinglish-TOP, a human-annotated Hindi-English resource derived from TOPv2, and announces a synthetic collection exceeding 170K examples. The human collection contains 10,896 utterances across 8 task domains. These contributions matter together: the dataset supplies a human test of the method, while the augmentation procedure offers a way to exploit a much larger English resource. The results support that procedure in the studied task settings. They do not establish that arbitrary language pairs, unrestricted conversations, or other annotation schemes will obtain the same benefits.

Interesting ideas

Preserve annotation anchors during rewriting. A sentence may change language and word order while retaining the same task arguments. CST5 attaches explicit identifiers to annotated spans before transformation, making it possible to reconnect the new wording to an existing semantic structure. This is useful wherever a data transformation should preserve expensive labels, including paraphrasing, controlled rewriting, and adaptation to a different variety of language.

Learn a transformation instead of rebuilding a dataset. The scarce human contribution is a set of paired demonstrations showing how existing examples should change. Once that transformation is learned, a larger source collection supplies the content. This division is attractive when labeled data exists in a well-resourced setting but is missing in the desired setting. Its success depends on whether the transformation preserves the distinctions represented by the source labels.

Use deterministic gates around generated text. CST5 does not assume that every output can be aligned. It rejects examples with malformed identifiers, inconsistent span counts, unbalanced brackets, or identifiers that do not match the source. Such checks are reusable whenever generated material must satisfy a machine-readable contract. They make some failures explicit without pretending that structural validity proves semantic correctness.

Evaluate fluency and faithfulness separately. A natural sentence can express the wrong request, while an awkward sentence can preserve the intended meaning. The paper’s human assessment exposes this distinction directly. Separate judgments are valuable for translation, simplification, summarization, and synthetic training data because a single quality score can hide the failure that matters most for the application.

Test synthetic data through the task it should improve. Human judgments assess individual outputs, but augmentation is intended to help a downstream learner. CST5 therefore includes a second evaluation: train parsers with and without the generated examples and compare them on human-annotated requests. This pairing of intrinsic and downstream evaluation helps distinguish attractive examples from useful supervision.

Measure usable yield as well as final accuracy. The volume of output a generator produces differs from the amount of training data within that output that can be aligned. Reporting the proportion that survives structural filtering reveals another part of the production process. This matters in annotation pipelines, where generation cost, rejection rates, and downstream benefit can move independently.

Analyze data needs by task complexity. The reminder domain remains difficult and contains more intent variety and more intents per utterance than the other domains discussed. The paper uses this observation to interpret differing learning curves. The broader lesson is to inspect where additional examples help, rather than assuming that the same collection budget has equal value everywhere.

Deep dive: CST5: Data Augmentation for Code-Switched Semantic Parsing

How CST5 generates code-switched semantic parsing data from small bilingual seed sets, with its method, results, and limits. · about 35 minutes to read

How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its documented core reads dependency structures into frames and maintains task or narrative state. It also has reviewed annotation and training paths with explicit admission checks. Those mechanisms provide concrete points of contact with CST5, but the supplied implementation evidence does not establish a CST5 integration or an assessed code-switched semantic parser. The status marks below are proposals against that evidence. A missing mechanism in the digest is not proof that no related work exists.

Idea: Preserve annotation anchors during rewriting. Where: Section 3.1.1 and Section 3.1.2. Area: annotation and data transformation. Mova: частково є (source-bound annotation packets in tools/enrich and token-preserving parser inputs in treeagree). Mova could attach stable identifiers to frame arguments before preparing a reviewed paraphrase or multilingual counterpart, then check whether each argument remains identifiable afterward. Existing source fingerprints establish which material was processed; they do not on their own establish that a rewritten argument still denotes the same thing. Why Mova: This could let Mova reuse reviewed semantic distinctions while making alignment failures visible.

Idea: Learn a bounded transformation from paired examples. Where: Section 3.2 and Figure 2. Area: training-data preparation. Mova: нове (proposed CST5-style transformation; implementation status beyond the digest is unknown). A possible experiment would prepare a narrowly defined transformation, such as rewriting a supported request into an alternate formulation while preserving its admitted capability and arguments. An external teacher could propose training examples offline, with native checks and human or configured review determining admission. The authors’ evidence concerns mT5 augmentation, not a rule learner or Mova’s native understanding. Why Mova: It offers a hypothesis for expanding training coverage without requiring a new semantic annotation for every formulation.

Idea: Reject outputs that violate an explicit structure contract. Where: Section 3.2.1 and Table 5. Area: data validation. Mova: вже є (treeagree UD gates and tools/enrich staging validators). CST5 reinforces a mechanism Mova already uses: a proposed annotation must satisfy declared invariants before entering a later stage. A Mova adaptation could add span-identity checks alongside existing tree and source checks. The transferable idea is the placement of a deterministic gate around a fallible proposal process, rather than the claim that any particular CST5 filter is already installed. Why Mova: It keeps malformed teaching material from gaining authority through a successful generation step.

Idea: Keep naturalness separate from meaning preservation. Where: Section 3.3 and Table 6. Area: evaluation and pragmatics. Mova: частково є (separate native observations and reviewed teacher outputs in docs/hybrid-system.md and tools/enrich). A reviewed rewrite could receive distinct judgments for acceptable wording and preservation of the original frame or task. The small generator’s results show why these judgments should not collapse into a single approval. Native agreement on syntax would remain another separate observation. Why Mova: Mova needs to know whether a proposed example is readable, semantically faithful, structurally valid, or merely some combination of those properties.

Idea: Evaluate augmentation through the final native task. Where: Experimental Setup and Results, pages 6–8. Area: downstream evaluation. Mova: вже є (held-out training gates and same-question comparisons described in docs/training.md and tools/enrich). If Mova adds reviewed synthetic examples, the decisive experiment should compare the native learner before and after on the same protected questions. CST5’s downstream comparison supports this evaluation pattern, although it supplies no measurements for Mova. Why Mova: Better-looking training material is useful only if it improves the behavior Mova is meant to perform.

Idea: Report usable yield after filtering. Where: Section 3.2.1 and Table 7. Area: data processing and measurement. Mova: частково є (bounded run states, validation outcomes, and profiles in tools/enrich). Mova could report separately how much source material was considered, how many proposals were produced, how many survived each gate, and how many were eventually admitted. These stages should remain distinct because a staged draft is not admitted knowledge. Why Mova: Yield measurements can identify whether a bottleneck comes from proposal quality, structural checking, review, or admission.

Idea: Allocate examples according to domain difficulty. Where: Results, page 8, and Figure 4. Area: evaluation and curriculum design. Mova: частково є (course-gap proposals in tools/enrich and domain routing in layers). Mova could compare learning curves for task families and relate persistent errors to the variety and composition of their frames. CST5’s reminder analysis suggests a useful diagnostic, but it does not establish a general acquisition policy. Why Mova: Collection and review effort may be more valuable in task families whose structure remains poorly covered.

Idea: Allow argument order to change while preserving identity. Where: Section 3.1.2 and Table 2. Area: syntax and alignment. Mova: частково є (role-based frame reading in prag and world). Code-switched counterparts can move an argument away from its original position. Mova already reads semantic roles instead of matching entire lines as bags of words. An augmentation check could test whether a reordered request preserves those roles even when linear positions change. Why Mova: This would probe whether understanding follows the argument structure or depends on a familiar surface order.

Idea: Distinguish repeated argument types with occurrence identifiers. Where: Section 3.1.2, the alarm example. Area: representation. Mova: частково є (typed frame arguments and retained entity state in prag and world). Two arguments can share a semantic type while referring to different occurrences. A transformation record should identify each occurrence separately instead of relying only on the slot name. Whether Mova currently exposes an equivalent identifier contract for rewritten examples is unknown. Why Mova: It could prevent an apparently valid rewrite from swapping or merging arguments that happen to have the same type.

Idea: Detect duplication as an alignment error. Where: Table 5. Area: validation and coreference-sensitive data processing. Mova: частково є (general annotation gates in treeagree; this span-duplication gate is not established). One CST5 failure repeats an argument identifier in the generated request. A Mova rewrite validator could distinguish a repeated surface mention from an unintended duplicate argument, preserving the original occurrence map for review. Why Mova: Duplicate mentions can make a generated sentence sound plausible while breaking the correspondence needed to inherit its annotation.

Idea: Retain an explicit rejection taxonomy. Where: Section 3.2.1 and Table 5. Area: diagnostics. Mova: вже є (treeagree writes rejected edits with reasons; configured deputy execution retains failures). CST5’s named structural failures provide an example of actionable error reporting. A Mova augmentation experiment should preserve the reason a candidate was rejected instead of recording only that it failed. Why Mova: Specific failure classes make it possible to improve a proposal mechanism without weakening unrelated checks.

Idea: Make the human review question operational. Where: Section 3.3. Area: annotation design. Mova: частково є (fixed review prompts and source-bound packets in annot and tools/enrich). CST5 asks raters about conversational acceptability and exact preservation of meaning as separate tasks. Mova could similarly phrase review obligations around observable properties: whether a role changed, whether a quantity remained the same, or whether an asserted fact became attributed speech. Why Mova: A concrete review obligation is easier to audit than a general request to approve an example.

Idea: Hide irrelevant information during a judgment. Where: Section 3.3, naturalness assessment. Area: experimental design. Mova: нове (this review-view separation is a proposal; broader status is unknown). CST5’s naturalness raters see the code-switched utterance without the English source, whereas equivalence judgment uses both. A Mova review interface could show only the information needed for the current question, then expose the source for a separate fidelity check. Why Mova: Separating views may reduce the chance that a reviewer accepts awkward wording because the intended source meaning is already obvious.

Idea: Resolve annotation disagreement through an explicit procedure. Where: Section 3.3. Area: statistics and review governance. Mova: частково є (rule-governed multi-parser agreement and separate teacher dispute review in treeagree). CST5 uses additional human review when the initial judgments conflict. Mova already has an evidence-preserving disagreement path for parser trees. The corresponding extension would preserve reviewer decisions and the resolution rule for generated semantic examples. Why Mova: A stored resolution procedure makes uncertainty inspectable and prevents a single unexplained approval from standing in for consensus.

Idea: Report agreement alongside acceptance rates. Where: Table 6. Area: statistics. Mova: вже є (treeagree hint reports include Cohen’s κ and Fleiss’ κ). CST5 reports κ with its naturalness and equivalence judgments, showing that the proportion accepted is not the only relevant statistic. Mova can apply its existing agreement-reporting principle to new review tasks while keeping the judgment type and population explicit. Why Mova: A high approval rate is easier to interpret when the reviewers also apply the criterion consistently.

Idea: Rebuild augmentation independently for each seed condition. Where: Experimental Setup, page 6. Area: evaluation hygiene. Mova: частково є (source fingerprints, versioned proposals, and held-out training gates). A low-data experiment should generate its teaching material from the resources allowed in that condition. Reusing a proposal pool prepared from a richer condition would undermine the comparison. The digest establishes several components needed to record this boundary, but not this particular experimental protocol. Why Mova: It would keep claims about reduced supervision tied to the supervision actually available.

Idea: Separate the example generator from the evaluated solver. Where: Experimental Setup, pages 6–7. Area: architecture and evaluation. Mova: вже є (offline teacher separation in README.md and docs/architecture.md). CST5 evaluates a parser trained from generated data instead of asking the augmentation generator to supply test answers. Mova already separates teacher work from assessed native answers. The paper offers another application of that distinction, not evidence for changing Mova’s runtime into a neural generator. Why Mova: It allows external teaching assistance while preserving a meaningful measurement of Mova’s own competence.

Idea: Measure structural validity independently of semantic quality. Where: Table 7 compared with Table 6. Area: evaluation. Mova: вже є (distinct tool receipts, annotation proposals, proofs, and admitted knowledge in docs/hybrid-system.md). Passing a span check establishes alignability under a format contract. It does not establish that the content means the same thing. Mova’s existing evidence boundaries fit this distinction and should remain explicit in any augmentation report. Why Mova: It prevents a convenient machine check from being mistaken for the stronger semantic claim the application needs.

Idea: Track input complexity using semantic structure. Where: Results, page 8. Area: analysis and task decomposition. Mova: частково є (frames in prag, decomposition in math::steps, and supported capability plans). CST5 relates reminder difficulty to intent diversity and intent composition. Mova could examine whether errors cluster around nested events, multiple recipients, temporal constraints, or composed actions, using its own declared structures. Why Mova: Structural diagnostics can point towards a missing representation or inference rule more directly than sentence length alone.

Idea: Use existing high-resource supervision as a scaffold. Where: Introduction and Section 3.2. Area: corpus strategy. Mova: частково є (reviewed parser drafts, corpus enrichment, and dictionary evidence indexing). The paper avoids starting the target annotation effort from nothing by preserving useful source labels. Mova could apply that principle to reviewed frame examples or supported task descriptions, subject to source rights and a verified mapping. Why Mova: It could concentrate review on what changed while retaining evidence for what was already established.

Idea: Treat translation as a bridge that needs its own scrutiny. Where: Results on CSTOP, page 8. Area: multilingual data preparation. Mova: нове (this translated seed-pair workflow is proposed; the digest mentions separate experimental translation tools). CST5 creates English counterparts when naturally parallel data is unavailable. A Mova experiment could preserve the intermediate translation as a distinct artifact and review its fidelity before using it as supervision. Why Mova: The bridge can make an otherwise unavailable experiment possible, but its mistakes should remain attributable instead of disappearing into the final dataset.

Idea: Preserve source domain and split metadata through transformation. Where: Section 3.1. Area: provenance and evaluation. Mova: вже є (source/version identity in tools/sources, immutable source configurations in tools/dictindex, and protected assessment exclusions). A transformed example should retain where it came from and which experimental role it is allowed to play. CST5 preserves the original domain and split information during collection. Mova’s existing assessment exclusions remain stronger obligations than a simple inherited split label. Why Mova: Persistent provenance helps prevent useful training transformations from accidentally consuming protected evaluation material.

Idea: Audit inherited overlaps rather than assuming source splits are clean. Where: Section 3.1. Area: evaluation integrity. Mova: частково є (assessment exclusions and source checks in tools/dictindex; a CST5-specific overlap audit is not established). The authors explicitly retain overlaps found in the source dataset. A Mova adaptation should identify and report the corresponding overlap relation before drawing generalization claims. This is a proposed safeguard prompted by the experimental setup, not a corrective experiment reported by CST5. Why Mova: It would clarify whether success reflects a new formulation of familiar content or understanding of genuinely separate material.

Idea: Describe annotation savings at their demonstrated scope. Where: Figure 3 and Results, pages 7–8. Area: statistical interpretation. Mova: частково є (dated measurements and bounded capability claims in the documented system). CST5’s supervision comparison concerns a particular task, architecture, dataset, and performance level. Mova should express any analogous saving with those conditions attached and keep teacher cost separate from native inference cost. Why Mova: Precise scope makes a useful result reusable without turning it into an unsupported general efficiency claim.

The problem and its context

Understanding mixed-language requests

Code-switching occurs when speakers alternate between languages during a conversation. For a task-oriented assistant, this variation reaches directly into the input that must be interpreted. The action may be expressed in one language, a time phrase in another, and a name left unchanged. The sentence can remain perfectly usable to a bilingual speaker while differing substantially from the English requests on which a parser was trained.

The paper studies this issue within dialogue systems, particularly assistants that act on requests. These systems need more than a broad classification of a sentence. They must recover arguments such as the alarm time, the reminder content, the message recipient, or the relevant location. A mistaken argument can produce a different action even if the system recognizes the general domain.

Semantic parsing provides the representation used to express those distinctions. An intent identifies an action or communicative goal, while slots identify arguments associated with it. The paper works with TOP-style hierarchical representations, which can express relationships more elaborate than a flat intent label with a collection of unrelated values.

This hierarchy matters for compound requests. A reminder can include an action that should happen later, along with a recipient and a temporal condition. The resulting annotation describes how pieces of the utterance fit together. Reusing such an annotation is potentially valuable because producing it involves more work than assigning a language tag or a broad topic.

Why direct collection is difficult

The authors identify a shortage of supervised code-switched data as the main obstacle. English semantic parsing resources are more available, whereas suitable mixed-language resources are scarce. Collecting a new resource requires annotators who understand the languages and can produce or judge appropriate mixtures.

The cost is not just finding bilingual speakers. Annotators must preserve task meaning and support the semantic labels needed by the parser. A request that sounds natural but changes a temporal relation cannot safely inherit the original annotation. Likewise, a faithful sentence with missing alignment information may be difficult to turn into structured supervision automatically.

Earlier synthetic-data approaches reduce some of this burden, but the paper argues that their resource requirements can still be substantial. Its introduction discusses methods needing collections exceeding >50k sentences in parallel, monolingual, or code-switched form. Such material may not exist for the intended domain, even when some general text is available in the relevant languages.

CST5 therefore targets a specific asymmetry: there may be a large labeled English collection but only a small number of examples demonstrating how equivalent code-switched requests should look. The method tries to use the latter to unlock the former.

The earlier approaches described by the authors

The paper places its contribution between data augmentation and conversational semantic parsing. Data augmentation creates additional training examples through a controlled transformation or generation process. The cited work includes recombination approaches, such as Good-Enough Compositional Data Augmentation, alongside approaches based on pretrained text generation.

For code-switching specifically, the authors discuss generation from parallel sentences, adversarial methods, and linguistically guided synthesis. Pratapa and colleagues’ work appears as an example of the linguistic approach. The point of comparison is the supervision or expertise required to produce useful mixed-language material.

They also describe work using pretrained transformers for augmentation, including Data Augmentation using Pre-trained Transformer Models. BART and other generators appear in that context. CST5 follows the broader strategy of adapting a pretrained generator, but its target transformation is code-switching with recoverable task annotations.

The closest procedural comparison the authors identify is Translate & Fill. CST5 changes the desired output from a translation into a mixed-language utterance. That distinction matters because the goal is not to replace every English expression with an expression from another language. The generated request should retain the kind of language mixture appropriate to the examples used for adaptation.

For semantic parsing, the paper builds on hierarchical task representations introduced in Gupta and colleagues’ TOP work. It also follows the sequence-generation view of parsing, where a system outputs a serialized semantic structure. The base architecture comes from the text-to-text tradition represented by T5.

The authors’ contribution is consequently a combination with a clear interface: generate a new surface realization, preserve argument correspondence, reconstruct its labels, and test whether those labels help a separate parser.

The method, step by step

Start from an annotated English request

CST5 assumes an English semantic parsing dataset is available. Each source request has a semantic structure describing its intent and arguments. Before any rewriting, the relevant argument spans are marked in the English utterance.

The marker is an occurrence identifier. It records which piece of text belongs to which leaf argument in the source structure. The identifier is carried into the code-switched version, even if the wording changes or the span moves.

This converts the rewriting task into something more constrained than free paraphrasing. The output must express the request in mixed language while keeping enough explicit structure to recover the original annotation. The generator does not have to invent a new inventory of task labels.

The paper’s alarm illustration is useful because it contains separate date-and-time arguments of the same semantic type. A type label alone would not distinguish their occurrences. Unique span identifiers establish which generated phrase corresponds to which original argument.

There are no mathematical equations specifying a training loss or a new estimator in the paper. The central specification is procedural: mark argument occurrences, preserve their identities during rewriting, and use those identities to transfer semantic labels. Introducing an additional optimization formula would go beyond the method the authors present.

From English annotations to code-switched parser training

The steps in order.

From English annotations to code-switched parser trainingStep 1: Mark English argument spans with identifiers1. Mark English argument spans with identifiersStep 2: Collect aligned bilingual rewrites2. Collect aligned bilingual rewritesStep 3: Adapt mT5 to produce code-switched text3. Adapt mT5 to produce code-switched textStep 4: Generate from remaining English requests4. Generate from remaining English requestsStep 5: Reject structurally invalid outputs5. Reject structurally invalid outputsStep 6: Transfer semantic labels through span identities6. Transfer semantic labels through span identitiesStep 7: Train and evaluate a separate parser7. Train and evaluate a separate parser

Collect the bilingual seed material

The human collection begins with 10,896 utterances sampled from TOPv2. The authors preserve the source domain and split information. Their sampling deliberately places more emphasis on the test collection than on the training collection.

The reported source split counts are 2993 training utterances, 1390 validation utterances, and 6513 test utterances. Elsewhere, the paper uses rounded descriptions such as 3K, 1.3K, and 6.5K. These refer to the same collection at different reporting precision; they should not be treated as separate experiments.

Annotators are native Hindi-English speakers. They receive English requests with argument spans already identified and produce Hinglish counterparts. The desired output should be conversationally plausible and preserve the request’s meaning.

The annotation account describes a primary rewriting role and a checking role. It also states that the task involved 3 annotators, although the allocation of all those roles is not fully explained. The important procedural claim is that rewriting and quality checking are separate contributions.

Once a counterpart contains the marked spans, the original semantic labels can be restored. The matching operation uses span identity rather than word identity. A Hindi expression can therefore receive the semantic label originally attached to an English phrase without requiring a word-by-word translation alignment.

What alignment preserves

The alignment method preserves a correspondence between semantic arguments. It does not require English order to survive. In the navigation example, the temporal expression and locations can appear in a different sequence in the Hinglish request.

Likewise, a request about changing a timer contains both the old duration and the replacement duration. Their order in the rewritten sentence is less important than keeping their identities distinct. An alignment that simply attached labels by position would be vulnerable to a fluent reordering.

The same principle applies to names and message content. A person’s name may remain in English while the surrounding instruction changes language. The content span may itself contain a mixture. The structural annotation can remain useful as long as the argument correspondence and overall meaning survive.

This is why the markers are not merely decorative delimiters. They are the interface between a flexible text-generation step and the fixed semantic labels of the source resource. If the interface breaks, the example cannot be trusted as automatically labeled data.

Adapt the generator

The authors fine-tune mT5 using pairs of marked English inputs and marked code-switched outputs. Fine-tuning here means adapting an existing pretrained system to the desired transformation with task-specific examples.

The input is the English utterance with its span identifiers. The target is the code-switched realization containing the corresponding identifiers. This teaches the generator both a language transformation and an output-format obligation.

The experiment varies the amount of human seed material available for this adaptation. The seed sizes are 100, 500, 1000, 2000, and 3000 utterances. Each condition receives its own augmentation dataset produced from the corresponding seed condition.

That independence is important. If a generator adapted with the largest seed set supplied examples to the smallest-seed experiment, the latter would indirectly benefit from additional human supervision. The authors instead describe independently generated augmentation collections.

After adaptation, the remaining English TOPv2 requests supply source content. The paper reports 173,042 utterances for this generation pool. The method can therefore produce a much larger candidate collection than the human seed set, provided enough outputs survive alignment checks.

Filter invalid outputs

A text-to-text generator can mishandle the structural notation. CST5 applies rule-based filters before transferring labels. These checks address several distinct failure modes.

One check compares the number of argument spans. A generated sentence can introduce a repeated argument occurrence, as in the paper’s example where the counterpart contains an additional marked reference to the speaker. The surface sentence may still seem plausible, but the occurrence map no longer matches the source.

Another check rejects malformed identifiers. The paper includes an example in which an identifier is expressed as an ordinary word instead of the required numeric marker. A person might infer the intended reference, but the deterministic reconstruction step cannot safely rely on that inference.

Bracket balance is checked separately. If opening and closing delimiters do not match, the extent of an argument may be ambiguous. A correct identifier cannot repair uncertainty about which words belong to the span.

Finally, the source and output must contain matching identifiers. An output with a well-formed but unexpected identifier is still unsuitable for automatic label transfer. Valid syntax within the output is weaker than a valid correspondence to the input.

These filters establish a constrained form of structural admissibility. They do not read the sentence’s meaning. A candidate can pass every marker check and still alter what the user requested, so semantic quality requires another assessment.

Reconstruct the annotation

For an accepted output, CST5 transfers slot names from the source semantic parse onto the matching generated spans. The source hierarchy supplies the annotation scaffold; the generated utterance supplies the new surface wording.

This is the point at which a text-generation output becomes a supervised parsing example. Without the transferred labels, it would be only an additional code-switched sentence. The paper’s method is useful precisely because it connects generation to a recoverable task representation.

The procedure assumes that the semantic structure remains appropriate after transformation. The structural filters enforce correspondence conditions, while human quality analysis estimates whether that assumption is satisfied in practice. Neither component should be interpreted as a complete substitute for the other.

Train the downstream parser

The evaluated semantic parser is a second mT5 instance. It is trained either on the human seed data alone or on the human seed data together with the synthetic examples. Its task is to map code-switched utterances to their semantic representations.

This separation makes the experiment a test of augmentation. The generator prepares supervision; it does not directly answer the held-out parsing requests. The downstream comparison asks whether the generated supervision changes the parser’s performance.

For XXL training, the paper reports 13 billion parameters, a learning rate of 0.001, batch size 512, and 20k training steps. The small configuration has 300 million parameters and uses 200k steps, with the other stated settings unchanged.

The authors say hyper-parameters were only roughly explored. Earlier checkpoints at 10k and 50k steps were considered as an overfitting check, but the stated configurations gave their best results. This is a limited training comparison instead of an exhaustive optimization study.

Experiments and results

The human resource and its coverage

Hinglish-TOP covers navigation, weather, reminder, alarm, music, timer, event, and messaging. The domains differ in their share of the collected data. Alarm accounts for 18.2%, weather for 16.6%, navigation for 14.5%, and reminder for 14.1%. The remaining shares reported are 10.8% for music, 10.9% for timer, 6.9% for event, and 8.0% for messaging.

These are task domains with recognizable argument structures. An alarm request emphasizes time constraints; navigation involves locations and possibly temporal context; messaging introduces recipients and message content. This variety gives the augmentation method several kinds of spans and transformations to handle.

The dataset statistics report averages of 4.36 Hindi tokens and 3.82 English tokens per utterance. The reported average number of code-switching points is 3.56. These statistics describe the collected resource, instead of a target distribution that every generated request is required to match.

The authors announce both the human collection and a synthetic collection exceeding 170K examples. The synthetic release is associated with the generator adapted using the full 3000-example training condition. The experiments with smaller seeds use separately generated data, so the release description should not be read as saying that a single shared synthetic collection underlies every comparison.

Human assessment of data quality

The human evaluation uses two questions. Naturalness concerns whether the mixed-language utterance would be plausible in conversation. Semantic equivalence concerns whether it expresses the same meaning as the English request.

For naturalness, raters see the code-switched request. For semantic equivalence, they see the English request and its counterpart. This difference in presentation fits the difference in the judgments being requested.

The human-authored collection is assessed through a sample of 2021 utterances. Each receives judgments from two raters, with a third rater resolving disagreements through majority opinion. The authors report sampling 500 generated queries from the XXL and small configurations, each adapted with the largest seed set, and applying the same quality criteria to assess these examples.

The exact values in Table 6 are especially important because the surrounding prose occasionally uses broader rounded descriptions. Human-authored data receives 99.2% naturalness and 97.7% semantic equivalence. Its associated κ values are 0.72 and 0.69 respectively.

The small generator receives 86.1% naturalness, with κ of 0.8. The XXL generator receives 98.1% naturalness, with κ of 0.95. These results support the authors’ claim that the larger configuration produces more acceptable wording in the sampled outputs.

Meaning preservation reveals a larger concern. The chart compares the semantic-equivalence judgments directly.

Human judgments of semantic equivalence in Hinglish data

The XXL generator preserves meaning more reliably than the small generator, while human-authored data remains strongest.

Human judgments of semantic equivalence in Hinglish dataHuman-authored data: 97.7Human-authored data97.7mT5 Small: 43.7mT5 Small43.7CST5 mT5 XXL (this paper): 89.5CST5 mT5 XXL (this paper)89.5
The numbers
System or settingsemantic equivalence %
Human-authored data97.7
mT5 Small43.7
CST5 mT5 XXL (this paper)89.5

The corresponding semantic-equivalence κ values are 0.88 for the small configuration and 0.73 for XXL. Agreement and acceptance answer different questions: raters can consistently identify that an output fails to preserve meaning.

The examples help explain that distinction. One generated alarm question sounds natural but changes the temporal issue being asked about. Another request preserves the relevant reminder meaning while expressing part of it awkwardly. These cases show why a fluency-only assessment would miss a central source of label noise.

How much generated data survives?

Table 7 reports the fraction of English inputs that yield structurally acceptable code-switched outputs after filtering. This is a production-yield measure, not human semantic accuracy.

Both generator size and seed size matter. The XXL configuration has higher reported yield throughout, and the small configuration improves as more seed examples are available. The comparison shows that the amount of usable synthetic supervision is itself affected by the augmentation setup.

Structurally accepted generation yield on the remaining TOPv2 inputs

Larger seeds improve yield, and the XXL generator retains more outputs at every reported seed size.

Structurally accepted generation yield on the remaining TOPv2 inputsSmall, seed 100: 47.3Small, seed 10047.3Small, seed 500: 64.4Small, seed 50064.4Small, seed 1k: 72.8Small, seed 1k72.8Small, seed 2k: 89.7Small, seed 2k89.7Small, seed 3k: 92.7Small, seed 3k92.7XXL, seed 100: 82.0XXL, seed 10082.0XXL, seed 500: 93.7XXL, seed 50093.7XXL, seed 1k: 96.1XXL, seed 1k96.1XXL, seed 2k: 97.5XXL, seed 2k97.5CST5 XXL, seed 3k (this paper): 98.3CST5 XXL, seed 3k (this paper)98.3
The numbers
System or settingaccepted input conversions %
Small, seed 10047.3
Small, seed 50064.4
Small, seed 1k72.8
Small, seed 2k89.7
Small, seed 3k92.7
XXL, seed 10082.0
XXL, seed 50093.7
XXL, seed 1k96.1
XXL, seed 2k97.5
CST5 XXL, seed 3k (this paper)98.3

A high yield means the marker contract is usually satisfied. It does not mean that an equally high proportion of outputs preserves the source meaning. The paper’s separate human study is necessary precisely because those are different properties.

Downstream parsing on Hinglish-TOP

The downstream metric is exact-match accuracy, abbreviated EM. A prediction succeeds only when the parser’s output matches the reference semantic representation exactly. This is stricter than recognizing the domain or recovering some arguments correctly.

The principal baseline uses the human seed set without augmentation. The corresponding experimental condition adds generated examples. The authors describe keeping the rest of the comparison unchanged within these paired conditions.

Evaluation uses the human-annotated code-switched test collection, described in the experimental account as 6.5k utterances. Testing on human requests is important because success on generated test material could partly reflect the generator’s own regularities.

The paper’s main learning-curve claim concerns the XXL configuration with 100 seed examples. With augmentation, it reaches approximately the performance of the unaugmented XXL parser trained with 2000 examples. Figure 3’s caption describes the relevant level as EM of 60%.

The authors characterize the low-seed improvement as over a 40% absolute improvement. They also report over 15% improvement in EM with 3000 human examples. These are the paper’s descriptions; the prose does not supply every plotted endpoint needed to reconstruct all learning curves numerically.

Across the reported conditions, augmentation improves performance. The authors also observe that augmented training reaches a plateau sooner as seed size increases. This supports the usefulness of the synthetic examples while showing diminishing returns from further seed expansion in some settings.

Differences between domains

The reminder domain is the most difficult case emphasized in the analysis. It contains 16 unique intents and an average of 2.66 intents per utterance. The authors connect those properties to the greater difficulty of predicting its semantic structures.

The comparison with weather is instructive. Some domains show less benefit from additional data once their performance has leveled off. The authors argue that extra examples remain more valuable in a structurally difficult domain such as reminder.

This is an explanatory analysis rather than a controlled manipulation of complexity. The results are consistent with the interpretation that richer composition requires more coverage, but the experiment does not independently vary intent diversity while holding other domain properties fixed.

The Spanish-English experiment

CSTOP supplies a further test using Spanish-English requests in TOP format. Unlike Hinglish-TOP, it does not provide the English parallel material needed by the augmentation procedure.

The authors create English counterparts for 100 Spanish-English queries using Google Translate. These pairs are used to adapt the generator. TOPv2 weather requests then provide the English inputs for synthetic generation, because weather is the shared domain available for this experiment.

The downstream parser comparison reports the following test results.

CSTOP weather test semantic parsing with synthetic augmentation

Adding CST5-generated examples improves exact-match accuracy in the shared weather domain.

CSTOP weather test semantic parsing with synthetic augmentationWithout synthetic augmentation: 69.2Without synthetic augmentation69.2With CST5 augmentation (this paper): 77.8With CST5 augmentation (this paper)77.8
The numbers
System or settingexact-match accuracy %
Without synthetic augmentation69.2
With CST5 augmentation (this paper)77.8

This experiment broadens the evidence beyond Hindi-English, but its scope remains narrow. It tests a shared task domain with translated seed counterparts. It does not reproduce the full Hinglish-TOP collection procedure across all domains.

What the ablations show

Augmentation versus seed-only training

The most direct controlled comparison adds synthetic data while retaining the seed-based parser setup. Its purpose is to isolate whether the additional supervision is useful for the downstream task.

The consistent advantage of augmented training supports the main contribution. The benefit is not established solely by human preference for the generated sentences. It appears in the parser’s ability to recover semantic structures on human-annotated test requests.

However, the paper does not compare CST5 against every alternative way to spend the same annotation or computation budget. Its strongest direct conclusion concerns augmentation versus its seed-only baselines under the reported settings.

Varying the human seed

The seed-size study asks how much paired human material is needed before augmentation becomes useful. The low-seed result is important because a method that required a large code-switched resource before generation would address a different resource problem.

Each seed size has independently generated augmentation data. This makes the comparison more informative than training several parsers on differently sized seeds while sharing a generator adapted from the full resource.

Increasing seed size improves the reported behavior, but the return is not constant. The authors describe augmented parsers as reaching saturation earlier. Once the generator and parser have enough coverage for a domain, more human examples may add less than they did in the smallest-data condition.

The study does not show that every seed sample of a given size would behave identically. The paper does not report repeated seed sampling or variability estimates for these curves.

Comparing small and XXL configurations

The size comparison offers converging observations. XXL produces a larger proportion of structurally accepted outputs, receives stronger human quality judgments, and performs better in downstream parsing.

Those observations make it difficult to reduce the result to any single mechanism. Better parsing could come from a stronger parser, better synthetic examples, a larger accepted collection, or interactions among those factors.

The authors attribute part of the downstream advantage to the larger amount of generated data that survives filtering. That explanation is plausible within their measurements, but it is not fully isolated by a crossed experiment holding generator quality, accepted data volume, and parser size independently fixed.

The different training schedules also belong in the interpretation. Small and XXL are not simply identical systems with one capacity setting changed. Their stated adaptation runs use different step counts.

Intrinsic quality as an explanatory analysis

The quality assessment is not an ablation that removes a component. It is an analysis of the material produced by the pipeline. It explains why structural yield alone cannot account for training quality.

The small generator is a particularly useful diagnostic. Its outputs are frequently judged natural, but semantic equivalence is much weaker. This means that a generator can learn recognizable Hinglish phrasing without reliably preserving the full task request.

For a parsing dataset, that failure is serious. Labels inherited from the English source become incorrect if the generated sentence expresses a different meaning. The analysis therefore identifies a source of supervision noise that a marker-format validator cannot detect.

Domain and checkpoint comparisons

The domain analysis connects persistent errors with semantic complexity. It suggests where additional examples are still useful, but it does not establish a universal law relating intent counts to accuracy.

The checkpoint comparison is more limited. The authors inspected earlier checkpoints while considering overfitting and preferred the reported training settings. No detailed checkpoint-by-checkpoint results are given, so this supports the configuration choice without providing a broader account of training dynamics.

There is no reported filter-removal ablation, no isolated test of each span check’s downstream contribution, and no systematic comparison of alternative human annotation protocols. The paper’s evidence is concentrated on augmentation, seed amount, configuration size, output quality, and domain variation.

Limitations

Limits the authors explicitly identify

The authors identify structural generation failures as a practical problem. Some outputs cannot support annotation transfer because spans or identifiers are malformed. Their solution is rejection, which preserves the integrity of accepted alignments at the cost of discarding source inputs.

They also show that generator configuration matters substantially. The small configuration’s semantic-equivalence result prevents a blanket statement that adapting mT5 automatically produces reliable code-switched supervision.

The discussion acknowledges differing returns across domains. A method that helps strongly in a difficult setting can yield smaller gains where performance has already leveled off. The reported annotation saving is therefore tied to a particular comparison rather than a constant property of the pipeline.

The authors describe broader application to other language pairs and other code-switched tasks as a promising direction. Their experiments provide evidence for Hindi-English task parsing and a Spanish-English weather case. They do not experimentally cover the full breadth of that proposed generality.

Structural correctness does not establish semantic correctness

A careful reader should distinguish what the filters prove from what the dataset needs. Matching span identifiers can establish that labels are mechanically transferable. It cannot establish that the generated phrase has the same denotation or that the overall request retains the same relationships.

An output might preserve every bracket and identifier while altering a temporal condition, negation, or requested action. Those changes can invalidate inherited supervision without creating a formatting error.

The human quality study measures this problem at the sample level. It does not provide an automatic semantic guarantee for every released example. The downstream gains show that the resulting mixture is useful in the reported experiments, not that every generated annotation is correct.

This distinction also limits interpretation of the yield chart. Yield describes accepted conversions under the structural checks. It should not be used as an estimate of exact semantic preservation.

The low-data claim relies on substantial prior resources

The method reduces task-specific human supervision in the reported comparison. It does not begin with no resources. It relies on a pretrained multilingual generator, an existing English semantic parsing collection, a shared annotation scheme, and paired demonstrations of the desired transformation.

The XXL setting also involves substantial capacity and a specified training process. The paper’s 20x claim concerns labeled examples needed to reach a comparable parsing performance level. It does not measure a corresponding reduction in total cost, energy use, development effort, or training time.

A deployment with a different balance of annotation and computation costs might therefore value the method differently. The paper does not supply a complete economic comparison.

The source dataset is another important resource assumption. If a target application lacks compatible English semantic annotations, span transfer cannot supply labels that do not already exist. CST5 is strongest where a useful source scaffold is available.

Split overlap complicates generalization claims

The authors state that overlaps among the original TOPv2 splits were preserved. This is a transparent disclosure, but it raises a question about the independence of the resulting evaluation material.

The paper does not quantify how the preserved overlap affects exact-match accuracy. Nor does it report a deduplicated comparison establishing what the learning curves would look like under a different split policy.

A careful interpretation should therefore avoid equating every test success with generalization to completely separate semantic content. The paired augmented and unaugmented comparisons remain informative, but the broader generalization claim would benefit from an overlap analysis.

Preserving split labels is useful provenance practice. It does not by itself remove overlap inherited from the source collection.

Human evaluation has reporting and scope limits

Table 6 reports 97.7% semantic equivalence for human-authored data, while one narrative description characterizes the human sample more broadly as exceeding 99% on both criteria. The detailed table should guide the precise account of the measured semantic-equivalence result.

The collection procedure also leaves some ambiguity about annotator roles. It says the rewriting task used 3 annotators, then explains a primary writer and an additional checker without fully clarifying the complete arrangement.

These reporting issues do not erase the quality assessment, but they limit how exactly another researcher could reconstruct the annotation protocol from the description alone.

The judgments concern the sampled task requests and the raters used. The study does not establish that the same naturalness judgments would hold across all bilingual communities, speaking styles, or conversational contexts.

The experimental controls leave causal questions open

The paper demonstrates useful downstream augmentation, but the size comparison combines several changing factors. Generator quality, structural yield, and parser strength all improve in the larger configuration.

Without matched-data experiments or crossed generator-parser conditions, the contribution of each factor remains uncertain. The results establish the effectiveness of the combined setup more directly than they explain the precise source of every gain.

There is also no reported comparison against another augmentation method under the same seed and resource conditions. Earlier approaches are discussed, but the principal numerical baseline is training without the added synthetic examples.

The training settings were only roughly tuned. That is an honest description of the study, and it means the reported curves should not be interpreted as exhaustive best-achievable performance for every configuration.

Coverage remains task-oriented and text-based

The requests come from task domains represented in TOPv2 and CSTOP. They are not an unrestricted sample of multilingual conversation. Success with alarms, weather, or reminders does not establish the same behavior for open-ended discussion.

The Hinglish resource uses Romanized Hindi alongside English. The reported experiment consequently does not establish performance for every script choice or spelling convention associated with Hindi-English communication.

Though voice assistants motivate the work, the evaluated input is text. The experiments do not isolate speech recognition errors, pronunciation variation, or the interaction between speech transcription and code-switched parsing.

Finally, the paper does not report uncertainty intervals or repeated-run variability for its main parsing results. The exact-match comparisons are useful observations under the stated setup, but their statistical variability is not characterized in detail.

What came after

The later citation record connects CST5 with work on dialect adaptation, user experiences of language-technology failure, and a broader survey of code-switched processing. Those connections indicate relevant research directions. The available descriptions do not establish that the citing works adopted CST5’s span identifiers, reproduced its experiments, or used its generated resource.

TADA is identified as a 2023 work on task-agnostic adapters for English dialects. Its subject places it near CST5’s concern with adapting systems beyond a dominant training variety. That is a useful conceptual connection: both concern linguistic variation and the resources needed to handle it. The citation information does not specify which CST5 mechanism TADA discusses or reuses, so a direct methodological inheritance cannot be claimed.

Perceptions of Language Technology Failures from South Asian English Speakers appears in 2024. Its stated subject brings a user perspective to failures involving language variation. This is relevant to CST5’s motivation, because parser accuracy is only one way to examine whether language technology accommodates its users. The citation record does not supply that work’s findings or explain how it evaluates CST5, so no conclusion about user acceptance of CST5 follows from the connection.

Beyond Monolingual Assumptions is a 2026 survey covering code-switched processing in the era of large language systems and across modalities. Its scope is broader than CST5’s text-based task parsing experiments. The citation situates CST5 within that later overview, but the available description does not state the survey’s assessment of its method or provide a replication result.

These later connections should therefore be read as evidence of continued relevance, with specific reuse left unspecified. CST5’s demonstrated contribution remains the bounded one established by its own experiments: a small parallel seed can teach a generator to expand an existing English semantic parsing resource into useful code-switched supervision, provided alignment, semantic quality, and downstream performance are evaluated separately.

Cite

Cite as Anmol Agarwal, Jigar Gupta, Rahul Goel, Shyam Upadhyay, Pankaj Joshi and Rengarajan Aravamudhan. 2023. CST5: Data Augmentation for Code-Switched Semantic Parsing. Proceedings of the 1st Workshop on Taming Large Language Models: Controllability in the era of Interactive Assistants.

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

@inproceedings{agarwal2023cst5,
  title = {{CST5: Data Augmentation for Code-Switched Semantic Parsing}},
  author = {Anmol Agarwal, Jigar Gupta, Rahul Goel, Shyam Upadhyay, Pankaj Joshi and Rengarajan Aravamudhan},
  booktitle = {Proceedings of the 1st Workshop on Taming Large Language Models: Controllability in the era of Interactive Assistants},
  year = {2023},
  url = {https://aclanthology.org/2023.tllm-1.1/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agarwal-2023-cst5-data-augmentation-code-switched/