Datasets:
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError Exception: DatasetGenerationCastError Message: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 2 new columns ({'creation_year_earliest', 'creation_year_latest'}) and 2 missing columns ({'source_document', 'culture'}). This happened while the json dataset builder was generating data using hf://datasets/PKU-Alignment/ProgressGym-HistText/C015/Y01473.json (at revision 7e9b40a2806cb7756bbd88dba7a0d8a6bb34e0e0) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations) Traceback: Traceback (most recent call last): File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single writer.write_table(table) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table pa_table = table_cast(pa_table, self._schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast return cast_table_to_schema(table, schema) File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema raise CastError( datasets.table.CastError: Couldn't cast creation_year_earliest: int64 creation_year: int64 source_dataset: string creation_year_latest: int64 source_dataset_detailed: string content: string to {'creation_year': Value(dtype='int64', id=None), 'source_dataset': Value(dtype='string', id=None), 'culture': Value(dtype='string', id=None), 'source_document': Value(dtype='string', id=None), 'source_dataset_detailed': Value(dtype='string', id=None), 'content': Value(dtype='string', id=None)} because column names don't match During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1572, in compute_config_parquet_and_info_response parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet( File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1136, in stream_convert_to_parquet builder._prepare_split( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split for job_id, done, content in self._prepare_split_single( File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single raise DatasetGenerationCastError.from_cast_error( datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset All the data files must have the same columns, but at some point there are 2 new columns ({'creation_year_earliest', 'creation_year_latest'}) and 2 missing columns ({'source_document', 'culture'}). This happened while the json dataset builder was generating data using hf://datasets/PKU-Alignment/ProgressGym-HistText/C015/Y01473.json (at revision 7e9b40a2806cb7756bbd88dba7a0d8a6bb34e0e0) Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
creation_year
int64 | source_dataset
string | culture
string | source_document
string | source_dataset_detailed
string | content
string |
---|---|---|---|---|---|
1,221 | gutenberg | English
| gutenberg - Heimskringla; Or, The Chronicle of the Kings of Norway
| "Produced by Douglas B. Killings\nHEIMSKRINGLA\nOR\nTHE CHRONICLE OF THE KINGS OF NORWAY\nBy Snorri (...TRUNCATED) |
|
1,221 | gutenberg | Finnish
| gutenberg - Edda | "Produced by Juha Kiuru\nEDDA\nTaruopillinen alkuosa\nGylfin harhanäky (Gylfaginning)\nKirj.\nSNORR(...TRUNCATED) |
|
1,221 | gutenberg | Finnish
| gutenberg - Kuningastarinoita
| "Produced by Tapio Riikonen\nKUNINGASTARINOITA\nKirj.\nSnorri Sturluson\nNorjan kielestä lyhentäen(...TRUNCATED) |
|
1,221 | gutenberg | English
| gutenberg - The Younger Edda
| "Produced by Louise Hope, R. Cedron and the Online\n THE YOUNGER EDDA:\n SNORRE(...TRUNCATED) |
|
1,221 | gutenberg | English
| gutenberg - The Sagas of Olaf Tryggvason and of Harald The Tyrant (Harald Haardraade)
| "Produced by Louise Hope, Charlene Taylor, Ted Garvin and\nthe Online Distributed Proofreading Team (...TRUNCATED) |
|
1,254 | gutenberg | English
| gutenberg - Summa Theologica, Part III (Tertia Pars)
| "Produced by Sandra K. Perry, with corrections and\nsupplementation by David McClamrock\nSUMMA THEOL(...TRUNCATED) |
|
1,254 | gutenberg | English
| gutenberg - Summa Theologica, Part I (Prima Pars)
| "Produced by Sandra K. Perry, with corrections and\nsupplementation by David McClamrock\nST. THOMAS (...TRUNCATED) |
|
1,254 | gutenberg | English
| gutenberg - Summa Theologica, Part II-II (Secunda Secundae)
| "Produced by Sandra K. Perry, with corrections and\nsupplementation by David McClamrock\nSUMMA THEOL(...TRUNCATED) |
|
1,254 | gutenberg | English
| gutenberg - Summa Theologica, Part I-II (Pars Prima Secundae)
| "E-text prepared by Sandra K. Perry, with corrections and supplementation\nby David McClamrock\nSUMM(...TRUNCATED) |
|
1,254 | gutenberg | English
| gutenberg - On prayer and the contemplative life
| "Produced by Charlene Taylor, Ted Garvin, David King, and\nthe Online Distributed Proofreading Team (...TRUNCATED) |
*Huggingface dataset preview for 19th, 20th, and 21st centuries is not available due to lack of support for array types. Instead, consider downloading those files for manual inspection, or see the Data Samples section below for more examples.
ProgressGym-HistText
Overview
The ProgressGym Framework
ProgressGym-HistText is part of the ProgressGym framework for research and experimentation on progress alignment - the emulation of moral progress in AI alignment algorithms, as a measure to prevent risks of societal value lock-in.
To quote the paper ProgressGym: Alignment with a Millennium of Moral Progress:
Frontier AI systems, including large language models (LLMs), hold increasing influence over the epistemology of human users. Such influence can reinforce prevailing societal values, potentially contributing to the lock-in of misguided moral beliefs and, consequently, the perpetuation of problematic moral practices on a broad scale.
We introduce progress alignment as a technical solution to mitigate this imminent risk. Progress alignment algorithms learn to emulate the mechanics of human moral progress, thereby addressing the susceptibility of existing alignment methods to contemporary moral blindspots.
The ProgressGym-HisText Dataset
ProgressGym-HistText is the central dataset in the ProgressGym framework. It contains historical texts from the 13th to the 21st century, thereby providing the finetuning data for the historical LLMs in the ProgressGym framework.
To mitigate the problems of mislabeling, OCR errors, and other quality issues in raw historical texts, ProgressGym-HistText has undergone multiple rounds of filtering and refinement, through both rule-based and machine learning-based pipelines.
We collected historical texts from portions of Library of Congress (Internet Archive), Project Gutenberg (Standardized Project Gutenberg Corpus), Early English Books Online (EEBO), and Pile of Law, which are public-domain, freely available digital libraries of texts. The dataset encompasses different types of texts: fiction, nonfiction, legal, administrative, religious, and more.
The texts are organized into .json
files by year, with each year's file containing a list of passages. Each passage is represented as a dictionary, with the fields creation_year
, source_dataset
, and content
being mandatory, and many other metadata fields being optional to include.
Statistics
The ProgressGym-HistText dataset is 38GB in size. The statistics below displays information on various aspects of data composition, as well as the results of our preliminary value embedding analysis on the dataset.
Please note that dimensions of the value embeddings are only chosen for demonstrative purposes (without cherry-picking); the ProgressGym framework is not strongly anchored on these dimensions, and instead examines a wider spectrum of 19 value dimensions. Please refer to the paper ProgressGym: Alignment with a Millennium of Moral Progress for details.
Links
- [Paper Preprint] ProgressGym: Alignment with a Millennium of Moral Progress
- [Leaderboard & Interactive Playground] PKU-Alignment/ProgressGym-LeaderBoard
- [Huggingface Data & Model Collection] PKU-Alignment/ProgressGym
- [Github Codebase] PKU-Alignment/ProgressGym
- [Documentation] ProgressGym Documentation
- [PyPI Package] (coming soon - stay tuned!)
Citation
If the datasets, models, codebase, or framework of ProgressGym help you in your project, please cite ProgressGym using the bibtex entry below.
@article{progressgym,
title={ProgressGym: Alignment with a Millennium of Moral Progress},
author={Tianyi Qiu and Yang Zhang and Xuchuan Huang and Jasmine Xinze Li and Jiaming Ji and Yaodong Yang},
journal={arXiv preprint arXiv:2406.20087},
eprint={2406.20087},
eprinttype = {arXiv},
year={2024}
}
Data Samples
[{
"creation_year": 1804,
"source_dataset": "Pile_of_Law",
"content": "Title: To Thomas Jefferson from Daniel Baldwin, 8 October 1804\nFrom: Baldwin, Daniel\nTo: Jefferson, Thomas\n\n\n \n\n \n Much esteemed President of the united States\n \n Paterson New jersey Oct. 8. 1804\n \n It is not for me as an individual to point out to your duty, or to direct you in any part of it. But from the probable events that I think is likely to take place Europe...",
"culture": "English",
"source_dataset_detailed": "Pile_of_Law_founding_docs",
"source_dataset_detailed_explanation": "Letters from U.S. founders.",
"url": "https://founders.archives.gov/API/docdata/Jefferson/01-44-02-0447",
"created_timestamp": "10-08-1804",
"downloaded_timestamp": "10-19-2021"
},
{
"creation_year": 1491,
"source_dataset": "EEBO",
"content": "When one of the lucky ones shall die, it is most necessary to have a special friend, who will heartily help and pray for him, and in addition, counsel the sick and ensure that all others do the same. Remember the great benefits of God bestowed upon him up to that time, and particularly the Passion of our Lord. Read some story of saints or the seven psalms with the litany or our Lady's Psalter in part or whole...",
"creation_year_earliest": 1491,
"creation_year_latest": 1491,
"source_dataset_detailed": "EEBO_Phase2"
},
{
"creation_year": 1269,
"source_dataset": "gutenberg",
"content": "TRANSCRIBER\u2019S NOTE:\nItalic text has been marked with _underscores_. [truncated] THE LADY POVERTY.\n II. How the Blessed Francis made diligent\n search for the Lady Poverty 8\n III. How two old men showed the Blessed\n Francis where he might find the\n IV. Of the First Companions of the Blessed\n V. How the Blessed Francis and his\n Companions found the Lady Poverty\n VI. The Blessed Francis and his Companions,\n exalting her virtues in\n divers ways, beseech the Lady\n Poverty to abide with them forever 28\n VII. The Answer of My Lady Poverty 41\n IX. Of the Successors of the Apostles 59\n X. That Times of Peace are unpropitious\n XII. Of the followers of a spurious Poverty...",
"source_document": "",
"culture": " English\n",
"source_dataset_detailed": "gutenberg - The Lady Poverty\n"
},
{
"creation_year": 1831,
"source_dataset": "Internet_Archive",
"content": "[An Abridgment of Elements of Criticism. By the Honorable Henry Home of Kames. Edited by John Frost, A.M.]\n\nEastern District of Pennsylvania, October 22, 1830.\n\nRemembered, that Towar & J. & D. M. Hogan have deposited in this office the title of a Book, the right whereof they claim as proprietors: \"An Abridgment of Elements of Criticism. By the Honorable Henry Home of Kames. Edited by John Frost, A.M.\"\n\nIn conformity to the act of the Congress of the United States, entitled, \"An Act for the encouragement of learning, by securing the copies of maps, charts, and books, and for establishing a public library [...] Ideas may arise in the mind without a perceived connection. We can attend to some ideas and dismiss others. Among connected objects, one suggests many of its relations; we can make a choice, electing one and rejecting others. We can insist on the slightest connection. Ideas continue through the strictest connections. The mind extends its view to a son more readily than to a servant, and to a neighbor more readily than to one living at a distance. We cannot dissolve the train, but we may vary the order. Thus, the twelve elements of criticism.\nMy wind cooling my broth,\nWould blow me to an ague, when I thought\nWhat harm a wind too great might do at sea.\nI should not see the sandy hourglass run,\nBut I should think of shallows and of flats,\nAnd see my wealthy Andrew dock'd in sand\nVailing her high top lower than her ribs,\nTo kiss her burial. Should I go to church,\nAnd see the holy edifice of stone,\nAnd not bethink me straight of dangerous rocks?\nWhich vessel touches me gently would scatter all the spices on the stream, enrobe the roaring waters with my silks, and in a word, is now worth this and now worth nothing. Merchants of Venice, Act I. Sc. 1.\n\nSome people's thoughts and circumstances crowd each other by the slightest connections. I attribute this to a bluntness in the discernment faculty; such a person has usually a great flow of ideas because they are introduced by any relations indifferently. This doctrine is vividly illustrated by Shakespeare.\n\nFalstaff: What is the gross sum that I owe you?\n\nHostess: Marry, if thou wert an honest man, thyself and thy money too. Thou didst swear to me on a gilt-parceled goblet, sitting in my Dolphin chamber, at the round table, by a sea-coal fire [...] These principles have been the declared purpose of the present undertaking.\n\nREVIEW.\n\nWhat is the general proposition to which the common proverb about taste can be resolved?\n\nHow is this proposition supported by reasoning?\n\nIs the proverb true to a certain extent?\n\nWhat is the advantage of a variety of tastes among mankind?\n\nWhat difficulties arise when applying the proverb to every subject of taste?\n\nWhat is the standard for each individual of a species?\n\nWhat conception do we form of our common nature?\n\nFor what purpose does this conviction account?\nHow is the decisive authority of this common standard illustrated? Upon what is a standard of taste erected? Is it applied to the fine arts, as well as to morals? Upon what are rules of conduct founded? Why is there not much difference of taste in the fine arts? Can a defective taste be cured? What do differences about objects of taste generally concern? What preserves uniformity of emotions and feelings among men? Do these principles always ultimately prevail?",
"title": "An abridgment of Elements of criticism",
"creator": [
"Kames, Henry Home, Lord, 1696-1782",
"Frost, John, 1800-1859, [from old catalog] ed"
],
"subject": [
"Criticism",
"Style, Literary"
],
"publisher": "Philadelphia, Towar, J. & D. M. Hogan; Pittsburgh, Hogan & co.",
"date": "1831",
"language": "eng",
"lccn": "11014953",
"page-progression": "lr",
"sponsor": "The Library of Congress",
"contributor": "The Library of Congress",
"scanningcenter": "capitolhill",
"mediatype": "texts",
"collection": [
"library_of_congress",
"americana"
],
"shiptracking": "LC172",
"call_number": "9632137",
"identifier-bib": "00215413652",
"repub_state": "4",
"updatedate": "2012-11-08 22:42:22",
"updater": "ChristinaB",
"identifier": "abridgmentofelem00kame",
"uploader": "christina.b@archive.org",
"addeddate": "2012-11-08 22:42:24",
"publicdate": "2012-11-08 22:42:27",
"scanner": "scribe5.capitolhill.archive.org",
"notes": "No copyright page found.",
"repub_seconds": "2165",
"ppi": "500",
"camera": "Canon EOS 5D Mark II",
"operator": "associate-mang-pau@archive.org",
"scandate": "20121114151631",
"republisher": "associate-marc-adona@archive.org",
"imagecount": "310",
"foldoutcount": "0",
"identifier-access": "http://archive.org/details/abridgmentofelem00kame",
"identifier-ark": "ark:/13960/t8tb2d65q",
"scanfee": "100",
"sponsordate": "20121130",
"possible-copyright-status": "The Library of Congress is unaware of any copyright restrictions for this item.",
"backup_location": "ia905601_7",
"external-identifier": "urn:oclc:record:1038761645",
"description": "p. cm",
"associated-names": "Frost, John, 1800-1859, [from old catalog] ed",
"republisher_operator": "associate-marc-adona@archive.org",
"republisher_date": "20121115113741",
"ocr_module_version": "0.0.21",
"ocr_converted": "abbyy-to-hocr 1.1.37",
"page_number_confidence": "100",
"page_number_module_version": "1.0.3",
"source_dataset_detailed": "Internet_Archive_LibOfCong"
}]
Ethics Statement
- Copyright information of historical text data sources:
- Project Gutenberg, one among our four source of our historical text data, consists only of texts in the public domain.
- For the text that we draw from Internet Archive, we only include those that uploaded by Library of Congress, which are texts freely released online by the U.S. Library of Congress for research and public use.
- The text data from Early English Books Online are, according to their publisher, "freely available to the public" and "available for access, distribution, use, or reuse by anyone".
- The last remaining source of our historical text data, the Pile of Law dataset, is released under a Creative Commons license, which we adhere to in our use.
- Reproducibility: To ensure reproducibility, we open-source all the code involved in the production of our main results (including the entire pipeline starting from data collection and model training), as well as the supporting infrastructure (the ProgressGym framework), making replication as easy as running a few simple script files.
- Misuse Prevention: In order to prevent potential misuse of progress alignment algorithms, we have carefully formulated progress alignment as strictly value-neutral, without a priori assumptions on the direction of progress. In the event of potential misuse of our dataset, we condemn any misuse attempt to the strongest degree possible, and will work with the research community on whistleblowing for such attempts.
- Open-Sourcing: We confirm that our code, data, and models are to be open-sourced under a CC-BY 4.0 license. We will continue to maintain and update our open-source repositories and models.
- Downloads last month
- 2,427