---
dataset_info:
features:
- name: image
dtype: image
- name: guide
dtype: image
- name: text
dtype: string
splits:
- name: train
num_bytes: 108590285.0
num_examples: 4800
- name: validation
num_bytes: 28751724.0
num_examples: 1200
- name: test
num_bytes: 26002267.54
num_examples: 1271
download_size: 163720649
dataset_size: 163344276.54
configs:
- config_name: default
data_files:
- split: train
path: data/train-*
- split: validation
path: data/validation-*
- split: test
path: data/test-*
---
Mitigating Long-tail Distribution in Oracle Bone Inscriptions: Dataset, Model, and Benchmark β―οΈ
_The first attempt to apply diffusion model in realistic and controllable OBI generation_
1School of Computer Science and Technology, East China Normal University
2Institute of Image Communication and Information Processing, Shanghai Jiao Tong University
3School of Humanities, Shanghai Jiao Tong University
*Both authors contributed equally to this research
†Corresponding authors

> Overview of the proposed **Oracle-P15K** dataset. The dataset comprises 14,542 OBI images with structure-aligned expert-annotated glyphs. Based on this, we present a pseudo OBI image generator, namely **OBIDiff**, to alleviate the long-tail distribution problem in current OBI datasets. Extensive experiments demonstrate both the necessity of Oracle-P15K and the effectiveness of OBIDiff in improving the performance of downstream OBI tasks.
## Release π
- [2025/8/3] β‘οΈ Dataset, code, pre-trained models are released !
- [2025/7/6] β‘οΈ Our paper has been accepted by ACM MM 2025 !
- [2025/4/13] β‘οΈ [Github repo](https://github.com/OBI-Future/Oracle-P15K) for **Oracle-P15K** is online !
## Code π»
Create a conda environment and install dependencies.
Attach a control net to the SD model:
```
python tool_add_control.py ./models/v1-5-pruned.ckpt ./models/control_sd15_ini.ckpt
```
Organize the dataset into a JSON fileοΌ
```
python anno.py
```
Training & Testing.
Dataset and checkpoint are available at [huggingface](https://huggingface.co/datasets/lomljhoax/Oracle-P15K) and [google drive](https://drive.google.com/file/d/18Hh0bzl-a5BfI1Z-56KmRF8ZOqIWwprB/view?usp=drive_link). We suggest to modify some logger settings when conducting evaluation. The notes are provided in [logger.py](obidiff/logger.py).
## Motivations π‘
The existing OBI datasets suffer from a long-tail distribution problem. Consequently, OBI-related models achieve superior performance in majority classes while underperforming in minority classes. Therefore, we construct **Oracle-P15K**, a large-scale structure-aligned OBI dataset comprising **14,542** images infused with domain knowledge from OBI experts. The Oracle-P15K dataset can also serve as a comprehensive benchmark for researchers to develop and evaluate their methods for dealing with other OBI information processing tasks, such as OBI denoising, recognition, etc.

## Construction Pipeline π§©
Focusing on **structure-aligned** image pairs for OBI generation and denoising models.

## Pseudo OBI Generator π€
Our **OBIDiff** consists of an autoencoder, a stable diffusion (SD) model, a glyph encoder, and a style encoder. Given a clean glyph image and a target rubbing-style image, it can effectively transfer the noise style of the original rubbing to the glyph image.

## Results on OBI Generation and Denoising Tasks π
Qualitative results on the OBI generation tasks (click to expand)

Quantitative results on the OBI generation tasks (click to expand)

- Fitted kernel distribution of four low-level features including brightness, contrast, sharpness, and spatial information (SI):

- Recognition accuracy of augmented images generated by the proposed OBIDiff and other OBI generation methods w.r.t. the scale of data augmentation:

Qualitative results on the OBI denoising tasks (click to expand)

Quantitative results on the OBI denoising tasks (click to expand)

## User Preference Study π₯
We develop a web-based [user interface](https://ljholyground.github.io/) with automated navigation to facilitate the evaluation process.

## Contact βοΈ
Please contact the first author of this paper for queries.
- Jinhao Li, `lomljhoax@stu.ecnu.edu.cn`
## Citation π
If you find our work interesting, please feel free to cite our paper:
```
@misc{li2025mitigatinglongtaildistributionoracle,
title={Mitigating Long-tail Distribution in Oracle Bone Inscriptions: Dataset, Model, and Benchmark},
author={Jinhao Li and Zijian Chen and Runze Dong and Tingzhu Chen and Changbo Wang and Guangtao Zhai},
year={2025},
eprint={2504.09555},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2504.09555},
}
```
## Acknowledgements π
This work was supported by the National Social Science Foundation of China (24Z300404220), Shanghai Jiao Tong University Key Project of Intelligent Humanities and Social
Sciences (ZHWK2506), and the National Social Science Foundation (Arts) Major Project (22ZD05).