TL;DR
This paper introduces a novel methodology for leveraging Large Language Models (LLMs) to automatically extract Medicaid eligibility rules from public documents and transform them into functional web applications. This approach promises to streamline the complex process of Medicaid redetermination, making it more accessible and user-friendly for beneficiaries.
What Problem Does This Paper Address?
The unwinding of the Medicaid continuous enrollment provision has triggered a massive redetermination process, leaving many beneficiaries uncertain about their coverage. Navigating the intricate eligibility rules for Medicaid and other social services is a significant challenge for individuals. Traditional methods of accessing this information are often cumbersome and difficult to understand. This paper addresses the need for a more efficient, accessible, and user-friendly way for individuals to determine their eligibility for these crucial services.
Methods
The core of the methodology involves using OpenAI's GPT-4o model to process publicly available HyperText Markup Language (HTML) web pages containing Medicaid eligibility rules. The LLM is prompted to extract these rules and then convert them into Python code. This code is then embedded into a deployable web application that takes user-provided personal details to trigger the eligibility rules and determine the user's status.
The researchers explored two distinct pipelines for the State of Washington:
- "Combine to Python": Rules were extracted for each Medicaid category, concatenated, and then GPT-4o was asked to write Python code to implement these guidelines.
- "Python to Combine": Input was directly converted to Python snippets, which were then concatenated, and GPT-4o was asked to combine these snippets.
The effectiveness of the generated code was evaluated by measuring the time it took for one of the authors to make it "functional" (i.e., accurate, comprehensive, and specific). The study also investigated the impact of LLM parameters like "temperature" (controlling randomness) and "top p" (controlling response deviation) on the results.
Datasets
The study utilized publicly available HTML web pages detailing Medicaid eligibility rules from three US states: Washington, North Dakota, and South Carolina. No new datasets were introduced; rather, existing public information was used as input.
Key Insights and Ideas
- LLMs as a bridge to complex rules: The research demonstrates that LLMs can effectively bridge the gap between complex, often jargon-filled, legal and administrative documents and user-friendly applications.
- Generalizability across states: The methodology showed promise in its generalizability, working across states with different structures for presenting eligibility information (e.g., single webpage vs. multiple webpages per program).
- Parameter tuning is crucial: The optimal settings for LLM parameters like temperature and "top p" significantly impact the quality and accuracy of the generated code, with specific values yielding better results for different states.
- Cost-effectiveness: The process proved to be remarkably inexpensive, with experiment costs ranging from approximately $0.07 to $0.23 per experiment.
- Potential for broader application: The framework is not limited to Medicaid and could be adapted for other government eligibility processes, improving accessibility and transparency across various social services.
Key Results
- For North Dakota and South Carolina, optimal results were achieved with a temperature of 0.5 and a "top p" of 0.0.
- For the State of Washington, both the "Combine to Python" and "Python to Combine" approaches yielded similar results, with moderate temperature (0.5) and "top p" (0.5) producing high-quality, specific implementations requiring minimal human correction.
- The evaluation metric, based on the time to achieve functional code, indicated that higher scores (meaning less time) correspond to better LLM outputs.
- The cost per experiment was found to be very low, ranging from $0.07 for North Dakota to $0.23 for Washington.
Limitations and Future Work
The authors acknowledge the inherent limitations of LLMs, including the potential for inaccuracies and fabricated content. They emphasize the critical need for rigorous verification of the generated applications' accuracy.
Future work could involve:
- Addressing potential inaccuracies and fabricated content from LLMs.
- Developing ethical guidelines and proper procedures for the deployment of such applications.
- Expanding the framework to other government eligibility processes and social services.
- Integrating LLMs into healthcare decision support systems.
- Facilitating easier navigation of bureaucratic processes for individuals.
- Fostering equitable access to health and other benefits, particularly for individuals with limited English proficiency.
Summary updated