Lune

ICSE2026顶会

An LLM Agentic Approach for Legal-Critical Software: A Case Study for Tax Prep Software

Sina Gogani Khiabani, Ashutosh Trivedi, Diptikalyan Saha, Saeid Tizpaz-Niari

摘要

As Large Language Models (LLMs) continue to advance in their ability to process both natural and programming languages, they show promise for translation tasks in domains with strict compliance requirements. Yet ensuring consistency in legally critical settings remains challenging due to inherent limitations such as natural language ambiguity and the tendency to hallucinate. This paper explores an agentic approach that leverages LLMs for the development of legal-critical software. We use U.S. federal tax software as a representative case study, where natural language tax code must be translated precisely into executable logic.

A central challenge in developing legal-critical software from specifications lies in test case generation, which suffers from the oracle problem: determining the correct output for a given scenario often requires interpreting legal statutes. Prior work has proposed metamorphic testing as a solution by evaluating equivalence across similarly situated individuals. A key innovation of our work is a higher-order generalization of metamorphic tests, motivated by our tax preparation case study, in which system outputs are compared across structured shifts among similar individuals. Since manually generating such higher-order relations is tedious and error-prone, our agentic paradigm is well suited to automate test case generation.

We design and implement Synedrion, an assembly of LLMbased agents simulating roles in real-world software development teams handling legal documents. The framework includes a metamorphic testing agent that produces counterexamples while translating tax code into executable software. Our findings indicate that Synedrion, when employing smaller language models (e.g., GPT-4o-mini), can outperform frontier models (e.g., GPT-4o and Claude-3.5) in complex tax code generation tasks, achieving a worst-case pass rate of 45% compared with 9%-15%. We thus make the case for LLM-driven agentic methodologies as a pathway for generating robust, trustworthy legal-critical software from natural language specifications.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 1 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • MapCoder: Multi-Agent Code Generation for Competitive Problem Solving 引用了 Reflexion: language agents with verbal reinforcement learning
  • CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules 引用了 Self-Refine: Iterative Refinement with Self-Feedback
  • CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modules 引用了 Reflexion: language agents with verbal reinforcement learning
  • Reflexion: language agents with verbal reinforcement learning 引用了 Self-Refine: Iterative Refinement with Self-Feedback
  • LLM Agents in Law: Taxonomy, Applications, and Challenges 引用了 Reflexion: language agents with verbal reinforcement learning
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper1

  1. LLM Agents in Law: Taxonomy, Applications, and ChallengesShuang Liu, Ruijia Zhang, Ruoyun Ma, Yujia Deng 等ACL 2026 · 3 次引用

它引用的 Paper7

  1. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan 等NeurIPS 2023 · 5,828 次引用
  2. Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan 等NeurIPS 2023 · 4,972 次引用
  3. CodeChain: Towards Modular Code Generation Through Chain of Self-revisions with Representative Sub-modulesHung Le, Hailin Chen, Amrita Saha, Akash Gokul 等ICLR 2024 · 73 次引用
  4. CodePlan: Repository-Level Coding using LLMs and PlanningRamakrishna Bairi, Atharv Sonwane, Aditya Kanade, Vageesh D. C. 等FSE 2024 · 67 次引用
  5. MapCoder: Multi-Agent Code Generation for Competitive Problem SolvingMd. Ashraful Islam, Mohammed Eunus Ali, Md. Rizwan ParvezACL 2024 · 29 次引用

相关 Paper

  1. LLM4Fin: Fully Automating LLM-Powered Test Case Generation for FinTech Software Acceptance TestingZhiyi Xue, Liangguo Li, Senyue Tian, Xiaohong Chen 等ISSTA 2024 · 19 次引用
  2. Compiling Large Multi-modal Requirement Documents into Runnable Software Systems: From an Agentic Test-Driven PerspectiveWeiyu Kong, Yun Lin, Xiwen Teoh, Duc-Minh Nguyen 等ISSTA 2026 · 1 次引用
  3. MatchFixAgent: Language-Agnostic Autonomous Repository-Level Code Translation Validation and RepairAli Reza Ibrahimzada, Brandon Paulsen, Reyhaneh Jabbarvand, Joey Dodds 等ICML 2026 · 9 次引用
  4. ChatDev: Communicative Agents for Software DevelopmentChen Qian, Wei Liu, Hongzhang Liu, Nuo Chen 等ACL 2024
  5. An Agentic Framework with LLMs for Solving Complex Vehicle Routing ProblemsNi Zhang, Zhiguang Cao, Jianan Zhou, Cong Zhang 等ICLR 2026 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