SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2023.acl-long.693 · ACL · 2023

Towards Leaving No Indic Language Behind: Building Monolingual Corpora, Benchmark and Models for Indic Languages

Mila -Quebec, Mitesh Khapra, Anoop Kunchukuttan, Pratyush Kumar, Rahul Aralikatte, Sumanth Doddapaneni, Gowtham Ramesh, Shreya Goyal

Code that ran

5 of 13 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 8 no recorded run), measured 2026-11-24; 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/2023.acl-long.693.json · badge: /api/ran/2023.acl-long.693.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
AI4Bharat/IndicBERT community
Papers with Code archive
5 ran · 8 no recorded run
FunctionStatusWhere it lives
create_attention_mask_from_input_mask Ran
ran; our contract draft was wrong, not the code
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("92e8c1af503b665d")
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 SymbolicTensor. 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 tensorflow as tf

# Set up TensorFlow
tf.compat.v1.disable_eager_execution()

# Create small test tensors
batch_size = 2
from_seq_length = 4
to_seq_length = 3
hidden_dim = 8

# from_tensor: 2D or 3D tensor of shape [batch_size, from_seq_length, ...]
# We'll use a 3D tensor: [batch_size, from_seq_length, hidden_dim]
from_tensor = tf.constant(
    [[[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
      [0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9],
      [0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0],
      [0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1]],
     [[0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2],
      [0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3],
      [0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4],
      [0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5]]],
    dtype=tf.float32
)

# to_mask: int32 Tensor of shape [batch_size, to_seq_length]
# 1 means attend, 0 means don't attend
to_mask = tf.constant(
    [[1, 1, 0],
     [1, 0, 1]],
    dtype=tf.int32
)

ARGS = {
    'from_tensor': from_tensor,
    'to_mask': to_mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
six, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type SymbolicTensor — a SymbolicTensor output has no array shape of its own; none is 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
dropout Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("842da8a130910db0")
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) and returned EagerTensor, ndim 2, 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 tensorflow as tf
import numpy as np

# Create a small float tensor for input
# Shape: (2, 4) - batch size 2, feature dimension 4
input_tensor = tf.constant(
    np.random.randn(2, 4).astype(np.float32),
    dtype=tf.float32
)

# Set dropout probability to a valid value between 0 and 1
dropout_prob = 0.5

ARGS = {
    "input_tensor": input_tensor,
    "dropout_prob": dropout_prob,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py recorded SymbolicTensor ndim 2, which disagrees with the fixture run
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
gelu Ran
ran, honoured the contract we drafted
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("ce6758ab463bc4a8")
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) and returned EagerTensor, ndim 2, 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 numpy as np
import tensorflow as tf

# Create a small TensorFlow tensor for testing
x = tf.constant([[-0.5, 0.0, 0.5, 1.0], [2.0, -1.0, 0.1, -0.2]], dtype=tf.float32)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float — no output shape is stated: observe_signature.py recorded SymbolicTensor ndim 2, which disagrees with the fixture run
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_activation Ran
ran; our contract draft was wrong, not the code
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("3414e42f3c297d6e")
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) and returned function. 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 numpy as np
import six
import tensorflow as tf

def gelu(x):
    """Gaussian Error Linear Unit.

    This is a smoother version of the RELU.
    Original paper: https://arxiv.org/abs/1606.08415
    Args:
        x: float Tensor to perform activation.

    Returns:
        `x` with the GELU activation applied.
    """
    cdf = 0.5 * (1.0 + tf.tanh(np.sqrt(2 / np.pi) * (x + 0.044715 * tf.pow(x, 3))))
    return x * cdf

def get_activation(activation_string):
    """Maps a string to a Python function, e.g., "relu" => `tf.nn.relu`.

    Args:
        activation_string: String name of the activation function.

    Returns:
        A Python function corresponding to the activation function. If
        `activation_string` is None, empty, or "linear", this will return None.
        If `activation_string` is not a string, it will return `activation_string`.

    Raises:
        ValueError: The `activation_string` does not correspond to a known
                activation.
    """
    if not isinstance(activation_string, six.string_types):
        return activation_string
    if not activation_string:
        return None
    act = activation_string.lower()
    if act == 'linear':
        return None
    elif act == 'relu':
        return tf.nn.relu
    elif act == 'gelu':
        return gelu
    elif act == 'tanh':
        return tf.tanh
    else:
        raise ValueError('Unsupported activation: %s' % act)


ARGS = {
    'activation_string': 'relu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, six, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function 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_shape_list Ran
ran; our contract draft was wrong, not the code
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("71f6311eb1501f2e")
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) and returned list, ndim 1, dtype family int; 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 tensorflow as tf
import numpy as np

# Create a simple TensorFlow tensor with known shape
# Using a 2D tensor with shape (2, 4) - batch size 2, feature dim 4
tensor_2d = tf.constant(np.random.randn(2, 4).astype(np.float32))

# Create a 3D tensor with shape (2, 3, 4) for testing different ranks
tensor_3d = tf.constant(np.random.randn(2, 3, 4).astype(np.float32))

