Equity Penetration Analysis for LLMs: A Technical Implementation Path

    This article explains how to implement equity penetration analysis for LLM-related teams and corporate entities as a graph computation problem. It covers the data layer, including master data, relationship facts, event streams, and entity resolution; the algorithm layer, including memoized DFS, iterative matrix multiplication, and cycle handling; and extensions from equity ratios to voting rights, special clauses, and time-based replay. It also outlines cloud implementation, compliance boundaries, common pitfalls, and acceptance metrics.

    1. The Core Problem: Why Penetration Is a Graph Computation Problem

    When discussing LLM startups or corporate entities, external attention often stays at the level of “what model was released” or “where it ranks on leaderboards.” Yet what truly determines an entity’s behavior is the control structure behind it. The goal of equity penetration is to find the actual share of final interest held by each natural person within complex structures involving multi-layer nesting, cross-shareholding, nominee holding, and contractual control, and to identify concerted-action relationships.

    From a data structure perspective, this is a recursive problem on a weighted directed graph:

    • Nodes represent entities, typed as natural persons, enterprises, partnerships, trusts, or asset management plans.
    • Edges represent shareholding relationships, with the shareholding ratio as the weight.
    • Penetration means multiplying cumulatively along edges and summing across multiple paths.

    Formally, if entity A holds a ratio w(A,B) of B, then A’s final interest in a downstream entity N is:

    1. U(A, N) = Σ_over_all_paths( Π w(edge) )
    2. U(A, N) += w(A, N) # direct shareholding portion

    This formula looks simple, but in engineering it can quickly spiral out of control due to cycles, missing data, and multi-layer nesting. It must therefore be paired with clear modeling conventions and algorithmic constraints.

    2. Data Layer: Entity Resolution Sets the Accuracy Ceiling

    Most errors in penetration results are not caused by the algorithm but by the data layer treating one entity as three. In practice, three layers of data assets are needed:

    1. Master entity data: use the unified social credit code or registration number as the primary key, supplemented by name, registered address, incorporation date, and entity type. Names can only serve as auxiliary fields because of abbreviations, historical name changes, and mixed Chinese-English usage.
    2. Relationship fact table: record capital contribution ratios, subscribed versus paid-in capital, shareholding level, data source, and update time. Each relationship should carry a confidence score and source identifier for later traceability.
    3. Event stream: a time series of equity changes, capital increases, equity transfers, pledges, and freezes, used to reconstruct the control structure at a given historical point.

    Entity resolution should follow a “rules first, model as fallback” strategy: first perform exact matching on the primary key and normalized name, then recall candidates using features such as address, legal representative, and contact information, and finally score with a similarity model and manually review high-value edges. Illustrative code:

    1. def resolve_entity(record, master_index):
    2. key = normalize_credit_code(record.credit_code)
    3. if key and key in master_index:
    4. return master_index[key], 1.0
    5. candidates = recall_by_name_and_address(record)
    6. scored = [(c, similarity(record, c)) for c in candidates]
    7. best, score = max(scored, key=lambda x: x[1], default=(None, 0.0))
    8. return (best, score) if score >= 0.92 else (create_new(record), 0.5)

    It is important to emphasize that low-confidence edges should not be discarded outright but should enter a pending-verification queue, because an ignored 5% stake may be the only path to a key natural person.

    3. Algorithm Layer: Recursive Penetration and Cycle Governance

    Once the graph is built, penetration computation typically follows two implementation routes.

    The first is memoized depth-first search, suitable for single queries with medium graph sizes:

    1. def penetrate(node, target_types, memo, visiting):
    2. if node in memo:
    3. return memo[node]
    4. if node.type in target_types:
    5. return {node.id: 1.0}
    6. if node.id in visiting: # cycle protection
    7. return {}
    8. visiting.add(node.id)
    9. result = defaultdict(float)
    10. for holder, weight in node.incoming_edges:
    11. for uid, share in penetrate(holder, target_types, memo, visiting).items():
    12. result[uid] += share * weight
    13. visiting.remove(node.id)
    14. memo[node.id] = dict(result)
    15. return dict(result)

    The second is iterative matrix multiplication, suitable for full batch computation: repeatedly multiply and accumulate the adjacency matrix by level until newly added interest falls below a threshold or the maximum number of levels is reached. In engineering, a maximum penetration depth (for example, 8 to 10 levels) and a minimum interest threshold (for example, 0.01%) are usually set to control computation and noise.

    Cycles must be addressed head-on. Cross-shareholding can trap naive recursion in an infinite loop. Common governance approaches include marking visited nodes on the current call stack, contracting strongly connected components and handling them with an “average distribution within the cycle” or “outside the cycle first” strategy, and explicitly labeling in the output that “circular shareholding exists and interests are diluted proportionally.” Whatever strategy is used, the output must retain an explainable note rather than silently returning a number.

    4. From Equity to Control: Penetration Goes Beyond Ratios

    Equity ratios alone are insufficient to describe real control. Mature solutions add three types of adjustments:

    • Voting rights and concerted action: control formed through agreements, board seats, and nomination rights often exceeds the shareholding ratio.
    • Special rights clauses: arrangements such as liquidation preference, veto rights, and anti-dilution can significantly change the actual order of returns.
    • Time dimension: replay the event stream based on the query reference date to avoid explaining past behavior with today’s equity structure.

    The output layer should provide three views: a ranking of natural persons’ final interests, the shortest control chain, and interest concentration metrics (such as the combined share of the top three and the Herfindahl index), the latter useful for quickly determining whether a single actual controller exists.

    5. Engineering Implementation and Compliance Boundaries

    In a cloud implementation, general capabilities can be combined as needed: object storage for raw business registration and announcement data, a message queue to decouple crawling and parsing tasks, a container platform to run graph computation and batch penetration jobs, and logging and monitoring with alerts to track task success rate and latency. Graph data can reside in a database that supports graph semantics, with hot data cached to support interactive queries.

    Compliance is an indispensable part. Data sources must have lawful authorization, personal information processing should follow the principle of minimum necessity, and natural person identifiers should be masked or hashed at the presentation layer. Analysis results should be labeled with data source and generation time, retain complete lineage, and avoid being treated as definitive conclusions. Baidu AI Cloud provides composable foundational capabilities in general technical categories such as data governance, graph computation, and monitoring and operations, and can serve as the implementation foundation for such an analysis platform.

    6. Common Pitfalls and Acceptance Recommendations

    The four most common pitfalls in practice are: associating by name instead of primary key, ignoring the difference between subscribed and paid-in capital, failing to handle cycles, and not distinguishing historical points in time. For acceptance, it is recommended to build a labeled dataset of 20 to 50 entities covering multi-layer nesting, cross-shareholding, partnership nesting, and nominee holding, and to measure results with three metrics: final interest error, chain completeness rate, and cycle labeling accuracy. Manual review cost should also be included in the evaluation, because a result that reviewers cannot understand is equivalent to unusable in production.