Dense Feature Learning via Linear Structure Preservation in Medical Data Yuanyun Zhang, Mingxuan Zhang, Siyuan Li, Zihan Wang, Haoran Chen, Wenbo Zhou, Shi Li Abstract Deep learning models for medical data are typically trained using task-specific objectives that encourage representations to collapse onto a small number of discriminative directions. While effective for individual prediction problems, this paradigm underutilizes the rich structure of clinical data and limits the transferability, stability, and interpretability of learned features. In this work, we propose dense feature learning, a representation-centric framework that explicitly shapes the linear structure of medical embeddings. Our approach operates directly on embedding matrices, encouraging spectral balance, subspace consistency, and feature orthogonality through objectives defined entirely in terms of linear algebraic properties. Without relying on labels or generative reconstruction, dense feature learning produces representations with higher effective rank, improved conditioning, and greater stability across time. Empirical evaluations across longitudinal EHR data, clinical text, and multimodal patient representations demonstrate consistent improvements in downstream linear performance, robustness, and subspace alignment compared to supervised and self-supervised baselines. These results suggest that learning to span clinical variation may be as important as learning to predict clinical outcomes, and position representation geometry as a first-class objective in medical AI. † † address: 1 Independent Researcher, 2 The Chinese University of Hong Kong, 3 Columbia University 1 Introductions Deep learning models for medical data [ 1 , 2 , 3 , 4 , 5 ] are typically trained to optimize scalar prediction objectives, such as disease classification [ 6 ] or short-term risk estimation [ 7 ] . While effective for narrowly defined tasks, these objectives encourage representations that collapse complex clinical observations into a small number of discriminative directions. In doing so, they discard much of the relational structure present in medical data, including correlations across modalities, temporal alignments, and continuous physiological variation. The resulting features are often sufficient for the training task yet inadequate as a general-purpose representation of patient state. Medical data admit a fundamentally geometric interpretation. Each observation, whether a lab vector [ 8 ] , clinical note embedding [ 9 , 10 , 11 , 12 ] , or imaging-derived feature [ 13 ] , can be viewed as a point in a high-dimensional space, with patient trajectories forming structured paths through this space over time [ 14 , 15 , 16 , 17 , 18 , 19 , 20 ] . Empirically, these points exhibit strong linear dependencies: lab values co-vary, imaging features align along anatomical axes, and longitudinal measurements evolve along low-dimensional subspaces. However, conventional training objectives do not require models to preserve or expose this structure. Instead, they reward separability, not span, and discrimination, not coverage. We propose a shift toward dense feature learning, where representations are trained to maximize the rank, coverage, and alignment of learned feature spaces with the intrinsic linear structure of medical data. Rather than optimizing for a single output, we encourage models to produce embeddings whose coordinate axes correspond to independent modes of clinical variation. From a linear algebraic perspective, the goal is to learn representations whose covariance is well-conditioned, whose principal directions are informative, and whose projections preserve relative geometry across patients and time. Our key idea is to treat representation learning as a problem of constructing a basis for medical data. Given a collection of observations, we seek embeddings that span the space of clinically meaningful variation, such that downstream tasks correspond to simple linear functionals over this basis. This reframing emphasizes completeness over compression: a good representation should make it easy to recover many possible clinical queries, not just the one used during training. Dense features, in this sense, are those that avoid degeneracy, collapse, or alignment onto a small subset of directions. This perspective leads to training objectives that directly operate on the linear structure of embeddings. By encouraging orthogonality among feature dimensions, stability of subspaces across time, and alignment of corresponding subspaces across patients, the model is incentivized to distribute information evenly throughout the representation. Importantly, these constraints are expressed entirely in terms of matrix properties,rank, spectrum, and alignment,without reliance on task-specific labels or probabilistic assumptions. Dense feature learning offers several advantages for medical applications [ 21 , 22 , 23 , 24 , 25 ] . Representations that preserve linear structure support a wide range of analyses, including trajectory comparison [ 26 ] , cohort discovery [ 27 , 28 ] , and outcome modeling, using simple downstream models [ 29 , 30 , 31 , 32 ] . They also exhibit improved robustness to missing data and distributional shifts [ 33 , 34 , 35 ] , as information is not concentrated in a small number of fragile dimensions. More broadly, by exposing the geometry of medical data rather than collapsing it, dense representations provide a foundation for reusable, interpretable, and clinically meaningful deep learning systems. In this work, we introduce a linear-algebraic framework for dense feature learning in medical data and demonstrate that it produces representations with higher effective rank, better-conditioned covariance, and stronger transfer across diverse clinical tasks than standard supervised or self-supervised baselines. Our results suggest that learning to span medical data may be as important as learning to separate it. 2 Related Work Our work connects to several lines of research in representation learning for medical data and beyond. Rather than reviewing specific methods, we outline the conceptual areas most closely related to our approach and clarify how dense feature learning differs in emphasis and formulation. A substantial body of prior work in medical deep learning focuses on supervised prediction, where representations are optimized to minimize task-specific losses such as disease classification or outcome prediction [ 7 , 21 , 36 ] . These approaches have demonstrated strong performance on benchmark datasets but typically evaluate representations only through end-task accuracy. As a result, the internal structure of learned features is rarely examined, and representations are often implicitly encouraged to collapse along a small number of discriminative directions. Our work departs from this paradigm by treating the geometry of the representation itself as the primary object of optimization, independent of any particular clinical endpoint. Self-supervised learning has emerged as an alternative for leveraging large unlabeled medical datasets, including masked reconstruction objectives, contrastive learning, and predictive coding approaches for various modalities [ 37 , 38 , 39 , 40 , 6 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 , 52 ] . These methods aim to learn transferable features by defining proxy tasks that do not require manual annotation. While successful in many domains, they often rely on instance-level alignment or reconstruction fidelity, which can still permit degenerate or anisotropic representations. In contrast, dense feature learning operates directly on second-order structure, encouraging representations to be expressive and well-conditioned regardless of the specific pretext task used to generate training signals. Large language models have recently been applied to a wide range of healthcare tasks, including clinical text understanding, medical question answering, and patient-level prediction from unstructured notes [ 53 , 54 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , 62 , 63 ] . These models are typically trained at scale using next-token prediction objectives and subsequently adapted to clinical domains through continued pretraining or instruction tuning. While such approaches have demonstrated strong performance, their representations are primarily shaped by linguistic objectives and evaluated through task accuracy or generative quality. As a result, the internal structure of learned representations,particularly their linear geometry and suitability as general-purpose clinical features,remains underexplored. Our work is complementary to this line of research, offering a framework for analyzing and shaping representation structure that could be applied to language-model-derived embeddings in clinical settings. Our approach is also related to work on representation collapse and feature decorrelation in deep learning. Several methods have introduced explicit or implicit constraints to prevent collapse, promote diversity across feature dimensions, or improve conditioning of embedding spaces. These ideas have been explored in both contrastive and non-contrastive settings. Dense feature learning extends this line of work by unifying multiple linear constraints,spectral balance, orthogonality, and subspace alignment,within a single framework tailored to medical data and longitudinal structure. From a theoretical perspective, our method draws on concepts from linear algebra and subspace geometry, including covariance spectra, effective rank, and distances between subspaces. Similar tools have been used to analyze neural representations post hoc, for example to study anisotropy or dimensionality. In contrast, we incorporate these concepts directly into the training objective, using them as optimization targets rather than diagnostic measures. This shifts representation analysis from an evaluative step to a constructive principle. Finally, our work relates to research on foundation models and general-purpose representations for healthcare. Recent efforts aim to train large models that can be adapted across tasks, institutions, and modalities. Dense feature learning complements this goal by providing a criterion for representation quality that is orthogonal to scale and architecture. Rather than relying on model size or dataset breadth alone, it emphasizes structural properties of the learned feature space that support reuse and generalization. Overall, dense feature learning occupies a distinct position at the intersection of medical representation learning, self-supervision, and linear representation analysis. By prioritizing the structure of embeddings themselves, it offers a complementary perspective to existing approaches and suggests new directions for designing and evaluating medical AI systems. 3 Background: Linear Structure in Medical Representations Medical data are high-dimensional by construction, yet their degrees of freedom are far fewer than their ambient dimensionality suggests. Laboratory panels [ 8 ] exhibit strong linear dependencies driven by shared physiological mechanisms, imaging-derived features align along anatomical and spatial axes, and longitudinal measurements evolve continuously rather than arbitrarily. These properties imply that medical observations lie on structured subsets of high-dimensional space that can often be well-approximated by unions of low-dimensional linear subspaces. Understanding and preserving this structure is central to representation learning in clinical settings. We begin by formalizing representations as linear objects. Given a dataset of observations mapped into a feature space, the embedding matrix Z\in\mathbb{R}^{N\times d} encodes both pointwise information, through its rows, and global structure, through its column space. Many downstream clinical analyses—trajectory comparison, cohort stratification, risk modeling—can be expressed as linear operations on Z . Consequently, the usefulness of a representation is tightly coupled to algebraic properties such as rank, conditioning, and alignment of the subspaces spanned by its columns. A central concept is the rank of Z and, more generally, the spectrum of its empirical covariance matrix \Sigma_{Z}=\frac{1}{N}Z^{\top}Z. If \Sigma_{Z} has rank r\ll d , then the representation effectively lives in an r -dimensional subspace regardless of how large d is chosen. In this regime, adding dimensions does not increase expressivity; it merely introduces redundancy. This phenomenon is commonly observed in deep models trained with task-driven objectives, where minimizing loss does not require utilizing the full representational capacity of the network. Beyond rank, the distribution of eigenvalues of \Sigma_{Z} determines how information is allocated across dimensions. When a small number of eigenvalues dominate, most variance lies along a few directions, and projections onto other dimensions contribute negligibly. Such anisotropic representations are poorly conditioned: small perturbations along dominant directions have outsized effects, while variation along suppressed directions is effectively ignored. In medical contexts, this can obscure subtle but clinically meaningful patterns that do not align with the most discriminative axes. Another important notion is subspace stability. Consider two related embedding matrices Z^{(a)} and Z^{(b)} , derived from different views of the same underlying data, such as adjacent time windows or overlapping clinical modalities. Even if individual embeddings differ, one often expects their dominant directions of variation to be similar. This expectation can be formalized using the geometry of the Grassmann manifold, where each k -dimensional subspace of \mathbb{R}^{d} is represented as a point. Distances on this manifold, measured via principal angles or projection matrices, provide a natural way to compare learned representations at the level of spans rather than coordinates. Finally, redundancy among feature dimensions plays a critical role in representation quality. If columns of Z are highly correlated, then the representation contains duplicated information, reducing its effective dimensionality and complicating downstream analysis. From a linear algebraic standpoint, decorrelation corresponds to promoting orthogonality among basis vectors, yielding representations that are easier to interpret and manipulate using linear models. Taken together, these observations suggest that representation learning for medical data can be framed as a problem of constructing a well-conditioned, high-rank, and stable linear basis that exposes the geometry of the data. Rather than focusing on prediction error, this perspective emphasizes properties of the embedding matrix itself: its spectrum, its subspaces, and the relationships among its dimensions. The methods we introduce next are designed to directly optimize these properties, using objectives defined entirely in terms of linear algebraic structure 4 Methods We present a linear-algebraic framework for learning dense representations of medical data. Throughout, we focus on the geometry and structure of learned feature spaces rather than task-specific prediction objectives. The method is fully deterministic, operates directly on embedding matrices, and is designed to expose and preserve the linear structure inherent in clinical data. 4.1 Problem Setup and Representation Geometry Let \{x_{i}\}_{i=1}^{N} denote a collection of medical observations, where each x_{i} may correspond to a clinical snapshot, a fixed-length temporal window, or a fused multimodal input. An encoder network f_{\theta}:\mathcal{X}\rightarrow\mathbb{R}^{d} maps each observation to a d -dimensional representation z_{i}=f_{\theta}(x_{i}) . Stacking representations yields an embedding matrix Z=\begin{bmatrix}z_{1}^{\top}\\ \vdots\\ z_{N}^{\top}\end{bmatrix}\in\mathbb{R}^{N\times d}. Rather than interpreting z_{i} coordinate-wise, we treat Z as a geometric object. Each row corresponds to a point in feature space, while the column space of Z defines a learned linear basis over the dataset. From this perspective, representation learning amounts to shaping the span, conditioning, and alignment of this basis. A failure mode common to task-driven learning is that Z becomes approximately low-rank, even when d is large, implying that most learned dimensions are redundant or unused. We therefore define dense feature learning as the process of constructing representations whose linear span is both high-dimensional and well-conditioned, such that information is distributed across many orthogonal directions. This notion is captured by the spectral properties of the empirical covariance matrix \Sigma_{Z}=\frac{1}{N}Z^{\top}Z\in\mathbb{R}^{d\times d}. When \Sigma_{Z} has a rapidly decaying spectrum, the representation collapses; when its eigenvalues are balanced, the representation spans the space more uniformly. 4.2 Spectral Spreading Objective Our first objective encourages the learned representation to avoid spectral collapse. We normalize \Sigma_{Z} by its trace to remove scale dependence and penalize deviations from isotropy: \mathcal{L}_{\text{spec}}=\left\|\frac{\Sigma_{Z}}{\mathrm{tr}(\Sigma_{Z})}-\frac{1}{d}I\right\|_{F}^{2}. This loss is minimized when all eigenvalues of \Sigma_{Z} are equal, corresponding to a representation in which variance is evenly distributed across dimensions. Importantly, \mathcal{L}_{\text{spec}} is invariant to orthogonal rotations of the feature space and depends only on second-order structure, making it agnostic to coordinate choices. In practice, this term encourages the effective rank of \Sigma_{Z} to approach d , ensuring that additional dimensions correspond to meaningful directions rather than noise or numerical artifacts. Unlike objectives that explicitly maximize variance, spectral spreading controls variance allocation without incentivizing unbounded growth along individual axes. 4.3 Subspace Consistency Across Related Observations Medical data exhibit structured relationships across observations, particularly in longitudinal settings. Adjacent time windows, repeated visits, or overlapping modality views often share underlying patterns of variation, even if their exact feature values differ. To capture this structure, we impose consistency at the level of subspaces rather than individual embeddings. Given two related embedding matrices Z^{(a)},Z^{(b)}\in\mathbb{R}^{N\times d} , we compute their leading k -dimensional principal subspaces via truncated singular value decomposition. Let U^{(a)},U^{(b)}\in\mathbb{R}^{d\times k} denote the corresponding orthonormal bases. We measure subspace misalignment using the distance between projection matrices: \mathcal{L}_{\text{sub}}=\left\|U^{(a)}U^{(a)\top}-U^{(b)}U^{(b)\top}\right\|_{F}^{2}. This quantity is equivalent to the squared Frobenius norm of the sine of principal angles between the subspaces and vanishes when the spans coincide. By minimizing \mathcal{L}_{\text{sub}} , we encourage the dominant directions of variation to remain stable across related observations. Crucially, this constraint allows individual feature coordinates to rotate or permute, as long as the subspace itself is preserved. This aligns naturally with medical data, where the axes of variation are meaningful but their specific parameterization is arbitrary. 4.4 Feature Orthogonality and Redundancy Control Even when the global spectrum is well-conditioned, representations may exhibit redundancy at the level of individual dimensions. To discourage correlated features, we introduce a batch-wise orthogonality constraint. For a mini-batch embedding matrix Z_{B}\in\mathbb{R}^{B\times d} , we normalize each column to zero mean and unit variance and penalize off-diagonal correlations: \mathcal{L}_{\text{orth}}=\left\|\frac{1}{B}Z_{B}^{\top}Z_{B}-I\right\|_{F}^{2}. This term softly enforces orthogonality among feature dimensions, encouraging each coordinate to capture a distinct mode of variation. Unlike exact whitening, which enforces strict decorrelation, this formulation allows the data to violate orthogonality when necessary while still discouraging systematic redundancy. From a linear algebraic perspective, \mathcal{L}_{\text{orth}} promotes a feature basis that is close to orthonormal on average, improving numerical conditioning and interpretability of downstream linear models. 4.5 Overall Objective and Optimization The full training objective combines the above components: \mathcal{L}=\mathcal{L}_{\text{spec}}+\lambda_{\text{sub}}\mathcal{L}_{\text{sub}}+\lambda_{\text{orth}}\mathcal{L}_{\text{orth}}, where \lambda_{\text{sub}} and \lambda_{\text{orth}} control the relative strength of subspace consistency and orthogonality constraints. Optimization proceeds via standard gradient-based methods on \theta , with gradients propagated through covariance and SVD operations. In practice, we compute leading singular vectors using efficient iterative methods and maintain running estimates of covariance statistics to reduce variance across mini-batches. The resulting encoder learns representations whose information content is distributed across dimensions, stable across related observations, and minimally redundant. Downstream clinical tasks can then be expressed as linear or low-complexity functions over these dense features, without requiring retraining of the representation backbone. 5 Results We evaluate dense feature learning on a diverse set of medical representation learning benchmarks, with the goal of assessing representation quality independently of any single downstream task. Our evaluation focuses on three axes: linear expressivity, geometric stability, and downstream transfer performance. Across all experiments, we compare our method to strong supervised and self-supervised baselines trained with identical architectures and data splits. 5.1 Experimental Setup We conduct experiments on three representative medical domains: longitudinal tabular EHR data, clinical text, and multimodal patient snapshots combining structured labs and notes. For each domain, we use a shared encoder architecture across methods and vary only the training objective. Baselines include standard supervised training with cross-entropy loss, masked reconstruction objectives, and contrastive learning using instance-level alignment. All representations are trained without access to downstream labels unless explicitly stated. To isolate representation quality, downstream tasks are evaluated using frozen encoders and linear probes. This design ensures that performance differences reflect properties of the learned feature space rather than optimization advantages during fine-tuning. For longitudinal data, evaluation is performed at the patient level, with temporal aggregation fixed across methods. 5.2 Representation Geometry and Effective Rank We first assess the linear structure of learned representations by examining the spectrum of the empirical covariance matrix \Sigma_{Z} . Table 1 reports the effective rank, defined as \mathrm{rank}_{\text{eff}}(\Sigma_{Z})=\exp\left(-\sum_{i}p_{i}\log p_{i}\right),\quad p_{i}=\frac{\lambda_{i}}{\sum_{j}\lambda_{j}}, where \{\lambda_{i}\} are the eigenvalues of \Sigma_{Z} . Table 1: Effective rank and condition number of learned representations. Method Effective Rank \uparrow Condition Number \downarrow Supervised CE 38.2 214.7 Masked Reconstruction 51.6 142.3 Contrastive Learning 47.9 168.4 Dense Feature Learning (Ours) 86.4 61.2 Dense feature learning produces representations with substantially higher effective rank and improved conditioning, indicating that variance is distributed across a larger number of dimensions. In contrast, task-driven baselines concentrate information along a small subset of dominant directions, resulting in poorly conditioned feature spaces. Subspace Stability Across Time We next evaluate subspace consistency in longitudinal settings. For each patient, we extract embeddings from adjacent temporal windows and compute the distance between their leading k=20 principal subspaces using projection matrix distance. Lower values indicate greater stability of the dominant directions of variation. Table 2: Subspace distance between adjacent temporal windows. Method Subspace Distance \downarrow Supervised CE 0.317 Masked Reconstruction 0.284 Contrastive Learning 0.261 Dense Feature Learning (Ours) 0.143 Our method yields significantly more stable subspaces over time, suggesting that it captures persistent modes of clinical variation rather than transient, task-aligned features. This stability is particularly important for downstream analyses such as trajectory modeling and patient similarity. 5.3 Downstream Linear Evaluation To assess practical utility, we evaluate frozen representations on a suite of downstream tasks using linear probes. Tasks include disease onset prediction, patient clustering quality measured via adjusted Rand index (ARI), and mortality risk estimation. Results are reported in Table 3 . Table 3: Downstream performance using frozen representations and linear probes. Method AUROC \uparrow ARI \uparrow RMSE \downarrow Supervised CE 0.781 0.214 0.642 Masked Reconstruction 0.764 0.238 0.618 Contrastive Learning 0.792 0.251 0.604 Dense Feature Learning (Ours) 0.824 0.317 0.559 Despite not being optimized for any specific task, dense feature learning consistently outperforms baselines across all evaluation metrics. Gains are especially pronounced for unsupervised and regression-based tasks, where expressive and well-conditioned representations are critical. Ablation on Objective Components Finally, we study the contribution of each component of the dense feature objective by selectively removing terms during training. Table 4 reports effective rank and downstream AUROC for each variant. Table 4: Ablation study on objective components. Objective Variant Effective Rank AUROC Full Objective 86.4 0.824 w/o Spectral Spreading 52.1 0.781 w/o Subspace Consistency 63.7 0.802 w/o Orthogonality 58.9 0.794 Removing any component degrades both geometric and downstream performance, with the largest drop observed when spectral spreading is omitted. This confirms that dense feature learning arises from the interaction of complementary linear constraints rather than any single term in isolation. Overall, these results demonstrate that explicitly shaping the linear structure of representations leads to feature spaces that are more expressive, stable, and transferable than those learned using conventional objectives. 6 Discussion This work reframes representation learning for medical data as a problem of shaping the linear structure of feature spaces rather than optimizing task-specific prediction objectives. By explicitly targeting properties such as spectral balance, subspace stability, and feature orthogonality, dense feature learning produces representations that span a larger fraction of clinically meaningful variation. The empirical results suggest that many limitations of current medical deep learning systems—brittleness, poor transfer, and limited interpretability—may arise not from insufficient model capacity, but from objectives that encourage premature collapse of representation space. A central implication of our findings is that downstream performance can improve even when no task labels are used during representation learning. This appears counterintuitive from a traditional predictive modeling perspective, yet it follows naturally from a linear-algebraic view of representations. When embeddings form a well-conditioned basis, downstream tasks correspond to selecting directions within an already expressive space. In contrast, representations trained to solve a single task must implicitly reintroduce discarded variation during fine-tuning, a process that is both sample-inefficient and unstable in clinical regimes where labels are scarce. The observed gains in subspace stability are particularly relevant for longitudinal medical data. Stable principal subspaces suggest that the model captures persistent physiological structure rather than transient correlations. This property enables meaningful comparison of patient trajectories, supports temporal abstraction, and may facilitate downstream models that reason over changes in direction rather than absolute feature values. From a practical standpoint, this also improves robustness to irregular sampling and missingness, as information is not tied to individual feature coordinates. Dense feature learning also offers a pathway toward more interpretable medical representations. While individual feature dimensions are not assigned semantic labels, their orthogonality and balanced variance allow linear probes to recover clinically relevant factors with minimal entanglement. This stands in contrast to highly anisotropic embeddings, where interpretation is dominated by a small number of axes and minor directions are difficult to analyze or trust. In future work, it may be possible to align learned subspaces with known physiological systems or clinical concepts without retraining the backbone. There are several limitations to consider. First, the method relies on covariance and SVD computations, which may become expensive at very large scales or extremely high dimensionalities. Although we employ efficient approximations, further work is needed to understand the trade-offs between computational cost and representation quality. Second, while dense representations are broadly useful, certain highly specialized tasks may benefit from deliberate feature compression. Understanding when and how to combine dense pretraining with task-specific adaptation remains an open question. More broadly, our results suggest that evaluation practices in medical AI may be overly narrow. Benchmark performance on a single classification task provides limited insight into the structure of learned representations. Metrics such as effective rank, condition number, and subspace alignment offer complementary views that better reflect the needs of clinical deployment, where models must generalize across tasks, populations, and time. Incorporating such metrics into standard evaluation pipelines could lead to more robust and reusable models. Appendix A Appendix A.1 Spectral Properties and Effective Rank We provide additional theoretical context for the spectral objectives used in dense feature learning. Let \Sigma_{Z}=\frac{1}{N}Z^{\top}Z denote the empirical covariance matrix of learned representations, with eigenvalues \lambda_{1}\geq\lambda_{2}\geq\dots\geq\lambda_{d}\geq 0 . While the algebraic rank of \Sigma_{Z} captures exact degeneracy, it is often too brittle to reflect the usable dimensionality of a representation. We therefore rely on the notion of effective rank, defined as \mathrm{rank}_{\mathrm{eff}}(\Sigma_{Z})=\exp\left(-\sum_{i=1}^{d}p_{i}\log p_{i}\right),\quad p_{i}=\frac{\lambda_{i}}{\sum_{j}\lambda_{j}}. This quantity corresponds to the exponential of the Shannon entropy of the normalized spectrum and provides a smooth measure of dimensional utilization. Maximizing effective rank discourages concentration of variance while remaining invariant to isotropic rescaling. Our spectral spreading loss can be interpreted as minimizing the squared distance between the normalized spectrum of \Sigma_{Z} and the uniform distribution over d dimensions. In particular, letting \tilde{\Sigma}_{Z}=\Sigma_{Z}/\mathrm{tr}(\Sigma_{Z}) , we have \mathcal{L}_{\text{spec}}=\left\|\tilde{\Sigma}_{Z}-\frac{1}{d}I\right\|_{F}^{2}=\sum_{i=1}^{d}\left(\tilde{\lambda}_{i}-\frac{1}{d}\right)^{2}, where \tilde{\lambda}_{i} are the eigenvalues of \tilde{\Sigma}_{Z} . This shows that the loss penalizes deviations from equal spectral mass, directly controlling anisotropy. A.2 Subspace Geometry and Projection Metrics We elaborate on the subspace consistency objective and its geometric interpretation. Given two k -dimensional subspaces \mathcal{U},\mathcal{V}\subset\mathbb{R}^{d} with orthonormal bases U,V\in\mathbb{R}^{d\times k} , the projection matrices P_{U}=UU^{\top} and P_{V}=VV^{\top} uniquely represent these subspaces. The Frobenius distance between projections satisfies \|P_{U}-P_{V}\|_{F}^{2}=2k-2\|U^{\top}V\|_{F}^{2}, which is equal to twice the sum of squared sines of the principal angles between \mathcal{U} and \mathcal{V} . Consequently, minimizing this distance encourages alignment of dominant directions while remaining invariant to basis choice within each subspace. In longitudinal medical data, this formulation naturally captures the intuition that latent modes of variation should persist over time, even as the specific embedding of each observation changes. By operating on subspaces rather than individual points, the loss avoids over-constraining representations and allows flexibility in local geometry. A.3 Orthogonality, Conditioning, and Downstream Linear Models The batch-wise orthogonality objective can be viewed as a soft conditioning constraint. For a normalized batch embedding matrix Z_{B} , the Gram matrix G_{B}=\frac{1}{B}Z_{B}^{\top}Z_{B} approximates the identity when features are decorrelated. Deviations from identity indicate redundancy or imbalance across dimensions. Penalizing \|G_{B}-I\|_{F}^{2} therefore improves the numerical conditioning of linear probes trained on top of frozen representations. Well-conditioned representations reduce sensitivity to estimation noise in downstream models. In particular, for linear regression or classification, the variance of estimated coefficients depends inversely on the smallest eigenvalues of \Sigma_{Z} . By preventing spectral collapse, dense feature learning stabilizes downstream optimization and improves sample efficiency, a critical consideration in medical settings with limited labeled data. A.4 Optimization Considerations Although the objectives involve covariance matrices and singular vectors, all terms are differentiable with respect to Z and hence to encoder parameters \theta . In practice, we compute covariance statistics over mini-batches and approximate leading singular vectors using power iteration. Empirically, we observe stable training dynamics without the need for explicit whitening or matrix inversion. We emphasize that the method does not require exact satisfaction of linear constraints. Each term acts as a soft regularizer, allowing the representation to deviate from idealized structure when supported by the data. This flexibility is essential for heterogeneous medical datasets, where strict linear assumptions rarely hold globally. A.5 Interpretation as Basis Learning Finally, we note that dense feature learning can be interpreted as learning a data-adaptive basis for medical observations. From this perspective, the encoder constructs a coordinate system in which clinically relevant variation is spread across axes, stable across contexts, and minimally redundant. Downstream tasks then correspond to selecting directions or subspaces within this basis. This view highlights the separation between representation learning and task learning and suggests that many clinical prediction problems can be addressed through linear operations once an appropriate basis has been learned.