Papers
Topics
Authors
Recent
Search
2000 character limit reached

FINCH: A Parameter-Free Clustering Hierarchy

Updated 9 March 2026
  • FINCH is a parameter-free, hierarchical clustering algorithm that defines clusters by linking each point to its nearest neighbor and recursively merging them.
  • It constructs a hierarchy of partitions by iteratively computing centroids, yielding state-of-the-art accuracy on datasets from MNIST-10K to 8.1M samples.
  • FINCH achieves near-linear computational complexity (O(N log N)) and reduced memory usage, outperforming traditional methods like HAC and k-means without hyperparameter tuning.

The First Integer Neighbor Clustering Hierarchy (FINCH) is a parameter-free, hierarchical agglomerative clustering algorithm that constructs data partitions by leveraging first-neighbor relations among samples. FINCH defines clusters by connecting each data point to its nearest neighbor and iteratively merging these structures to create a hierarchy of increasingly coarser partitions. Unlike classical clustering techniques, FINCH avoids the specification of any hyperparameters, including thresholds or cluster counts, and achieves state-of-the-art results and scalability across a diverse range of datasets (Sarfraz et al., 2019).

1. Mathematical Formulation and Clustering Equation

Let S={x1,,xN}RdS = \{x_1, \dots, x_N\} \subset \mathbb R^d denote a dataset of NN points. For each point xix_i, let κi1\kappa_i^1 denote the index of its nearest neighbor under a dissimilarity d(xi,xj)d(x_i, x_j). FINCH constructs a sparse symmetric adjacency matrix A{0,1}N×NA \in \{0,1\}^{N \times N} defined by

