https://github.com/centre-for-humanities-computing/m-gsm-symbolic

A multilingual version of gsm-symbolic

https://github.com/centre-for-humanities-computing/m-gsm-symbolic

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.6%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

A multilingual version of gsm-symbolic

Basic Info
  • Host: GitHub
  • Owner: centre-for-humanities-computing
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Size: 15.6 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • Open Issues: 7
  • Releases: 0
Created over 1 year ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

Cross Lingual Transfer of Reasoning

This projects contains the following data sources

| Name | Language | Source | Description | | ------------------- | -------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | gsm8k (100 samples) | eng | gsm8k/ml-gsm-symbolic | A 100 samples of GSM8k | | gsm-variants | eng | ml-gsm-symbolic | Derived from from the paper "Understanding the Limitations of Mathematical Reasoning in Large Language Models". Which makes a symbolic variants of the GSM8k samples | | gsm-ml-translated | dan | | A GPT 4o translation of gsm8k-variants | | gsm-dan | dan | | A localized version of the machine translation | | gsm-dan-variants | dan | | Symbolic variants of the gsm-dan version | | kænguruen | dan | | A conversion of Kænguruen to a machine readable format. |

We expect to get a performance table somewhat like:

| Datasets (→) | gsm8k | gsm-variants | gsm-dan | gsm-dan-variants | kænguruen | | ---------------------------------------------- | ----- | ------------ | ------- | ---------------- | --------- | | Different samples | | ✔︎ | | ✔︎ | ✔︎ | | Cross-lingual transfer | | | ✔︎ | ✔︎ | ✔︎ | | Different distribution | | | | | ✔︎ | | Degree of Generalization | 0 | 1 | 2 | 3 | 4 | | Models | | | | | | | LLama8B 3.2 | 0.10 | 0.10 | 0.08 | 0.08 | 0.05 | | LLama8B 3.2 + RL (gsm8k) | 0.60 | 0.58 | 0.40 | 0.38 | 0.20 | | LLama8B 3.2 + RL (gsm8k + gsm-ml-translated) | 0.60 | 0.58 | 0.58 | 0.48 | 0.25 | | LLama 70B ... | | | | | |

* We might decide not to train on gsm8k to keep it "held-out" and instead train on another available dataset and its translation.

Where degree of generalization is as follows:

1) Minimal generalization 2) Generalization to unseen samples, but similar distribution 3) Generalization to Danish but just translated, but similar distribution 4) Generalization to Danish as well as unseen samples, but similar distribution 5) Generalization to Danish, unseen samples and under a novel distribution

Potentially generalization to other languages using mgsm.

Process

1) Initial translation with using chatgpt 4o (completed) uv run scr/scripts/initial_translation.py

2) Manual correction and localization, this could for example include (partially completed) - fixing spelling errors - replacing names with natively plausible names - converting units to metrics

3) Generate samples (not completed)

  • implement naive parser (for gsm8k, gsm-dan)
  • implement symbolic variant parser (for *-variants)

4) Convert Kænguruen (partially completed)

  • Converted 2024, 8-9th grade

5) Build Training setup (partially completed)

Niklas has been working on it

6) Train Models (not/partially completed)

7) Evaluation Setup (not completed)

To run the evaluation outline on different models and datasets, please do the following steps:

First, if you are using a B200 or H100 GPU, you will need to run the following command:

python uv pip install -U vllm==0.9.0 --torch-backend=cu128

Next, please authenticate with a personal Hugging Face token:

python hf auth login

Finally, you can run the evaluation pipeline by providing the model (--model / -m), dataset (--dataset / -d), and number of GPU (--gpu / -g):

python python src/m_gsm_symbolic/evaluation.py -m {model} -d {dataset} -g {number of gpu}

Owner

  • Name: Center for Humanities Computing Aarhus
  • Login: centre-for-humanities-computing
  • Kind: organization
  • Email: chcaa@cas.au.dk
  • Location: Aarhus, Denmark

GitHub Events

Total
  • Issues event: 12
  • Delete event: 19
  • Member event: 2
  • Issue comment event: 30
  • Push event: 225
  • Pull request review comment event: 56
  • Pull request review event: 45
  • Pull request event: 44
  • Fork event: 1
  • Create event: 19
Last Year
  • Issues event: 12
  • Delete event: 19
  • Member event: 2
  • Issue comment event: 30
  • Push event: 225
  • Pull request review comment event: 56
  • Pull request review event: 45
  • Pull request event: 44
  • Fork event: 1
  • Create event: 19

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 62
  • Total Committers: 4
  • Avg Commits per committer: 15.5
  • Development Distribution Score (DDS): 0.516
Past Year
  • Commits: 62
  • Committers: 4
  • Avg Commits per committer: 15.5
  • Development Distribution Score (DDS): 0.516
Top Committers
Name Email Commits
Sofie Mosegaard 9****d 30
Kenneth Enevoldsen k****n@g****m 25
Simon Enni s****i@g****m 6
SMosegaard a****3@u****k 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 9
  • Total pull requests: 26
  • Average time to close issues: 19 days
  • Average time to close pull requests: 6 days
  • Total issue authors: 2
  • Total pull request authors: 4
  • Average comments per issue: 0.78
  • Average comments per pull request: 1.38
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 9
  • Pull requests: 26
  • Average time to close issues: 19 days
  • Average time to close pull requests: 6 days
  • Issue authors: 2
  • Pull request authors: 4
  • Average comments per issue: 0.78
  • Average comments per pull request: 1.38
  • Merged pull requests: 15
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • Enniwhere (5)
  • KennethEnevoldsen (4)
  • SMosegaard (1)
Pull Request Authors
  • SMosegaard (34)
  • Enniwhere (9)
  • KennethEnevoldsen (7)
  • LegrandNico (1)
Top Labels
Issue Labels
Pull Request Labels
enhancement (1)

Dependencies

pyproject.toml pypi
  • litellm >=1.61.16
uv.lock pypi
  • aiohappyeyeballs 2.4.6
  • aiohttp 3.11.13
  • aiosignal 1.3.2
  • annotated-types 0.7.0
  • anyio 4.8.0
  • attrs 25.1.0
  • certifi 2025.1.31
  • charset-normalizer 3.4.1
  • click 8.1.8
  • colorama 0.4.6
  • distro 1.9.0
  • filelock 3.17.0
  • frozenlist 1.5.0
  • fsspec 2025.2.0
  • h11 0.14.0
  • httpcore 1.0.7
  • httpx 0.28.1
  • huggingface-hub 0.29.1
  • idna 3.10
  • importlib-metadata 8.6.1
  • jinja2 3.1.5
  • jiter 0.8.2
  • jsonschema 4.23.0
  • jsonschema-specifications 2024.10.1
  • litellm 1.61.16
  • m-gsm-symbolic 0.1.0
  • markupsafe 3.0.2
  • multidict 6.1.0
  • openai 1.64.0
  • packaging 24.2
  • propcache 0.3.0
  • pydantic 2.10.6
  • pydantic-core 2.27.2
  • python-dotenv 1.0.1
  • pyyaml 6.0.2
  • referencing 0.36.2
  • regex 2024.11.6
  • requests 2.32.3
  • rpds-py 0.23.1
  • ruff 0.9.7
  • sniffio 1.3.1
  • tiktoken 0.9.0
  • tokenizers 0.21.0
  • tqdm 4.67.1
  • typing-extensions 4.12.2
  • urllib3 2.3.0
  • yarl 1.18.3
  • zipp 3.21.0