Elamur Research

Code_Gen at BLP-2025 Task 2: BanglaCode: A Cross-lingual Benchmark for Code Generation with Translation and Assertion Strategies

Paper · 2025 · Abhishek Agarwala, Shifat Islam and Emon Ghosh

Summary

Generating a program from a written request requires understanding both the requested computation and the language used to describe it. Code_Gen’s contribution to BLP-2025 Task 2 examines this connection for Bangla requests and Python programs. The authors investigate whether a generator performs better when its input has first been cleaned, translated into English, and supplemented with executable examples. Their central concern is practical: difficulties attributed to code generation may begin earlier, when an imperfectly expressed or poorly understood request is converted into a programming specification.

The proposed workflow handles the instruction and its associated checks as separate objects requiring preparation. Bangla text is normalized to remove accidental repetition and other unwanted material. The cleaned instruction is then translated into English. The authors report unsatisfactory experiences with Google Translate and facebook/nllb-200-distilled-600M, particularly when wording changes alter meaning or technical vocabulary. They choose GPT-5 for the final translation stage. Meanwhile, the assertions supplied with each task are extracted, corrected, and associated with the relevant instruction. An assertion is a runnable check connecting a particular function call with an expected result. The generation prompt brings these materials together while asking for behavior that extends beyond the displayed examples.

The main results favor this complete preparation strategy. For GPT-5, the comparison lists 60.69% accuracy under the untranslated condition and 83.80% when translation and assertions are used together. GPT-5 Mini records 81.80% in the prepared condition; the corresponding LLaMA 3-8B result is 32.40%. Every system in the main comparison improves under the combined setting. A further prompt experiment reports 81.80% for the small formulation, 80.60% for the moderate formulation, and 80.40% for the large formulation. These observations support the tested workflow, although they do not determine how much improvement comes from translation, repaired checks, their inclusion in the input, or the surrounding instructions.

The task data contain 74 trial examples, 400 development examples, and 500 test examples. Reference programs are supplied for the trial collection, which the authors use for limited fine-tuning. They describe greater consistency and fewer hallucinations after adaptation, but give no numerical comparison isolating that intervention. They report a 7th-place official finish. Some reporting remains unresolved: the training discussion gives 83.4%, the abstract gives 83.8%, and the main table gives 83.80%. The prompt experiment also lacks a fully specified connection to the other reported runs.

The paper’s contribution is therefore best understood as an examination of the entire route from a Bangla request to an executable answer. Preparing that route can materially change observed performance, even when the final generator stays the same. Yet the evidence concerns bounded programming exercises rather than larger development projects. The authors do not demonstrate unrestricted Bangla comprehension, comprehensive translation quality, or an independently measured benefit for every stage. Their results encourage closer attention to input preparation while also showing why preparation must itself be evaluated.

Interesting ideas

Preserve requirements while removing noise. Text cleanup is useful when accidental material competes with the actual task. Repetition, damaged examples, and extraneous fragments can all affect a later interpretation. The paper puts normalization ahead of translation, making input quality part of the computational workflow rather than an afterthought. This approach transfers to document processing and automated request handling. Its governing condition should be preservation of requirements: deleting clutter helps only if the operation, restrictions, and expected outcome survive the deletion.

Create an inspectable language bridge. Translating a request into a better-supported language offers a way to use existing capabilities without immediately retraining the whole system. It also creates an intermediate artifact that can be examined separately from the final answer. The important question is whether that artifact preserves the task, especially its operations and interface. Similar bridges can connect specialist terminology to a common representation or convert user language into a restricted task description. Fluency should be treated as one property of the bridge, rather than proof that it carries the right meaning.

Pair descriptions with behavioral witnesses. A concrete input and its required output can reveal details that prose leaves uncertain. Making that relationship executable gives the downstream system something more precise than an illustrative sentence. This is useful in program synthesis, transformation rules, and structured extraction. However, the examples remain observations about selected cases. The paper’s prompts try to preserve this distinction by demanding a general implementation. A reusable design should retain the verbal requirement and the examples as complementary sources of information.

Check associations as carefully as content. An individually valid test can still be misleading when attached to the wrong problem. The authors’ assertion preparation addresses this alongside punctuation and syntax. That distinction applies widely: an annotation, citation, or measurement may be correct in isolation but wrong for the record receiving it. Association checks deserve their own evidence and failure category. Otherwise, downstream errors can be blamed on reasoning when the real problem is a broken relationship between artifacts.

Test additional instructions instead of assuming their value. The smallest prompt achieves the strongest reported result among the tested formulations. This does not prove that shorter instructions are always preferable; the formulations differ in policy as well as length. It does show that elaboration needs evidence. Extra guidance about exceptions, output defaults, and edge cases can help, compete with the task, or simply distract. The lesson applies to reviewer prompts and automated workflows: assess each instruction package through the quality of its accepted outputs.

Locate failure before selecting a remedy. The paper distinguishes damaged code syntax, altered task meaning, incorrect logic, and invented material. These failures call for different responses. Translation review will not repair every indentation problem, while a syntax checker cannot recover an operation that was mistranslated. A multistage system benefits from recording where the requested behavior first became distorted. That diagnosis can guide data repair, interface validation, or adaptation more effectively than treating every unsuccessful answer as the same kind of weakness.

Deep dive: Code_Gen at BLP-2025 Task 2: BanglaCode: A Cross-lingual Benchmark for Code Generation with Translation and Assertion Strategies

How BanglaCode prepares Bangla programming requests through translation, repaired tests, and prompt design, and what its results establish. · about 36 minutes to read

How Mova uses it

Mova’s relevance lies in its explicit treatment of language, evidence, and bounded execution. Its Rust language core builds dependency structures, interprets frames, and maintains contextual state. Other components describe constraints, validate artifacts, and dispatch supported operations. The following connections concern those mechanisms and possible extensions. They do not imply a Bangla programming interface or a reproduction of BanglaCode. The status marks are proposals grounded in the documented scope; the effectiveness of these transfers remains unmeasured.

