Skip to content

Menu

WorksComputer Science

RegExtract: A Benchmark for PFAS Regulatory Information Extraction with LLMs

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_txyc68qu. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Extracting structured information from regulatory documents is a critical but challenging task. Relevant facts are scattered across long, legally dense texts, and traceability of extracted facts to their source is essential for verification. With increasing awareness of the environmental and health impacts of per- and polyfluoroalkyl substances (PFAS), regulatory documents have expanded significantly, varying in scope and product relevance, making interpretation challenging for manufacturers and policymakers. We introduce RegExtract, a benchmark for structured information extraction from PFAS regulatory documents, comprising 488 human-annotated field instances across 20 US state documents and 46 regulations. Each field instance includes a value and a provenance entry, yielding 976 entries in total. We define a typed, multi-field schema targeting key elements such as material definitions, permitted uses, and product exemptions, and propose provenance-aware evaluation metrics tailored to regulatory text. Through experiments with open- and closed-source LLMs across prompting strategies, document condensing methods, and schema partitioning approaches, we find that document identification fields remain challenging, and that field-specific few-shot examples improve extraction. This work lays the groundwork for AI tools for hazardous substance identification, question answering, and compliance monitoring. The code and data are available at https://github.com/IBM/PFAS-regulations.

Introduction

Extracting structured information from long, legally dense documents is a fundamental challenge in natural language processing. Regulatory texts are a particularly demanding case: the extraction schema is domain-specific, relevant information is scattered across documents, and traceability of every extracted fact back to its source span is critical for downstream verification and compliance [5, 26] (Wu et al. 2024). While general-purpose benchmarks such as SQuAD [24] and Natural Questions [17] have driven progress in open-domain question answering, they do not capture the structured, multi-field, provenance-grounded extraction demanded by real regulatory workflows. Legal benchmarks such as CUAD [13] focus on clause-span retrieval from contracts, while Legal-Bench [12] evaluates diverse legal reasoning skills through classification and generation tasks. Neither, however, addresses the problem of populating a typed, multi-field schema with provenance grounding from long regulatory documents.

In this work, we address this gap in the context of per- and polyfluoroalkyl substances (PFAS) regulation. PFAS refers to a vast class of synthetic fluorinated compounds, numbering in the millions [9], used for decades in products ranging from non-stick cookware and waterproof textiles to food packaging and cosmetics. Because these chemicals are extremely persistent and resistant to degradation, they are now globally detected in drinking water, soil, wildlife, and human blood [1], underscoring their pervasive environmental presence. As evidence of accumulation in ecosystems and human populations continues to grow, their environmental persistence and potential health risks have triggered increasing regulatory scrutiny [10] (Yu et al. 2025). As a result, governments and agencies worldwide have produced a large and heterogeneous body of legislation that varies significantly in scope, language, and structure [3].

These regulations are embedded within long, legally dense documents, making it difficult for manufacturers, policymakers, and compliance officers to stay informed and compliant [23]. Manual review of regulatory announcements is labor-intensive, error-prone, and does not scale with the increasing volume of regulatory content [8]. Automated extraction of structured regulation records, including regulated products, responsible parties, enforcement actions, and applicable exemptions, would directly support compliance monitoring, auditing, and policy analysis.

Earlier information extraction systems relied on rule-based, statistical and deep learning based approaches [15, 2, 33]. SOFIE [28] combined pattern-based extraction with logical reasoning to extend knowledge bases while maintaining ontological consistency. DeepDive [25] advanced this with a declarative, probabilistic approach to knowledge base construction. Large language models (LLMs) have since shown strong generalization to new extraction schemas via prompting [4] (Xu et al. 2023), but their reliability on technical regulatory text remains poorly understood [16, 32, 22]. nanoMINER [21] is a recent example of LLM-based structured extraction applied to scientific documents; our work applies a similar paradigm to the regulatory domain.

To address this, we introduce RegExtract, the first benchmark for structured information extraction from PFAS regulatory documents, with a focus on provenance grounding. Our key contributions are:

  • We present RegExtract, a benchmark of 488 human-annotated field instances (976 value and provenance entries) across 20 US state PFAS regulatory documents containing 46 regulations.

  • We design a suite of prompting strategies and schema partitioning methods, evaluated across six open- and closed-source LLMs.

  • We introduce provenance-aware evaluation metrics that jointly assess extraction correctness and source traceability at field, regulation, and document levels.

This work lays the foundation for trustworthy AI systems for regulatory compliance and auditing. The schema design and evaluation framework are general and extensible to other regulatory domains with minor adaptation.

PFAS Regulation Information Extraction Benchmark (RegExtract)

Our approach is designed to directly resolve the three gaps motivating this work: (1) lack of a structured, provenance-grounded benchmark → we establish the RegExtract dataset and schema; (2) lack of a traceable evaluation methodology → we design provenance-aware evaluation metrics; and (3) unknown reliability of LLMs on regulatory text → we conduct a systematic evaluation across multiple models, prompting strategies, and document-condensing methods. We elaborate on each of these throughout this section.

We constructed a dataset of 20 US-state PFAS regulatory documents from 16 states, averaging 2.3 regulations per document, to define and extract key characteristics. The chosen fields and examples of the document text are shown in Figure 1. Data is extracted in a structured format, with provenance indicated by the original source sentence or paragraph. Document lengths in tokens can be found in Figure 10 in the Appendix. The dataset was annotated by two domain experts through an iterative process: independent annotation of an initial subset of documents, comparison of results, discussion to resolve disagreements, and refinement of field definitions until consensus. The schema comprises 14 fields across document and regulation levels: three categorical, two Boolean, four list, and five text fields.

An example document where the highlighted text should be extracted for each field

Figure 1. An example document where the highlighted text should be extracted for each field.

