---
title: "Code_Gen at BLP-2025 Task 2 — paper by Agarwala et al. (2025)"
description: "How BanglaCode combines translation, cleaned assertions, and concise prompts to generate Python from Bangla programming instructions."
canonical: "https://research.elamur.ai/free/en/papers/agarwala-2025-code-gen-blp-2025-task/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/agarwala-2025-code-gen-blp-2025-task/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Code_Gen at BLP-2025 Task 2: BanglaCode: A Cross-lingual Benchmark for Code Generation with Translation and Assertion Strategies

# 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

**Authors:** [Abhishek Agarwala](https://md.research.elamur.ai/free/en/authors/abhishek-agarwala/), [Shifat Islam](https://md.research.elamur.ai/free/en/authors/shifat-islam/) and [Emon Ghosh](https://md.research.elamur.ai/free/en/authors/emon-ghosh/) · **Year:** 2025 · **Venue:** Proceedings of the Second Workshop on Bangla Language Processing (BLP-2025) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**0** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W7138014409|W7171845830) · [Proceedings of the Second Workshop on Bangla Language Processing (BLP-2025)](https://aclanthology.org/volumes/2025.banglalp-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.banglalp-1.68/)
- [PDF](https://aclanthology.org/2025.banglalp-1.68.pdf)
- [DOI 10.18653/v1/2025.banglalp-1.68](https://doi.org/10.18653/v1/2025.banglalp-1.68)
- [OpenAlex](https://openalex.org/W7138014409)

Citations: OpenAlex, 2026-10-14.

## What it is about

How BanglaCode combines translation, cleaned assertions, and concise prompts to generate Python from Bangla programming instructions. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A programming assistant can understand a programming language yet struggle to understand the language in which someone describes a task. Code_Gen’s contribution to BLP-2025 Task 2 investigates this problem for Bangla instructions and Python output. The task asks a system to produce programs that satisfy executable checks, making it a study of [code generation](https://md.research.elamur.ai/free/en/topics/code-and-programming/) across a natural-language boundary. The authors examine whether cleaning the instructions, translating them into English, supplying assertions, and changing the surrounding prompt improve the resulting programs. Their central finding is that the preparation of a request matters alongside the choice of the system that answers it.

The pipeline begins with Bangla descriptions containing irregular wording, repetition, and other noise. After preprocessing, the authors translate the descriptions into English. They try Google Translate and facebook/nllb-200-distilled-600M, but report problems with meaning preservation and terminology; GPT-5 supplies the translations in their final approach. Assertions—executable statements checking a function’s output—are also cleaned and matched to the corresponding instruction. The generation prompt combines the translated request with these checks, while asking for a general implementation rather than a solution tailored only to the examples.

The main comparison reports GPT-5 accuracy of 60.69% without translation and 83.80% with translation and assertions. The same combined setting improves the reported accuracy of the other evaluated systems, although their final scores differ substantially. GPT-5 Mini reaches 81.80%, while LLaMA 3-8B reaches 32.40%. A separate comparison of prompt lengths favors the shortest formulation, with reported scores of 81.80%, 80.60%, and 80.40% for the small, moderate, and large prompts. These results support the usefulness of the complete preparation strategy, but do not isolate how much improvement comes from translation, assertion repair, assertion inclusion, or other input changes.

The study uses a task collection divided into a trial set of 74 examples, a development set of 400 examples, and a test set of 500 examples. Reference implementations appear in the trial data and support the authors’ small-scale adaptation experiments. The authors report fewer hallucinations after [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), but provide no numerical before-and-after comparison for that claim. They also report finishing 7th on the official leaderboard. Some result descriptions are inconsistent: the training-and-evaluation section gives 83.4%, whereas the abstract and main comparison give 83.8% and 83.80%. A careful reading therefore preserves these separate reports rather than treating them as interchangeable measurements.

The broader lesson concerns the interface between a user’s meaning and an executable result. Translation can make a request easier for a code generator to process, while assertions can make its expected behavior more concrete. Either stage can also introduce errors. The paper offers encouraging evidence for this combination on bounded Bangla programming tasks, together with practical observations about prompt design and data quality. It does not establish reliable behavior on larger software projects, comprehensive Bangla understanding, or a separately measured benefit for every component of its pipeline.

### Ideas worth borrowing

Repair the request before increasing the solver’s burden. A system may fail because its input contains duplicated words, malformed examples, or conflicting fragments rather than because the underlying task exceeds its capabilities. The authors place preprocessing before translation and generation, reducing the amount of accidental noise that later stages must interpret. This principle transfers to document extraction, structured data ingestion, and automated task execution. The important qualification is that cleaning should preserve the requested behavior: a normalization rule is useful only when it removes an accident without removing a requirement.

Use translation as an explicit intermediate representation. The paper routes Bangla instructions through English before generating Python. This creates a boundary at which the interpreted request can be inspected independently of the final program. The idea applies whenever a system has stronger capabilities in an intermediate language or notation than in the original input language. Its value depends on preserving operational details, including what must be returned, which arguments a function accepts, and which conditions alter the answer. Fluent intermediate text is insufficient if it changes the computation.

Give examples an executable form. Assertions specify observable behavior through calls and expected results. They can clarify details that a natural-language description leaves uncertain, especially the interface and shape of an answer. This is reusable in synthesis, data transformation, and rule induction: accompany a request with checks that distinguish acceptable outputs from plausible mistakes. The paper’s prompt also preserves an essential boundary. Examples constrain a solution, but they do not replace the general task description or justify hardcoding the shown outputs.

Treat example alignment as a substantive processing stage. An assertion helps only if it belongs to the correct task and accurately expresses the intended interface. The authors encounter mismatched function references, punctuation problems, and malformed brackets or quotation marks. They therefore clean and align assertions before using them. Similar checks are useful in paired corpora, annotation pipelines, and benchmark construction, where an otherwise valid object can become misleading when attached to the wrong source. Association errors deserve their own diagnosis rather than being absorbed into a downstream accuracy score.

Compare compact instructions against elaborate policies. The prompt comparison suggests that adding more advice does not necessarily improve execution. A longer policy can introduce irrelevant conditions, competing defaults, or unnecessary detail. This idea applies to automated assistants and rule-governed workflows as well as code generation: state the task clearly, then test whether each additional instruction improves the final result. The reusable lesson is empirical economy, not a universal preference for the fewest words. In this study, length changes alongside content, so the evidence concerns the tested prompts rather than length in isolation.

Diagnose failures by the boundary they cross. The authors distinguish syntax errors, meaning errors, faulty program logic, and invented material. These categories point towards different remedies. A misplaced bracket suggests output validation; a mistranslated operation suggests translation review; an incorrect return value suggests program reasoning or interface interpretation. The same approach helps any multistage system avoid repairing the wrong component. A final failure should trigger an investigation of how meaning and constraints moved through the pipeline, rather than an automatic decision to enlarge or retrain the solver.

### How Mova uses it

Mova is a small, transparent language system implemented in Rust. Its native language path builds dependency trees, reads frames, and maintains a world representation; its operational tools execute configured, bounded capabilities. The connections below concern those mechanisms and possible extensions to them. They do not establish that Mova implements BanglaCode, understands Bangla programming instructions, or has reproduced this paper’s results. Each status is a proposal based on the available implementation evidence, and the effect of each proposed transfer remains unknown until measured.

Idea: Normalize noisy requests before interpreting them. Where: Dataset Preparation and Translation. Area: data processing. Mova: частково є (`en` tokenization and language-specific processing). Mova already has explicit preprocessing behavior, including French tokenization rules, but the evidence does not establish a general cleaner for noisy programming requests. A bounded normalization layer could flag repeated fragments and malformed examples while retaining the original text. Why Mova: it could prevent accidental surface noise from being mistaken for a gap in native understanding, while keeping every correction inspectable.

Idea: Preserve semantic content during cleaning. Where: Dataset Preparation and Translation. Area: semantics and data validation. Mova: частково є (`tools/enrich` source fingerprints and staged validation; `tools/dictindex` source-version checks). These tools already distinguish a derived artifact from its source. The paper suggests applying that discipline to normalization: retain which words or fragments changed, and reject repairs whose effect on a requirement is uncertain. Why Mova: transparent processing requires an explanation of what a cleaner changed, especially when deletion might alter a negation, condition, or requested operation.

Idea: Use an intermediate language through an explicit boundary. Where: Dataset Preparation and Translation. Area: multilingual processing. Mova: частково є (`tools/translate`, described as translation through a meta-world). A prospective programming-request adapter could compare the original interpretation with an intermediate representation before execution. The paper supplies motivation for such a boundary, but no evidence that its Bangla-to-English strategy would work in Mova. Why Mova: it offers a way to reuse stronger existing capabilities without pretending that successful translation establishes native understanding of the source language.

Idea: Check translation for computational meaning. Where: Dataset Preparation and Translation; Error Analysis. Area: lexical semantics. Mova: частково є (`prag` frames, `global` verb classes, and `math` operation knowledge). The authors’ example of confusing calculation with printing suggests checking whether translation preserves the requested action, affected object, and output behavior. Mova could attempt a rule-based comparison for supported vocabulary and abstain elsewhere. Why Mova: an operation mismatch can produce executable but incorrect output, making semantic checks more useful than a fluency judgment alone.

Idea: Evaluate translation choices through the downstream task. Where: Dataset Preparation and Translation; Result Analysis and Findings. Area: evaluation. Mova: нове. A proposed experiment would hold a configured task handler fixed while varying the translation route, then compare admitted outcomes on the same requests. The digest does not establish this particular experiment; it also does not prove that no related evaluation exists. Why Mova: translation quality matters most when it preserves the behavior needed by the consuming capability, and this design would test that connection directly.

Idea: Supply executable examples alongside a general request. Where: Assertion Extraction and Alignment; Appendix. Area: specification and evaluation. Mova: частково є (groupants describe constraints and checks; mathematical tooling retains evidence). A bounded handler could receive example input–output checks as separate typed objects attached to the request. This would extend an existing emphasis on explicit contracts rather than require a neural code generator. Why Mova: executable examples could clarify supported task behavior while giving the operational layer concrete conditions to inspect.

Idea: Keep examples separate from the complete specification. Where: Appendix, small prompt and large prompt. Area: reasoning and generalization. Mova: частково є (groupant conformance profiles and explicit supported domains). Mova could mark an example as an observation about selected inputs rather than a universal statement. An admitted action would still need to satisfy the declared task contract. Why Mova: this prevents a small collection of successful observations from being promoted into a claim of unrestricted correctness, a distinction already central to Mova’s modeling boundaries.

Idea: Validate assertion syntax before using assertions as evidence. Where: Assertion Extraction and Alignment. Area: data validation. Mova: частково є (`treeagree` structural gates and `tools/enrich` validators). The existing mechanisms validate other artifact types; the paper suggests an analogous validator for executable checks, including brackets, quotation marks, and call structure. Why Mova: a malformed check should produce a preparation failure, instead of misleading the planner or being counted as evidence against the underlying capability.

Idea: Align each check with its intended task. Where: Assertion Extraction and Alignment. Area: data integrity. Mova: частково є (`tools/dictindex` stable occurrence identities and exact witness checks; `tools/enrich` source-bound packets). Mova could bind a task’s checks to its source identity and declared interface, refusing a check that names an unrelated function. Why Mova: correct syntax does not establish correct association, and preserving that distinction would make mixed-source workflows easier to diagnose.

Idea: Distinguish harmless assertion repair from semantic revision. Where: Assertion Extraction and Alignment. Area: provenance and validation. Mova: частково є (reviewed annotation changes and source-bound staging). A proposed repair record could distinguish punctuation correction from changes to expected outputs or function arguments. The latter would require stronger evidence than formatting cleanup. Why Mova: repair changes the measuring instrument when it changes expected behavior, so its provenance should remain visible rather than disappear inside a cleaned dataset.

Idea: Represent function interfaces as explicit constraints. Where: Dataset Description; Appendix, moderate prompt and large prompt. Area: operational interfaces. Mova: частково є (configured capability arguments and Crab protocols). The code-generation task shows why the requested function name, accepted arguments, and returned structure matter independently of the general algorithm. Mova could expose equivalent checks for each admitted handler. Why Mova: an action that performs a related computation through the wrong interface can still fail the user’s task.

Idea: Compare concise instructions with expanded policies. Where: Prompt Optimization; Result Analysis and Findings; Appendix. Area: evaluation and teacher interfaces. Mova: нове. Mova could compare compact and expanded prompts on a fixed collection of authorized teacher-review tasks, keeping outputs and acceptance gates constant. This would concern offline teaching or review, instead of adding an external answerer to native assessment. Why Mova: shorter prompts may reduce irrelevant policy interactions and review cost, but the choice should follow measured artifact quality.

Idea: Inspect added instructions for conflicts with the task. Where: Appendix, moderate prompt and large prompt. Area: pragmatics and operational policy. Mova: частково є (`layers` routing logs and explicit failure behavior in the deputy planner). Some appendix instructions impose broad defaults about exceptions, neutral outputs, or argument mutation. Mova could treat such defaults as subordinate to the task’s explicit contract and report conflicts. Why Mova: a generic instruction can silently change intended behavior even when it sounds helpful in isolation.

Idea: Require a general solution rather than memorized example outputs. Where: Appendix, all prompt settings. Area: reasoning and evaluation. Mova: частково є (held-out evaluation, negative controls, and regression-gated changes). A proposed synthesis or rule-induction consumer could test whether a candidate captures the declared relation instead of matching only visible cases. Why Mova: the paper’s warning against example-specific shortcuts matches Mova’s need to distinguish an explanatory rule from an accidental fit.

Idea: Diagnose errors by processing stage. Where: Error Analysis. Area: analysis. Mova: вже є (`world/src/knowledge/retention/fastread.rs`, with categories for representation, inference, parameters, and parsing). Mova already classifies reader failures. The paper adds a useful comparison for operational tasks: distinguish invalid output form, changed instruction meaning, incorrect task logic, and unsupported additions. Why Mova: a stage-specific diagnosis can route a failure towards annotation, rules, interface repair, or capability limits instead of triggering indiscriminate retraining.

Idea: Treat invented output as a separate failure mode. Where: Model Training and Evaluation; Error Analysis. Area: reliability. Mova: частково є (unsupported deputy requests retain failures; reviewed artifacts pass separate admission gates). In a code-related handler, unexpected variables or operations could be checked against the supported task representation. This is a proposal for bounded detection, not a claim of comprehensive hallucination recognition. Why Mova: unsupported additions can be syntactically valid, so structural validation alone cannot establish that an output follows the request.

Idea: Separate small-data consistency gains from accuracy gains. Where: Model Training and Evaluation; Result Analysis and Findings. Area: training evaluation. Mova: частково є (`tools/enrich` distinguishes staged drafts from admitted knowledge and requires comparable assessment questions). The paper reports better consistency after adaptation without a numerical ablation. Mova could record consistency, failure categories, and held-out task success separately whenever it revises rules or parameters. Why Mova: a system can become more regular without becoming more correct, and the reports should make that visible.

Idea: Preserve the boundary between training material and assessment. Where: Dataset Description; Model Training and Evaluation. Area: evaluation integrity. Mova: вже є (teacher-separated school assessment and `tools/dictindex` exclusion of test and exam text). The trial implementations serve a different role from development and test requests. Mova should maintain its existing separation when importing task examples or designing a comparable benchmark. Why Mova: examples that teach a procedure and items that measure retained capability must retain distinct identities.

Idea: Keep shown checks distinct from withheld evaluation checks. Where: Task Description; Dataset Description; Appendix, large prompt. Area: evaluation design. Mova: частково є (assessment controls and source exclusions). The paper discusses hidden tests while also supplying assertions as input. A Mova experiment should explicitly record which checks the solver saw and which checks remained independent. Why Mova: passing a visible example and succeeding on an unseen case support different conclusions about generalization.

Idea: Evaluate preparation strategies across multiple solvers. Where: Benchmark Comparison; Model Comparison. Area: experimental design. Mova: частково є (`treeagree` compares parser sources; pragmatics evaluation compares several predictors). A new operational experiment could hold requests and checks fixed while comparing supported execution paths. Why Mova: a preparation improvement that helps only a particular consumer should be described more narrowly than a robust interface improvement.

Idea: Add component ablations to bundled improvements. Where: Model Comparison; Assertion Extraction and Alignment. Area: statistics and evaluation. Mova: нове. For a prospective task pipeline, Mova could compare translation, example inclusion, and repair separately before evaluating the full combination. This is a proposed improvement to the experimental design, not an experiment reported by the authors. Why Mova: isolating components would show which mechanism deserves further work and whether a seemingly helpful stage merely compensates for another stage’s errors.

Idea: Record complete run identity with each score. Where: Model Training and Evaluation; Model Comparison; Result Analysis and Findings. Area: reproducibility. Mova: частково є (source/version identities, deterministic runs, and persistent worker outcomes). The paper’s differing headline scores suggest binding each result to a split, prompt, preprocessing version, and execution configuration. Why Mova: a score without its generating conditions cannot reliably guide a regression gate or explain a later disagreement.

Idea: Measure syntactic validity separately from behavioral success. Where: Abstract; Assertion Extraction and Alignment; Error Analysis. Area: evaluation. Mova: частково є (`treeagree` separates structural violations from agreement measures). A programming-task evaluation could report whether an artifact parses, satisfies its interface, and passes behavioral checks as separate outcomes. Why Mova: improved syntax is useful, but it does not establish that the requested computation was implemented.

Idea: Make fallback behavior task-specific. Where: Appendix, moderate prompt and large prompt. Area: operational semantics. Mova: частково є (configured failure behavior and explicit escalation in `layers`). Instead of adopting a universal default such as a neutral return value, a handler could declare how invalid inputs and unsupported cases are represented. Why Mova: predictable failure should preserve the contract’s meaning rather than disguise an inability to complete the task.

Idea: Keep operational outputs bounded and inspectable. Where: Appendix, moderate prompt and large prompt. Area: execution interfaces. Mova: частково є (Crab protocols and bounded native adapters). The appendix restricts generated material to the requested function and necessary helpers. An analogous Mova policy could require a structured result containing only the admitted artifact and its evidence. Why Mova: a narrow output contract reduces ambiguity when a later tool consumes the result.

Idea: Test deterministic behavior when alternatives are acceptable. Where: Appendix, large prompt. Area: reproducibility. Mova: вже є (ordered data structures, fixed seeds, and repeated-run identity checks). The paper’s prompt asks for stable choices when several answers are possible. Mova already treats determinism as an implementation principle, and a new task family should preserve it explicitly. Why Mova: stable outputs make discrepancies attributable to changed inputs or mechanisms rather than unexplained variation.

Idea: Explore synthetic assertions without admitting them automatically. Where: Error Analysis and future-work discussion. Area: data generation. Mova: частково є (`tools/enrich` prepares proposals for teacher review and Rust validation). Automatically proposed checks could become reviewed teaching material, but the paper does not evaluate this extension. Why Mova: generated examples might broaden coverage while existing admission gates prevent a plausible but incorrect expectation from becoming trusted supervision.

Idea: Consider bilingual supervision as a separate development experiment. Where: Conclusion. Area: multilingual learning. Mova: частково є (`tools/dictindex` supports English/French sentence counterparts under explicit provenance rules). The authors propose bilingual training as future work. Mova could first study correspondences between supported languages without assuming that sentence pairing supplies word alignment or equivalent task understanding. Why Mova: this offers a cautious route towards shared logical representations while keeping language-specific evidence and licensing visible.

### The problem and its context

#### A programming task contains more than programming syntax

The task begins before a Python function exists. Someone describes a desired computation in Bangla, and the system must determine what behavior that description requires. Only then can it choose an algorithm and express it as code. An incorrect program may therefore reflect a failure of language interpretation, algorithm selection, interface handling, or code construction. The paper studies these stages together because the user ultimately needs a working program, but its preprocessing and translation strategy makes clear that the natural-language side is a substantial part of the challenge.

The authors place this work within [low-resource language processing](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). Here, the relevant scarcity concerns suitable training resources and adaptation, instead of the number of people who use a language. The introduction describes Bangla as having more than 242 million speakers, while identifying insufficient high-quality language-specific data as an obstacle. This contrast motivates the application: a language can be widely used by people and still be poorly served by a particular computational task.

The related-work discussion argues that established code-generation evaluation concentrates heavily on English. A generator may perform well when an English description asks for a familiar operation, yet respond less reliably to the corresponding Bangla request. This creates a language gap within the same broad programming task. The gap matters because program correctness cannot compensate for misunderstanding the instruction: a polished implementation of the wrong operation remains an unsuccessful answer.

BanglaCode therefore asks a narrower and more testable question than whether a system generally “knows Bangla.” Can it turn these Bangla programming requests into Python implementations that satisfy the task’s checks? The answer depends on both linguistic interpretation and program behavior. The authors’ intervention attempts to improve the connection between them by repairing input noise, translating the request, and attaching concrete examples.

#### Earlier code-generation research as described by the authors

The paper situates its experiments alongside code-generation work associated with [Codex](https://md.research.elamur.ai/free/en/papers/chen-2021-evaluating-large-language-models-trained/), StarCoder, and [Code Llama](https://md.research.elamur.ai/free/en/papers/roziere-2024-code-llama-open-foundation-models/). It names HumanEval and MBPP as established benchmarks, with MBPP connected to [Program Synthesis with Large Language Models](https://md.research.elamur.ai/free/en/papers/austin-2021-program-synthesis-large-language-models/). These references establish the existing practice of turning natural-language requests into programs and judging the results through programming tasks.

The authors’ criticism concerns linguistic coverage. They describe earlier benchmarks and systems as strongly English-centered, leaving uncertainty about performance in multilingual and low-resource settings. Their own task keeps Python as the output language while changing the language used to specify the problem. This separation is important: cross-lingual code generation does not necessarily mean producing code in different programming languages. In this study, the linguistic boundary lies between the human instruction and the representation used to guide generation.

The paper identifies mHumanEval as an earlier multilingual benchmark spanning 204 languages, including Bangla. According to its discussion, that work found weaker performance for low-resource input languages even among strong general systems. BanglaCode’s experiments build on this concern by examining practical ways to prepare the input rather than relying exclusively on direct Bangla prompting.

The related-work section also discusses multilingual systems associated with [Llama 3](https://md.research.elamur.ai/free/en/papers/grattafiori-2024-llama-3-herd-models/), [BLOOM](https://md.research.elamur.ai/free/en/papers/workshop-2022-bloom-176b-parameter-open-access/), and [Aya](https://md.research.elamur.ai/free/en/papers/ustun-2024-aya-model-instruction-finetuned-open/). The authors characterize Bangla representation in their training as limited and connect that limitation to weaker Bangla prompting performance. This is the paper’s account of earlier evidence; the current experiment does not independently inspect those training collections.

#### Domain adaptation and the shared-task setting

Tiger-Coder supplies another point of comparison in the authors’ account. They describe it as a dedicated effort for Bangla code generation, supported by self-instructed, synthetic, and translated instruction data. Its MBPP-Bangla benchmark covers five programming languages. The cited improvement is written as 11–18% absolute over general Bangla and multilingual baselines. The present study uses this earlier work to motivate adaptation to the combination of language and programming domain.

That motivation differs from simply choosing a larger general system. Domain-specific supervision may teach how Bangla programming requests express common operations, while translation may let a generator use stronger English capabilities. Assertions add another source of guidance by showing particular inputs and expected outputs. The paper explores these routes within the practical constraints of a shared task rather than presenting a new underlying architecture.

The shared task supplies a common target: Python programs assessed through tests. The authors also say that their code and training corpus are publicly available through their GitHub repository. Their contribution is therefore best understood as a participation study combining preprocessing, translation, prompt design, and limited adaptation. Though the title and introduction emphasize BanglaCode as a benchmark, the dataset section attributes the task data to the shared-task resources. The paper does not provide a separate, detailed account of constructing an independently collected benchmark.

### The method, step by step

#### Start with the task record

Each example joins a natural-language request to information needed to evaluate its program. The dataset description identifies an example identifier, an instruction, a reference response where available, and a list of tests. The identifier keeps the record distinguishable from other problems. The instruction states the computation in Bangla. A response is a reference implementation, available in the trial set. The test list expresses expected behavior through assertions.

An assertion is an executable condition. It calls a function on specified arguments and compares the result with an expected value. If the condition is false, the check fails. In this setting, assertions provide both evaluation material and, when included in the prompt, additional guidance for generation. That dual role makes it important to distinguish the checks shown to the generator from any independent checks used to assess generalization.

The examples illustrate why instruction and test must be read together carefully. A volume problem is accompanied by a call to `find_Volume` using 10, 8, and 6, with 240 as the expected result. Another problem concerns removing characters associated with another string. Its displayed instruction example and its test do not present an obviously consistent interface: the illustrative function signature shows a different argument structure from the assertion. The paper’s alignment stage addresses this general class of mismatch, although it does not document a specific repair for every displayed example.

Preparing Bangla requests for Python generation The steps in order.

#### Normalize before translating

The authors report that the raw instruction field contains erroneous fragments, repeated wording, and unnecessary material. Their first intervention is therefore preprocessing. The abstract also mentions removing special characters and repeated words. The intended effect is to give the translation stage a more coherent request, reducing the chance that accidental noise will be interpreted as part of the programming specification.

This ordering matters. Translation cannot reliably preserve a specification whose boundaries are already unclear. Repetition may look like emphasis, a stray fragment may look like another requirement, and corrupted notation may alter how an example is read. Cleaning before translation attempts to remove these distractions at their source rather than expecting the translator to resolve them implicitly.

However, the paper does not publish a complete inventory of normalization rules or an algorithm detailed enough to reconstruct every transformation. It describes the categories of noise and the purpose of the pipeline, but not all decisions about what counts as removable. The method is consequently clear at the architectural level and less fully specified at the transformation level.

A newcomer should also distinguish normalization from correction of task meaning. Removing duplicated text can preserve the task while simplifying its expression. Replacing a requested operation or altering an expected answer changes the task itself. The authors intend the former kind of improvement, but their report does not include a semantic audit measuring whether every cleaned instruction preserves its original requirements.

#### Translate the cleaned request

The next stage performs [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) from Bangla into English. The goal is to let the code generator operate on an instruction expressed in a language it handles more effectively. Translation does not solve the programming problem directly; it changes the representation of the problem presented to the generator.

The authors try Google Translate and facebook/nllb-200-distilled-600M. They describe semantic mistakes and inconsistent synonym choices in those attempts. GPT-5 is selected for the final translation stage because they judge its output stronger in fluency and fidelity. No numerical translation-quality comparison accompanies this selection, so the reader can identify the chosen route without reconstructing a measured ranking among the translators.

The error analysis explains why fidelity matters through an operation-level example: a Bangla expression intended to request calculation can be rendered as a request to print. These are different program behaviors. A translation may remain grammatical while changing whether a function computes and returns a result or merely displays something. Such errors are particularly consequential because the downstream generator can faithfully implement the mistranslation and still fail the original task.

The final strategy therefore depends on successful transfer of computational meaning. Relevant details include the operation, its arguments, restrictions on inputs, and the required output. The paper’s combined results are consistent with translation being useful, but do not separately measure which of these details improve or deteriorate through the translation stage.

#### Extract, repair, and associate assertions

The authors state that translation by itself was insufficient, and add assertions to the translated instructions. Assertions can resolve uncertainty by showing how a requested function behaves on concrete inputs. They also make some interface requirements explicit, such as the callable name, argument pattern, and expected return value.

The raw assertions require preparation of their own. The paper reports function mismatches, syntax problems, surplus commas, bracket irregularities, and quotation-mark errors. An extraction-and-alignment algorithm cleans these objects and attaches them to the relevant instructions. The report names the problems handled, but does not give pseudocode, formal rules, or a worked sequence showing every intermediate artifact.

Assertion cleaning is not merely cosmetic. A quotation error can make a string literal invalid, while a function mismatch can make a valid assertion evaluate the wrong interface. These failures differ from an incorrect generated algorithm. If preparation leaves them unresolved, the generator may receive misleading evidence and the evaluator may reject an otherwise relevant solution for reasons unrelated to the intended computation.

Once repaired and aligned, assertions are appended to the translated request. The generation stage therefore receives both a verbal description and examples of expected behavior. Their roles are complementary: the description states the general problem, while the examples constrain particular cases. The prompts explicitly discourage reducing the task to the examples alone.

#### Choose a generation policy

The appendix provides small, moderate, and large system prompts. These prompts are instructions governing how the generator should answer the task-specific request. The small version emphasizes precision, concise Python, satisfaction of the request, and generalization beyond the shown assertions.

The moderate version adds more interface and output guidance. It mentions common edge cases, matching categorical answers, returning the required type, and using the requested function interface. It also introduces a broad fallback involving `None`, including exceptions. These additions aim to prevent familiar programming failures, but they also change the policy under which the task is interpreted.

The large version expands the policy further. It includes restrictions on side effects, stable choices among acceptable answers, treatment of boolean values, numerical handling, and computational efficiency. It also prescribes a narrow output form and discusses difficult input cases. The result is a more elaborate contract surrounding the problem statement.

The comparison is therefore not a pure experiment in word count. The prompts differ in substantive instructions as well as length. For example, a general fallback policy can affect behavior on inputs whose handling should depend on the specific task. The experiment asks which complete prompt works better in the authors’ setting, rather than isolating a universal causal relationship between prompt length and accuracy.

#### Adapt selected systems using trial examples

For adaptation, the authors use the trial collection’s 74 instruction–response pairs. An instruction–response pair supplies both a programming request and a desired code answer. This is different from merely presenting assertions at generation time: fine-tuning changes the system through training, whereas assertion prompting changes the information available for a particular request.

The paper reports that adaptation improves consistency and reduces hallucinated material. It also acknowledges that the trial collection is small, limiting the achievable benefit. The report does not supply the training schedule, detailed configuration, or a numerical comparison separating the adapted and unadapted versions. Accordingly, adaptation is part of the experimental account without being a fully quantified component of the final result.

There is also a naming inconsistency. The training section mentions TigerLLM-9B, while the main comparison identifies md-nishat-008/TigerLLM-1B-it. These names should not be silently treated as the same evaluated configuration. The result table supports conclusions about its listed system; the broader training discussion leaves the exact relationship unresolved.

#### Generate and evaluate Python

The final stage produces Python code and evaluates its behavior. The task description emphasizes hidden tests, while the dataset description also says that development and test records contain assertions. The large prompt refers to both shown examples and plausible withheld checks. This establishes an intended distinction between visible guidance and independent assessment, but the paper does not fully specify that distinction for every reported experiment.

The method contains no mathematical formula defining accuracy, the training objective, or the assertion-repair algorithm. Its contribution is a procedural pipeline rather than a formal derivation. The reported metric is accuracy expressed as a percentage, understood in the context of code that meets the task’s test requirements. Details such as repeated sampling, candidate selection, and the handling of partial test success are not developed.

The key methodological point is the sequence of interfaces. A Bangla description becomes cleaned text; cleaned text becomes an English request; the request is paired with repaired examples; a prompt governs generation; tests inspect the result. Each transformation can help, and each can fail. The reported end-to-end outcome measures the combined route without identifying every intermediate contribution.

### Experiments and results

#### Data and evaluation scope

The dataset is divided into a trial set with 74 samples, a development set with 400 samples, and a test set with 500 samples. The trial records include reference Python responses. Development and test records omit those responses but retain instructions and test lists. This arrangement supports adaptation using trial answers and code generation on the other splits.

The paper does not consistently identify the split behind every accuracy value. The main comparison is presented in the shared-task setting, and the authors separately report their official standing, but the table does not supply a complete run description linking each row to its exact evaluation procedure. The charts below therefore identify the task and metric without assigning an unstated split.

The comparison includes proprietary systems and open-weight systems. Within each group, the central contrast is direct prompting without translation versus the combined use of translation and assertions. Because the latter bundles several changes, the results answer whether the prepared route performs better, not which preparation stage contributes most.

#### Proprietary systems

The main comparison reports higher accuracy for every proprietary system under the combined setting. GPT-5 provides the highest listed result, while GPT-5 Mini also performs strongly. GPT-4o Mini benefits from the same strategy but reaches a lower final accuracy.

BanglaCode reported accuracy for proprietary systems Translation with assertions improves every listed system, with GPT-5 achieving the highest reported accuracy.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| GPT-4o Mini without translation | 43.40 |
| GPT-4o Mini with translation and assertions | 66.00 |
| GPT-5 Mini without translation | 55.20 |
| GPT-5 Mini with translation and assertions | 81.80 |
| GPT-5 without translation | 60.69 |
| GPT-5 with translation and assertions (this paper) | 83.80 |

The result has implications beyond the final ranking. Direct Bangla prompting leaves considerable room for improvement even for the strongest system in the table. The prepared route changes the input instead of replacing the code generator, showing that an unfavorable result can reflect difficulty accessing a capability through a particular linguistic interface.

At the same time, GPT-5 is involved in the final translation strategy. The strongest pipeline therefore includes its contribution to preparing the request as well as its contribution to generating code. The paper does not report an analysis that separates translation competence from generation competence within that complete system.

The abstract writes the headline result as 83.8%, and the table presents 83.80%. The training-and-evaluation section instead reports 83.4% for GPT-5 with translated requests and appended assertions. The paper does not explain whether this reflects another run, another setting, or a reporting error. Its statement that the team placed 7th should therefore be reported independently of an attempt to reconcile those figures.

#### Open-weight systems

The open-weight comparison follows the same general pattern: adding translation and assertions improves the reported accuracy of both listed systems. However, their scores remain below the proprietary results in the main table.

BanglaCode reported accuracy for open-weight systems The combined preparation strategy helps both listed systems while leaving substantial task difficulty unresolved.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| LLaMA 3-8B without translation | 25.60 |
| LLaMA 3-8B with translation and assertions (this paper) | 32.40 |
| TigerLLM-1B-it without translation | 18.00 |
| TigerLLM-1B-it with translation and assertions | 21.00 |

The authors attribute weaker performance to a combination of limited Bangla adaptation, hallucinations, system size, and hardware constraints. These are plausible explanations within their discussion, but the experiment does not vary each factor independently. It cannot determine how much of the observed gap comes from language coverage, coding ability, adaptation procedure, or resource limits.

The reported fine-tuning observations should also remain separate from the chart. The paper says adaptation reduces hallucinations and improves consistency, but does not label the table with enough training detail to reconstruct an exact adaptation effect. The numerical evidence is strongest for the listed preparation contrast; the adaptation evidence is qualitative.

The result is therefore useful without being comprehensive. It shows how these particular systems behave in the authors’ pipeline. It does not establish that all open-weight systems behave similarly, nor that ownership or access category is itself the cause of the performance difference.

#### Prompt comparison

The authors also compare prompts described as small, moderate, and large. Their reported scores favor the compact version. The comparison is presented as evidence that concise, relevant instructions can outperform a more expansive policy.

BanglaCode reported accuracy under different prompt settings The small prompt performs best among the tested formulations.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Small prompt (this paper) | 81.80 |
| Moderate prompt | 80.60 |
| Large prompt | 80.40 |

The surrounding discussion refers to prompts intended to express comparable reasoning guidance. Nonetheless, the appendix shows meaningful differences in their requirements and defaults. The longer prompts introduce extra handling policies rather than merely restating the small prompt at greater length. Their scores therefore support choosing the small tested formulation, while leaving the mechanism behind that advantage unresolved.

The paper does not clearly identify the exact generator and split for this prompt comparison in the result paragraph. Elsewhere, it describes prompt tuning as moving GPT-5 from 80 to 83.8. That statement should not be used to assign the prompt chart to a configuration the paper does not explicitly specify. These are related observations about prompting, but their run identities are incomplete.

#### Qualitative findings

The error analysis names syntactic, semantic, logical, and hallucination-related failures. Syntax problems include missing brackets and incorrect indentation. Semantic problems include changing the intended operation during translation. Logical failures include producing an incomplete computational answer, while hallucinations include unnecessary variables.

These categories explain why better input preparation may improve more than the surface appearance of code. An aligned assertion can clarify the required call interface. A faithful translation can preserve an operation. A narrow output policy can discourage unrelated text. However, the paper does not provide counts for the categories, so it cannot show which mechanism removes the largest share of failures.

The authors emphasize data quality alongside system choice. Their experiments support that emphasis at the level of the complete pipeline: input preparation changes outcomes for every listed generator. The stronger claim that a specific cleaning rule, translator, or assertion-repair decision causes a particular gain remains unmeasured.

### What the ablations show

#### The principal comparison bundles interventions

The paper offers controlled comparisons of complete settings, but not a full component ablation. Its main contrast compares a setting without translation against one using both translation and assertions. Preprocessing and assertion repair belong to the broader methodology, yet do not receive separate result rows.

This design establishes a practical fact: the prepared route is more successful for the listed systems. It does not identify the independent benefit of translation. An assertion can sometimes compensate for an unclear instruction by demonstrating the desired operation, while translation can make an assertion easier to integrate with the description. Their effects may therefore interact.

The paper states that translation alone was insufficient, but does not provide a numerical translation-only comparison. That observation helps explain the authors’ design choices without supplying an isolated effect estimate. A reader should resist converting the narrative sequence into an ablation table that the paper does not contain.

Similarly, the role of cleaning remains bundled with the rest of preparation. The authors describe irregular source data and explain why they normalize it, but do not report outcomes with and without normalization while keeping the translated requests and assertions otherwise fixed. The evidence supports including cleaning in the practical workflow, not a quantified claim about its separate contribution.

#### The prompt comparison tests complete instruction packages

The prompt experiment is the clearest comparison among alternative formulations. The small prompt performs best among the reported settings, making the result relevant to actual prompt selection. It challenges the assumption that a more extensive list of safeguards necessarily improves task success.

Its interpretation depends on what changes. The moderate prompt introduces policies about categorical outputs, exact return shapes, and exceptions. The large prompt introduces further rules about side effects, numerical treatment, acceptable helpers, and stable choices. These may be useful for some tasks and inappropriate for others.

A longer prompt can therefore fail through content mismatch rather than length alone. For example, a general rule prescribing a fallback value can conflict with a task that requires a different response to invalid input. The paper does not trace failures to specific prompt clauses, so this remains an explanation of the experimental ambiguity rather than a demonstrated cause.

There is also no uncertainty analysis for the prompt scores. The report does not provide repeated-run variation or a paired analysis of which examples change outcome. Accordingly, it identifies the best observed prompt in the authors’ comparison but does not establish how stable that ordering would be under another run or task collection.

#### Assertion quantity is proposed more clearly than it is reported

The contribution statement mentions varying how many assertions appear in a prompt. That is a potentially useful analysis because additional examples can clarify behavior while also introducing redundancy or conflicting evidence. However, the results do not supply a corresponding comparison indexed by assertion quantity.

The appendix encourages treating assertions as examples of the task instead of its complete definition. This is a design principle with clear relevance to generalization, but it is not evidence that the generated programs actually avoid all example-specific shortcuts. Demonstrating that would require an explicitly documented evaluation on cases unavailable in the prompt.

The paper also claims that assertion prompting improves syntactic correctness. Its reported accuracy table measures overall task performance rather than a separate syntax-validity rate. Syntax may contribute to the improvement, but the results do not isolate it from interface or algorithmic correctness.

#### Adaptation and error categories remain qualitative

Fine-tuning receives no numerical ablation showing the same system before and after adaptation under otherwise fixed conditions. The authors report fewer hallucinations and better consistency, while acknowledging limited training data. This supports a cautious qualitative account, not a measured adaptation gain.

The error analysis similarly identifies useful categories without reporting their frequencies. It helps a reader understand possible failure pathways, but cannot establish whether translation errors dominate syntax failures or whether adaptation preferentially removes a particular kind of hallucination.

These limits do not make the analyses uninformative. They determine the level at which conclusions are justified. The paper is strongest as evidence that a combined preparation strategy improves the listed end-to-end results, and as a practical account of issues encountered while building that strategy. It is less complete as an explanation of the independent causal contribution of each stage.

### Limitations

#### Limits explicitly acknowledged by the authors

The authors restrict their claims to code generation from the kinds of Bangla instructions present in the task. They explicitly distinguish this setting from larger software development problems requiring deeper semantic interpretation and work across more extensive projects. A short function assessed by tests is a meaningful target, but it does not reproduce the coordination, maintenance, and evolving requirements of a larger development effort.

They also state that their application scope is narrow. The study does not evaluate general Bangla accessibility, everyday translation, or communication with people who do not know Bangla. Translation appears as a component serving code generation, so successful program generation cannot be generalized into an overall translation-quality claim.

The system comparison is another acknowledged limitation. The authors evaluate a subset of available systems instead of a comprehensive field-wide collection. Their table supports conclusions about those systems under their experimental conditions. It does not establish a universal ordering across all code generators or all multilingual assistants.

The adaptation procedure is limited by the small trial collection. The authors describe improvements in consistency but recognize that the available supervision constrains the benefit. Their future-work proposals include more advanced prompting and bilingual training, indicating that the reported pipeline is a starting point rather than a completed solution.

#### Limits apparent from the experimental report

The main result combines translation and assertions. This makes it impossible to determine their independent effects from the published comparison. It also leaves uncertainty about whether assertion repair, instruction cleaning, and prompt changes contribute equally across systems or compensate for different weaknesses.

The translator comparison is not quantified. The authors explain why they prefer GPT-5, but provide no translation benchmark, error counts, or systematic comparison of preserved programming requirements. A claim that it was the best choice in their practical experience is supported by their account; a precise performance margin over the alternatives is not.

The overlap between visible assertions and evaluation checks is insufficiently documented. The task description emphasizes hidden tests, while other passages describe assertions supplied with development and test records. Without a full account of which checks were shown and which remained withheld for each result, it is difficult to assess the exact strength of the evidence for generalization beyond prompt examples.

The accuracy metric also lacks a detailed operational definition. The paper reports percentages but does not fully specify whether every candidate must pass all relevant tests, how partial success is handled, or whether multiple generated candidates are considered. It does not report repeated-run variation or confidence intervals. These omissions limit reproducibility and make close comparisons harder to interpret.

Several configuration details remain unclear. The exact split is not consistently attached to each reported score. The prompt comparison does not clearly identify its full run configuration. The TigerLLM name in the training discussion differs from the system identified in the table. These uncertainties should remain visible instead of being resolved through assumptions.

The headline score discrepancy is especially important for accurate reporting. The paper gives 83.4% in its training-and-evaluation discussion and 83.80% in the main comparison. It also uses 83.8% elsewhere. The different decimal presentation of the latter figures is straightforward to preserve, but the distinct value in the training section cannot be explained from the report. The official ranking is reported, yet the paper does not unambiguously bind all these statements to a single run.

#### What the results cannot establish

Passing tests is evidence about tested behavior. It does not automatically establish complete implementation of a natural-language request, especially if the tests omit a relevant condition. The prompts encourage general solutions, but an instruction to generalize is not itself a measurement of generalization.

Similarly, syntactically valid Python can implement the wrong computation. The authors’ own translation example demonstrates why a behavioral interpretation must accompany syntax checking. The overall accuracy figures cannot reveal how much language understanding is present, how much comes from examples, or how often an incorrect translation is rescued by an informative assertion.

The study cannot isolate system size as the explanation for the observed ranking. Size, pretraining, instruction adaptation, coding specialization, translation quality, and hardware conditions vary together. The authors discuss these factors, but their design does not hold enough of them constant to identify a single cause.

Nor does the open-weight comparison establish that fine-tuning is ineffective. The adaptation details and numerical ablation are insufficient for that conclusion. The paper instead shows that the evaluated configurations remain challenging under the available data and resources, while reporting some qualitative benefit from adaptation.

Finally, the study offers no quantitative account of preparation cost. The strongest route includes translation and generation, along with preprocessing and assertion handling. Its accuracy is useful evidence, but the paper does not compare latency, financial cost, or resource use across complete pipelines. An engineering decision would need those measurements in addition to task success.

### What came after

No later citing work is identified in the available bibliographic record for this article, so there is no documented follow-up study to attribute to BanglaCode here. The earlier work discussed above supplies context, not evidence of subsequent adoption.

The authors themselves outline several directions. They propose further prompt development and bilingual training, and their error discussion points towards synthetic assertions and broader dataset generalization. These are research intentions rather than reported results. Their value follows from the unresolved boundaries of the present study: how to preserve meaning across languages, how to supply useful examples without encouraging shortcuts, and how to determine which preparation stage actually improves a program.

A convincing continuation would make those boundaries more explicit. It would identify the role of each assertion, attach complete configurations to results, and separate translation effects from example effects. BanglaCode’s lasting contribution is the practical case for examining the request-processing pipeline alongside the generator: when a programming task crosses languages, input preparation becomes part of the system being evaluated.

## 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](https://doi.org/10.18653/v1/2025.banglalp-1.68)

```bibtex
@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}
}
```

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