Idea: Keep normalization changes reversible and inspectable. Where: Dataset Preparation and Translation. Area: data preparation. Mova: частково є (en language-specific tokenization; tools/enrich source fingerprints). Mova could preserve an original request alongside a normalized version and record each deletion or replacement. Existing language-specific processing provides a starting point, but does not establish a general programming-request cleaner. Why Mova: an explicit change record would help distinguish a defect in the incoming text from a requirement accidentally removed during preparation.

Idea: Protect task-bearing words during cleanup. Where: Dataset Preparation and Translation. Area: semantics. Mova: частково є (prag event frames and global action classes). A proposed cleaner could flag changes affecting negation, participants, conditions, or requested actions. It should decline uncertain repairs rather than treating all repeated or unusual wording as disposable. Why Mova: the logical interpretation depends on these distinctions, so cleanup should preserve the features that determine what an admitted capability must do.

Idea: Introduce an auditable bridge between supported languages. Where: Dataset Preparation and Translation. Area: multilingual processing. Mova: частково є (tools/translate, described in the architecture as using a meta-world). The paper motivates retaining an intermediate interpretation rather than passing an opaque translation directly into execution. A Mova adapter could expose that interpretation for supported vocabulary without claiming general Bangla coverage. Why Mova: such a boundary could reuse existing language capabilities while making the assumptions behind task transfer visible.

Idea: Compare operations across representations. Where: Error Analysis. Area: lexical semantics and task interpretation. Mova: частково є (prag roles, global verb classes, and math operation knowledge). The reported confusion between calculating and printing suggests a bounded check for preservation of the requested action. Mova could compare action classes and output roles where its knowledge is adequate. Why Mova: a fluent reformulation can request the wrong behavior, and an operation-level disagreement should stop execution before a plausible result conceals it.

Idea: Evaluate a translator through its consumer. Where: Dataset Preparation and Translation; Result Analysis and Findings. Area: evaluation. Mova: нове. A proposed experiment would compare language bridges while keeping the receiving capability, requests, and acceptance checks fixed. The available evidence does not establish this particular operational comparison, and related work elsewhere in Mova remains unknown. Why Mova: downstream success would test whether a bridge preserves useful task information rather than merely producing readable sentences.

Idea: Represent examples as executable evidence. Where: Assertion Extraction and Alignment. Area: specification. Mova: частково є (groupant checks and declared conformance profiles). A supported handler could accept behavioral examples as typed evidence attached to its task description. These examples would supplement the declared contract rather than silently redefine it. Why Mova: concrete observations could narrow ambiguity while fitting Mova’s existing separation between an observation, its assumptions, and the claim it supports.

Idea: Avoid promoting examples into universal rules. Where: Appendix, small and large prompt descriptions. Area: reasoning. Mova: частково є (finite correspondence checks and source-bound groupants). Mova already distinguishes agreement on a finite domain from broader equivalence. A future synthesis consumer should preserve the same boundary when it sees example outputs. Why Mova: a rule that fits displayed cases may still fail elsewhere, so evidence about selected inputs should retain its limited scope.

Idea: Validate check syntax before interpreting failure. Where: Assertion Extraction and Alignment. Area: artifact validation. Mova: частково є (treeagree structural validators and tools/enrich staging gates). Equivalent validation could be added for a supported executable-check format, covering its parse structure and required fields. This is an analogy to existing validators, not evidence of a current Python assertion service. Why Mova: preparation defects should be reported as preparation defects rather than counted against the task-solving capability.

Idea: Bind checks to task identities. Where: Assertion Extraction and Alignment. Area: provenance and alignment. Mova: частково є (tools/dictindex stable evidence identities; tools/enrich source-bound packets). Each behavioral witness could carry the identity of its instruction and the interface it is intended to exercise. A disagreement would remain visible rather than being resolved by proximity in a file. Why Mova: correct content attached to an unrelated source can misdirect both execution and evaluation.

Idea: Separate formatting repair from changed expectations. Where: Assertion Extraction and Alignment. Area: data governance. Mova: частково є (reviewed tree edits and validated enrichment drafts). Correcting an unmatched quote differs from changing an expected answer. A proposed repair record should identify which kind of modification occurred and what evidence permits it. Why Mova: changing a check’s meaning changes the standard of success, so that operation needs stronger justification than ordinary cleanup.

Idea: Make callable interfaces part of the task contract. Where: Dataset Description; Appendix, moderate and large prompt descriptions. Area: operational interfaces. Mova: частково є (configured capability arguments and worker protocols). Function names, accepted arguments, and returned structures have counterparts in Mova’s admitted operations. An extension could check those properties explicitly before interpreting an otherwise relevant artifact as a successful result. Why Mova: completing a related computation through the wrong interface can still leave the actual request unanswered.

Idea: Test compact reviewer instructions. Where: Prompt Optimization; Appendix. Area: teacher review and evaluation. Mova: нове. Mova could compare brief and expanded instruction packages on the same authorized review work, using unchanged artifact validators. This would concern teaching or review, with native assessment continuing through its existing boundary. Why Mova: a shorter package might reduce competing requirements, but only accepted-output quality can establish whether it improves the workflow.

Idea: Detect conflicts between general policies and local requirements. Where: Appendix, moderate and large prompt descriptions. Area: pragmatics and operational policy. Mova: частково є (layers routing explanations and configured planner failures). Generic advice about fallback values or permitted effects could be represented separately from the current task’s explicit requirements. Contradictions would become reportable conditions. Why Mova: a helpful-sounding default can alter intended behavior, particularly when a task requires an exceptional result or a specific failure response.

Idea: Preserve source instructions as the governing specification. Where: Appendix, all prompt descriptions. Area: instruction interpretation. Mova: частково є (source-bound groupants and supported capability contracts). A generated artifact should be checked against the admitted task, with examples serving as additional evidence. The proposal does not assume Mova currently synthesizes arbitrary programs. Why Mova: prioritizing the declared operation would discourage an output that passes examples through a shortcut unrelated to the user’s request.