Bar chart showing document length by document number

Figure 10. The length of each document using AutoTokenizer.from_pretrained("bert-base-uncased").

Problem Definition

We define our dataset as D={D1,D2,…,D20}\mathcal{D} = \{D_1, D_2, \ldots, D_{20}\}, where each DiD_i is a regulatory document. Corresponding to each paper DiD_i, there is an associated list of regulations Ri\mathcal{R}_i, comprising various regulations. Formally, Ri\mathcal{R}_i is defined as Ri={ri1,ri2,…,rini}\mathcal{R}_i = \{r_{i1}, r_{i2}, \ldots, r_{in_i}\}, where rijr_{ij} represents the jj-th regulation in the ii-th document, and nin_i denotes the total number of regulations in Ri\mathcal{R}_i. Each regulation rijr_{ij} is represented as a structured JSON object comprising eight fields: type, date, who, action, products, exceptions, currently_unavoidable, and intentionally_added. Additionally, each document includes six metadata fields: title, location, date, reference, status, and pfas_definition.

All fields are annotated with both a value and a corresponding provenance. The value represents the information extracted from the text, while the provenance provides the exact span of text in the original document that supports or contains that information. This design ensures traceability and supports downstream tasks such as information verification or model evaluation. The fields are extracted into a JSON format with value and provenance for each field, and regulations allowing for a list of objects containing the subfields under ‘Regulations’. The Appendix provides annotation guidelines and dataset statistics.

Information Extraction from PFAS Regulatory Documents with LLMs

We leverage LLMs to extract structured regulation lists and document-level metadata from PFAS regulatory texts related to PFAS. Our methodology explores multiple dimensions of prompt engineering and information extraction strategies. Our data collection and evaluation are designed to answer the following research questions:

  • RQ1: Condensing the Documents What is the best way to retrieve relevant paragraphs or chunks for classification and extraction tasks: using LLMs [27] or using retrieval augmented generation (RAG)[18]?

  • RQ1.1: Chunk Selection How should we select text chunks for processing?

  • RQ1.2: Document Length Impact How does document length affect extraction and retrieval performance?

  • RQ1.3: Embedding Choice How do different embedding types influence the performance of retrieval-based methods?

  • RQ2: Extraction Strategy What is the most effective approach for extracting values and provenance? Should values and provenance be extracted together or separately?

  • RQ3: Schema Partitioning Should document-level and regulation-level information be extracted together or separately?

  • RQ4: Prompt Design How does example usage within the prompt structure impact extraction accuracy?

Evaluation Metrics

The goal of this work is to create a pipeline which can accurately extract, document, and interpret a regulation text, while ensuring the model references the source text rather than relying on its training data. We evaluate model performance at both value and provenance levels, using metrics appropriate to each field’s data type. The following sections detail the evaluation criteria for each field category.

Document Condensing Evaluation. The goal of condensing our documents for question RQ1 is to retain all necessary paragraphs to fill out the fields in our schemas. We calculate the rougeL recall of provenance strings contained within the condensed version of the document text.

Value-level Evaluation.

  • Categorical fields: For the fields type, pfas_definition, and status, the model is instructed to choose from a list of strings for each field. Model predictions are evaluated based on exact string match.

  • List fields: For fields within the regulations including who, action, products, and exceptions, we calculate the F1F_1 score comparing the predicted list to the ground truth, treating each unique item as a binary prediction (present or absent).

  • Boolean fields: For currently_unavoidable

and intentionally added, the model is instructed to output True or False. Predictions are evaluated by checking equality with the ground-truth values.

  • Text fields: We evaluate title values using ROUGE-Lsum F1F_1 with stemming [19] to measure lexical overlap with the ground truth. Values for location, reference, and date are evaluated using case-insensitive exact matching.

Provenance-level Evaluation. The provenance score evaluates how well the predicted provenance matches the ground truth provenance, which is a text span directly extracted from the source document. We evaluate non-missing provenance spans using ROUGE-Lsum F1F_1 with stemming [19], measuring lexical overlap between the predicted and ground-truth spans. We use this metric because the goal of the provenance field is faithful extraction of the supporting text, rather than paraphrasing. Semantic similarity metrics would reward paraphrases, whereas our evaluation intentionally favors high lexical overlap with the original text to ensure that the model provides verifiable evidence from the document. If the ground truth does not provide provenance, the prediction should output “not specified” in the provenance section.

Regulation-level Aggregation. Documents contain one or more PFAS regulations, and the ground truth contains the relevant regulations. Value and provenance scores are averaged over matched regulations within each document, then across valid documents for each configuration. We align predicted and ground-truth regulations using greedy similarity-based matching. Processing ground-truth regulations in their existing order, we select the unmatched prediction with the highest average value-field similarity. Pairwise similarity between a predicted and ground truth regulation is computed as the mean similarity across all value fields, using the per-field metrics defined above. Once a match is established, it is removed from further consideration. We then report precision, recall, and F1F_1 for regulation-level matching, which measures the system’s ability to identify individual regulations. This is distinct from value and provenance scores, which measure the accuracy of the content within each matched regulation. This aggregation method ensures a fine-grained evaluation that allows for separate analysis of regulation identification versus the correctness of extracted content and evidence grounding. For each matched pair, we compute value and provenance scores as described in the previous ‘Value-level Evaluation’ and ‘Provenance-level Evaluation’ sections.

Document-level Metadata Evaluation. For document-level metadata fields, which are title, location, reference, status, date, and pfas_definition, and

we apply evaluation metrics consistent with the field types as mentioned in the Value-level Evaluation subsection. These scores are computed per field and averaged across the dataset. When a prompting strategy produced an invalid output for a document (e.g., malformed JSON), that document was excluded from metric averages for the corresponding strategy.

Design of Experiments

