CONFIDENTIAL
© 2026 Fold Artists Research · All Rights Reserved

LUMINA Technical Paper

Gradient-Based Influence Attribution for AI Music Generators

Research Paper Version 9.0 May 2026

1Introduction

When an AI music generator produces audio, rightsholders need answers to three critical questions:

  1. Which training songs influenced the output?
  2. How much did each song contribute?
  3. How confident are we in these attributions?
💡 Core Insight

A model's gradients encode which parameters would change to better fit a sample. By comparing gradient signatures, we can identify which training songs share "influence DNA" with a generated output.

Attribution Pipeline

From generation to influence share — how we find who really taught the model what it used.

Generate + Accumulate
∇_θ log P(token_t)
JL Project
~6,656D per channel
Kernel Regression
(K+λI)⁻¹
Combine Channels
0.7·C + 0.3·R
Influence Share
|sᵢ|/Σ|sⱼ|

2Mathematical Foundations

Gradient Embedding per Sample

For each training sample xi and for the generated output xgen, the gradient extractor runs a forward pass of the trained model and accumulates per-token gradients with respect to the weights θT of the selected transformer layers. Gradients are computed only for transformer-layer weights — non-transformer components (input preprocessing, output rendering) are excluded. The summed gradient is then L2-normalized, producing one gradient embedding per sample:

Gradient Embedding φi = L2( ΣtθTt(xi) )

The same accumulation and L2 normalization is applied to xgen to obtain φgen. L2 normalization bounds the Gram-matrix entries and renders embeddings comparable across samples regardless of generation length.

Why Generation-Time?

Training-time gradients tell you what the model learned. Generation-time gradients tell you what the model used. Differentiating through the actual sampling process captures which transformer-layer weights shaped this specific output — without modifying training or requiring any instrumentation of the training procedure.

Johnson-Lindenstrauss Random Projection

Because gradient embeddings are very high-dimensional, a random projection matrix P is constructed in accordance with the Johnson–Lindenstrauss lemma and applied consistently to every gradient embedding:

Random Projection φ̃i = P φi      φ̃gen = P φgen

The projected dimension d′ is chosen to preserve pairwise inner products with bounded distortion (ε = 0.15), quantized to the nearest 512 multiple for GPU efficiency. Channel C and R each project from ~50M parameters to approximately 6,656D; the full-transformer baseline from ~805M to approximately 7,680D — on the order of 10³–10⁴.

Why JL Projection?

The same matrix P is applied to every embedding — training samples and generated content alike — so inner products in the projected space remain comparable across all samples. JL theory guarantees the distortion is bounded in expectation, making the downstream linear solve well-founded at practical projected dimensions.

Gradient Matrix and Regularized Linear Solve

The projected training embeddings are stacked into Φ̃train ∈ ℝn×d′. The gradient-matrix assembler constructs M and the similarity-vector constructor constructs b:

Gradient Matrix & Similarity Vector M = Φ̃train Φ̃train      b = Φ̃train φ̃gen

The regularized linear solver solves for u, then projects back to produce influence scores s ∈ ℝn:

Regularized Solve & Influence Scores (M + λI) u = b      s = Φ̃train u

λ = 10.0 is a Tikhonov-type ridge term ensuring numerical conditioning. Each s[i] estimates training sample i's contribution to the generated content — positive values indicate alignment with the generated output; negative values indicate the model diverged from that training direction.

Shared Credit

If two training songs shaped the model in the same direction, they share credit rather than both receiving full attribution. The regularized solve decorrelates overlapping gradient embeddings — songs whose projections are nearly collinear receive proportionally lower individual scores, preventing double-counting.

Dual-Channel Combination

Kernel regression is run independently on Channel C and Channel R projections. The combined influence score weights composition more heavily than production:

Combined Score score_combined[i] = 0.7 × score_C[i] + 0.3 × score_R[i]

The 0.7 / 0.3 split reflects the primacy of compositional influence in music copyright — melody, harmony, and structure outweigh timbral and production characteristics when attributing creative debt.

3Influence Quantification

Kernel regression returns a raw influence score for each training song — positive scores indicate the song pushed the model toward producing this output; negative scores indicate it pushed away. Scores are ranked by absolute value and expressed as a percentage of total absolute influence across the corpus:

Influence Share sharei = |scorei| / Σj |scorej| × 100%

This is computed on the combined score (0.7 × C + 0.3 × R). Attribution reports the top-K songs by absolute influence (default K = 10), along with their direction (positive = influence toward, negative = influence away).

Influence Direction

Unlike cosine similarity, kernel regression scores can be negative. A negative score means the training song's gradient signature actively pointed away from the generated output — the model learned something from it that it deliberately did not use here. Both positive and negative influence are real causal signals worth reporting.

4Dual-Channel Attribution

Gradient accumulation runs three parallel maps during each generation. Two form the dual-channel attribution system; the third is a full-transformer baseline used for comparison:

Gradient Map Separation
Generation (per-token backward)
Channel C — Composition
Channel R — Recording
Channel Layers Params Projected dim Captures
C — Composition 42–47 ~50M (attention only) ~6,656D Melody, Harmony, Structure
R — Recording 12–17 ~50M (FFN only) ~6,656D Timbre, Texture, Sound Design
Full (baseline) 0–47 ~805M (all) ~7,680D Validation baseline

Channel C tensors (per layer): self_attn.in_proj_weight, self_attn.out_proj.weight, cross_attention.in_proj_weight, cross_attention.out_proj.weight — 4 tensors × 6 layers = 24 tensors.
Channel R tensors (per layer): linear1.weight, linear2.weight — 2 tensors × 6 layers = 12 tensors.
Each channel is independently JL-projected with a different seed offset before the linear solve.

5Share Allocation