Idea: Route failures by the earliest unsupported transition. Where: Error Analysis. Area: diagnosis. Mova: вже є (world/src/knowledge/retention/fastread.rs distinguishes representation, inference, parameter, and parsing failures). The programming categories suggest an analogous operational report distinguishing preparation, interpretation, interface, and behavioral failures. Why Mova: targeted diagnosis can send work towards the appropriate rule, annotation, or handler instead of treating every miss as a reason for general retraining.

Idea: Record unsupported additions independently of syntax errors. Where: Model Training and Evaluation; Error Analysis. Area: reliability. Mova: частково є (bounded deputy actions and separate artifact admission). An extension could flag operations or entities that have no support in the accepted task representation. Such detection would necessarily remain bounded by that representation. Why Mova: invented material may be perfectly well formed, so a structural pass cannot establish that the artifact follows the request.

Idea: Measure regularity separately from correctness. Where: Model Training and Evaluation. Area: training analysis. Mova: частково є (tools/enrich comparison requirements and distinct artifact states). The paper’s qualitative consistency claim suggests keeping consistency, behavioral success, and unsupported-output frequency as separate observations. Why Mova: a revision can make answers more predictable without making them more accurate, and those outcomes should lead to different development decisions.

Idea: Maintain distinct identities for teaching and assessment material. Where: Dataset Description. Area: evaluation integrity. Mova: вже є (teacher-separated school evaluation; tools/dictindex exclusion of assessment text). The different roles of trial implementations and later task requests fit an existing Mova principle. Any comparable import should preserve those roles through source discovery and downstream storage. Why Mova: the system must be able to explain whether an artifact taught a behavior or independently tested it.

Idea: Label which checks were visible to the solver. Where: Task Description; Appendix, large prompt description. Area: benchmark design. Mova: частково є (school controls and restrictions on assessment sources). A future task receipt could state whether a check guided generation or remained withheld. The paper does not fully document this boundary for all its runs. Why Mova: success on displayed cases and success on independent cases support different conclusions, so their evidence should not be merged.

Idea: Compare preparation across more than one consumer. Where: Benchmark Comparison; Model Comparison. Area: experimental design. Mova: частково є (treeagree witness comparisons and pragmatic predictor evaluation). An operational study could apply the same preparation variants to different supported handlers. This would extend a familiar comparative method into a new setting. Why Mova: a useful interface transformation may help broadly, or it may compensate for a particular consumer’s weakness; the distinction matters for reuse.

Idea: Isolate the components of a combined workflow. Where: Model Comparison; Assertion Extraction and Alignment. Area: causal evaluation. Mova: нове. A proposed study would vary translation, witness inclusion, and repair independently before assessing their combination. This is an improvement suggested by the paper’s unresolved attribution, rather than an ablation the authors performed. Why Mova: separate comparisons would reveal which mechanism earns its complexity and whether stages help only through interaction.

Idea: Attach result identity to every reported score. Where: Model Training and Evaluation; Result Analysis and Findings. Area: reproducibility. Mova: частково є (versioned sources, deterministic checks, and retained worker outcomes). A result record could bind the task split, prompt version, preparation choices, and execution configuration. Why Mova: conflicting figures become diagnosable when each refers to a recoverable run, whereas an unqualified headline number cannot reliably guide a regression decision.

Idea: Track structural validity apart from task success. Where: Abstract; Error Analysis. Area: evaluation. Mova: частково є (treeagree separates structural violations from agreement). A supported code-related artifact could receive distinct observations for validity, interface conformance, and behavioral checks. Why Mova: the paper’s syntax claim and overall accuracy concern different properties; keeping them separate would show whether a revision repairs form, meaning, or both.

Idea: Declare failure behavior per capability. Where: Appendix, moderate and large prompt descriptions. Area: operational semantics. Mova: частково є (configured adapters and explicit escalation in layers). Returning a neutral object should be appropriate to the current contract rather than inherited from a universal policy. Why Mova: a normal-looking fallback can hide an unsupported operation, while a declared failure preserves the reason execution could not continue.

Idea: Keep generated artifacts separate from commentary. Where: Appendix, moderate and large prompt descriptions. Area: tool interfaces. Mova: частково є (worker protocols and explicit native adapters). Where a later capability needs a particular artifact, an output schema could distinguish that artifact from explanation and diagnostic material. Why Mova: a consumer should not have to infer which part of a free-form answer is executable or authoritative.

Idea: Stabilize choices among equally permitted outputs. Where: Appendix, large prompt description. Area: determinism. Mova: вже є (ordered maps, fixed seeds, and repeated-result checks). A new handler should state how it chooses between alternatives allowed by its contract. The paper’s prompt expresses a similar preference, although it reports no separate test of it. Why Mova: stable choices make changes easier to diagnose and keep irrelevant variation from obscuring a real regression.

Idea: Review generated checks before using them as supervision. Where: Error Analysis and future-work discussion. Area: synthetic data. Mova: частково є (tools/enrich proposal, review, and staging workflow). Synthetic assertions could be candidates for a future task family, but would require independent support before admission. Why Mova: generated expectations can be wrong in ways that reinforce a mistaken rule, so proposal production and trusted teaching material must remain separate.

Idea: Explore bilingual teaching without assuming alignment. Where: Conclusion. Area: multilingual learning. Mova: частково є (tools/dictindex English/French counterpart evidence). The authors propose bilingual training, while Mova already records some sentence-level cross-language associations under provenance restrictions. A new study could investigate whether supported task relations survive that transfer. Why Mova: shared logical structure may be useful, but co-occurrence alone does not establish identical meaning or word-level correspondence.

Idea: Treat synonymous wording as operationally sensitive. Where: Dataset Preparation and Translation. Area: dictionary design. Mova: частково є (global concepts and senses; dictionary occurrence evidence). The translation complaints suggest examining whether apparently similar words denote the same action in a programming context. A dictionary extension should retain contextual witnesses rather than merge terms solely because they look interchangeable. Why Mova: the free dictionary could support more reliable task interpretation while preserving distinctions between an action, its result, and its presentation.

