Equity Look-Through Analysis with Large Language Models: An Engineering Practice Guide

    This article explains how to build an engineering pipeline for equity look-through analysis using large language models. It covers the graph-based problem definition, data collection and entity resolution, information extraction from text into structured triples, graph construction and traversal algorithms, quality control, and cloud architecture. Readers will learn the core rules of look-through computation, common pitfalls, and how to deliver reproducible offline jobs with online query services.

    1. Problem Definition: What Is Equity Look-Through

    Equity look-through means expanding ownership relationships layer by layer, either upward or downward, until you identify the ultimate beneficial owners, actual controllers, or parties acting in concert. This is not a single-table query but a typical graph computation problem:

    • Nodes: legal entities, natural persons, limited partnerships, employee stock ownership platforms, and so on.
    • Edges: capital contributions, shareholding, voting rights delegation, contractual control, and other relationships, with attributes such as ratio, date, and currency.
    • Goal: given a starting entity and a look-through threshold, output reachable paths, cumulative ratios, and control determinations.

    In engineering practice, two directions are usually distinguished. Upward look-through identifies “who ultimately controls this company,” while downward look-through identifies “which assets this company ultimately holds.” Both share the same graph structure, but differ in traversal direction and aggregation rules.

    2. Data Sources and Collection Strategy

    The upper limit of look-through quality is determined by data. Common sources include public disclosure documents, publicly available business registration query results, tender and annual report texts, press releases, and interviews. It is important to note that any collection activity should stay within what the target site permits, respect access rate limits and data usage terms, and avoid bypassing technical protection measures.

    The collection layer should do three things:

    1. Keep unified raw snapshots. Each fetch should save the original text and the fetch time, forming an immutable evidence chain for later recomputation and dispute tracing.
    2. Establish entity identifiers. Company names have abbreviations, full names, historical renamings, and simplified/traditional Chinese differences, so you must maintain a mapping table of “name—unified social credit code/registration number—historical aliases.”
    3. Record source credibility. Attach a source type and confidence score to each relationship edge so that aggregation can filter by threshold.

    3. Information Extraction: From Text to Structured Triples

    Model-related texts, such as new model release notes and technical explainer articles, often mix in a large amount of content unrelated to equity. You need to first perform layout and semantic segmentation, then extract structured facts. A practical pipeline looks like this:

    1. # Example: text -> candidate relationship triples -> normalization
    2. def extract_triples(text):
    3. # 1) Sentence splitting and entity recognition (entities, ratios, dates)
    4. sents = split_sentences(text)
    5. ents = ner(sents) # returns (entity, ratio, time) candidates
    6. # 2) Relation classification: shareholding / voting rights delegation / contractual control / appointment
    7. rels = relation_classifier(sents, ents)
    8. # 3) Normalization: ratios unified as decimals, entities aligned to unique identifiers
    9. return normalize(rels)
    10. def normalize(rels):
    11. out = []
    12. for r in rels:
    13. r["ratio"] = parse_ratio(r["ratio_text"]) # "34.5%" -> 0.345
    14. r["src"] = resolve_entity(r["src_name"])
    15. r["dst"] = resolve_entity(r["dst_name"])
    16. out.append(r)
    17. return out

    Common pitfalls in the extraction stage include mixing percentages with “ten thousand shares/registered capital,” indirect shareholding expressions (“indirectly holds through a certain platform”), and tense differences such as “proposed acquisition” versus “transfer completed.” It is recommended to retain tense and status as edge attributes rather than discarding them during extraction.

    4. Graph Construction and Look-Through Algorithms

    After writing triples into a graph structure, look-through is essentially constrained traversal and aggregation. There are three core rules:

    • Ratio multiplication: the cumulative ratio of path A→B→C is the product of the ratios along each edge.
    • Multi-path summation: when multiple paths lead to the same target, cumulative ratios are added, but deduplication is needed to avoid double counting.
    • Threshold pruning: when the cumulative ratio of a path falls below a set threshold (such as 1%), stop expanding further downward to control computational scale.
    1. def lookthrough(graph, start, direction="down", threshold=0.01):
    2. results = {}
    3. stack = [(start, 1.0, [start])]
    4. while stack:
    5. node, acc, path = stack.pop()
    6. for nxt, w in graph.neighbors(node, direction):
    7. new_acc = acc * w
    8. if new_acc < threshold:
    9. continue
    10. if nxt in path: # circular shareholding detection
    11. results.setdefault("cycles", []).append(path + [nxt])
    12. continue
    13. results[nxt] = results.get(nxt, 0.0) + new_acc
    14. stack.append((nxt, new_acc, path + [nxt]))
    15. return results

    Actual control determination cannot rely on ratios alone. It needs to be combined with “soft control” evidence such as board seats, voting rights delegation, concerted action agreements, and appointment/removal of key positions. Therefore, the graph model should support multiple edge types and allow configurable weights.

    5. Quality Control and Validation

    Look-through results must be explainable and recomputable. Four types of validation are recommended:

    1. Consistency checks: whether the sum of ratios at each layer matches the disclosed figures; when an obvious gap appears, trace back to extraction omissions.
    2. Cycle detection: cross structures where A holds B and B holds A should be flagged separately to avoid infinite recursion.
    3. Time slicing: equity changes with transactions, so versioning by date is needed to support “look-through at a given point in time.”
    4. Human review loop: low-confidence edges enter a pending review queue, and review conclusions are written back as training or rule samples.

    6. Engineering Implementation and Cloud Architecture

    For production, you can combine general cloud capabilities: object storage for raw snapshots and graph export files; a message queue to decouple collection and extraction tasks; a container platform to host extraction services and graph computation jobs; and logging, monitoring, and alerting services for tracing and failure retries. Baidu AI Cloud is typically used in such scenarios to carry the above general capabilities, and specific choices should be evaluated based on your own data scale and compliance requirements.

    7. Common Pitfalls

    • Treating “name matching” as “entity uniqueness,” causing the same group to be split into multiple nodes.
    • Ignoring the share structure of limited partnerships and misjudging the actual controller.
    • Performing only single-point-in-time computation, unable to answer questions about historical equity changes.
    • Conflating extraction confidence with business conclusions, lacking a human fallback.

    8. Summary

    The difficulty of equity look-through lies not in traversal itself but in data governance: entity normalization, relation extraction, point-in-time versioning, and explainable validation together determine the usability of results. Only by turning this process into reproducible offline jobs plus an online query service can it reliably support scenarios such as risk control, investment research, and compliance review under compliance requirements.