Kernel regression produces a raw influence score per training song. Shares are computed from the combined score (0.7 × C + 0.3 × R) by normalizing each song's absolute score against the total absolute influence across the corpus:

Influence Share sharei = |scorei| / Σj |scorej| × 100%

Attribution reports the top-10 songs by absolute influence along with each song's direction (positive = pulled toward this output, negative = pulled away). Songs outside the top-10 receive no share in the report.

Fair Share

Because scores are normalized against the entire corpus, a song's share reflects its influence relative to all other training songs — not an arbitrary threshold. A song with twice the absolute influence score receives twice the share. Negative-direction songs are still counted toward the total but flagged separately, as their influence represents what the model deliberately diverged from.

Worked Example

250 training songs scored against a generated output. Combined scores (0.7×C + 0.3×R), top-5 shown:

Rank Song score_C score_R combined Direction Share
1 Song A 0.38 0.21 0.329 ↑ positive 31.4%
2 Song B 0.27 0.31 0.282 ↑ positive 26.9%
3 Song C 0.19 0.14 0.175 ↑ positive 16.7%
4 Song D −0.22 −0.18 −0.208 ↓ negative 19.9% (contra)
5 Song E 0.05 0.06 0.053 ↑ positive 5.1%
Songs 6–250: below top-10 threshold — share = 0%

Song D has the highest absolute influence among songs 4–10, but its direction is negative — the model learned from it by diverging. It is reported as a contra-influence, not a royalty contributor.

6Validation

LUMINA-TRAK has been validated across three experimental regimes:

  • Controlled 5-pair test (Exp 1): 5 music genre pairs, fine-tuned on 2 songs each, 3 seeds — 14/15 correct (93.3%) top-1 attribution using Channel C scoring.
  • 487-song multi-style (Exp 2): Full catalog across 8 genres, 18 generation prompts — 77.8% top-1 genre attribution (14/18 correct). Top-10 ranked lists are highly reliable; top-1 is sensitive to prompt vocabulary.
  • Negative controls (Exp 3): 8 adversarial out-of-distribution prompts — the system correctly withholds high-confidence attribution when no matching training data exists. Adversarial scores (0.17–0.28) remain below in-distribution scores (0.25–0.40), confirming attribution is not hallucinated.
  • Reproducibility: 100% deterministic — seeded JL projection (seed=42) and deterministic generation environment produce identical gradient projections for identical inputs across runs.

7Verifiable Attribution

For each generated output, LUMINA commits the attribution result to an append-only cryptographically chained ledger. This enables third-party verification of influence scores without disclosing the training data, the gradient embeddings themselves, or the model's weights.

Digital Fingerprinting System
Attribution Server — influence scores s, projection params P, λ
Fingerprint Processor — content identifier + cryptographic commitments to φ̃ embeddings
Ledger Entry (content ID, commitments, scores, params)
zk-SNARK proof attesting (M+λI)u=b, s=Φ̃u

Each ledger entry comprises: (a) a content identifier — preferably a cryptographic hash of the generated content; (b) cryptographic commitments (Hash/Merkle) to the projected gradient embeddings φ̃ for the top-ranked training samples and for the generated content; (c) the influence scores s; and (d) the projection and regularization parameters (P, λ) used.

Zero-Knowledge Proof Statement ∃ u : (M + λI) u = b    ∧    s = Φ̃train u    on the committed embeddings

A verifier possessing the generated content can recompute the content identifier, retrieve the corresponding ledger entry, and check the zero-knowledge proof — confirming that the published scores are the genuine result of the regularized linear solve on the committed embeddings, without access to the training data, gradient embeddings, or model weights.

Why Verifiable Attribution?

Publishing influence scores without proof of computation creates a trust problem: scores could be fabricated or selectively reported. The zk-SNARK proof anchors every ledger entry to the actual linear solve, making the attribution auditable by any third party — rightsholder, regulator, or DSP — using only the public ledger and the generated content hash.

8Version History

v9.0 May 2026
Full transition to LUMINA-TRAK. Gradient extraction moved from teacher-forcing on audio to per-token generation-time backward. Fingerprint dimensionality changed from fixed 216D stat vectors to JL-projected ~6,656D per channel. Scoring replaced with kernel regression (K+λI)⁻¹, λ=10. Channel weighting updated to 0.7 C / 0.3 R. Channel C now uses attention-only tensors (4 per layer); Channel R uses FFN-only (2 per layer). Share allocation now based on |score_i| / Σ|score_j|. Validation updated with Exp 1 (93.3%), Exp 2 (77.8%), Exp 3 (negative controls).
v8.0 March 16, 2026
WTA fingerprint overhaul: 6 tensors × 6 stats × 6 layers = 216D per channel (432D total). Dual layer ranges (42-47 for P, 12-17 for M). Empirical noise calibration via GTZAN control corpus. Both channels now use all 6 tensors (self_attn, cross_attn, FFN).
v7.1 February 13, 2026
Added intuitive pipeline overview with teacher-student analogies and worked examples
v7.0 January 16, 2026
Added LUMINA-WTA alignment, kernel regression, dual-channel refinements
v6.0 December 20, 2025
Introduced excess-based share allocation, z-score thresholding
v5.0 November 15, 2025
Dual-channel separation (Publishing vs Master), confidence thresholds
v4.0 October 8, 2025
10-second chunked processing, gradient averaging
v3.0 September 1, 2025
Initial cross-entropy teacher forcing implementation

Intellectual Property Notice

This document contains proprietary and confidential information belonging to Fold Artists Research. The methods, algorithms, and technical implementations described herein are protected intellectual property. Unauthorized reproduction, distribution, or disclosure of this document or its contents is strictly prohibited and may violate applicable trade secret and intellectual property laws.