Equity Structure in LLM Funding: A Technical Guide to Modeling, Penetration, and Auditing

    This article explains how to model the equity structure behind large language model funding rounds as a time-aware directed graph. It covers a three-layer design (entity, relationship, and view layers), the correct penetration algorithm based on path multiplication and summation, permission and isolation design for multiple investors, event sourcing for consistency and auditability, and compliance boundaries. A deployment checklist is included to help teams make every ownership change reproducible, traceable, and explainable.

    1. From a Funding Event to an Engineering Problem

    Public records show that the business entity of an LLM company recently completed a change: registered capital increased by roughly 20%, and a limited partnership was added as a shareholder. Looking through this holding platform reveals more than thirty partners, including industry players and financial investment institutions, while the founder continues to serve as the managing partner through a business consulting entity, with a shareholding diluted to a very low level.

    Translated into engineering language, this type of information contains only three problems: how to represent entity relationships, how to calculate equity ratios, and how to audit the change process. None of these are specific to any particular company; any system handling multiple funding rounds and multiple shareholders must deal with them.

    It is worth emphasizing that this article does not discuss the business arrangements of any specific company. It treats this type of structure only as a modeling sample. The genuinely valuable engineering conclusion is this: a funding structure is essentially a directed graph with a time dimension. Nodes are legal entities and natural persons, edges are investment relationships, and edges carry attributes such as ratio, subscribed amount, and effective time. Every “look-through ratio” disclosed externally is a path product on this graph.

    2. Core Modeling: Three-Layer Abstraction and the Penetration Algorithm

    2.1 Layered Structure

    The model should be divided into three layers to avoid coupling business semantics with computation logic:

    • Entity layer: legal entities, partnerships, and natural persons are uniformly abstracted as Entity, using a stable identifier rather than a name as the primary key (names change; identifiers do not).
    • Relationship layer: investment/ownership relationships are abstracted as StakeEdge, containing from, to, ratio, paidIn, effectiveAt, and expireAt.
    • View layer: external disclosure, internal risk control, and tax perspectives each generate materialized views that do not contaminate one another.

    2.2 The Correct Penetration Algorithm

    Penetration is not simple addition; it is path multiplication followed by summation. If a founder indirectly holds a very small share of the platform through a controlling entity and also directly holds the operating entity, the final ratio is the sum of the two paths. A schematic implementation:

    1. from collections import defaultdict
    2. def penetrate(edges, root, target):
    3. """Calculate the look-through ownership ratio of root in target (assuming no cycles)"""
    4. adj = defaultdict(list)
    5. for e in edges:
    6. adj[e.from_id].append(e)
    7. total = 0.0
    8. stack = [(root, 1.0, {root})]
    9. while stack:
    10. node, acc, visited = stack.pop()
    11. if node == target:
    12. total += acc
    13. continue
    14. for e in adj[node]:
    15. if e.to_id in visited: # cycle protection
    16. continue
    17. if e.expire_at and e.expire_at < e.effective_at:
    18. continue
    19. stack.append((e.to_id, acc * e.ratio, visited | {e.to_id}))
    20. return round(total, 6)

    Three points must be handled carefully in engineering. First, cycles: cross-shareholding can send naive recursion into an infinite loop. Second, precision: ratios should be stored as fixed-point numbers or fractions, because floating-point accumulation produces visible errors after multiple levels. Third, time slicing: any ratio is valid only within a specific time interval, so queries must take a point-in-time parameter.

    3. Permission and Isolation Design for Multiple Investors

    When more than thirty partners connect at the same time, the most error-prone aspect is not computation but visibility. The mature approach is to build a permission matrix that makes explicit “who can see which layer”:

    Role Visible Scope Typical Operations
    Managing partner Full look-through Initiate changes, generate filing materials
    General investor Own position and upper paths Query own ratio, download certificates
    Audit/compliance Full read-only Export snapshots, compare differences
    External disclosure Desensitized aggregate view Read-only summary perspective

    Three foundational capabilities are also required: object storage to hold change snapshots and certificate files, a message queue to broadcast business registration change events to downstream risk control and finance systems, and logging/monitoring/alerting services to intercept anomalies such as “ratios not summing to 1” and “inverted effective times” in real time. These are all general cloud capability categories; selection should be based on whether versioning is supported and whether audit trails are retained.

    4. Data Consistency and Auditability

    The thing a funding structure fears most is “two sets of books.” The recommended approach is event sourcing: never overwrite old records, only append change events, so the state at any historical point can be reconstructed by replay.

    1. -- Append-only change table (schematic)
    2. CREATE TABLE stake_event (
    3. event_id BIGINT PRIMARY KEY,
    4. entity_from VARCHAR(64) NOT NULL,
    5. entity_to VARCHAR(64) NOT NULL,
    6. ratio DECIMAL(18,8) NOT NULL,
    7. effective_at DATE NOT NULL,
    8. recorded_at TIMESTAMP NOT NULL,
    9. payload_hash CHAR(64) NOT NULL
    10. );

    payload_hash is used for chained verification; any after-the-fact tampering will cause verification to fail. Before external disclosure, run a conservation check: the sum of all direct edge ratios for the same entity should be approximately 1 (a minimal rounding difference is allowed); otherwise, there is a data entry error.

    5. Compliance and Privacy Boundaries

    Although equity information falls within the scope of public registration, it enters a sensitive zone once associated with internal financial and employee incentive data. Implementation should adhere to the minimization principle: disclosure views retain only aggregated results; query interfaces trim fields by role; and desensitization plus authorization checks are completed before cross-border or cross-entity transfer. In engineering terms, writing compliance rules as executable validators rather than document clauses is the only way to sustain them over the long term.

    6. Deployment Checklist

    1. Is the entity primary key stable, and has the association breakage caused by name changes been prevented?
    2. Does the penetration algorithm handle cycles, precision, and time slicing?
    3. Does change storage use an append-only model and support replay?
    4. Does the permission matrix cover all four roles: managing partner, investor, audit, and external disclosure?
    5. Are conservation checks and anomaly alerting in place?
    6. Has the disclosure perspective undergone desensitization and minimization trimming?

    Treating the funding structure as a graph reduces complexity from “chaotic relationships” to “deterministic algorithms.” This is also the key judgment this article wants to convey: the more complex the structure, the more necessary it is to codify the rules, making every change recomputable, traceable, and explainable.