Idea: Retain contradictory specification evidence. Where: Dataset Description; Assertion Extraction and Alignment. Area: reasoning under uncertainty. Mova: частково є (explicit gaps, routing disagreement, and configured failure outcomes). When prose and a supplied check imply different interfaces, a future reader could preserve both observations and request review rather than choosing silently. Why Mova: disagreement is useful diagnostic evidence, and automatic reconciliation can otherwise manufacture certainty unsupported by the source.

Idea: Keep evaluation claims narrower than successful transport. Where: Task Description; Limitations. Area: evidence interpretation. Mova: вже є (the hybrid-system distinction between receipts and admitted outcomes). Producing an artifact, executing it, and satisfying its intended contract are separate achievements. Why Mova: this existing boundary transfers directly to programming tasks, where a successful call or valid file does not establish correct behavior.

Idea: Extend coverage through explicit boundary cases. Where: Appendix, moderate and large prompt descriptions. Area: test design. Mova: частково є (negative controls and regression-gated rule development). The appendix’s concern with empty inputs, unusual values, and ambiguous output choices suggests task-specific contrast cases. These should follow the declared contract rather than generic assumptions. Why Mova: carefully chosen counterexamples can distinguish a meaningful rule from an attractive shortcut more efficiently than repeated ordinary cases.

Idea: Record the cost of preparation as well as execution. Where: Figure 1; Experimental Setup. Area: resource analysis. Mova: частково є (tools/twin measured runs and cost calibration). Because the workflow contains several stages, an engineering evaluation could measure preparation and execution separately. The paper supplies no such numerical accounting. Why Mova: an accuracy improvement may be valuable, but deciding where to deploy it also requires knowing which stage consumes resources.

Idea: Preserve attribution when turning observations into development claims. Where: Result Analysis and Findings; Limitations. Area: epistemic status. Mova: частково є (Frame::evid, assertion gates, and evidence-bearing groupants). Author explanations such as limited adaptation causing weaker results should remain distinguishable from directly measured contrasts. Why Mova: Mova can use an explanation as a hypothesis without promoting it to established knowledge, matching its separation of reported, inferred, and asserted information.

The problem and its context

The language boundary comes before the program

A programming request contains a behavioral requirement before it contains an implementation. The user might ask for a numerical result, a transformation of a string, or a function returning a particular structure. To answer correctly, a generator must identify that behavior and then express it in Python. Misunderstanding the human-language request can derail the process even if the resulting code is coherent.

The paper examines that risk through Bangla. Its introduction associates weaker performance with insufficient high-quality resources specific to the language. This is a low-resource language problem in the computational sense: the relevant shortage concerns useful training material and adaptation for the task. The authors emphasize the mismatch between the language’s large speaking community and its limited representation in code-oriented research.

The practical issue is not simply whether a generator can produce Python. It is whether the generator can connect the requested Bangla meaning to the appropriate Python behavior. Translation is attractive because it changes the input language while leaving the target programming language unchanged. Assertions are attractive because they expose behavior directly, reducing reliance on prose alone.

These interventions also create new responsibilities. A translator can change an operation. An example can contain a malformed string or name an incompatible function. A generic prompt can impose a fallback that the task never requested. The system therefore has to manage the relationship among its representations, not merely improve each artifact in isolation.

English-centered evaluation leaves an important gap

The related-work discussion presents established code-generation research as heavily concentrated on English. It names Codex alongside StarCoder and Code Llama, describing strong performance on familiar programming benchmarks. HumanEval and MBPP serve as reference points for this earlier evaluation tradition. The latter is associated with Program Synthesis with Large Language Models.

The authors’ concern is that these successes do not automatically transfer across instruction languages. A programming problem may be computationally unchanged when translated into Bangla, yet become harder for the generator to interpret. Assessing only English descriptions would leave that difference unmeasured.

They identify mHumanEval as an earlier response to this problem. In their account, it evaluates natural-language programming prompts across 204 languages and includes Bangla. They cite its findings as evidence that strong general systems still perform less well for low-resource input languages. BanglaCode’s preparation strategy responds to that diagnosis by examining how the request reaches the code generator.

The paper also discusses Llama 3, BLOOM, and Aya. It characterizes their Bangla training coverage as limited and relates this to weaker performance under Bangla prompting. That is background drawn from the authors’ literature discussion; their current experiments do not audit the underlying training collections.

Adaptation offers another route

The authors describe Tiger-Coder as an earlier dedicated effort in Bangla code generation. Its instruction resources include self-instructed material, synthetic material, and translated material. The associated MBPP-Bangla evaluation spans five programming languages. This earlier work motivates the possibility that language-and-domain adaptation can improve performance beyond generic multilingual capability.

Adaptation and translation address different parts of the problem. Adaptation attempts to change the system’s learned behavior. Translation changes the representation supplied for a particular task. Assertion prompting provides still another intervention: observable examples accompany the request without necessarily changing the generator through training.

The paper considers these options within a shared-task participation rather than introducing a new learning architecture. Its emphasis is an experimentally assembled workflow. The authors say their implementation and training corpus are publicly released through their project repository.

There is some ambiguity in how the contribution is framed. The title and introductory discussion present BanglaCode as a benchmark contribution, while the dataset account attributes the examples to the shared task and cited resources. The article does not give a separate collection methodology establishing an independently assembled corpus. Its clearest contribution is the participant system and the comparison of preparation strategies on the supplied task.

Why executable evaluation matters

The shared task asks for programs that meet test requirements, rather than natural-language explanations of algorithms. This gives the outcome a concrete behavioral target. An answer can sound persuasive and still fail when called with the required arguments.

However, executable evaluation does not eliminate interpretation. Someone must still determine which assertions belong to a problem, what their expected outputs mean, and whether the supplied examples adequately represent the instruction. The paper encounters problems at precisely these points.

That combination makes the study relevant beyond programming. It examines a general situation in which a natural-language requirement must survive several transformations before an external process can verify the result. Each stage has to preserve enough meaning for the final check to remain connected to the original request.

The method, step by step

Read the record as several connected artifacts