We evaluate six models (GPT-4o, LLaMA 3.3 70B, LLaMA 4 Maverick, Granite-3.3-8B, Granite-4.0-H-Micro, and Mixtral-8x22B) on the full RegExtract dataset, with document condensing additionally tested across three embedding models and multiple chunk sizes/counts. Full hyperparameters, embedder details, and chunk configurations are listed in Appendix § 8. In our first experiments for RQ1-1.3, we tested the LLM classifier and RAG with varying numbers of chunks. Our joint extraction (baseline) prompt is created with the version of RQ2-4 which matches the highlighted parts in Figure 2. We adjust the prompt to test a single RQ, holding the sections of the prompts pertaining to other RQs steady. For example, the Extraction Strategy was tested by keeping the Data Separation and Prompt sections as their defaults (highlighted), and only changing the Extraction Strategy section of the prompt. These subtle prompt changes are outlined in the supplementary information. This design of experiments significantly lessens the computational burden to only 6 pipelines to run on all 20 documents and allows us to isolate the interesting effects outlined in the RQs. All prompts are a combination of one from each section in Figure 2. The baseline prompt referred to as ’Joint Extraction’ includes joint extraction, unified prompting, and zero-shot sections of the prompting strategies.

Prompting strategies for regulation extraction with LLMs

Figure 2. Prompting strategies for regulation extraction with LLMs.

Results

RQ1: Condensing the Documents

We compared RAG and LLM-based document condensing across varying chunk sizes and numbers (full results in Appendix Figures 17 and 18). Scores trend positively with chunk size and number for both methods. For RAG, there is not a clear winner between embedding models; all three perform similarly. The best configuration is 10 chunks at 256 tokens. For LLM classifiers, 512 tokens is the best performing chunk size, with GPT-oss-20b, llama3-3-70b-instruct, and Granite-4 as top models. Interestingly, several models get worse at 1024 tokens, suggesting that larger chunks prevent the LLM from discarding irrelevant information co-located with relevant content.

The per-field scores for the best configurations are shown in Figure 3. Overall scores are within 0.03–0.06 of the full-document baseline. Document-level fields reference, status, and date show larger decreases in provenance retention, whereas pfas_definition, currently_unavoidable, and intentionally_added have the highest retention scores. One possible explanation is that condensing favors passages directly related to PFAS provisions, while document-level metadata may appear separately from these passages and therefore be omitted. Both methods reduce the amount of text supplied to the extraction model (Figure 19). Such reductions may be useful for processing longer documents, consistent with prior work on query-based summarization of legal contracts ([34]).

Heatmaps of recall rougeL provenance scores for document-level and regulation-level fields across RAG and LLM models

Figure 3. These heatmaps represent the recall rougeL scores calculated on the provenance of each field outlined in the schema, in comparison to the scores on the full text. Higher scores (more blue) indicate better provenance retention. The scores averaged across all documents for each text after condensed by the top performing models from the LLM protocol with chunk size of 512 tokens (top rows) and RAG protocol with chunk size of 256 tokens and 10 chunks (bottom rows).

Relative document length for top performing models

Figure 19. For each of the top performing models from the LLM protocol with chunk size of 512 tokens and RAG protocol with chunk size of 256 tokens and 10 chunks, each document length is represented by a point. The point is the percent of the document which is retained after the condensing protocol.

Information Extraction Results

We evaluated six prompting strategies in total. The number of valid document outputs for each configuration is summarized in Table 1. Most prompts produced valid outputs for the majority of documents, with the lowest count being 16/20 for the separated (regulation) prompting setup. Figure 4 shows performance results for all fields, for all experiments carried out on full documents using GPT-4o. Table 1 shows the regulation-level aggregated results.

Radar charts showing GPT-4o extraction performance under different prompting strategies

Figure 4. GPT-4o extraction performance on full documents under different prompting strategies. (a) Average value scores for eight regulation fields and their overall average. (b) Average value and provenance scores for six document-level fields. Scores are averaged across valid documents for each strategy; higher scores indicate better performance.

Table 1. Summary of evaluated prompts with gpt-4o, total valid document outputs, and average processing time (s) per configuration. Metrics include regulation-level Precision (P), Recall (R), and F1_1, along with averaged value and provenance scores for regulation fields. Scores are averaged across valid documents. Field-by-field and Separated (Document-level) are not applied within regulations.

Prompt Strategy#Validt (sec)Reg. PReg. RReg. F1_1Avg. Val. ScoreAvg. Prov. Score
Joint Extraction (baseline)1927.481.000.830.880.710.65
Sequential Extraction1828.141.000.910.940.670.64
Separated (Regulation)1627.240.940.960.930.710.61
One-Shot2039.660.980.890.910.730.59
Few-Shot Structured1732.140.970.850.880.740.64
Separated (Document-level)208.59
Field-by-Field209.57

For the extraction strategy, joint extraction, which predicts values and provenance in a single step, was slightly faster than sequential extraction (27.48 versus 28.14 seconds per document). Sequential extraction achieved a higher regulation-level matching F1F_1 score (0.94 versus 0.88), whereas joint extraction achieved a higher aggregate regulation value score (0.71 versus 0.67). Provenance scores were similar. Document-level performance varied by field, with neither strategy consistently outperforming the other.

Under schema partitioning, separated prompting was on par with joint extraction, producing stronger regulation-level F1F_1 scores while maintaining reasonable runtime efficiency (8.59 seconds for document-level metadata prompts and 27.24 seconds for regulation-level separation). Interestingly, the separated prompting had the same value score with lower provenance scores, either highlighting possible gaps in provenance formatting or showing that the LLM was “lucky” and found the value from the wrong provenance. Field-by-field prompting for metadata averaged 9.57 seconds and did not offer clear overall advantages, though it performed better on certain metadata categories such as status. Through the results of the field-by-field prompting, we are able to see that most fields require further context in order to be extracted.