A(i,j)={1,if j=κi1    κj1=i    κi1=κj1, 0,otherwise.A(i, j) = \begin{cases} 1, & \text{if } j = \kappa_i^1 \;\lor\; \kappa_j^1 = i \;\lor\; \kappa_i^1 = \kappa_j^1, \ 0, & \text{otherwise.} \end{cases}

This scheme links: (1) each point to its nearest neighbor, (2) symmetrizes the adjacency by linking reciprocally, and (3) connects points that share the same first neighbor. FINCH then identifies the connected components of the undirected graph induced by AA and assigns unique cluster labels, yielding the first partition Γ1={C1,,CC}\Gamma_1 = \{C_1, \dots, C_C\} (Sarfraz et al., 2019).

2. Hierarchical Construction and Algorithmic Workflow

FINCH produces a hierarchy of partitions through recursive re-application of the clustering rule to cluster centroids:

  • Step 0: Receive raw data XRN×dX \in \mathbb R^{N \times d}.
  • Step 1: Compute first-neighbor indices κ1\kappa^1 for all points.
  • Step 2: Build adjacency AA, extract connected components for partition Γ1\Gamma_1.
  • Step 3: For each next level, replace each cluster in Γi\Gamma_i by its centroid, forming MRCΓi×dM \in \mathbb R^{C_{\Gamma_i} \times d} and apply Steps 1–2 to obtain Γi+1\Gamma_{i+1}.
  • Termination: Stop once all points merge or no new merges occur.

The partitions satisfy Γ1Γ2ΓL\Gamma_1 \supseteq \Gamma_2 \supseteq \cdots \supseteq \Gamma_L for typically small LL (e.g., 4–10 for NN in millions) (Sarfraz et al., 2019).

3. Complexity Analysis and Scalability

  • Computational Complexity: Each pass requires a 1-NN search, O(NlogN)O(N\log N) (exact) or near-linear with approximate methods. Building and traversing AA is O(N)O(N). Empirically, the overall complexity is O(NlogN)O(N\log N).
  • Memory Complexity: Requires O(Nd)O(Nd) for the data and O(N)O(N) for neighbor indices; there is no requirement to store a full pairwise distance matrix.
  • Comparison with Alternatives: Classical hierarchical agglomerative clustering (HAC) using standard linkage requires O(N2logN)O(N^2\log N) time and quadratic memory. By contrast, kk-means requires O(TNkd)O(TNkd) for TT iterations. FINCH is parameter-free and memory efficient (Sarfraz et al., 2019).
Method Time Complexity Memory Complexity Parameter Dependence
FINCH O(NlogN)O(N\log N) O(Nd)O(Nd) None
HAC (single/average/complete linkage) O(N2logN)O(N^2\log N) O(N2)O(N^2) Linkage function, stopping
kk-means O(TNkd)O(T N k d) O(Nd+kd)O(Nd + k d) kk: number of clusters

4. Empirical Results and Hierarchy Interpretation

FINCH exhibits strong empirical performance across a variety of domains and problem scales:

  • Small/Medium Datasets (N70N \leq 70\,K): On benchmark sets such as MNIST-10K, STL-10, and Reuters-10K, FINCH discovers the ground-truth cluster numbers as one of its hierarchy levels and achieves state-of-the-art normalized mutual information (NMI). For instance, on MNIST-70K, NMI = 98.84% (vs. 98.77% for spectral clustering).
  • Large-Scale Datasets (N>200N > 200\,K): FINCH clusters the 8.1M-sample MNIST-8M in \sim18minuteswithNMI=99.54 minutes with NMI = 99.54%. Competing methods such as kmeansandspectralclusteringeitherfaceoutofmemoryerrorsordeliversubstantiallyloweraccuracyonthesescales.</li><li><strong>Convergence:</strong>Hierarchiestypicallycollapsein410levels,e.g.,MNIST10Kyieldsclustercounts-means and spectral clustering either face out-of-memory errors or deliver substantially lower accuracy on these scales.</li> <li><strong>Convergence:</strong> Hierarchies typically collapse in 4–10 levels, e.g., MNIST-10K yields cluster counts \{1699, 310, 65, 17, 10, 1\}withclusteringaccuracypersistentlyabove99</ul><h2class=paperheadingid=extensionsvariantsandpracticaladaptations>5.Extensions,Variants,andPracticalAdaptations</h2><p>SeveraladaptationsofFINCHhavebeendevelopedtoaccommodatespecializeddomainsoradditionalconstraints:</p><ul><li><strong>TemporallyWeightedFINCH(TWFINCH):</strong>Forunsupervisedactionsegmentationinvideo,theadjacencyisweightedbybothfeaturesimilarityandtemporaldistanceperframe, with clustering accuracy persistently above 99% down to the 10-cluster solution (<a href="/papers/1902.11266" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Sarfraz et al., 2019</a>).</li> </ul> <h2 class='paper-heading' id='extensions-variants-and-practical-adaptations'>5. Extensions, Variants, and Practical Adaptations</h2> <p>Several adaptations of FINCH have been developed to accommodate specialized domains or additional constraints:</p> <ul> <li><strong>Temporally-Weighted FINCH (TW-FINCH):</strong> For unsupervised action segmentation in video, the adjacency is weighted by both feature similarity and temporal distance per frame, W(i, j) = (1 - \langle x_i, x_j \rangle)\cdot|t_i - t_j|/N.Thismodificationenablestheextractionoftemporallyandsemanticallyconsistentclustersandimprovesactionsegmentationscoresonmultiplevideodatasets(<ahref="/papers/2103.11264"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Sarfrazetal.,2021</a>).</li><li><strong>ThresholdbasedFINCH(asinOCCAM):</strong>Forclassagnosticobjectcounting,thestrictparameterfreelinkageisrelaxedbyimposingadistancethreshold. This modification enables the extraction of temporally and semantically consistent clusters and improves action segmentation scores on multiple video datasets (<a href="/papers/2103.11264" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Sarfraz et al., 2021</a>).</li> <li><strong>Threshold-based FINCH (as in OCCAM):</strong> For class-agnostic object counting, the strict parameter-free linkage is relaxed by imposing a distance threshold t_kateachiteration,linkingonlyclusterswhosecentroidsaresufficientlyclose.Thesequenceofthresholds(empiricallyset)allowsfinercontrolovermerging,supportssingletons,andhaltstherecursionwhennonewmergesoccur,producingrobustinstancecounts(<ahref="/papers/2601.13871"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Spanakisetal.,20Jan2026</a>).</li><li><strong>Generalizationsto at each iteration, linking only clusters whose centroids are sufficiently close. The sequence of thresholds (empirically set) allows finer control over merging, supports singletons, and halts the recursion when no new merges occur, producing robust instance counts (<a href="/papers/2601.13871" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Spanakis et al., 20 Jan 2026</a>).</li> <li><strong>Generalizations to kNNGraphs:</strong>Alternativeformulationsapplyconnectedcomponentextractionto-NN Graphs:</strong> Alternative formulations apply connected component extraction to knearestneighborgraphs,yieldingadendrogramas-nearest neighbor graphs, yielding a dendrogram as kincreases,whichcanalsobeconstructedinnearlineartimeunderwellbehaveddistributions(<ahref="/papers/2203.08027"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Gokcesuetal.,2022</a>).</li></ul><h2class=paperheadingid=illustrativeexamplesandinterpretativesignificance>6.IllustrativeExamplesandInterpretativeSignificance</h2><ul><li><strong>ToyExample:</strong>Appliedtoasolarsystemdataset(9objects,15attributes),FINCHsadjacencybuildsconnectedcomponentscorrespondingtorockyplanets,”“gasgiants,andicegiants,directlyrevealingsemanticgroupings(<ahref="/papers/1902.11266"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Sarfrazetal.,2019</a>).</li><li><strong><ahref="https://www.emergentmind.com/topics/simplerecurrentflowm2d"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">2D</a>SyntheticDatasets:</strong>Onchallengingclustershapes(e.g.,Aggregation,Gestalt),FINCHproducesmoreaccurateandnaturalpartitionsthan increases, which can also be constructed in near-linear time under well-behaved distributions (<a href="/papers/2203.08027" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Gokcesu et al., 2022</a>).</li> </ul> <h2 class='paper-heading' id='illustrative-examples-and-interpretative-significance'>6. Illustrative Examples and Interpretative Significance</h2> <ul> <li><strong>Toy Example:</strong> Applied to a solar system dataset (9 objects, 15 attributes), FINCH’s adjacency builds connected components corresponding to “rocky planets,” “gas giants,” and “ice giants,” directly revealing semantic groupings (<a href="/papers/1902.11266" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Sarfraz et al., 2019</a>).</li> <li><strong><a href="https://www.emergentmind.com/topics/simple-recurrent-flowm-2d" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">2D</a> Synthetic Datasets:</strong> On challenging cluster shapes (e.g., Aggregation, Gestalt), FINCH produces more accurate and natural partitions than kmeans,HAC,spectral,orsparse<ahref="https://www.emergentmind.com/topics/subspaceclustering"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">subspaceclustering</a>(<ahref="/papers/1902.11266"title=""rel="nofollow"dataturbo="false"class="assistantlink"xdataxtooltip.raw="">Sarfrazetal.,2019</a>).</li></ul><h2class=paperheadingid=relationtootherhierarchicalandnearestneighborclusteringschemes>7.RelationtoOtherHierarchicalandNearestNeighborClusteringSchemes</h2><p>FINCHdiffersfromclassicalHACinthatmergesarenotperformedgreedilybypairwiseclusterdistancesbutinducedbyfirstneighborconnectivity,removingthedependenceonlinkagecriteria.Repetitionofthesingleadjacencyruleonupdatedrepresentativesrecursivelyproducesthehierarchy.Extensionsemploying-means, HAC, spectral, or sparse <a href="https://www.emergentmind.com/topics/subspace-clustering" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">subspace clustering</a> (<a href="/papers/1902.11266" title="" rel="nofollow" data-turbo="false" class="assistant-link" x-data x-tooltip.raw="">Sarfraz et al., 2019</a>).</li> </ul> <h2 class='paper-heading' id='relation-to-other-hierarchical-and-nearest-neighbor-clustering-schemes'>7. Relation to Other Hierarchical and Nearest-Neighbor Clustering Schemes</h2> <p>FINCH differs from classical HAC in that merges are not performed greedily by pairwise cluster distances but induced by first-neighbor connectivity, removing the dependence on linkage criteria. Repetition of the single adjacency rule on updated representatives recursively produces the hierarchy. Extensions employing k$-NN graphs retain this parameter-free property for “bottom-up” or “top-down” traversals, yielding unique, intrinsic data-driven hierarchies (Gokcesu et al., 2022).

    References

    • Sarfraz, F., Arora, D., & Khan, F. S. "Efficient Parameter-free Clustering Using First Neighbor Relations." (Sarfraz et al., 2019)
    • Gokcesu, K., & Gokcesu, A. "Natural Hierarchical Cluster Analysis by Nearest Neighbors with Near-Linear Time Complexity." (Gokcesu et al., 2022)
    • Spanakis, M. et al. "OCCAM: Class-Agnostic, Training-Free, Prior-Free and Multi-Class Object Counting." (Spanakis et al., 20 Jan 2026)
    • Sarfraz, F. et al. "Temporally-Weighted Hierarchical Clustering for Unsupervised Action Segmentation." (Sarfraz et al., 2021)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to First Integer Neighbor Clustering Hierarchy (FINCH).