The dataset description identifies an example identifier, a Bangla instruction, a target response where available, and a collection of assertions. The identifier distinguishes the task. The instruction expresses the intended computation. The response supplies a reference program in the trial data. The assertions connect concrete calls to expected outcomes.

These artifacts serve different purposes. A reference program can supervise adaptation because it shows an intended answer. A visible assertion can guide generation because it illustrates required behavior. A withheld test can provide independent evidence about whether the generated implementation generalizes. The paper uses this general arrangement, although it does not fully document the visible-versus-withheld boundary for every experiment.

The examples make interface interpretation tangible. The volume task refers to a triangular prism and presents the function name find_Volume. Its associated call uses 10, 8, and 6, expecting 240. Understanding the request therefore includes recognizing the desired quantity, using the correct callable interface, and returning a compatible result.

The string-removal example reveals a different difficulty. Its displayed function sketch does not obviously match the argument structure in the assertion. That is exactly the kind of inconsistency an alignment stage must confront. The paper does not walk through a complete repair of this particular example, so it should be treated as an illustration of the problem rather than a documented successful correction.

From Bangla task records to evaluated Python

The steps in order.

From Bangla task records to evaluated PythonStep 1: Load requests and associated test material1. Load requests and associated test materialStep 2: Remove accidental noise from instructions2. Remove accidental noise from instructionsStep 3: Produce an English task description3. Produce an English task descriptionStep 4: Correct checks and verify their association4. Correct checks and verify their associationStep 5: Assemble the selected instruction package5. Assemble the selected instruction packageStep 6: Produce the requested Python artifact6. Produce the requested Python artifactStep 7: Assess behavior through executable checks7. Assess behavior through executable checks

Clean the instruction before changing languages

The preparation stage begins with the Bangla instruction field. The authors report erroneous passages, duplicated words, and material unnecessary to the task. Their normalization process attempts to make the input consistent before translation.

This ordering gives the translator a more coherent object to interpret. If irrelevant fragments remain, the translator may preserve them as requirements. If repetitions are accidental, they may still influence emphasis or sentence structure. Cleaning is intended to reduce these sources of uncertainty before they propagate.

The abstract also refers to special-character removal. In programming-related text, such a procedure needs careful boundaries because punctuation can carry meaning. A character may belong to code, an example, or ordinary prose. The paper does not provide enough transformation detail to determine how its cleaner distinguishes all these cases.

The method is consequently described more fully as a sequence of stages than as a reproducible inventory of rewrite rules. The categories of unwanted material are clear, but the exact conditions for deleting or changing each fragment are not. No semantic-preservation study accompanies the cleanup procedure.

This distinction matters when interpreting the final result. A higher end-to-end score can support the usefulness of the prepared dataset as a whole. It cannot establish that every normalization operation preserves meaning, nor identify which specific cleanup rule contributes most.

Move the request into English

After normalization, the workflow uses machine translation to obtain an English instruction. The goal is to make the programming requirement easier for the receiving generator to process. Python remains the output language, so the cross-language transition occurs on the human-instruction side.

The authors experiment with Google Translate and facebook/nllb-200-distilled-600M. They report meaning errors and unstable lexical choices. GPT-5 becomes their final translator because they judge its translations more fluent and semantically accurate.

That selection is an empirical observation from system development, but it is not accompanied by a numerical translation comparison. The paper supplies neither a translation-quality metric nor a detailed error tally for the alternatives. It therefore establishes the authors’ chosen configuration more clearly than it establishes the size or consistency of its advantage.

The error discussion supplies an important example of what can go wrong. A Bangla instruction calling for a calculation is rendered as an instruction to print. Both are plausible programming actions, but they imply different behavior. Returning a computed value and displaying text are not interchangeable in a function evaluated through assertions.

The translator must therefore preserve more than a readable description. It needs to carry the requested operation, the arguments involved, the conditions governing the result, and the expected output behavior. The paper’s strategy is sensible at this level, but these individual preservation properties are not separately measured.

Prepare assertions as data, not decoration

The authors report that translation alone did not provide sufficient improvement. They strengthen the input by appending assertions to the translated request. This gives the generator examples of the behavior expected from the resulting function.

An assertion can clarify details that are difficult to express reliably through translation. It may show whether a result is a string or a list, whether a function accepts several arguments, or which callable name the evaluation will use. It can also expose a contradiction between the prose and the expected behavior.

The raw assertions are not assumed to be trustworthy in their original form. Reported defects include incompatible function references, punctuation problems, damaged brackets, and misplaced quotation marks. Extra commas can also disrupt executable syntax. The authors build an extraction, cleaning, and alignment procedure to address these issues.

These defects differ in severity. A malformed quote can prevent a check from running. A mismatched function name can make a runnable check target the wrong interface. Changing an expected output would alter the required behavior itself. The paper groups the preparation work within its assertion stage but does not provide a formal taxonomy of permissible repairs.

No pseudocode or complete worked repair sequence is supplied. Readers can understand why the stage exists and what kinds of defects it targets, but cannot reconstruct every decision solely from the method description.

Assemble prose and examples without confusing their roles

The prepared English instruction and corrected assertions are combined for generation. This is the central information package: a general request accompanied by observations about particular inputs.

The appendix repeatedly emphasizes that the program should implement the underlying task instead of merely satisfying the displayed cases. This is important because finite examples underdetermine a function. A candidate can agree with every shown result while behaving incorrectly elsewhere.

The instruction package tries to reduce that risk by asking for generalized behavior and discouraging hardcoded answers. These requests guide the generator, but they do not prove that it obeys. Independent evaluation remains necessary.

The combined input can also contain unresolved conflicts. If the description indicates one argument structure and a check indicates another, the generator has to choose an interpretation unless preparation resolves the disagreement. The paper recognizes alignment problems, yet does not describe a complete conflict-resolution policy for every possible mismatch.

The method therefore relies on both data repair and prompt guidance. Neither should be viewed as merely cosmetic: each influences what counts as the task the generator attempts to solve.

Compare instruction packages of different scope

The appendix presents small, moderate, and large system prompts. These are policies surrounding the task-specific instruction and assertions. They specify the desired form of the answer and offer general behavioral guidance.

