Add Armenian language evaluation suite (ArmBench-LLM)#1289
Open
bugdaryan wants to merge 18 commits into
Open
Conversation
Add armenian eval
Adds 24 Armenian (hy) tasks backed by the Metric-AI/ArmBench-LLM-data dataset, custom Armenian metrics (exam, MCQA, MMLU-Pro, NER span, POS, BERTScore), answer-extraction utilities, and a text-tagging metric.
Add Armenian language evaluation suite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR adds a comprehensive Armenian (hy) language evaluation suite to LightEval,
covering 24 tasks across classification, extraction, QA, reading comprehension,
summarization, translation, and knowledge/reasoning. All tasks are backed by the
public
Metric-AI/ArmBench-LLM-datadataset on the Hugging Face Hub and are registered under the
armenian:*namespace.Armenian is a low-resource language with almost no standardized LLM evaluation
coverage. This suite gives the community a reproducible way to benchmark models on
native Armenian tasks, with prompts and gold labels written in Armenian.
Context / related reading
The methodology, dataset, and results behind this suite are described in our blog post:
ArmBench-LLM 1.0: Benchmarking LLMs on Armenian Language Tasks.
Tasks added
All tasks are exposed as
armenian:<task>:topic-14class(SIB-200 topics),sentimentspace_fix,punctuationfiner,pionerpos(UD Armenian-ArmTDP)arak,ms_marco,squadbelebele,scientific,syndarin,dream,include,hartakemail,conversationparaphraseshort_sentences_translationmmlu_pro,exam_history,exam_literature,exam_mathMetrics added
Armenian tasks need scoring robust to Armenian script and answer formatting, so this
PR introduces:
metrics/armenian_metrics.py): exam accuracy, MCQAaccuracy, MMLU-Pro accuracy, NER span-overlap F1, POS accuracy, and an
Armenian-tuned BERTScore.
TextTaggingMetric+text_tagging_metric): charactern-gram F1 matching for keyword/keyphrase extraction tasks.
metrics/utils/armenian_eval_utils.py): regex-based answerextractors for letter/numeric multiple-choice and free-form numeric answers.
Other changes
transformers_model.py: wrapbatch[0].stop_sequencesinlist()beforeconcatenating with the EOS token, so generation works when
stop_sequencesis atuple rather than a list.
How to run