essay

The Enron brain organized itself

Jeff Reynar
The Enron brain organized itself

In October we published a company brain for Enron: 214 pages about the companies, regulators and banks Enron dealt with, built from 45,047 of its emails. Every fact on a page cites the email it came from. Each page has a slider, and as you drag it through 2000 and 2001, facts that stopped being true drop off on the date the mail shows they ended.

The most important thing about those pages is easy to miss when you’re reading them. Nobody organized them by hand. We gave the software 22 generic starting types, like customers and suppliers, and a method. It proposed 36 more types of its own, sorted the 1,813 names in Enron’s mail into them, and worked out when Dynegy stopped being a trading partner and became an adversary. A person stepped in three times to trim what it proposed, the way a customer would when setting up their own company brain. No one wrote or edited a page.

Why organizing is the hard part

Anyone who has managed a company wiki knows how it goes. Someone has to decide what the pages are, someone has to write them, and someone has to notice when one goes stale. All three jobs come on top of everyone’s real work, so they get done at launch, then only as long as someone is enthusiastic about the wiki and has time for it. After that, the wiki drifts. The semantic web failed on the same problem at internet scale.

Writing is the job AI obviously helps with. Deciding the structure and keeping it current are harder to hand over, because they seem to need someone who knows the business: which kinds of thing matter here, and which facts are still true.

That’s what we wanted to test, and Enron was a good place to test it because nobody on our team knows anything about energy trading. If the method only worked when the people running it corrected it from their own knowledge, Enron would show it.

What the software decided

The build ran in four steps, and each one took over a decision a person usually makes.

It chose the categories. The model read a random sample of 3,200 messages and proposed the kinds of things Enron deals with. We gave it 22 generic starting types, like customers, suppliers, competitors and regulators, because most companies have those. It proposed 57: 21 of our starting types and 36 of its own.

It found the entities and chose which ones got pages. It named 1,813 distinct entities across all 45,047 messages, merged different spellings of the same one, so three versions of Enron North America became one, and counted how often each came up. An organization named in at least 25 messages became a candidate for a page. That threshold is a stand-in for the judgment a person would apply when setting up a brain for a real company.

It wrote the pages. For each organization, the model read every message that named it and pulled out facts, each quoting the sentence it came from. In a closing pass, it wrote the summary and decided how to divide the page into sections.

It put each relationship on a timeline. On 175 pages, Enron’s relationship with the organization changes over time, and the page splits it into dated phases. Dynegy goes from trading counterparty to agreed acquirer on November 9, 2001, and nineteen days later to adversary. Of the 49,401 published facts, 19,528 expire, each on the date the mail shows it stopped being true.

A newer model then checked every fact against the mail it cites, and rewrote or dropped any that said more than the mail did. We expect that step to matter less for most companies than it did here. Enron is one of the most written-about companies in the world, and much of what’s on the web ends up in what a model knows, so the model had plenty of its own to add. A typical company’s customers and suppliers get far less coverage.

Where a person stepped in

A person stepped in three times, each with the kind of input a customer gives when setting up a brain. A person reviewed the 57 proposed types and cut 3: named legislation, hotels and venues, and restaurants and bars, judging that none needed a page. In Enron’s mail, the hotels and restaurants were where meetings and lunches happened, not businesses Enron dealt with. A person chose which kinds of thing get pages: the organizations Enron dealt with, plus five parts of Enron itself. Products, facilities and events got lists instead, since the point was the outside world Enron did business with. And a person cut 30 names that a text search can’t pin to one organization, like California, Risk and Williams. A page built from every mention of Williams would mix the Williams Companies with every employee and contact named Williams.

That’s the whole list. No one edited a page or a fact.

Did it only work on the mail we tuned it on?

A method that organizes one set of mailboxes well might just be one we adjusted until it fit. So we developed it on eight mailboxes and built every page from eight others, belonging to different people in different jobs. Of the 3,200 messages sampled from each set, 129 appeared in both.

On the development mail, the model first proposed 84 types, and a person kept 37. The reasons for the cuts became six rules about what deserves a page. A type has to be made of proper nouns, because you can’t collect facts about a generic thing. A document, like a contract or a regulatory filing, gets no page of its own; what it says goes on the pages of the companies it concerns. And the entity has to be tied to the company by an actual relationship, so the restaurant where colleagues drank is scenery at Enron, while the same category would be the customer list at a restaurant supplier.

Where it organized too eagerly

One rule went too far. It told the model to make each category as specific as it could, and for organizations that meant a separate category for every kind of relationship. Forty of the 54 kept types are kinds of organization: customer, supplier, counterparty, competitor, regulator, law firm, bank, utility, and on down to “settlement counterparty.” In the type review, 179 organizations had more than one of those labels at once. Southern California Edison was a utility, a customer, a utility counterparty, a competitor and a litigation party.

Most of those labels describe one relationship at different dates. In about ten months, Edison went from policy opponent to regulatory adversary, then to power customer and debtor, then to litigation adversary, and then into settlement talks. Sorting it into one bucket requires choosing a date. So the relationship belongs on the page as a dated fact that a later fact can supersede, which is where it ended up.

Is it right?

None of this is worth having unless the facts hold up. A different model, Claude Fable 5.1, judged 500 published facts drawn at random against the mail they cite. 466 were fully supported, and none was wrong at its core. Each of the other 34 had one detail a careful reviewer would soften, such as a surname added to a first name. A person graded 50 of the judge’s verdicts blind and agreed with 48.

Building the pages would have cost $8,857 at list prices, and checking them $2,358 more. We made no attempt to bring that down. We ran it all on a Claude subscription, though, so we were happy to pay nowhere near that much.

What this doesn’t show

It’s one company in one industry, with mail from 1999 to 2002, all in English. One person reviewed the types, and a different reviewer would draw some lines elsewhere. Type discovery read a sample, so it missed any kind of entity found only outside it. The type-review counts come before the software merged aliases, so “GE” and “General Electric” count twice in them. And the 25-message threshold is a proxy: a real company’s newest customer may have two emails and still belong in its brain.

The methodology has every number and publishes every audit verdict. The pages are the better argument, though. Pick a company you’ve heard of and drag the slider.