The small version concentrates on a concise Python implementation that follows the request and meets the checks without specializing to them. Its scope is narrow. It leaves many implementation decisions to the generator and the individual problem statement.

The moderate version adds common boundary cases, categorical output matching, return-type requirements, and interface constraints. It also prescribes a fallback involving None, including exceptional conditions. Such guidance aims to prevent predictable mistakes, but it is more than a longer restatement of the same policy.

The large version extends the policy further. It restricts side effects, discusses deterministic choices, distinguishes booleans from numeric cases, and gives numerical-handling advice. It also constrains output presentation and encourages consideration of difficult inputs.

These packages differ in substance. A task may require a particular exception policy or permit behavior that a generic instruction forbids. Accordingly, the comparison cannot isolate prompt length from prompt content. It evaluates complete instruction packages under the authors’ conditions.

Attempt adaptation using the trial responses

The trial collection contains 74 request–response examples, and the authors use it for adaptation experiments. Here the reference code is supervision: it provides a target response associated with a Bangla instruction.

This differs from the assertion strategy. Adding examples to an input changes the immediate information available during generation. Fine-tuning changes learned behavior through training. The paper discusses both, but their effects should not be combined into a single unspecified mechanism.

The authors report that adaptation makes outputs more consistent and reduces hallucination. They also acknowledge the limited supervision available. However, the report does not include a numerical adapted-versus-unadapted comparison, training schedule, or complete hyper-parameter description.

There is an additional naming problem. The training discussion mentions TigerLLM-9B, whereas the principal table identifies md-nishat-008/TigerLLM-1B-it. The report does not explain the relationship between these references. Conclusions about a specific evaluated configuration should therefore follow the table’s label rather than silently equating the names.

Produce the artifact and assess its behavior

The final generator receives the prepared request under the selected system prompt and produces Python. The task’s purpose is behavioral correctness under executable testing.

The paper contains no mathematical equations defining its preprocessing, alignment algorithm, training objective, or evaluation metric. Its technical contribution is procedural. Accuracy is reported as a percentage, but the implementation details of that metric are not fully specified.

The report does not clearly explain candidate sampling, how partial test success is handled, or whether several generated answers can contribute to a final decision. It also does not attach a complete evaluation configuration to every score.

The task description invokes hidden testing, while the dataset discussion says development and test records include assertions. These statements can be compatible if some checks are shown and others withheld, but the precise arrangement is not documented across all experiments. That uncertainty affects how strongly the results establish behavior beyond the examples supplied to generation.

Experiments and results

The data define a bounded programming task

The trial split contains 74 examples. Development contains 400 examples, and testing contains 500 examples. Only the trial records include reference responses. The other splits provide requests and test material without target implementations.

This organization supports the authors’ adaptation attempt and their later generation experiments. It does not, by itself, specify which split underlies every number in the results section. The principal comparison presents accuracy in the BanglaCode shared-task setting, but its rows lack complete run metadata.

The comparisons should therefore be read at their stated scope. They show reported task accuracy for named configurations. They do not justify assigning an unstated development or test identity to a score.

The main experimental contrast is between untranslated input and an input package combining translation with assertions. Instruction cleaning and assertion repair belong to the overall workflow. Since these interventions are not independently tabulated, the experiment measures the combined strategy instead of a clean isolated translation effect.

Proprietary generators benefit from the prepared input

The principal table reports better results under the translated-and-assertion condition for every proprietary generator it lists. GPT-5 achieves the strongest accuracy in that table.

BanglaCode accuracy across proprietary generation settings

Every listed generator scores higher with prepared English instructions and assertions.

BanglaCode accuracy across proprietary generation settingsGPT-4o Mini, untranslated condition: 43.40GPT-4o Mini, untranslated condition43.40GPT-4o Mini, translation plus assertions: 66.00GPT-4o Mini, translation plus assertions66.00GPT-5 Mini, untranslated condition: 55.20GPT-5 Mini, untranslated condition55.20GPT-5 Mini, translation plus assertions: 81.80GPT-5 Mini, translation plus assertions81.80GPT-5, untranslated condition: 60.69GPT-5, untranslated condition60.69GPT-5, translation plus assertions (this paper): 83.80GPT-5, translation plus assertions (thispaper)83.80
The numbers
System or settingaccuracy %
GPT-4o Mini, untranslated condition43.40
GPT-4o Mini, translation plus assertions66.00
GPT-5 Mini, untranslated condition55.20
GPT-5 Mini, translation plus assertions81.80
GPT-5, untranslated condition60.69
GPT-5, translation plus assertions (this paper)83.80

The within-generator comparison is more informative about preparation than the overall ranking alone. The final generator can remain the same while its observed success changes with the request package. This supports the authors’ view that input handling is an important part of the system.

However, the prepared condition is not simply the original Bangla request expressed differently. It also includes assertions, and those assertions have undergone repair. The chart cannot reveal which component supplies the decisive information for an individual task.

The final translation route also uses GPT-5. When another generator consumes that output, the overall pipeline includes GPT-5’s contribution at preparation time. The paper does not provide a cost or capability accounting that separates this contribution from the downstream generator’s behavior.

The headline figures need careful attribution. The abstract reports 83.8%; the comparison table reports 83.80%. The training section instead gives 83.4% alongside the official 7th-place finish. No explanation identifies whether these statements concern different runs or inconsistent reporting. Their association should remain unresolved.

The open-weight comparison shows the same direction

The listed open-weight generators also improve under translation with assertions. Their best reported settings nevertheless remain less accurate than the proprietary configurations in the same main table.

BanglaCode accuracy across open-weight generation settings

Preparation helps both listed generators without removing the remaining performance gap.