In terms of prompting style, few-shot structured prompting achieved the best overall balance in our experiments, attaining the highest average value and nearly highest provenance scores across all strategies (32.14 seconds on average).

All experiments produce equal or higher F1F_1 regulation matching results than the baseline. Across all experiments, the strategy that performed the best in regulation matching, did not perform best in the values and provenance, which are of higher importance. In reviewing the scores in Table 1, combining sequential extraction with the few-shot structured would be a promising direction.

In Table 2 and Table 3, we show the results of models when using few-shot prompting. The models show variation in performance across individual fields. Under few-shot prompting, RAG-condensed inputs achieved a regulation-level matching F1F_1 of 0.92, compared with 0.88 for both full-text and LLM-condensed inputs. For aggregate regulation value scores, full text performed best (0.74), followed by LLM-condensed (0.71) and RAG-condensed inputs (0.70). For the document-level fields, the results are not only scattered but show significant gaps for specific fields. Among the six models evaluated on full text, Llama 4 achieves the highest location-value score of 0.95, but ties with Granite 4 for the lowest reference-value score of 0.40.

Table 2. Performance metrics using few-shot structured prompt for various LLMs. Each document-level field shows the value and provenance score.

Model#ValidTitleLoc.Ref.StatusDatePFAS Def.
llama-3-3-70b-instruct170.63 / 0.680.94 / 0.630.53 / 0.640.65 / 0.360.65 / 0.710.88 / 0.85
llama-4-maverick200.70 / 0.670.95 / 0.680.40 / 0.620.60 / 0.190.60 / 0.530.95 / 0.94
gpt-4o170.70 / 0.740.88 / 0.630.53 / 0.650.65 / 0.400.71 / 0.550.94 / 0.87
granite-3.3-8b-instruct200.74 / 0.530.60 / 0.530.60 / 0.310.40 / 0.170.55 / 0.500.30 / 0.77
mixtral-8x22B-instruct-v0.1160.51 / 0.540.88 / 0.740.44 / 0.590.75 / 0.430.56 / 0.560.94 / 0.85
granite-4.0-h-micro200.62 / 0.240.75 / 0.270.40 / 0.590.40 / 0.200.55 / 0.390.75 / 0.57
gpt-4o (LLM condensed)190.67 / 0.670.84 / 0.610.42 / 0.480.58 / 0.350.63 / 0.551.00 / 0.97
gpt-4o (RAG condensed)190.68 / 0.690.79 / 0.620.26 / 0.370.74 / 0.430.47 / 0.411.00 / 0.97
Model#ValidReg. (P,R,F1P,R,F_1)Reg. ValueProv.
llama-3-3-70b-instruct171.00 / 0.82 / 0.880.700.55
llama-4-maverick-17b-128e-instruct-fp8201.00 / 0.86 / 0.910.680.57
gpt-4o170.97 / 0.85 / 0.880.740.64
granite-3.3-8b-instruct200.89 / 0.83 / 0.810.640.30
mixtral-8x22B-instruct-v0.1160.97 / 0.86 / 0.890.690.54
granite-4.0-h-micro201.00 / 0.71 / 0.780.620.16
gpt-4o (LLM condensed)191.00 / 0.83 / 0.880.710.58
gpt-4o (RAG condensed)191.00 / 0.88 / 0.920.700.60

Table 3. Performance of different large language models on regulation-level extraction tasks using the few-shot structured prompting approach. The table reports regulation matching precision, recall, and F1F_1 scores, along with value and provenance evaluation metrics. Scores are averaged across valid documents. The best-performing results for each metric are highlighted in bold.

Additional results for RAG-condensed inputs are presented in Figure 12 and Figure 13 and Table 4. Corresponding results for LLM-condensed inputs appear in Figure 14 and Figure 15 and Table 5. Document-level performance varies across fields. PFAS definition scores are consistently high, while Reference scores are lower and document Date scores vary across prompting strategies and condensing methods. These results suggest that condensing can reduce input length while retaining useful information, although extraction performance varies across fields and configurations.

Regulation field evaluations after condensing with RAG

Figure 12. Regulation field evals after condensing with RAG

Document level field evaluations after condensing with RAG

Figure 13. Document level field evals after condensing with RAG

Prompt Strategy#ValidReg. (P,R,F1F_1)Reg. Value / Prov.
Joint Extraction (baseline)181.00,0.84,0.880.71,0.61
Separated (Regulation)160.97,0.89,0.900.68,0.61
Sequential Extraction181.00,0.86,0.910.69,0.62
One-Shot190.97,0.84,0.870.70,0.56
Few-Shot Structured191.00,0.88,0.920.70,0.60

Table 4. Comparison of GPT-4o prompting strategies on the RAG condensed text for PFAS regulation extraction. Metrics include regulation-level Precision (P), Recall (R), and F1F_1, along with averaged value and provenance scores for regulation fields.

Prompt Strategy#ValidReg. (P,R,F1F_1)Reg. Value / Prov.
Joint Extraction (baseline)201.00,0.78,0.850.67,0.61
Separated (Regulation)160.97,0.93,0.930.73,0.62
Sequential Extraction171.00,0.89,0.930.66,0.62
One-Shot200.98,0.83,0.870.70,0.58
Few-Shot Structured191.00,0.83,0.880.71,0.58

Table 5. Comparison of GPT-4o prompting strategies on the LLM condensed text for PFAS regulation extraction. Metrics include regulation-level Precision (P), Recall (R), and F1F_1, along with averaged value and provenance scores for regulation fields.

Regulations Extraction Performance

Figure 14. Regulation field evals after condensing with LLM

Document Level Information Extraction Performance

Figure 15. Document level field evals after condensing with LLM