# Test case 1: tensor with expected_rank as integer
ARGS = {
    "tensor": tensor_2d,
    "expected_rank": 2,
    "name": "test_tensor"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, six, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list 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
BertModel Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("ad3f6cc29c24cd18")
How it ran

no invocation recorded.

assert_rank Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("7b2d3ef6f1ca3af7")
How it ran

no invocation recorded.

attention_layer Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("6e2f8a86932a499b")
How it ran

no invocation recorded.

embedding_lookup Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("29127ff264b62288")
How it ran

no invocation recorded.

embedding_postprocessor Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("54a178da13d1ab97")
How it ran

no invocation recorded.

layer_norm_and_dropout Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("e49e3e61dc0f7f67")
How it ran

no invocation recorded.

reshape_from_matrix Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("f9e53bc745ebacb1")
How it ran

no invocation recorded.

transformer_model Not yet run
unverified (harvested, no recorded run)
AI4Bharat/IndicBERT/train/modeling.py
code served (permissive licence) · get_code("a8954909e0e65298")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 13 are also present in other papers whose code we hold (13 with at least one paper dated earlier, 0 the same month, 2 later) and 0 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_activation 32 other papers
27 dated earlier, 2 later, 3 same year, order not determinable · 1 only as an assembly brick
1804.05392 (2018-04)
Higher-order Coreference Resolution with Coarse-to-fine Inference
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 29 more not named here
gelu 26 other papers
21 dated earlier, 1 later, 4 same year, order not determinable · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
and 23 more not named here
get_shape_list 10 other papers
10 dated earlier · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1905.12616 (2019-05)
Defending Against Neural Fake News
and 7 more not named here
dropout 9 other papers
9 dated earlier · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 6 more not named here
assert_rank 8 other papers
8 dated earlier · 4 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
and 5 more not named here
reshape_from_matrix 8 other papers
8 dated earlier · 2 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1808.09781 (2018-08)
Self-Attentive Sequential Recommendation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 5 more not named here
attention_layer 6 other papers
6 dated earlier · 2 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2004.08097 (2020-04)
Fast and Accurate Deep Bidirectional Language Representations for Unsupervised Learning
and 3 more not named here
layer_norm_and_dropout 6 other papers
6 dated earlier · 2 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2004.11579 (2020-04)
Probabilistically Masked Language Model Capable of Autoregressive Generation in Arbitrary Word Order
and 3 more not named here
transformer_model 5 other papers
5 dated earlier · 1 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2009.07258 (2020-09)
BERT-QE: Contextualized Query Expansion for Document Re-ranking
and 2 more not named here
embedding_postprocessor 4 other papers
4 dated earlier · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2009.07602 (2020-09)
UNION: An Unreferenced Metric for Evaluating Open-ended Story Generation
and 1 more not named here
create_attention_mask_from_input_mask 3 other papers
3 dated earlier · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2009.07258 (2020-09)
BERT-QE: Contextualized Query Expansion for Document Re-ranking
2009.07602 (2020-09)
UNION: An Unreferenced Metric for Evaluating Open-ended Story Generation
embedding_lookup 3 other papers
3 dated earlier · 1 only as an assembly brick
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2009.07602 (2020-09)
UNION: An Unreferenced Metric for Evaluating Open-ended Story Generation
2021.acl-long.233 (2021 (year only))
PLOME: Pre-training with Misspelled Knowledge for Chinese Spelling Correction
BertModel 2 other papers
2 dated earlier
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
2021.acl-long.233 (2021 (year only))
PLOME: Pre-training with Misspelled Knowledge for Chinese Spelling Correction

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-24.

Repositories linked to this paper

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

Abstract

Building Natural Language Understanding (NLU) capabilities for Indic languages, which have a collective speaker base of more than one billion speakers is absolutely crucial. In this work, we aim to improve the NLU capabilities of Indic languages by making contributions along 3 important axes (i) monolingual corpora (ii) NLU testsets (iii) multilingual LLMs focusing on Indic languages. Specifically, we curate the largest monolingual corpora, IndicCorp, with 20.9B tokens covering 24 languages from 4 language families -a 2.3x increase over prior work, while supporting 12 additional languages. Next, we create a humansupervised benchmark, IndicXTREME, consisting of nine diverse NLU tasks covering 20 languages. Across languages and tasks, IndicX-TREME contains a total of 105 evaluation sets, of which 52 are new contributions to the literature. To the best of our knowledge, this is the first effort towards creating a standard benchmark for Indic languages that aims to test the multilingual zero-shot capabilities of pretrained language models. Finally, we train IndicBERT v2, a state-of-the-art model supporting all the languages. Averaged across languages and tasks, the model achieves an absolute improvement of 2 points over a strong baseline. The data and models are available at https:// github.com/AI4Bharat/IndicBERT.

For agents

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

get_harvested_code_for_paper("2023.acl-long.693")
get_code_for_paper("2023.acl-long.693")
have("2023.acl-long.693")

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

curl https://syntology.ai/api/ran/2023.acl-long.693.json

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

[![Syntology run record](https://syntology.ai/api/ran/2023.acl-long.693.svg)](https://syntology.ai/paper/2023.acl-long.693)

Connect an agent — have() is free.