LLMs get smarter at checking software requirements by combining graph knowledge and structured thinking.
This paper combines Graph-RAG with advanced prompting techniques to automate compliance checking in software requirements, enhancing accuracy and reducing manual effort in regulated environments.
-----
https://arxiv.org/abs/2412.08593
π Original Problem:
β Software requirements in regulated sectors like finance and aerospace need strict compliance with higher-level standards, but manual checking is error-prone and time-consuming.
β Current LLM solutions struggle with maintaining context across documents and often generate hallucinations during requirement validation.
-----
π οΈ Solution in this Paper:
β The framework uses Graph-RAG to build a knowledge graph from regulatory documents, enabling precise retrieval of relevant content.
β It employs Chain of Thought and Tree of Thought prompting to enhance LLM reasoning capabilities during compliance verification.
β The system processes requirements through preprocessing, graph-based search, and structured prompting stages.
β A similarity threshold balances between retrieval precision and coverage of relevant regulatory content.
-----
π‘ Key Insights:
β Graph-based retrieval outperforms traditional RAG in finding relevant regulatory content
β Tree of Thoughts prompting achieves better reasoning than simpler prompting methods
β Weaker models like GPT-4o-mini trade precision for higher recall in violation detection
-----
π Results:
β Graph-RAG with Tree of Thoughts achieved 86.33% F1-score on broker dataset
β Performance improved by 23.2% compared to baseline RAG methods
β System maintained 87.93% F1-score on aerospace requirements










