{"data":{"slug":"johnnay-llm-lobbyist","name":"llm-lobbyist","tagline":"Code for the paper: \"Large Language Models as Corporate Lobbyists\" (2023).","github_url":"https://github.com/JohnNay/llm-lobbyist","owner":"JohnNay","repo":"llm-lobbyist","owner_avatar_url":"https://avatars.githubusercontent.com/u/8429627?v=4","primary_language":"Jupyter Notebook","stars":174,"forks":14,"topics":[],"archived":false,"github_pushed_at":"2023-01-13T03:31:25+00:00","maintenance_label":"Dormant","url":"https://www.graphcanon.com/tools/johnnay-llm-lobbyist","markdown_url":"https://www.graphcanon.com/tools/johnnay-llm-lobbyist.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/johnnay-llm-lobbyist","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=johnnay-llm-lobbyist","description":"Code for the paper: \"Large Language Models as Corporate Lobbyists\" (2023).","homepage_url":null,"license":null,"open_issues":0,"watchers":4,"ai_summary":null,"readme_excerpt":"# llm-lobbyist\n\n# Large Language Models as Corporate Lobbyists\n\n## Links\n\n- **[Paper](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4316615)** \n  - [*This is a draft paper to explain some of the potential (positive and negative) implications of taking the LLM as Lobbyist idea further*]\n- **[Code](https://github.com/JohnNay/llm-lobbyist/blob/main/gpt_corporate_lobbying.ipynb)** \n  - [*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*]\n- **[Data](https://github.com/JohnNay/llm-lobbyist/blob/main/legislation_relevance_dataset_for_llm_evaluation_unbalanced.csv)** \n  - [*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*]\n\n## Abstract\n\n> 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.\n\n## Citation \n\nIf you use this code, you can cite:\n\nJohn Nay, *Large Language Models as Corporate Lobbyists* (January 2, 2023). Available at SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4316615.\n\n`Bibtex` for citations in LaTex:\n\n```\n@article{nay2023llmlobbyist,\n  author = {John Nay},\n  archivePrefix = {arXiv},\n  eprint = {2301.01181},\n  primaryClass = {cs.CL},\n  title = {Large Language Models as Corporate Lobbyists},\n  year = 2023,\n  keywords = {language models, alignment, policy},\n  url = {https://arxiv.org/abs/2301.01181}\n}\n```\n\n## Overview\n\nWe use autoregressive large language models to systematically:\n\n1.\tSummarize bill summaries that are too long to fit into the context window of the model so the model can conduct steps 2 and 3.\n2.\tUsing 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.\n3.\tIf 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.\n\nThe model i","github_created_at":"2023-01-03T00:38:02+00:00","created_at":"2026-07-11T10:52:39.13438+00:00","updated_at":"2026-07-11T10:52:42.054664+00:00","categories":[{"slug":"vector-databases","name":"Vector Databases","url":"https://www.graphcanon.com/categories/vector-databases","markdown_url":"https://www.graphcanon.com/categories/vector-databases.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/vector-databases"},{"slug":"llm-frameworks","name":"LLM Frameworks","url":"https://www.graphcanon.com/categories/llm-frameworks","markdown_url":"https://www.graphcanon.com/categories/llm-frameworks.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/llm-frameworks"},{"slug":"evaluation-observability","name":"Evaluation & Observability","url":"https://www.graphcanon.com/categories/evaluation-observability","markdown_url":"https://www.graphcanon.com/categories/evaluation-observability.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/evaluation-observability"}],"tags":[{"slug":"jupyter-notebook","name":"jupyter notebook"}],"trust":{"provenance":{"is_fork":false,"github_id":584574007,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-07-11T10:52:39.814Z","maintenance":{"label":"Dormant","score":18,"methodology":"github_public_v1","releases_90d":0,"days_since_push":1275,"last_release_at":null},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T10:52:40.557Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"scan":{"source":"repo_scan","observed_at":"2026-07-11T10:52:40.240Z"},"languages":{"value":["jupyter notebook"],"source":"github.language","observed_at":"2026-07-11T10:52:40.240Z"}}}}