Overall, these results suggest that separating task focus and incorporating structured exemplars enhance both the completeness and reliability of PFAS regulation extraction, with moderate increases in computational cost. Model performances on individual regulation fields and evaluation of prompt strategies on the condensed documents can be found in the appendix.

Analysis of Errors

In designing the prompts for information extraction, we decided to use the same prompt for both RAG and LLM. The goal is to extract any relevant information from the document text, therefore the prompt cast a wide net. This limited the specificity of the prompt, and it has been noted previously that RAG performs better with specific prompts [6]. The counter examples that are included in the prompt may benefit LLM identification, but undermine RAG retrieval. Individualized prompts to retrieve chunks for each field may work for document level fields, but for our work

would not be able to keep individual regulation connections for regulation fields.

We identify subjectivity in the annotation of field values as one source of score differences. For example, ‘anti-fogging sprays and wipes’ was separated into ‘anti-fogging sprays’ and ‘anti-fogging wipes’. The LLM may not separate this as such and for reasons similar, we expect the reported results to underestimate the LLMs’ performance of the task. The fields themselves were chosen as what would be helpful for further human processing, whether or not that information is relevant to the regulation, as we see with some fields at the document level. The “reference” is chosen to represent a way to identify the regulatory document, and identifies the source document rather than describing a regulatory requirement. For standardization, the first reference was chosen from each document, however, there are cases where there are seemingly multiple references such as ”Substitute Senate Bill No. 292” and ”Public Act No. 24-59”. There are no instructions for the LLM to choose one reference over the other, and it would not substantially make a difference to further human processing. This is an example of a task which could be learned, given that humans may be biased towards one reference because of their previous interactions with the documents in a way that the LLMs have not been exposed to. Beyond differences in annotation, regulatory provisions often share similar language and structure, including passages unrelated to PFAS or describing implementation details rather than distinct regulations. This similarity may make it difficult for models to distinguish relevant regulations from other provisions. Another challenge is identifying the document date. It should represent when the document was formed or the meeting about the document happened, and the date is more isolated in the document structure, usually without any label. The LLMs seem to miss the context that the first date like string is the document date, and instead find the first date which comes with context such as ‘Approved on:’, regardless of what that approval is referring to. These examples suggest

that interpreting document structure and distinguishing the roles of similar expressions remain challenges for regulatory information extraction.

We found that some of our reference scores regarding RQ1 to be slightly lower than one, and allows for some of the relative scores to be greater than zero. The benchmark dataset JSONs contain reformatted provenance text which is condensed across lines, paragraphs and pages, which may be different from the original text. Another cause for an increase in scores after condensing could be the inclusion of header information from the chunks.

Strict matching can penalize semantically equivalent answers, so the reported scores may not fully reflect the usefulness of extracted information. The extraction protocol for information for the subjective discrepancies outlined in this section was standardized for all documents. Therefore, we believe that regulatory language patterns could be a strong candidate for a fine-tuning task, similar to information extraction from materials science articles ([7]).

Conclusion

Our work explores the various processes around regulatory document information extraction, the effects of document condensing, and prompt engineering for important regulation fields. We introduce the RegExtract benchmark, comprising 976 annotations across 20 documents containing 46 regulations, to support LLM evaluation in legal, AI, and materials research. The results show variation in extraction performance across fields, models, and prompting strategies, with substantial room for improvement in the accuracy of extracted values and supporting provenance. Document condensing offers a way to reduce input length, although its effects on extraction performance vary across fields and configurations. Its practical benefits should therefore be weighed against the additional processing cost and document length. No single model or prompting strategy performs best across all fields. These findings can inform the selection and combination of models and prompts for regulatory information extraction pipelines.

Limitations

Our annotated dataset covers 20 regulatory documents; while annotation density is high, some conclusions may not generalize to larger or more diverse corpora. It only contains English data, and the data came only from the United States. In investigating using documents from other countries, we found that regulations are distributed on the national level, which provides only one document in another language, or one document in many languages. In the former case, our team does not have the linguistic skill set to professionally translate many other languages, and in the latter we would only be testing the translation capabilities of the model instead of extraction and retention. The documents were selected from saferstates.org filtered by PFAS regulations, included regulations on reporting, labeling, and banning chemicals in products, did not include documents regulating contamination limits, or regulation development timelines, documents containing amendments, and were related to the supply chain of manufacturing or selling PFAS-containing products, not documents which regulated the purchaser of such products. We hope this work encourages broader community participation in developing labeled datasets to advance research in regulatory information extraction. We believe this approach is extensible to other documents with small updates in desired category extractions and prompts, which we adjusted to the specific language used in state US documents.

List-field evaluation uses exact item matching, so equivalent expressions such as “rug” and “rugs” are scored as different items. This can underestimate extraction quality for who, action, products, and exceptions. Future work could explore normalization or semantic matching of list items.

Impact Statement

This work supports compliance officers, manufacturers, and policymakers in navigating regulatory documents at scale, broadening access to regulatory knowledge and supporting the identification of hazardous substances. Applying LLMs to high-stakes regulatory text carries risks of misextraction; we mitigate this by pairing every extracted value with a verifiable provenance span, and emphasize that such tools should augment, not replace, legal and compliance professionals. We do not foresee additional societal consequences specific to this work that are not already established when advancing structured information extraction and legal NLP.

Dataset

The documents were selected from saferstates.org filtered by PFAS regulations, which limits our dataset to the United States. We could not find sufficient regulations from other geographic locations that met the remainder of the requirements described in this section, which are necessary to run a comparative evaluation. The documents selected included regulations on reporting, labeling, and banning chemicals in products, and did not include documents regulating contamination limits, or regulation development timelines, documents containing amendments. All documents were related to the supply chain of manufacturing or selling PFAS-containing products, not documents which regulated the purchaser of such products.

