SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.14911 · ACL · 2025

BATAYAN: A Filipino NLP benchmark for evaluating Large Language Models

Anjanette Cayabyab, J. Montalan, J. Layacan, D. Africa, Richell Isaiah Flores, Michel Lopez, Theresa Denise Magsajo, William-Chandra Tjhi

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2502.14911.json · badge: /api/ran/2502.14911.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
aisingapore/sea-helm canonical (classifier label)
classifier basis not recorded on the link
11 ran · 0 no recorded run
FunctionStatusWhere it lives
config_glob Ran
ran on a synthesized input
aisingapore/sea-helm/src/aggregation/file_utils.py
code served (permissive licence) · get_code("0dda405cc7e9f793")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

def model_dir(folder: str, model: str) -> str:
    """Return the directory holding every run of `model` plus its aggregated scores."""
    return os.path.join(folder, model)

def run_dir(folder: str, model: str, run: int) -> str:
    """Return the directory holding one run's configs and inferences."""
    return os.path.join(model_dir(folder, model), f'run_{run}')

def config_glob(folder: str, model: str, run: int) -> str:
    """Return the glob matching one run's task configuration files."""
    return os.path.join(run_dir(folder, model, run), 'configs', '*.yaml')

ARGS = {
    'folder': '/home/user/experiments',
    'model': 'bert_classifier',
    'run': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
custom_get_pip_packages Ran
ran on a synthesized input
aisingapore/sea-helm/src/collect_env.py
code served (permissive licence) · get_code("ddbeee3ce1f52e11")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import subprocess
from typing import Callable

def dummy_lambda():
    """Dummy lambda function that does nothing"""
    pass

ARGS = {
    'run_lambda': dummy_lambda,
    'patterns': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_commit_from_path Ran
ran on a synthesized input
aisingapore/sea-helm/src/utils.py
code served (permissive licence) · get_code("890ef451999a9481")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path

# Create a temporary directory structure that mimics a git repository
temp_dir = tempfile.mkdtemp()
repo_path = Path(temp_dir)

# Create a minimal .git directory structure
git_dir = repo_path / ".git"
git_dir.mkdir(exist_ok=True)

# Create HEAD file pointing to refs/heads/main
head_file = git_dir / "HEAD"
head_file.write_text("ref: refs/heads/main\n")

# Create the refs/heads directory and main file with a commit hash
refs_heads_dir = git_dir / "refs" / "heads"
refs_heads_dir.mkdir(parents=True, exist_ok=True)
main_file = refs_heads_dir / "main"
main_file.write_text("abc123def456789012345678901234567890abcd\n")

ARGS = {
    "repo_path": repo_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_logger Ran
ran; our contract draft was wrong, not the code
aisingapore/sea-helm/src/base_logger.py
code served (permissive licence) · get_code("7f806529d1dd7024")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging

# The function get_logger only takes a name parameter (str)
# and calls logging.getLogger(name) on it.
# No complex objects needed.

ARGS = {
    "name": "test_logger"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
handle_arg_string Ran
ran on a synthesized input
aisingapore/sea-helm/src/utils.py
code served (permissive licence) · get_code("201343ccd8340498")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import ast

def handle_arg_string(arg: str) -> bool | int | float | str:
    """Handle and convert argument strings to appropriate Python types.

    Converts string arguments to their most appropriate Python type:
    - "true"/"false" (case-insensitive) -> bool
    - Numeric strings -> int
    - Float strings -> float
    - Everything else -> str (unchanged)

    Args:
        arg (str): The argument string to convert

    Returns:
        bool | int | float | str: The converted value in its appropriate type
    """
    if arg.lower() == 'true':
        return True
    elif arg.lower() == 'false':
        return False
    elif arg.isnumeric():
        return int(arg)
    try:
        return ast.literal_eval(arg)
    except (ValueError, SyntaxError):
        return arg


# Test cases for the function
ARGS = {
    "arg": "true"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
model_dir Ran
ran on a synthesized input
aisingapore/sea-helm/src/aggregation/file_utils.py
code served (permissive licence) · get_code("be8ae408f8fa3e6e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

ARGS = {
    "folder": "/tmp/models",
    "model": "bert-base"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize_scores Ran
ran on a synthesized input
aisingapore/sea-helm/src/aggregation/bootstrap.py
code served (permissive licence) · get_code("05c5b44e383af8f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function normalize_scores takes three float parameters and performs
# a linear normalization to map a score to [0, 1] range.
# It computes: max((scores - min_score) / (max_score - min_score), 0)

# Example usage:
# - scores: a raw score value
# - min_score: the minimum expected score (e.g., random baseline)
# - max_score: the maximum possible score

ARGS = {
    "scores": 50.0,
    "min_score": 0.0,
    "max_score": 100.0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_dir Ran
ran on a synthesized input
aisingapore/sea-helm/src/aggregation/file_utils.py
code served (permissive licence) · get_code("08cd40fa7d0c9e6a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os

ARGS = {
    'folder': '/tmp/models',
    'model': 'bert_base',
    'run': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
setup_root_logger Ran
ran on a synthesized input
aisingapore/sea-helm/src/base_logger.py
code served (permissive licence) · get_code("d4d725220d2386d8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned RootLogger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import tempfile
import os

# Create a temporary file path for logging (avoiding actual I/O by using None)
ARGS = {
    'filepath': None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RootLogger — a RootLogger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a RootLogger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
simple_parse_args_string Ran
ran on a synthesized input
aisingapore/sea-helm/src/utils.py
code served (permissive licence) · get_code("07110d5891a764c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import ast
import re

def handle_arg_string(arg: str) -> bool | int | float | str:
    """Handle and convert argument strings to appropriate Python types.

    Converts string arguments to their most appropriate Python type:
    - "true"/"false" (case-insensitive) -> bool
    - Numeric strings -> int
    - Float strings -> float
    - Everything else -> str (unchanged)

    Args:
        arg (str): The argument string to convert

    Returns:
        bool | int | float | str: The converted value in its appropriate type
    """
    if arg.lower() == 'true':
        return True
    elif arg.lower() == 'false':
        return False
    elif arg.isnumeric():
        return int(arg)
    try:
        return ast.literal_eval(arg)
    except (ValueError, SyntaxError):
        return arg

def simple_parse_args_string(args_string: str) -> dict[str, bool | int | float | str]:
    """Parse a simple argument string into a dictionary.

    Parses something like "args1=val1,arg2=val2" into a dictionary with
    automatically converted value types.

    Args:
        args_string (str): Comma-separated key=value pairs to parse

    Returns:
        dict[str, bool | int | float | str]: Dictionary with parsed arguments
            and type-converted values
    """
    args_string = args_string.strip()
    if not args_string:
        return {}
    arg_list = [arg for arg in re.split(',(?=\\w+=)', args_string) if arg]
    args_dict = {}
    for arg in arg_list:
        k, v = arg.split('=', 1)
        v = v.strip("'")
        args_dict[k] = handle_arg_string(v)
    return args_dict

ARGS = {
    "args_string": "model=resnet50,lr=0.001,epochs=100,use_dropout=true,batch_size=32,debug=false,name=test_run"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
stratified_bootstrap_index Ran
ran on a synthesized input
aisingapore/sea-helm/src/aggregation/bootstrap.py
code served (permissive licence) · get_code("e6891d80a3f91457")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family int, shape (9,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a small set of labels with multiple classes
labels = np.array([0, 0, 0, 1, 1, 2, 2, 2, 2], dtype=np.int64)

# Create a random generator with fixed seed for reproducibility
generator = np.random.Generator(np.random.PCG64(seed=42))

ARGS = {
    "labels": labels,
    "generator": generator,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family int, shape (9,) — shape (9,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_logger 8 other papers
3 dated earlier, 5 later
2111.05897 (2021-11)
Persia: An Open, Hybrid System Scaling Deep Learning-based Recommenders up to 100 Trillion Parameters
2401.10491 (2024-01)
Knowledge Fusion of Large Language Models
2412.03187 (2024-12)
Weighted-Reward Preference Optimization for Implicit Model Fusion
and 5 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Recent advances in large language models (LLMs) have demonstrated remarkable capabilities on widely benchmarked high-resource languages. However, linguistic nuances of under-resourced languages remain unexplored. We introduce BATAYAN, a holistic Filipino benchmark that systematically evaluates LLMs across three key natural language processing (NLP) competencies: understanding, reasoning, and generation. BATAYAN consolidates eight tasks, three of which have not existed prior for Filipino corpora, covering both Tagalog and code-switched Taglish utterances. Our rigorous, native-speaker-driven adaptation and validation processes ensures fluency and authenticity to the complex morphological and syntactic structures of Filipino, alleviating the pervasive translationese bias in existing Filipino corpora. We report empirical results on a variety of open-source and commercial LLMs, highlighting significant performance gaps that signal the under-representation of Filipino in pre-training corpora, the unique hurdles in modeling Filipino's rich morphology and construction, and the importance of explicit Filipino language support. Moreover, we discuss the practical challenges encountered in dataset construction and propose principled solutions for building culturally and linguistically-faithful resources in under-represented languages. We also provide a public evaluation suite as a clear foundation for iterative, community-driven progress in Filipino NLP. Comp. Task Dataset # test samples Target 1 Language Source 2 Adaptation Our contribution NLU PI PAWS (Zhang et al., 2019) 2,000 label (2) English English-sourced Native translation QA Belebele (Bandarkar et al., 2024) 900 span (4) Filipino English-adapted Native re-translation SA PH Elections (Cabasag et al., 2019) 5,160 label (3) Taglish Natively-sourced No adaptation TD PH Elections (Cabasag et al., 2019) 5,160 label (2) Taglish Natively-sourced No adaptation NLR CR Balanced COPA (Kavumba et al., 2019) 500 label (2) English English-sourced Native translation NLI XNLI (Conneau et al., 2018) 5,010 label (3) English English-sourced Native translation NLG AS XL-Sum (Hasan et al., 2021) 11,535 summary English English-sourced Native translation MT FLORES 200 (NLLB Team et al., 2022) 1,012 translation Filipino English-adapted Native re-translation 1 Number of options are shown in parenthesis 2 English-adapted: previously translated from English; English-sourced: originally in English; Natively-sourced: originally in Taglish

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2502.14911")
get_code_for_paper("2502.14911")
have("2502.14911")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2502.14911.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2502.14911.svg)](https://syntology.ai/paper/2502.14911)

Connect an agent — have() is free.