用可审计的子程序框架提升语言模型在公共意见处理中的安全与透明度。
Audit, Alignment, and Optimization of LM-Powered Subroutines with Application to Public Comment Processing
- 设计静态类型语言模型子程序,支持异步调用与在线优化。
- 通过人类反馈提升子程序性能,输出与历史标注数据匹配度高。
- 适用于法律、环保等高风险场景,强调可追溯性与责任可控。
语言模型有望大幅提升文本处理任务效率,但其在现实应用中受限于安全性、可解释性与偏见问题。本文提出一种框架,将语言模型封装为静态类型、可调用的子程序,集成于常规异步代码中,利用稀疏的人类专家反馈实现运行时在线优化。所有模型生成内容(包括提示、输入、输出及依赖关系)均被记录并支持按需审计。我们将其封装为开源库以促进推广。该框架适用于医疗、法律等多个决策流程,本文以《国家环境政策法》(NEPA)要求的公众意见处理为例,开发了「CommentNEPA」系统,用于汇编、组织和总结环境影响评估中提交的公众评论。通过与官方环评报告中人工标注的“真实标签”对比,定量评估了系统在无人类反馈时的输出表现。
原文摘要 · Abstract (English)
The advent of language models (LMs) has the potential to dramatically accelerate tasks that may be cast to text-processing; however, real-world adoption is hindered by concerns regarding safety, explainability, and bias. How can we responsibly leverage LMs in a transparent, auditable manner -- minimizing risk and allowing human experts to focus on informed decision-making rather than data-processing or prompt engineering? In this work, we propose a framework for declaring statically typed, LM-powered subroutines (i.e., callable, function-like procedures) for use within conventional asynchronous code -- such that sparse feedback from human experts is used to improve the performance of each subroutine online (i.e., during use). In our implementation, all LM-produced artifacts (i.e., prompts, inputs, outputs, and data-dependencies) are recorded and exposed to audit on demand. We package this framework as a library to support its adoption and continued development. While this framework may be applicable across several real-world decision workflows (e.g., in healthcare and legal fields), we evaluate it in the context of public comment processing as mandated by the 1969 National Environmental Protection Act (NEPA): Specifically, we use this framework to develop "CommentNEPA," an application that compiles, organizes, and summarizes a corpus of public commentary submitted in response to a project requiring environmental review. We quantitatively evaluate the application by comparing its outputs (when operating without human feedback) to historical ``ground-truth'' data as labelled by human annotators during the preparation of official environmental impact statements.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。