The final schema for document and regulation level properties was chosen iteratively as the dataset was formed between 2 scientists. We chose to create a predefined schema in order to streamline evaluation, which we recognize limited the dataset size. Allowing a freeform schema determined by the LLM would not allow us to evaluate the retention of provenance in the document, which is a main focus of this work. The fields were chosen as the minimum number of relevant fields to define a regulation, which could be applied to all regulation types of report, label, and ban. A few of the fields require the choice from a set list of strings and some are freeform, which also allowed us to test the models’ ability to accomplish different types of tasks. As far as we are aware, this is the most comprehensive dataset of annotated documents to analyze chemical regulation data extraction. Figure 5, Figure 6, Figure 7, Figure 8, and Figure 9 give an overview of the types of information found in these documents and the specific fields. Figure 10 shows the length of each document in tokens.

Bar chart showing distribution of regulation types

Figure 6. Regulation type distribution

Horizontal bar chart showing top 5 products

Figure 7. Top 5 products

Horizontal bar chart showing top 5 exceptions

Figure 8. Top 5 exceptions

Bar chart showing distribution of products per regulation

Figure 5. Products per regulation

Bar chart showing distribution of regulations per document

Figure 9. Regulations per file

Details of Experiments

For each question, we investigate a variation in prompt design and empirically evaluate the impact of these strategies:

  1. Document Processing. Regulatory documents can be over 100 pages long, far exceeding the context window for many models and providing mostly irrelevant information to PFAS-specific regulations. The documents are all chunked with the docling chunker [20], and each chunk is put through the evaluative processes. We investigate how we can narrow in on relevant content from the text by comparing 2 strategies for condensing the document:

  • LLM Classifier: We prompt an LLM on whether it thinks the chunk of text is relevant, using prompt P1 in the Supplementary Information, and concatenate selected paragraphs into a smaller document for further processing.

  • RAG Extraction: We embed each chunk using an embedder and return the top N chunks in terms of similarity to embedded prompt P1.

    • For a fixed number of total chunks, we will also extract chunks based on context windows to assess RQ1.1

    • From our array of document lengths in our experimental set we will assess RQ1.2

    • We compare multiple embedders to see their effect of extraction performance to assess RQ1.3

  1. Extraction Strategy. We investigate two strategies for extracting values and their corresponding provenance. This will tell us if a more efficient pipeline (fewer LLM calls) is able to keep up with the same performance.

  • Joint Extraction: Prompting the model to generate both the value and the provenance for each field in a single step.

  • Sequential Extraction: First prompting for field values, then prompting separately for their provenance spans based on the predicted values.

Schema Partitioning

The length and detail of a prompt can affect the output; therefore, we explore how the grouping of information affects extraction quality.

  • Unified Prompting: Extracting all document-level (metadata) and regulation-level fields together.

  • Separated Prompting: Extracting metadata and regulation fields in independent steps and merging the outputs.

  • Field-by-Field Prompting: Issuing separate prompts for each document-level metadata field to improve accuracy.

  1. Prompting Style. We experiment with prompting with different levels of examples given to the LLM in the prompt [4] to evaluate the trade-off of providing more information and the LLM bias towards parroting the exact answer.

  • Zero-shot: Direct prompts without examples.

  • One-shot: Prompts with a single schema example for guidance.

  • Few-shot Structured: Prompts with a schema example as well as examples of values for each individual field.

Design of Experiments

For condensing the articles, we used a range of LLMs for extraction, including LLaMA 3.3 70b, LLaMA 4 (Maverick), granite-3.3-8b-instruct, granite-4-h-small, GPT-oss-20b, GPT-4o-mini, and mixtral-8x22B-instruct-v0.1. For RAG, we use BAAI/bge-m3, intfloat/multilingual-e5-small, and sentence-transformers/all-MiniLM-L6-v2 to encode raw texts and queries. For information extraction, we report results for six models: LLaMA 3.3 70B instruct [11], LLaMA 4 (Maverick), granite-3.3-8b-instruct, granite-4.0-h-micro, GPT-4o [14], and mixtral-8x22B-instruct-v0.1. We picked the max token number = 8192, and temperature = 0.

Our first experiments for RQ1-1.3 are carried out on all 20 documents. We tested the LLM classifier and RAG with varying numbers of chunks. Our prompt P1 is created with the version of RQ2-4 which matches the highlighted boxes in Figure 2. We adjust the prompt to test a single RQ, holding the sections of the prompts pertaining to other RQs steady. For example, the Extraction Strategy was tested by keeping the Data Separation and Prompt sections as their defaults (highlighted), and only changing the Extraction Strategy section of the prompt. These subtle prompt changes are outlined in the Supplementary information. This design of experiments significantly lessens the computational burden to only 6 pipelines to run on all 20 documents and allows us to isolate the interesting effects outlined in the RQs.

Discussion of condensing the documents

The motivation for condensing the documents is to lessen the context that would be passed to the extraction pipeline. Regulatory documents can be up to hundreds of pages long, with multiple topics and regulations being described, and passing the full document to the extraction pipeline would far exceed the context window. The condensing methods of RAG and LLM that we use focus on the ability to isolate one topic, PFAS, and are measured by the amount of relevant information that is retained in the trimmed version of the document. The 20 documents analyzed in this article fit within the context window of all models in their entirety, so that we can compare the effects of trimming the document against the full-document baseline.

