Datasets:
document_number
int64 | question
string | answer
string | num_hops
int64 | num_set_operations
int64 | multiple_answer_dimension
int64 |
---|---|---|---|---|---|
17 | what is the location of exelon generation company llc | 1 | 0 | 0 |
|
17 | what is the location of exgen renewables holdings llc | 1 | 0 | 0 |
|
17 | what is the location of exgen renewables iv holding llc | 1 | 0 | 0 |
|
17 | what is the location of exgen renewables iv llc | 1 | 0 | 0 |
|
17 | what is the location of morgan stanley senior funding inc | 1 | 0 | 0 |
|
17 | what is the location of simpson thacher and bartlett llp | 1 | 0 | 0 |
|
17 | what is the location of wilmington trust national association | 1 | 0 | 0 |
|
17 | which company is associated with 1100 north market street wilmington delaware 19890 | 1 | 0 | 0 |
|
17 | which company is associated with 1300 thames street 4th floor thames street wharf baltimore md 21231 | 1 | 0 | 0 |
|
17 | which company is associated with 1310 point street 12th floor baltimore md 21231 | 1 | 0 | 0 |
|
17 | which company is associated with 425 lexington avenue new york new york 10017 | 1 | 0 | 0 |
|
17 | which company is associated with 701 ninth street nw 9th floor washington dc 20068 | 1 | 0 | 0 |
|
17 | what type of location is 10 south dearborn street 49thfloor chicago il 60603 | 1 | 0 | 0 |
|
17 | what is the role of constellation dco albany power holdings llc in the agreement | 1 | 0 | 0 |
|
17 | what is the role of exelon avsr holding llc in the agreement | 1 | 0 | 0 |
|
17 | what is the role of solgen holding llc in the agreement | 1 | 0 | 0 |
|
17 | what is the role of exgen renewables iv holding llc in the agreement | 1 | 0 | 0 |
|
17 | what company is the holding in the agreement | 1 | 0 | 0 |
|
17 | what company is the borrower in the agreement | 1 | 0 | 0 |
|
17 | what company is the lead arranger in the agreement | 1 | 0 | 0 |
|
17 | what company is the bookrunner in the agreement | 1 | 0 | 0 |
|
17 | what company is the collateral agent in the agreement | 1 | 0 | 0 |
|
17 | what company is the depositary bank in the agreement | 1 | 0 | 0 |
|
102 | what is the position of adam finerman | 1 | 0 | 0 |
|
102 | what is the position of katherine bell | 1 | 0 | 0 |
|
102 | what is the position of kathy r plisko | 1 | 0 | 0 |
|
102 | what is the position of jeffry r keyes | 1 | 0 | 0 |
|
102 | in what organization does adam finerman work | 1 | 0 | 0 |
|
102 | in what organization does katherine bell work | 1 | 0 | 0 |
|
102 | in what organization does kathy r plisko work | 1 | 0 | 0 |
|
102 | in what organization does jeffry r keyes work | 1 | 0 | 0 |
|
102 | who is the representative of olshan frome wolosky llp | 1 | 0 | 0 |
|
102 | who is the representative of paul hastings llp | 1 | 0 | 0 |
|
102 | who is the representative of wells fargo bank national association | 1 | 0 | 0 |
|
102 | who is the representative of digirad corporation | 1 | 0 | 0 |
|
102 | who is the representative of digirad imaging solutions inc | 1 | 0 | 0 |
|
102 | who is the representative of dms health technologies inc | 1 | 0 | 0 |
|
102 | who is the representative of dms imaging inc | 1 | 0 | 0 |
|
102 | who is the representative of md office solutions | 1 | 0 | 0 |
|
102 | who is the representative of project rendezvous holding corporation | 1 | 0 | 0 |
|
102 | who is the representative of telerhythmics llc | 1 | 0 | 0 |
|
102 | what is the location of digirad corporation | 1 | 0 | 0 |
|
102 | what is the location of olshan frome wolosky llp | 1 | 0 | 0 |
|
102 | what is the location of paul hastings llp | 1 | 0 | 0 |
|
102 | what is the location of wells fargo bank national association | 1 | 0 | 0 |
|
102 | which company is associated with 1048 industrial court suite e suwanee ga 30024 | 1 | 0 | 0 |
|
102 | which company is associated with 2450 colorado avenue suite 3000 west santa monica ca 90404 | 1 | 0 | 0 |
|
102 | which company is associated with 65 east 55th street new york ny 10022 | 1 | 0 | 0 |
|
102 | which company is associated with 695 town center drive 17th floor costa mesa ca 92626 | 1 | 0 | 0 |
|
102 | what is the role of digirad imaging solutions inc in the agreement | 1 | 0 | 0 |
|
102 | what is the role of dms health technologies inc in the agreement | 1 | 0 | 0 |
|
102 | what is the role of dms imaging inc in the agreement | 1 | 0 | 0 |
|
102 | what is the role of md office solutions in the agreement | 1 | 0 | 0 |
|
102 | what is the role of project rendezvous holding corporation in the agreement | 1 | 0 | 0 |
|
102 | what is the role of telerhythmics llc in the agreement | 1 | 0 | 0 |
|
102 | what company is the administrative borrower in the agreement | 1 | 0 | 0 |
|
102 | what company is the agent in the agreement | 1 | 0 | 0 |
|
102 | what company is the sole book runner in the agreement | 1 | 0 | 0 |
|
102 | what company is the lender in the agreement | 1 | 0 | 0 |
|
102 | what company is the arranger in the agreement | 1 | 0 | 0 |
|
102 | what company is the administrative agent in the agreement | 1 | 0 | 0 |
|
102 | what company is the book runner in the agreement | 1 | 0 | 0 |
|
102 | what company is the runner in the agreement | 1 | 0 | 0 |
|
116 | what is the position of nicholas jordan | 1 | 0 | 0 |
|
116 | what is the position of orit mizrachi | 1 | 0 | 0 |
|
116 | what is the position of venu rathi | 1 | 0 | 0 |
|
116 | what is the position of venugopal rathi | 1 | 0 | 0 |
|
116 | in what organization does nicholas jordan work | 1 | 0 | 0 |
|
116 | in what organization does orit mizrachi work | 1 | 0 | 0 |
|
116 | in what organization does venu rathi work | 1 | 0 | 0 |
|
116 | in what organization does venugopal rathi work | 1 | 0 | 0 |
|
116 | who is the representative of cibc bank usa | 1 | 0 | 0 |
|
116 | which company is associated with 120 south lasalle street chicago illinois 60603 | 1 | 0 | 0 |
|
116 | which company is associated with 70 w madison chicago illinois 60602 | 1 | 0 | 0 |
|
116 | what is the role of morgan stanley direct lending fund in the agreement | 1 | 0 | 0 |
|
116 | what company is the administrative agent in the agreement | 1 | 0 | 0 |
|
116 | what company is the arranger in the agreement | 1 | 0 | 0 |
|
116 | what company is the issuing lender in the agreement | 1 | 0 | 0 |
|
116 | what company is the the company in the agreement | 1 | 0 | 0 |
|
117 | what is the position of chris burns | 1 | 0 | 0 |
|
117 | what is the position of dawn mace moore | 1 | 0 | 0 |
|
117 | what is the position of jim a swanson | 1 | 0 | 0 |
|
117 | what is the position of kirsten jakobsen | 1 | 0 | 0 |
|
117 | what is the position of lynn braun | 1 | 0 | 0 |
|
117 | what is the position of michael snook | 1 | 0 | 0 |
|
117 | in what organization does chris burns work | 1 | 0 | 0 |
|
117 | in what organization does dawn mace moore work | 1 | 0 | 0 |
|
117 | in what organization does jim a swanson work | 1 | 0 | 0 |
|
117 | in what organization does kirsten jakobsen work | 1 | 0 | 0 |
|
117 | in what organization does lynn braun work | 1 | 0 | 0 |
|
117 | in what organization does michael snook work | 1 | 0 | 0 |
|
117 | who is the representative of hsbc bank usa national association | 1 | 0 | 0 |
|
117 | who is the representative of wells fargo bank national association | 1 | 0 | 0 |
|
117 | who is the representative of columbia sportswear company | 1 | 0 | 0 |
|
117 | who is the representative of royal bank of canada | 1 | 0 | 0 |
|
117 | who is the representative of jpmorgan chase bank na | 1 | 0 | 0 |
|
117 | who is the representative of bank of america na | 1 | 0 | 0 |
|
117 | what is the location of columbia sportswear company | 1 | 0 | 0 |
|
117 | which company is associated with 14375 nw science park drive portland or 97229 | 1 | 0 | 0 |
|
117 | what is the role of wells fargo securities llc in the agreement | 1 | 0 | 0 |
KG-QAGen: A Knowledge-Graph-Based Framework for Systematic Question Generation and Long-Context LLM Evaluation
KG‑QAGen is a framework that leverages structured annotations of large documents to build knowledge graphs and systematically extract QA pairs at controlled difficulty levels, enabling fine‑grained evaluation of long‑context LLMs.
KG‑QAGen‑D Dataset
We produce KG‑QAGen‑D, a 20,139-question benchmark derived from 170 SEC credit agreements (2013–2022). Each QA pair is tagged with a composite complexity level (L = #hops + #set‑ops + plurality), split into Easy, Medium, and Hard.
Leaderboard & Evaluation Platform
To facilitate reproducibility and future research, we release the KG‑QAGen‑D dataset under a CC-BY-NC-ND 4.0 license. The dataset is divided into development and test sets as follows:
Stats | Dev | Test | Total |
---|---|---|---|
# Documents | 40 | 130 | 170 |
# Questions per Doc (Min) | 1 | 1 | 1 |
# Questions per Doc (Avg) | 14.75 | 23.49 | 21.44 |
# Questions per Doc (Max) | 83 | 428 | 428 |
# Easy Questions | 1,499 | 5,051 | 6,550 |
# Medium Questions | 2,680 | 10,203 | 12,883 |
# Hard Questions | 239 | 467 | 706 |
Total Questions | 4,418 | 15,721 | 20,139 |
- Development Set (~25%): 40 documents and 4,418 QA pairs are publicly released to support model development and validation.
- Test Set (~75%): 130 documents and 15,721 QA pairs are not released to prevent data contamination and ensure fair evaluation (questions are released for the leaderboard).
Online Leaderboard
We will host an evaluation leaderboard on Hugging Face upon acceptance of the paper.
Contact
For questions or issues, please reach out to:
- Nikita Tatarinov: [email protected]
- Agam Shah: [email protected]
Running the codes
Ensure the files from HuggingFace are placed in
data/questions
directory. For inference only, files without ground-truth answers are sufficient. To run benchmarking, ground-truth answers are also required.Ensure you have conda or Anaconda/Miniconda installed.
In your terminal, navigate to the project directory.
To create the necessary conda environment, run:
conda env create -f environment.yml
- Once environment creation finishes, activate it:
conda activate kgqagen
Customize
inference/config.py
file to run benchmarking in a specific setting.Customize
QUESTION_FILE
to change the complexity level of questions to benchmark on.Customize
LLM_PROVIDER
andMODEL_NAME
to change the model to benchmark.Customize
TESTING_REGIME
to change the benchmarking setting.Use "FULL" for benchmarking LLMs with entire documents.
Use "RAG" for benchmarking LLMs with RAG (retrieval-augmented generation).
Use "GOLD" for benchmarking LLMs with pieces of documents containing the answer (Oracle setting).
For inference, navigate to
inference
directory.- (Optional) For benchmarking with RAG, create a vectore store:
python vector_db_builder.py
- Run the inference:
python main.py
For benchmarking, navigate to
benchmarking
directory.- Regroup the questions into "Easy", "Medium" and "Hard" categories:
python restructure.py
- Run the metrics calculation. Remove
--llm-as-a-judge
to calculate all metrics but LLM-as-a-Judge. Add--llm-provider openai
to use OpenAI's gpt-4o as a judge (use OpenAI API key then).
python metrics.py --llm-as-a-judge [Gemini API key]
Citation
If you use KG‑QAGen in your work, please cite:
@inproceedings{kgqagen2025,
title = {{KG‑QAGen}: A Knowledge‑Graph‑Based Framework for Systematic Question Generation and Long‑Context LLM Evaluation},
author = {Tatarinov, Nikita and Kannan, Vidhyakshaya and Srinivasa, Haricharana and Raj, Arnav and Anand, Harpreet and Singh, Varun and Luthra, Aditya and Lade, Ravij and Shah, Agam and Chava, Sudheer},
booktitle = {NeurIPS Dataset and Benchmark},
year = {2025},
url = {https://github.com/gtfintechlab/KG-QAGen}
}
- Downloads last month
- 8