arXiv:2610.28799cs.CLOct 2026

Manuscript Offprint

arXiv:2610.28799

Where Do Legal Factors Live in LLMs?

Li Zhang, Kevin Ashley

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Li ZHANG a,1^{a,1} and Kevin D. ASHLEY a^{a}

a^{a} University of Pittsburgh, USA

Abstract. In case-based legal reasoning, legal professionals identify legally significant fact patterns in a new dispute and compare them with those of decided cases. In AI & Law, HYPO dimensions and CATO factors represent these patterns symbolically, organizing expert knowledge distilled from case narratives as explicit, structured, interpretable, and auditable legal concepts and relations that support case comparison, legal argument, and precedent-based reasoning. Large language models (LLMs) are increasingly used for legal tasks, yet their internal organization of legal knowledge remains difficult to trace. We investigate whether LLMs form internal representations corresponding to all 26 CATO factors. Two research questions examine linear decodability and sparse localization with sparse autoencoders. Experiments cover three open models, Qwen3-1.7B, Qwen3-8B, and Gemma-2 2B, supported by cross-model comparison and human audit of controlled natural-language passages. Results show that all 26 factors are linearly decodable in all three models. Single-feature sparse readouts cover the complete factor catalog, with best-layer test AUCs ranging from 0.86 to 1.00. Five selected features approach full-vector readout performance. We report 78 model-specific layer-feature coordinates, one for each factor in each model. Together, these results show that information corresponding to expert-defined legal factors can be read from the internal activations of LLMs processing legal narratives. By locating these readouts, our study connects legal language and the symbolic abstractions of HYPO and CATO to learned internal representations.

Keywords. large language models, legal factors, legal text analysis, sparse autoencoders, mechanistic interpretability

1. Introduction

Case-based legal reasoning compares a new case with decided cases. Legal professionals identify the facts that made a difference in earlier cases, argue from similarities and differences, and explain outcomes in those terms. AI & Law research has long represented such knowledge symbolically, at a level between raw case facts and ultimate legal conclusions [1,2]. HYPO and CATO are classic examples. HYPO represents factual differences that favor different parties in trade-secret disputes as dimensions [1]; CATO organizes such patterns into 26 factors, stereotypical fact patterns distilled by legal experts from case narratives [2]. Factors make legally significant differences explicit, supporting case comparison, argument construction, and explanations of which facts support a conclusion [3,4,5,6,7].

1^{1}Corresponding Author: Li Zhang; e-mail: liz239@pitt.edu.

Code and corpus: https://github.com/lizhang-AIandLaw/FactorScope-LLM.

Figure

Figure 1. Overview of legal-factor analysis. (a) HYPO and CATO employ legally significant fact patterns abstracted from natural-language narratives. Subsequent work prompts LLMs to identify these factors in text. (b) This work examines internal representations in pretrained LLMs: RQ1 reads factor presence from full activations, and RQ2 identifies one or five SAE features supporting the readout.

LLMs can identify factors and perform other legal tasks [7,8,9,10,11,12]. Their outputs, however, leave open how legal-factor information is represented internally. For example, a model may associate a passage with reverse engineering because it recognizes that a product's information can be recovered by inspection, because it recognizes familiar wording, or because it recognizes the surrounding commercial context. Examining internal representations could help diagnose such differences and provide evidence for auditing legal applications.

We ask: Can internal signals corresponding to expert-defined legal factors be identified in LLMs? CATO supplies the legal reference against which these signals can be examined. We address two research questions:

RQ1. Can the presence of each CATO factor be read from the model's internal activations by a simple classifier?

RQ2. Can this information be localized to a small number of inspectable internal features?

For RQ1, we train a linear probe: a simple classifier that reads the internal state of an LLM. For RQ2, we use a sparse autoencoder (SAE) to express that state in terms of candidate features, then test how well one or five selected features distinguish factor-present from factor-absent passages. We report concrete layer and feature coordinates for every factor in each model. The LLMs and released SAEs remain fixed; only the separate readout classifiers are fitted to factor labels. The reported coordinates give legal experts and developers concrete objects to inspect. A readout can be tested on new passages that experts have labeled against the factor definitions, and the activations of the selected features on individual passages can be compared with those definitions.

Our experiments cover the complete 26-factor catalog and three model–SAE pairs: Qwen3-1.7B, Qwen3-8B, and Gemma-2 2B. We construct controlled passages, validate their labels across models and through human audit, and evaluate factor readouts on a

Table 1. The CATO factor catalog (F1–F27; F9 is vacant). (P)/(D) marks the party the factor favors.

IDFactor (side)Meaning (short)
F1Disclosure-in-negotiations (D)Plaintiff disclosed its information to defendant in negotiations.
F2Bribe-employee (P)Defendant paid plaintiff's employee to defect with its information.
F3Employee-sole-developer (D)Defendant's employee solely developed plaintiff's product.
F4Agreed-not-to-disclose (P)Defendant signed a nondisclosure agreement with plaintiff.
F5Agreement-not-specific (D)The agreement did not specify what was confidential.
F6Security-measures (P)Plaintiff adopted concrete security measures.
F7Brought-tools (P)Plaintiff's ex-employee brought development materials along.
F8Competitive-advantage (P)Access to plaintiff's information saved defendant time or expense.
F10Secrets-disclosed-outsiders (D)Plaintiff disclosed product information to outsiders.
F11Vertical-knowledge (D)The information concerns customers and suppliers.
F12Outsider-disclosures-restricted (P)Disclosures to outsiders carried confidentiality restrictions.
F13Non-competition-agreement (P)The parties entered a non-competition agreement.
F14Restricted-materials-used (P)Defendant used materials under confidentiality restrictions.
F15Unique-product (P)Plaintiff was the only manufacturer of the product.
F16Info-reverse-engineerable (D)The information could be learned by reverse-engineering.
F17Info-independently-generated (D)Defendant developed its product independently.
F18Identical-products (P)Defendant's product was identical to plaintiff's.
F19No-security-measures (D)Plaintiff adopted no security measures.
F20Info-known-to-competitors (D)The information was known to competitors.
F21Knew-info-confidential (P)Defendant knew the information was confidential.
F22Invasive-techniques (P)Defendant used invasive techniques to obtain the information.
F23Waiver-of-confidentiality (D)Plaintiff waived confidentiality by agreement.
F24Info-obtainable-elsewhere (D)The information was available from public sources.
F25Info-reverse-engineered (D)Defendant actually reverse-engineered the information.
F26Deception (P)Defendant obtained the information through deception.
F27Disclosure-in-public-forum (D)Plaintiff disclosed the information in a public forum.

separate test partition. All 26 factors are readable from the internal states of all three models, and a few SAE features provide strong readouts. Factor information is thus readable both from full activation vectors and from a small set of identifiable SAE features. Figure 1 situates our study in this line of work.

References (30)