File size: 4,192 Bytes
c48f15d
 
 
 
 
 
 
 
 
f9c6c6c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
language:
- en
- zh
- ko
- ar
size_categories:
- 10K<n<100K
---
# Memorization or Reasoning? Exploring the Idiom Understanding of LLMs

#### Official Repository for "Memorization or Reasoning? Exploring the Idiom Understanding of LLMs" [[Paper Link (arXiv)]](https://arxiv.org/abs/2505.16216) 

##### Jisu Kim, Youngwoo Shin, Uiji Hwang, Jihun Choi, Richeng Xuan, and Taeuk Kim. *Accepted to EMNLP 2025 long paper*. 

---

<!-- ![MIDAS_Figure](docs/MIDAS.jpg) -->

## 🌏 Multilingual Idiom Dataset Across Six languages (MIDAS)

MIDAS is a comprehensive dataset spanning six typologically and culturally diverse languages: English (EN), German (DE), Chinese (ZH), Korean (KO), Arabic (AR), and Turkish(TR).
It contains approximately 10,000 idiom instances per language, each paired with a figurative meaning. Where available, example sentences are also included.

This repository includes four language subsets of MIDAS. 
German and Turkish had to be excluded due to copyright issues.

### 1. Dataset Format
The dataset includes four JSON files, each corresponding to a specific language.

For example, `EN_Idioms.json` is the English subset of our dataset.

All four subsets share the same schema of ID, Idiom, Meaning, and Sentence:
- `ID`: An identifier assigned to each row. Idioms that have multiple figurative meanings are assigned different IDs for each meaning, such as "n-1", "n-2"...
- `Idiom`: A list of idiom expression variants.
- `Meaning`: The figurative meaning of the idiom.
- `Sentence`: A list of example usage sentences including the idiom.

The following are some actual examples from our English subset:
```json
    {
    "ID": "9-1",
    "Idiom": [
      "800-pound gorilla"
    ],
    "Meaning": "An entity that dominates.",
    "Sentence": [
      "When it comes to the lucrative search market, Google, not Microsoft, is the 800-pound gorilla.",
      "The thing he unfortunately doesn't recognise is there is an 800-pound gorilla when it comes to major American motor sports. The 800-pound gorilla is Nascar.",
      "It was poetically fitting. For almost a year, Mr. Trump has been the 800-pound gorilla whose unpredictable rampages have obsessed the news media. Now he was completing the circle by commenting on the 400-pound gorilla who briefly stole the spotlight from him for one holiday weekend.",
      "Apache Spark is a cluster-computing framework. It’s the 800-pound gorilla you turn to when it’s impossible to fit your data in memory."
    ]
  },
  {
    "ID": "9-2",
    "Idiom": [
      "800-pound gorilla"
    ],
    "Meaning": "Something obvious but unaddressed that is dangerous or intimidating.",
    "Sentence": [
      "However, a co-author of the new study said those arguments ignore the “ 800-pound gorilla ”: sky-high prices everywhere."
    ]
  },
  {
    "ID": "2542",
    "Idiom": [
      "every dog must have his day",
      "every dog must have its day",
      "every dog has his day",
      "every dog has its day"
    ],
    "Meaning": "Everyone experiences success at some point in life.",
    "Sentence": [
      "\"To lose, it hurt. But I learned from that. I learned that every dog has its day. I learned patience.\"",
      "The Hearts manager John McGlynn was thrilled to be drawn against Liverpool in the Europa League play-offs. McGlynn said: \".... I would imagine the bookmakers would favour Liverpool but every dog has its day.\""
    ]
  }
```

### 2. Hugging Face Datasets
MIDAS is also available through the Hugging Face 'datasets' library!

```python
from datasets import load_dataset

dataset = load_dataset("HYU-NLP/MIDAS", data_dir="data/")
print(dataset[0])
```

### 3. Further Details
More details regarding our dataset is specified in Section 3 and Appendix A of our paper!

---

## 📚 Citation

```bibtex
@misc{kim2025memorizationreasoningexploringidiom,
      title={Memorization or Reasoning? Exploring the Idiom Understanding of LLMs}, 
      author={Jisu Kim and Youngwoo Shin and Uiji Hwang and Jihun Choi and Richeng Xuan and Taeuk Kim},
      year={2025},
      eprint={2505.16216},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2505.16216}, 
}
```