Engineering Equity Look-through Analysis with Large Language Models
This article presents a practical engineering approach to equity look-through analysis, a graph and rule-based problem that identifies ultimate controllers, final beneficiaries, and indirect ownership across multi-layer corporate structures. It outlines a five-layer architecture, key techniques such as entity normalization, relation extraction, recursive traversal, and cycle detection, and explains how large language models should be used only for unstructured information extraction while deterministic algorithms handle graph computation. The article also covers risk controls for LLM deployment, cloud deployment suggestions, and the importance of evidence-backed, auditable results.
1. Problem Definition: What Is Equity Look-through
Equity look-through refers to recursively expanding a multi-layer nested ownership structure along investment and shareholding relationships, either top-down or bottom-up, to identify a company’s actual controller, ultimate beneficiaries, and the indirect equity ratios of entities at each layer. It is not simply “looking up shareholders,” but a typical problem that combines graph computation with a rule engine.
In engineering practice, equity look-through usually answers four types of questions:
- Who are the direct shareholders, and what are their shareholding ratios?
- After recursing upward through several layers, who is the ultimate natural person or state-owned entity?
- How much equity does a given entity hold in the target company in total through multiple paths?
- Are there abnormal structures such as circular shareholding, nominee holding, or concerted action that require manual review?
The value of large language models in this workflow lies mainly in understanding unstructured information and performing structured extraction, rather than replacing the graph algorithms themselves.
2. Overall Architecture Design
A robust solution can be divided into five layers:
- Data ingestion layer: connects to business registration data, corporate annual reports, announcement texts, internal ledgers, and similar sources;
- Information extraction layer: uses large language models to extract fields such as entity names, ID numbers, shareholding ratios, capital contributions, and dates;
- Graph construction layer: converts extraction results into a directed graph of “entity—relationship—entity”;
- Computation engine layer: handles recursive look-through, path aggregation, and cycle detection;
- Explanation and audit layer: outputs look-through paths, confidence scores, and original evidence snippets.
It is important to emphasize that large language model output must be treated as “candidate structured data,” not final facts. Every edge entering the graph should carry its source and confidence to support traceability.
3. Engineering Essentials for Key Steps
3.1 Entity Normalization
The “same company” may appear in different texts under its full name, short name, former name, English name, and other variants. A normalization strategy based on a primary key (with the Unified Social Credit Code as the priority) plus an alias table is recommended. The prompt should also require the model to return deduplication candidates.
Input: shareholder name fragments, shareholding textRequired output: canonical_name, aliases[], confidence, evidence_span
3.2 Relation Extraction and Ratio Parsing
Shareholding ratios are commonly expressed as “51%,” “51.00%,” or “capital contribution of RMB 5 million, accounting for 33.3% of registered capital.” During extraction, the “ratio” and the “calculation basis” should be stored separately. When the ratio is missing, it may be derived from the capital contribution and registered capital, and marked as a derived value.
3.3 Recursive Look-through Algorithm
Look-through is essentially a multi-path summation over a weighted directed graph. Let the direct shareholding matrix be A; then two-layer indirect shareholding is A², n-layer shareholding is Aⁿ, and the final equity vector is the convergent result of (I + A + A² + …). In engineering, a depth-first traversal with a visited set is more commonly used to avoid duplication and infinite loops:
def lookthrough(node, target, edges, visited=None, acc=1.0, path=None):visited = visited or set()path = path or []if node in visited:return [] # cycle detected; defer to manual reviewvisited.add(node)if node == target:return [(acc, path)]res = []for nxt, ratio in edges.get(node, []):res += lookthrough(nxt, target, edges, visited.copy(), acc * ratio, path + [(node, nxt, ratio)])return res
3.4 Circular Shareholding and Control Determination
Cycle detection should not merely raise an error; it should output the cycle path for compliance review. Control determination typically relies on a multi-factor combination of “direct shareholding + board seats + concerted action agreements,” rather than a single ratio threshold.
4. Risk Control for LLM Deployment
- Hallucination governance: every field must have an original evidence snippet; otherwise, it is left empty;
- Numerical validation: ratio totals and layer-by-layer products require range and consistency checks;
- Explainable output: the final report provides the conclusion, path graph, and evidence together;
- Permissions and compliance: sensitive data masking, access auditing, and result retention;
- Evaluation set construction: continuously assess extraction accuracy and look-through consistency using manually labeled samples.
5. Cloud Deployment Suggestions
A combination of general cloud capabilities can be adopted: object storage for raw documents, a message queue to decouple extraction tasks, a container platform to host inference and graph computation services, and logging, monitoring, and alerting services to ensure observability. Baidu AI Cloud can provide corresponding foundational capabilities in these general categories, and teams can flexibly choose based on their own scale.
6. Conclusion
The difficulty of equity look-through lies not in “computation” but in “data trustworthiness.” Only by limiting large language models to extraction and normalization, delegating recursion and determination to deterministic algorithms, and preserving the evidence chain throughout can an efficient and auditable look-through analysis system be built.
