Equity Look-through Analysis with Large Language Models: A Technical Practice Guide
This article explains how to build an auditable equity look-through system that combines large language models with deterministic graph algorithms. It covers the problem definition, a five-layer architecture, a property graph data model, core implementation details such as recursive multiplication of ownership paths, cycle detection, control and beneficial ownership calculation, and the role of LLMs in extracting ownership triples from unstructured filings. It also outlines engineering and compliance practices, including idempotency, incremental updates, scaling, data protection, and result traceability, plus common pitfalls to avoid.
1. Problem Definition: What Is Equity Look-through
Equity look-through is the process of expanding a shareholding relationship layer by layer, either downward or upward, until it reaches the ultimate natural persons, state-owned entities, or public shareholders. It is a foundational capability in anti-money-laundering checks, related-party identification, bid qualification review, and investment risk control. The traditional approach relies on manually reviewing public disclosure documents, which is slow and hard to audit. Once the ownership chain exceeds five layers and involves cross-shareholding and multi-level nesting, manual analysis becomes nearly impossible.
It is worth emphasizing that this article discusses general-purpose graph analysis techniques, independent of any specific LLM product or its version updates. Over the past year, progress in LLM reasoning and long-context processing has significantly improved the accuracy of the upstream step of extracting ownership relationships from unstructured announcements. However, the look-through calculation itself should still be performed by deterministic graph algorithms rather than freely generated by a model; otherwise, auditability cannot be guaranteed.
2. Layered Architecture
A practical equity look-through system is typically divided into five layers:
- Data ingestion layer: Collect public disclosure information, business registration data, periodic reports from listed companies, and store everything in object storage while retaining the original files for traceability.
- Extraction and structuring layer: Use intelligent document parsing to extract “shareholder—investee—ownership ratio” triples from text, producing candidate relationships with confidence scores.
- Entity alignment layer: Resolve differences in names, ID numbers, and former names for the same entity across sources.
- Graph computation layer: Build a directed weighted graph and run recursive traversal, cycle detection, and control calculation.
- Service and audit layer: Expose look-through results through APIs and write the input snapshot and algorithm version of each calculation to a logging service to meet compliance review requirements.
3. Data Model Design
A property graph model is recommended. Nodes are divided into three types: natural persons, legal entities, and unincorporated organizations. Edges represent shareholding relationships and carry attributes such as ratio, date, and source.
Node: { id, type, name, id_number_hash, region }Edge: { from, to, ratio, effective_date, source_id, confidence }
ratio should be stored uniformly as a decimal between 0 and 1 to avoid duplicate calculation errors caused by mixing percentages and decimals. effective_date supports looking back at the historical ownership structure as of a given point in time, which is a hard requirement in many business scenarios.
4. Core Algorithm Implementation
4.1 Recursive Look-through and Multiplicative Chains
Multiplying ratios along edges downward gives the look-through ratio. To avoid stack overflow when depth is large, engineering practice should use an explicit stack instead of a recursive function:
def lookthrough(graph, start, threshold=0.01):result, stack = {}, [(start, 1.0, [start])]while stack:node, weight, path = stack.pop()for nxt, ratio in graph.out_edges(node):w = weight * ratioif w < threshold:continueif nxt in path: # cycle detectedresult.setdefault('cycles', []).append(path + [nxt])continueresult[nxt] = result.get(nxt, 0.0) + wstack.append((nxt, w, path + [nxt]))return result
threshold is used for pruning. In practice it can be set on the order of one thousandth to balance precision and performance.
4.2 Cross-shareholding Detection
Cross-shareholding can trap a naive traversal in an infinite loop. Besides path deduplication, you can pre-mark all cycles across the whole graph using a strongly connected components algorithm, contract each component into a super node, and then run the calculation. This substantially reduces repeated computation.
4.3 Control and Beneficial Ownership
The look-through ratio is not the same as control. The common industry practice is to compare the “direct ownership ratio” with the “ratio calculated by voting rights” and merge them as a union in combination with acting-in-concert relationships. Beneficial ownership identification usually layers on threshold rules, for example treating direct plus indirect equity above a certain ratio as a candidate and then excluding purely financial holdings.
4.4 Where LLMs Fit in the Extraction Step
Models are well suited to entity disambiguation, table structure restoration, and semantic classification of announcements. Their output should be treated as candidates with confidence scores and validated by a rules engine before being stored. You can require the model to return structured results with the original text location for manual spot checks:
{"shareholder":"an entity","investee":"a company","ratio":0.34,"evidence_page":12}
5. Engineering and Compliance Considerations
- Idempotency and replayability: Fix the graph snapshot version for each calculation so that the same input always yields the same output.
- Incremental updates: Drive partial recomputation with an event stream of ownership changes instead of rebuilding the whole graph; a message queue can help smooth out peaks.
- Performance and elasticity: When the graph is large, use a container platform to scale computation shards horizontally, with monitoring and alerting to track traversal latency.
- Data compliance: Use only data from lawful sources, hash or mask sensitive fields such as ID numbers, and audit all access.
- Result explanation: Output must provide the source and timestamp of each chain so that conclusions can be traced back to the original disclosure.
6. Common Pitfalls
The first is treating the look-through ratio as actual control. The second is ignoring historical points in time and answering questions about the past with the current structure. The third is letting the model directly generate final ratios without deterministic validation. The fourth is missing cycle handling, which leads to service timeouts. The key to avoiding these problems is to uphold the separation of responsibilities: models handle understanding, algorithms handle calculation, and logs handle evidence.