BanglaCode accuracy across open-weight generation settingsLLaMA 3-8B, untranslated condition: 25.60LLaMA 3-8B, untranslated condition25.60LLaMA 3-8B, translation plus assertions (this paper): 32.40LLaMA 3-8B, translation plus assertions(this paper)32.40TigerLLM-1B-it, untranslated condition: 18.00TigerLLM-1B-it, untranslated condition18.00TigerLLM-1B-it, translation plus assertions: 21.00TigerLLM-1B-it, translation plusassertions21.00
The numbers
System or settingaccuracy %
LLaMA 3-8B, untranslated condition25.60
LLaMA 3-8B, translation plus assertions (this paper)32.40
TigerLLM-1B-it, untranslated condition18.00
TigerLLM-1B-it, translation plus assertions21.00

The authors discuss several possible reasons for weaker results: adaptation to Bangla, coding capability, system size, hallucinations, and available hardware. These explanations are part of their interpretation. The experiment does not independently vary these properties, so their separate contributions remain unknown.

The qualitative fine-tuning observations cannot be read directly from the chart. The table does not identify enough training detail to recover a controlled adaptation comparison. It is therefore safer to distinguish the numerical preparation result from the authors’ descriptive account of improved consistency after training.

Likewise, the comparison does not establish a general property of all open-weight systems. It concerns the specific listed configurations and the authors’ available setup. The access category and the technical reasons for performance are not interchangeable explanations.

The shortest tested prompt leads its comparison

The prompt experiment favors the small instruction package over the moderate and large alternatives.

BanglaCode accuracy for the tested prompt packages

The compact package achieves the strongest reported result among these formulations.

BanglaCode accuracy for the tested prompt packagesSmall package (this paper): 81.80Small package (this paper)81.80Moderate package: 80.60Moderate package80.60Large package: 80.40Large package80.40
The numbers
System or settingaccuracy %
Small package (this paper)81.80
Moderate package80.60
Large package80.40

This is useful evidence for choosing among the tested prompts. It is less decisive about why the ordering occurs. The appendix shows that the longer versions add rules about exception handling, output conventions, side effects, and other behavior. Any of these additions could interact with the task.

The result paragraph does not fully identify the generator and split underlying this comparison. Elsewhere, the error discussion attributes a GPT-5 change from 80 to 83.8 to prompt tuning. The paper does not supply enough run identity to treat those statements as the same experiment.

No variability estimate accompanies the prompt results. There are no repeated-run summaries or paired task-level analyses showing which examples change status. The strongest conclusion is that the small package has the best reported score in this comparison, not that prompt brevity has a universally stable advantage.

Error categories explain the engineering motivation

The authors identify several kinds of failure. Syntactic defects include damaged brackets and indentation. Meaning errors can originate in translation. Logical mistakes concern what the code actually computes or returns. Hallucinated material includes unnecessary variables.

These categories make the preparation stages understandable. Corrected tests can remove syntax defects in the input evidence. Better translation can preserve the requested operation. Interface guidance can reduce mismatches between the generated function and the evaluator.

But the paper does not count these categories or show their distribution before and after each intervention. It therefore cannot establish which error type explains the largest share of the accuracy improvement. Its error analysis is explanatory and diagnostic rather than a quantitative decomposition.

What the ablations show

The central comparison evaluates a bundle

The study includes comparisons, but not a complete ablation separating all parts of the workflow. Its strongest numerical contrast joins translation and assertion use within the same condition.

This demonstrates practical value for the combined route. It does not demonstrate the isolated effect of either component. Assertions may reveal enough behavior to compensate for an imperfect description; translation may make the relationship between prose and examples easier to interpret. The resulting interaction can matter as much as either component alone.

The method discussion says translation was insufficient by itself. Yet no translation-only accuracy row is provided. That statement explains why the authors added assertions, without supplying a numerical estimate for the translation stage.

Instruction normalization is similarly unisolated. There is no reported comparison holding translation and tests fixed while varying only cleanup. Assertion repair also lacks its own controlled result. The method’s sequence should not be mistaken for a sequence of independently demonstrated gains.

Prompt content changes with prompt size

The prompt comparison is a genuine test of alternative formulations. It shows that a more expansive instruction package does not necessarily yield the best outcome.

However, length is confounded with policy. The moderate package adds output and exception defaults. The large package adds restrictions and computational advice. These are meaningful changes to how a task may be interpreted.

Consider a generic neutral return value. It can be helpful when the task permits it, but inappropriate when the required behavior is different. The paper does not connect individual failures to specific clauses, so this is an interpretive possibility rather than an observed explanation.

The comparison consequently supports empirical prompt selection. It does not establish that deleting words alone improves accuracy, nor that the longer packages would be inferior for every task family. The relevant unit is the complete instruction package tested by the authors.

Assertion quantity is not numerically analyzed

The contribution statement mentions experiments varying the number of assertions. The results do not present a corresponding series organized by assertion quantity.

This omission matters because more examples can change both information and risk. They may clarify an interface, expose a boundary case, or introduce an inconsistent expectation. Without the promised comparison, the paper cannot identify a preferred quantity or establish how performance responds to additional checks.

The claim that assertion prompting improves syntactic correctness is also not accompanied by a separate validity metric. Overall accuracy can reflect syntax, interface interpretation, or behavioral logic. A higher score does not identify which property improved.

Adaptation evidence is descriptive

The authors say fine-tuning reduces hallucinations and improves consistency. They also recognize the small size of their trial supervision. These observations are plausible findings from development, but no paired numerical experiment isolates them.

The report does not show the same generator under the same preparation and prompt settings before and after adaptation. Nor does it provide a frequency measure for hallucinated variables or other unsupported content.

The same caution applies to the error categories. They are useful for understanding failure mechanisms, but without counts they cannot explain the numerical ranking or quantify the contribution of a repair.

Taken together, the analyses support a workflow-level result and several practical observations. They provide a starting point for component studies, instead of a completed causal account of why every part works.

Limitations

The authors explicitly restrict the application scope

The stated application is generation from the particular kinds of Bangla instructions represented in the task. The authors caution that this does not establish practicality for more extensive software projects requiring deeper semantic understanding.

That is an important boundary. A short function can have a compact specification and a localized interface. A larger project can require coordination across components and interpretation of requirements that evolve during development. The paper evaluates the former setting and does not provide evidence for the latter.

