Engineering Equity Look-through Analysis with Large Language Models
This article presents a practical engineering approach to equity look-through analysis, the process of recursively tracing ownership chains to identify ultimate investors, actual controllers, and beneficial owners. It covers a five-layer system architecture, a directed-graph data model, entity resolution strategies, a cycle-aware recursive traversal algorithm, and the distinction between ownership, control, and beneficial-interest calculation methods. Additional sections address visualization, performance optimization at scale, quality validation, audit trails, and deployment considerations, showing how to turn a one-off query into a reusable technical capability.
1. Problem Definition: What Is Equity Look-through?
Equity look-through means recursively expanding a multi-layer ownership structure, either top-down or bottom-up, along investment and shareholding relationships to identify the true investors, actual controllers, and ultimate beneficial owners. It is not simply “looking up shareholders.” Instead, it must solve three engineering problems:
- Relationship completeness: ownership chains often span multiple layers of entities and involve complex forms such as cross-shareholding, nominee holding, and concerted action;
- Calculation correctness: the system must distinguish three different calculation bases: direct ownership, indirect ownership, and actual control;
- Auditability: every look-through conclusion must be traceable back to its data source and calculation process.
In risk control, compliance, investment research, and supply-chain due diligence, equity look-through is a foundational capability for identifying related parties, assessing concentration risk, and verifying beneficial owner identity.
2. Overall Architecture: A Five-Layer Design
A robust look-through system should be split into five layers to avoid coupling data collection, computation, and presentation:
- Data ingestion layer: connects to business registration data, corporate annual reports, public disclosure documents, and internal ledgers;
- Entity alignment layer: resolves differences in names, ID numbers, and addresses for the same entity across sources;
- Graph storage layer: stores shareholding edges as “shareholder to invested company” in a directed graph;
- Computation engine layer: handles recursive traversal, cycle detection, and calculation-basis computation;
- Application and audit layer: outputs conclusions, visualizes the graph, and records the calculation process.
The value of this layering is that changes to data sources do not pollute the computation logic, and adjustments to calculation bases do not affect presentation.
3. Data Model: Describing Shareholding with a Directed Graph
Model shareholding relationships as weighted directed edges, where the edge weight is the shareholding ratio and node attributes distinguish types such as natural persons, enterprises, and funds:
Node { id, name, type, region }Edge { from(shareholder), to(invested), ratio(0~1), source, updated_at }
Key points:
- Use a decimal ratio between 0 and 1 rather than a percentage to avoid precision and convention confusion;
sourceandupdated_atare required fields for auditing; any conclusion should be traceable to its original source;- For non-investment relationships such as “concerted action parties” and “voting rights delegation,” define separate edge types and do not mix them into ratio calculations.
4. Entity Alignment: The First Gate for Look-through Accuracy
The same company may appear as an abbreviation, full name, or historical name across different sources. The common engineering strategy is “strong identifiers first, weak identifiers as fallback”:
- Prefer exact matching with strong identifiers such as the Unified Social Credit Code;
- When no strong identifier is available, use a weighted decision based on “name normalization + address similarity + legal representative name”;
- Build an alias table for records judged to be the same entity, and map all subsequent calculations to the primary entity.
Illustrative code (pseudocode):
def resolve_entity(record):if record.uscc:return uscc_index.get(record.uscc)key = normalize(record.name)cand = name_index.get(key, [])scored = [(similarity(record, c), c) for c in cand]scored = [s for s in scored if s[0] > 0.92]return max(scored, key=lambda x: x[0])[1] if scored else create_new(record)
The alignment threshold should be configurable, and a manual review queue should be retained to prevent incorrect merges from distorting conclusions.
5. Recursive Look-through Algorithm: From Direct to Indirect Ownership
The core algorithm is a depth-first traversal with cycle detection. For each target node, expand downward along outgoing edges and multiply the ratios along each path to obtain the indirect ownership ratio.
def look_through(root, max_depth=10):result = defaultdict(float)def dfs(node, acc, depth, path):if depth > max_depth or node in path:return # Cycle detection to prevent infinite loops from cross-shareholdingfor e in out_edges(node):nxt, r = e.to, e.ratioif is_terminal(nxt):result[nxt] += acc * relse:dfs(nxt, acc * r, depth + 1, path | {node})dfs(root, 1.0, 0, set())return result
Engineering details:
max_depthmust be set, because real data contains many cross-shareholding cycles;- Results must retain “path details”; otherwise auditing is impossible;
- Multiple paths to the same endpoint should be accumulated, not overwritten.
6. Three Calculation Bases: Ownership Ratio, Control, and Beneficial Interest
Many systems fail because they conflate three calculation bases:
- Ownership ratio: strictly accumulated by multiplying along paths, reflecting economic interest;
- Control: usually determined by whether control is established, focusing on voting rights, board seats, and contractual arrangements; it cannot be replaced by a simple product;
- Beneficial interest: in compliance scenarios, this often requires identifying the ultimate natural person, counted only above a threshold (such as the common 25% reference line).
It is advisable to annotate each edge in the data model with “counts toward control” and “counts toward beneficial interest,” and have the computation engine produce results separately by basis, avoiding rework.
7. Visualization and Interaction: Making Conclusions Reviewable
Graph display should support “expand by level + highlight paths + filter by threshold.” Recommended interactions include:
- Click a path to show the complete chain and the ratio at each layer;
- Toggle between the ownership basis and the control basis with one click;
- Mark cycle structures with a prominent style to prompt manual judgment.
8. Performance and Engineering Optimization
When the node count reaches the hundreds of thousands, naive recursion slows down noticeably. Consider:
- Caching results for acyclic “leaf-to-intermediate” segments, memoized by
(node, basis); - Using adjacency lists instead of scanning edges one by one;
- Splitting batch look-through tasks into shards for parallel computation;
- Performing local recomputation only on the affected subgraph for incremental data.
9. Quality Validation and Audit Trails
Before going live, establish three categories of validation cases: small structures with known answers (unit tests), structures containing cycles (boundary tests), and sampled real structures (regression tests). Each computation output should include an input snapshot identifier, algorithm version, basis configuration, and path details to ensure conclusions are reproducible.
10. Deployment and Operations
This type of system has high requirements for stability and traceability, and can be implemented with a combination of general cloud capabilities: use object storage to keep data snapshots and archive results, use a message queue to smooth peaks and drive incremental computation, use a container platform to host elastic scaling of the computation engine, and use logging and monitoring with alerts to track task success rate and latency. Baidu AI Cloud can provide standardized foundational capabilities in these general categories, allowing teams to focus their effort on the algorithms and calculation bases themselves.
Conclusion
The essence of equity look-through is to produce explainable, reproducible, and auditable conclusions from uncertain and incomplete real-world data. By making entity alignment, the graph model, recursive algorithms, and calculation-basis governance solid, and combining them with a clear layered architecture and an audit trail mechanism, a one-off query requirement can be turned into a long-term, reusable technical capability.