Each document is trimmed by selecting relevant chunks, produced by docling’s HybridChunker, which are composed of the text and heading for that chunk. An LLM Classifier can select as many relevant chunks as it sees fit, and the RAG Extraction is limited to 3, 10, 20, 50, or 75 chunks. The effect of number and size of chunks on how much of the document is kept, measured by relative length to the full document, is shown in Figure 16. Here we see that, for RAG, for larger chunk sizes, it doesn’t take more than 10 chunks to reach the full length of the original text for many documents. Contrasted with the LLMs, which discard parts of the document no matter what, even though they are not forced to choose a certain number of chunks. The short length of the documents requires a fairly significant limitation in order to require the RAG process to discard data. Even with a limit of 3 chunks of 256 tokens, one of the documents is already at its full length.

RAG and LLM document condensing box plots

Figure 16. These data points represent the difference in the text length after the text is condensed by a RAG or LLM protocol. Each box plot represents all of the documents for a single model, using various chunk size and numbers for each of the condensing protocols. The left column shows all of the RAG variations which were tested, the right column shows all of the LLM variations which are tested.

Figure 17 and Figure 18 show provenance ROUGE-L recall relative to the full-text baseline for RAG and LLM condensing, respectively. Figure 19 shows the proportion of text retained under the selected condensing configurations.

Heatmaps of ROUGE-L recall scores for all documents and documents with length less than 95% of original text

Figure 17. rovenance ROUGE-L recall scores relative to the full-text baseline after RAG condensing. Scores are averaged across fields and documents included in each panel. The left panel includes all 20 documents; the right includes only documents condensed to less than 95% of their original length. Cell labels indicate document counts.

Provenance ROUGE-L recall scores relative to the full-text baseline after LLM condensing

Figure 18. Provenance ROUGE-L recall scores relative to the full-text baseline after LLM condensing. Scores are averaged across fields and documents included in each panel. The left panel includes all 20 documents; the right includes only documents condensed to less than 95% of their original length. Cell labels indicate document counts.

The documents which were condensed with the top selected LLM or RAG processes were then used for information extraction. The results of these extractions are shown in Figure 12 and Figure 13 for RAG with 10 chunks and a chunk size of 256 tokens with sentence-transformers embeddings and Figure 14 and Figure 15 for LLM with a chunk size of 512 tokens with granite4.

Prompting comparisons on condensed documents

Comparisons of GPT-4o prompting strategies for regulation extraction from RAG- and LLM-condensed documents are presented in Table 4 and Table 5, respectively.

Further information on benchmark construction

The annotations were compiled by 2 domain experts who have experience in the field of PFAS regulations. The titles were chosen to be a descriptive phrase mentioned at the beginning of the document. This may or may not align with the header of the document. The location is where the regulation jurisdiction is, described by the location of the governing body. References are a shorthand for the document within the governing body’s catalog, usually an alphanumeric combination. The document level date is the date that the document was written or submitted, it is unrelated to the date when the regulations become active. The pfas definition is outlined in the definitions section of each document, there are several commonly used definitions. The status of the document is always stated in the introduction, whether the following text is a proposal, a bill, or a law. Regulation information is almost always contained within single, separated paragraphs. The date, products, action, who, and intentionally added and currently unavoidable information should be within one paragraph for a single regulation. Exceptions are sometimes defined for the entire document as a whole outside of these paragraphs. Currently unavoidable and intentionally added fields are the most common qualifiers that were found in the documents, and are false unless they are mentioned in the text. Actions are shortened to the main verb phrases that are mentioned in the paragraph (e.g. ”shall not be used for firefighting training purposes or testing purposes” → ”used for firefighting training purposes” and ”used for firefighting testing purposes”). ’Who’ is the person or entity that the regulation is applied to. If there is no action named, it may be the verb form of the ’Who’ (e.g. Who: Manufacturer → Action: manufacture). The date when the regulation becomes effective is almost always at the beginning of the regulatory sentence or paragraph. And the products should be the direct object of the regulation action.