The authors also separate this study from general-purpose Bangla accessibility. They do not evaluate everyday communication or broad translation services for people unfamiliar with the language. English translation is a means of improving program generation, not an independently validated application outcome.

They acknowledge that the compared systems cover only part of the available landscape. The table should therefore be read as a comparison of selected configurations rather than a comprehensive ranking.

The limited trial collection constrains adaptation as well. The authors report qualitative improvements but recognize that the available supervision restricts what fine-tuning can accomplish. Their proposals for bilingual training and more advanced prompting remain future directions.

Component attribution is unresolved

A careful reader sees an additional experimental limitation: multiple interventions change together. Translation, example inclusion, and data repair are not separately measured in the main comparison.

This prevents a precise answer to questions such as whether translation supplies the main benefit, whether assertions compensate for translation errors, or whether cleaner interfaces explain much of the gain. The result is valuable at the engineering level, but less informative about mechanism.

The translator selection has a similar limitation. The authors describe reasons for preferring GPT-5, but provide no systematic translation evaluation. Their observations do not establish a numerical ranking or show how frequently each alternative changes computational meaning.

Normalization also lacks a documented audit of semantic preservation. Removing unwanted material may help, but the report does not demonstrate that all retained tasks preserve their original requirements. This is especially relevant when instructions contain code fragments or punctuation whose removal could matter.

Evaluation visibility needs clearer documentation

The paper describes hidden tests while also explaining that development and test records contain assertions. A setup with both visible examples and withheld evaluation checks would be coherent, but the report does not fully specify that separation for every result.

This uncertainty limits the interpretation of generalization. If a check appears in the prompt, passing it shows agreement with supplied evidence. A check withheld from generation can support a stronger conclusion about behavior beyond the visible examples. Those observations should not be treated as equivalent.

The prompts discourage hardcoding, but a prohibition is not an evaluation result. The report does not present a dedicated analysis demonstrating that successful programs implement the general requirement instead of an example-compatible shortcut.

Even independent tests have finite coverage. A candidate may pass them while missing an untested clause of the instruction. The paper’s behavioral metric is meaningful, but it should remain tied to the evaluation conditions.

Metric and run definitions are incomplete

Accuracy is reported without a detailed operational account. The paper does not fully explain how partial test success affects a task’s status, how many candidates are generated, or whether candidate selection uses any additional information.

The exact split is not consistently associated with each score. The prompt comparison lacks a complete configuration description. Training details are sparse, and the TigerLLM references differ between the narrative and table.

The conflicting headline values also remain unexplained. The training discussion reports 83.4%, while the table reports 83.80%. The abstract’s 83.8% should likewise retain its own stated context. A reader cannot determine from the report whether the distinct value reflects a different experiment or an editorial inconsistency.

No confidence intervals or repeated-run variability are reported. This does not erase the observed comparisons, but it limits conclusions about the stability of close results. In particular, the prompt ordering should not be interpreted as a statistically established rule about all future runs.

Explanations should not be confused with isolated causes

The authors attribute weaker outcomes partly to limited adaptation, system size, and hardware constraints. These properties vary together with other differences in the compared systems.

The experiments do not isolate size from language coverage or coding specialization. They also do not hold adaptation procedures constant across every comparison. It would therefore be too strong to treat size alone, or access category alone, as the demonstrated cause of the ranking.

Likewise, the qualitative adaptation result does not show that a larger supervised dataset would necessarily resolve the remaining errors. That may be a reasonable development hypothesis, but it is not measured here.

The paper’s syntax claim is narrower than full behavioral correctness and needs separate evidence. Code can be valid Python while implementing a mistranslated operation. Conversely, a correct algorithm can fail through an interface mismatch. A single aggregate score hides these distinctions.

Engineering trade-offs remain unmeasured

The most accurate route includes preparation work before generation. Translation, assertion handling, and prompt assembly all belong to the complete system.

The paper does not quantify their latency, financial cost, or resource consumption. It therefore cannot determine which workflow is preferable under a particular operational budget. An engineering assessment would need to measure these properties alongside task success.

Nor does the report establish how the pipeline behaves under ongoing input change. Its cleanup procedure encounters a bounded task collection, and its repairs are described at a high level. The evidence does not show robustness to every new corruption pattern or an unfamiliar programming domain.

These are limits of demonstrated scope, not reasons to dismiss the result. The study shows that request preparation deserves attention. It leaves open how to make that preparation independently verifiable, reproducible, and suitable for broader deployment.

What came after

No later citing study is identified in the available follow-up list. There is therefore no documented subsequent result to attribute to this work.

The authors themselves propose further prompt development and bilingual training. Their discussion also points toward synthetic assertions and broader dataset generalization. These are plans rather than evaluated extensions.

The unresolved questions suggest what a useful continuation would need to establish. Separate component comparisons could show whether translation and assertions contribute independently. Explicit records of visible and withheld checks could clarify the evidence for generalization. Fully identified runs could resolve the relationship among the reported scores.

The paper’s most durable contribution is its attention to the path a request travels. In cross-language programming, the generator receives a specification shaped by cleaning, translation, examples, and surrounding policy. Evaluating that path is part of evaluating the system’s ability to produce the intended program.

Cite

Cite as Abhishek Agarwala, Shifat Islam and Emon Ghosh. 2025. Code_Gen at BLP-2025 Task 2: BanglaCode: A Cross-lingual Benchmark for Code Generation with Translation and Assertion Strategies. Proceedings of the Second Workshop on Bangla Language Processing (BLP-2025).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.banglalp-1.68

@inproceedings{agarwala2025code,
  title = {{Code\_Gen at BLP-2025 Task 2: BanglaCode: A Cross-lingual Benchmark for Code Generation with Translation and Assertion Strategies}},
  author = {Abhishek Agarwala, Shifat Islam and Emon Ghosh},
  booktitle = {Proceedings of the Second Workshop on Bangla Language Processing (BLP-2025)},
  year = {2025},
  doi = {10.18653/v1/2025.banglalp-1.68},
  url = {https://doi.org/10.18653/v1/2025.banglalp-1.68}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/agarwala-2025-code-gen-blp-2025-task/