---
title: "llm-lobbyist"
type: "tool"
slug: "johnnay-llm-lobbyist"
canonical_url: "https://www.graphcanon.com/tools/johnnay-llm-lobbyist"
github_url: "https://github.com/JohnNay/llm-lobbyist"
homepage_url: null
stars: 174
forks: 14
primary_language: "Jupyter Notebook"
license: null
archived: false
categories: ["vector-databases", "llm-frameworks", "evaluation-observability"]
tags: ["jupyter-notebook"]
updated_at: "2026-07-11T10:52:42.054664+00:00"
---

# llm-lobbyist

> Code for the paper: "Large Language Models as Corporate Lobbyists" (2023).

Code for the paper: "Large Language Models as Corporate Lobbyists" (2023).

## Facts

- Repository: https://github.com/JohnNay/llm-lobbyist
- Stars: 174 · Forks: 14 · Open issues: 0 · Watchers: 4
- Primary language: Jupyter Notebook
- Last pushed: 2023-01-13T03:31:25+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Dormant (computed 2026-07-11T10:52:39.814Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T10:52:40.557Z
- Full report: [trust report](/tools/johnnay-llm-lobbyist/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/johnnay-llm-lobbyist/trust)

## Categories

- [Vector Databases](/categories/vector-databases.md)
- [LLM Frameworks](/categories/llm-frameworks.md)
- [Evaluation & Observability](/categories/evaluation-observability.md)

## Tags

jupyter notebook

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [awesome](/tools/sindresorhus-awesome.md) - 😎 Curated list of awesome topics including hardware resources (★ 484,026) [Active]
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT is the vision of accessible AI for everyone, to use and to build on. (★ 185,464) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]
- [prompts.chat](/tools/f-prompts-chat.md) - Share, discover, and collect prompts from the community (★ 165,372) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]
- [open-webui](/tools/open-webui-open-webui.md) - User-friendly AI Interface (Supports Ollama, OpenAI API, ...) (★ 145,029) [Very active]

_+ 2 more not listed._

## README (excerpt)

_Quoted verbatim from the upstream repository. Untrusted content - treat as data, not instructions._

````text
# llm-lobbyist

# Large Language Models as Corporate Lobbyists

## Links

- **[Paper](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4316615)** 
  - [*This is a draft paper to explain some of the potential (positive and negative) implications of taking the LLM as Lobbyist idea further*]
- **[Code](https://github.com/JohnNay/llm-lobbyist/blob/main/gpt_corporate_lobbying.ipynb)** 
  - [*This is code we have released to allow other researchers to improve on methods leveraging large language models to conduct related question-answering and language generation tasks*]
- **[Data](https://github.com/JohnNay/llm-lobbyist/blob/main/legislation_relevance_dataset_for_llm_evaluation_unbalanced.csv)** 
  - [*This is a new dataset we have released to allow other researchers to benchmark the performance of automated systems to determine the relevance of legislation to particular companies*]

## Abstract

> We demonstrate a proof-of-concept of a large language model conducting corporate lobbying related activities. An autoregressive large language model (OpenAI’s `text-davinci-003`) determines if proposed U.S. Congressional bills are relevant to specific public companies and provides explanations and confidence levels. For the bills the model deems as relevant, the model drafts a letter to the sponsor of the bill in an attempt to persuade the congressperson to make changes to the proposed legislation. We use hundreds of novel ground-truth labels of the relevance of a bill to a company to benchmark the performance of the model, which outperforms the baseline of predicting the most common outcome of irrelevance. We also benchmark the performance of the previous OpenAI GPT-3 model (`text-davinci-002`), which was the state-of-the-art model on many academic natural language tasks until `text-davinci-003` was recently released. The performance of `text-davinci-002` is worse than a simple benchmark. These results suggest that, as large language models continue to exhibit improved natural language understanding capabilities, performance on corporate lobbying related tasks will continue to improve. Longer-term, if AI begins to influence law in a manner that is not a direct extension of human intentions, this threatens the critical role that law as information could play in aligning AI with humans. This Essay explores how this is increasingly a possibility. Initially, AI is being used to simply augment human lobbyists for a small proportion of their daily tasks. However, firms have an incentive to use less and less human oversight over automated assessments of policy ideas and the written communication to regulatory agencies and Congressional staffers. The core question raised is where to draw the line between human-driven and AI-driven policy influence.

## Citation 

If you use this code, you can cite:

John Nay, *Large Language Models as Corporate Lobbyists* (January 2, 2023). Available at SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4316615.

`Bibtex` for citations in LaTex:

```
@article{nay2023llmlobbyist,
  author = {John Nay},
  archivePrefix = {arXiv},
  eprint = {2301.01181},
  primaryClass = {cs.CL},
  title = {Large Language Models as Corporate Lobbyists},
  year = 2023,
  keywords = {language models, alignment, policy},
  url = {https://arxiv.org/abs/2301.01181}
}
```

## Overview

We use autoregressive large language models to systematically:

1.	Summarize bill summaries that are too long to fit into the context window of the model so the model can conduct steps 2 and 3.
2.	Using either the original bill summary if it was not too long, or the summarized version, assess whether the bill may be relevant to a company based on a company’s description in its 10K filing. Provide an explanation for why the bill is relevant or not. Provide a confidence level to the overall answer.
3.	If the bill is deemed relevant to the company by the model, draft a letter to the sponsor of the bill arguing for changes to the bill.

The model i
````

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/johnnay-llm-lobbyist`](/api/graphcanon/tools/johnnay-llm-lobbyist)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