References

  1. [1]Ackerman Grunfeld, D., Gilbert, D., Hou, J., Jones, A. M., Lee, M. J., Kibbey, T. C. G., and O’Carroll, D. M. Under-estimated burden of per- and polyfluoroalkyl substances in global surface waters and groundwaters. nature geoscience, 17:340, 2024.
  2. [2]Bommarito II, M. J., Katz, D. M., and Detterman, E. M. LexNlp: Natural language processing and information extraction for legal and regulatory texts. In Research handbook on big data law, pp. 216–227. Edward Elgar Publishing, 2021.
  3. [3]Brennan, N. M., Evans, A. T., Fritz, M. K., Peak, S. A., and von Holst, H. E. Trends in the regulation of per-and polyfluoroalkyl substances (pfas): a scoping review. International journal of environmental research and public health, 18(20):10900, 2021.DOI
  4. [4]Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020.arxiv.org/abs/2005.14165
  5. [5]Chalkidis, I., Fergadiotis, M., Malakasiotis, P., Aletras, N., and Androutsopoulos, I. Legal-bert: The muppets straight out of law school. arXiv preprint arXiv:2010.02559, 2020.arxiv.org/abs/2010.02559
  6. [6]Chan, C.-M., Xu, C., Yuan, R., Luo, H., Xue, W., Guo, Y., and Fu, J. Rq-rag: Learning to refine queries for retrieval augmented generation. arXiv preprint arXiv:2404.00610, 2024.arxiv.org/abs/2404.00610
  7. [7]Dagdelen, J., Dunn, A., Lee, S., Walker, N., Rosen, A. S., Ceder, G., Persson, K. A., and Jain, A. Structured information extraction from scientific text with large language models. Nature communications, 15(1):1418, 2024.DOI
  8. [8]DeMasi, A., Elston, H., and Langerman, N. Safety data sheets: challenges for authors, expectations for end-users. ACS Chemical Health & Safety, 29(4):369–377, 2022.DOI
  9. [9]Dobrzyńska, E., Wasilewski, P., and Posniak, M. Per- and polyfluoroalkyl substances (pfass): A comprehensive review of environmental distribution, health impacts, and regulatory landscape. Applied Sciences, 15(22):11884, 2025.DOI
  10. [10]Fenton, S. E., Ducatman, A., Boobis, A., DeWitt, J. C., Lau, C., Ng, C., Smith, J. S., and Roberts, S. M. Per-and polyfluoroalkyl substance toxicity and human health review: Current state of knowledge and strategies for informing future research. Environmental toxicology and chemistry, 40(3):606–630, 2021.DOI
  11. [11]Grattafiori, A., Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schletlen, A., Vaughan, A., et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
  12. [12]Guha, N., Nyarko, J., Ho, D., Ré, C., Chilton, A., Chohlas-Wood, A., Peters, A., Waldon, B., Rockmore, D., Zambrano, D., et al. Legalbench: A collaboratively built benchmark for measuring legal reasoning in large language models. Advances in neural information processing systems, 36:44123–44279, 2023.
  13. [13]Hendrycks, D., Burns, C., Chen, A., and Ball, S. Cuad: An expert-annotated nlp dataset for legal contract review. arXiv preprint arXiv:2103.06268, 2021.
  14. [14]Hurst, A., Lerer, A., Goucher, A. P., Perelman, A., Ramesh, A., Clark, A., Ostrow, A., Welihinda, A., Hayes, A., Radford, A., et al. Gpt-4o system card. arXiv preprint arXiv:2410.21276, 2024.arxiv.org/abs/2410.21276
  15. [15]Korger, A. and Baumeister, J. Rule-based semantic relation extraction in regulatory documents. In LWDA, pp. 26–37, 2021.
  16. [16]Kosonocky, C. W., Wilke, C. O., Marcotte, E. M., and Ellington, A. D. Mining patents with large language models elucidates the chemical function landscape. Digital Discovery, 3(6):1150–1159, 2024.pubmed.ncbi.nlm.nih.gov/38196747
  17. [17]Kwiatkowski, T., Palomaki, J., Redfield, O., Collins, M., Parikh, A., Alberti, C., Epstein, D., Polosukhin, I., Devlin, J., Lee, K., et al. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453–466, 2019.DOI
  18. [18]Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-t., Rocktäschel, T., et al. Retrieval-augmented generation for knowledge-intensive nlp tasks. Advances in neural information processing systems, 33:9459–9474, 2020.arxiv.org/abs/2005.11401
  19. [19]Lin, C.-Y. Rouge: A package for automatic evaluation of summaries. In Text summarization branches out, pp. 74–81, 2004.
  20. [20]Livathinos, N., Auer, C., Lysak, M., Nassar, A., Dolfi, M., Vagenas, P., Ramis, C. B., Omenetti, M., Dinkla, K., Kim, Y., et al. Docling: An efficient open-source toolkit for ai-driven document conversion. arXiv preprint arXiv:2501.17887, 2025.arxiv.org/abs/2501.17887
  21. [21]Odobesku, R., Romanova, K., Mirzaeva, S., Zagorulko, O., Sim, R., Khakimullin, R., Razlivina, J., Dmitrenko, A., and Vinogradov, V. Agent-based multimodal information extraction for nanomaterials. npj computational materials, 2025.DOI
  22. [22]Oliveira, V., Nogueira, G., Faleiros, T., and Marcacini, R. Combining prompt-based language models and weak supervision for labeling named entity recognition on legal documents. Artificial Intelligence and Law, pp. 1–21, 2024.DOI
  23. [23]Rademaker, A., Lionti, K., Ransom, B., Lima, G., and Sanders, D. Regulations in wikidata: The case of pfas-related regulations. 2025.
  24. [24]Rajpurkar, P., Zhang, J., Lopyrev, K., and Liang, P. Squad: 100,000+ questions for machine comprehension of text. In Proceedings of the 2016 conference on empirical methods in natural language processing, pp. 2383–2392, 2016.arxiv.org/abs/1606.05250
  25. [25]Shin, J., Wu, S., Wang, F., De Sa, C., Zhang, C., and Ré, C. Incremental knowledge base construction using deepdive. In Proceedings of the VLDB Endowment International Conference on Very Large Data Bases, volume 8, pp. 1310, 2015.
  26. [26]Sie, M., Beek, R., Bots, M., Brinkkemper, S., and Gatt, A. Summarizing long regulatory documents with a multi-step pipeline. arXiv preprint arXiv:2408.09777, 2024.arxiv.org/abs/2408.09777
  27. [27]Singh, I. S., Aggarwal, R., Allahverdiyev, I., Taha, M., Akalın, A., Zhu, K., and O’Brien, S. Chunkrag: Novel llm-chunk filtering method for rag systems. arXiv preprint arXiv:2410.19572, 2024.arxiv.org/abs/2410.19572
  28. [28]Suchanek, F. M., Sozio, M., and Weikum, G. Sofie: a self-organizing framework for information extraction. In Proceedings of the 18th international conference on World wide web, pp. 631–640, 2009.DOI
  29. [32]Yue, S., Liu, S., Zhou, Y., Shen, C., Wang, S., Xiao, Y., Li, B., Song, Y., Shen, X., Chen, W., et al. Lawllm: Intelligent legal system with legal reasoning and verifiable retrieval. In International Conference on Database Systems for Advanced Applications, pp. 304–321. Springer, 2024.DOI
  30. [33]Zadgaonkar, A. V. and Agrawal, A. J. An overview of information extraction techniques for legal document analysis and processing. International Journal of Electrical & Computer Engineering (2088-8708), 11(6), 2021.DOI
  31. [34]Zin, M. M., Nguyen, H. T., Satoh, K., Sugawara, S., and Nishino, F. Information extraction from lengthy legal contracts: leveraging query-based summarization and gpt-3.5. In Legal Knowledge and Information Systems, pp. 177–186. IOS Press, 2023.DOI

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type