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}⊂Rd denote a dataset of N points. For each point xi, let κi1 denote the index of its nearest neighbor under a dissimilarity d(xi,xj). FINCH constructs a sparse symmetric adjacency matrix A∈{0,1}N×N defined by
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 A and assigns unique cluster labels, yielding the first partition Γ1={C1,…,CC} (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 X∈RN×d.
Step 1: Compute first-neighbor indices κ1 for all points.
Step 2: Build adjacency A, extract connected components for partition Γ1.
Step 3: For each next level, replace each cluster in Γi by its centroid, forming M∈RCΓi×d and apply Steps 1–2 to obtain Γi+1.
Termination: Stop once all points merge or no new merges occur.
The partitions satisfy Γ1⊇Γ2⊇⋯⊇ΓL for typically small L (e.g., 4–10 for N in millions) (Sarfraz et al., 2019).
3. Complexity Analysis and Scalability
Computational Complexity: Each pass requires a 1-NN search, O(NlogN) (exact) or near-linear with approximate methods. Building and traversing A is O(N). Empirically, the overall complexity is O(NlogN).
Memory Complexity: Requires O(Nd) for the data and 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) time and quadratic memory. By contrast, k-means requires O(TNkd) for T iterations. FINCH is parameter-free and memory efficient (Sarfraz et al., 2019).
Method
Time Complexity
Memory Complexity
Parameter Dependence
FINCH
O(NlogN)
O(Nd)
None
HAC (single/average/complete linkage)
O(N2logN)
O(N2)
Linkage function, stopping
k-means
O(TNkd)
O(Nd+kd)
k: 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 (N≤70K): 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>200K): FINCH clusters the 8.1M-sample MNIST-8M in ∼18minuteswithNMI=99.54k−meansandspectralclusteringeitherfaceout−of−memoryerrorsordeliversubstantiallyloweraccuracyonthesescales.</li><li><strong>Convergence:</strong>Hierarchiestypicallycollapsein4–10levels,e.g.,MNIST−10Kyieldsclustercounts\{1699, 310, 65, 17, 10, 1\}withclusteringaccuracypersistentlyabove99</ul><h2class=′paper−heading′id=′extensions−variants−and−practical−adaptations′>5.Extensions,Variants,andPracticalAdaptations</h2><p>SeveraladaptationsofFINCHhavebeendevelopedtoaccommodatespecializeddomainsoradditionalconstraints:</p><ul><li><strong>Temporally−WeightedFINCH(TW−FINCH):</strong>Forunsupervisedactionsegmentationinvideo,theadjacencyisweightedbybothfeaturesimilarityandtemporaldistanceperframe,W(i, j) = (1 - \langle x_i, x_j \rangle)\cdot|t_i - t_j|/N.Thismodificationenablestheextractionoftemporallyandsemanticallyconsistentclustersandimprovesactionsegmentationscoresonmultiplevideodatasets(<ahref="/papers/2103.11264"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">Sarfrazetal.,2021</a>).</li><li><strong>Threshold−basedFINCH(asinOCCAM):</strong>Forclass−agnosticobjectcounting,thestrictparameter−freelinkageisrelaxedbyimposingadistancethresholdt_kateachiteration,linkingonlyclusterswhosecentroidsaresufficientlyclose.Thesequenceofthresholds(empiricallyset)allowsfinercontrolovermerging,supportssingletons,andhaltstherecursionwhennonewmergesoccur,producingrobustinstancecounts(<ahref="/papers/2601.13871"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">Spanakisetal.,20Jan2026</a>).</li><li><strong>Generalizationstok−NNGraphs:</strong>Alternativeformulationsapplyconnectedcomponentextractiontok−nearestneighborgraphs,yieldingadendrogramaskincreases,whichcanalsobeconstructedinnear−lineartimeunderwell−behaveddistributions(<ahref="/papers/2203.08027"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">Gokcesuetal.,2022</a>).</li></ul><h2class=′paper−heading′id=′illustrative−examples−and−interpretative−significance′>6.IllustrativeExamplesandInterpretativeSignificance</h2><ul><li><strong>ToyExample:</strong>Appliedtoasolarsystemdataset(9objects,15attributes),FINCH’sadjacencybuildsconnectedcomponentscorrespondingto“rockyplanets,”“gasgiants,”and“icegiants,”directlyrevealingsemanticgroupings(<ahref="/papers/1902.11266"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">Sarfrazetal.,2019</a>).</li><li><strong><ahref="https://www.emergentmind.com/topics/simple−recurrent−flowm−2d"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">2D</a>SyntheticDatasets:</strong>Onchallengingclustershapes(e.g.,Aggregation,Gestalt),FINCHproducesmoreaccurateandnaturalpartitionsthank−means,HAC,spectral,orsparse<ahref="https://www.emergentmind.com/topics/subspace−clustering"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">subspaceclustering</a>(<ahref="/papers/1902.11266"title=""rel="nofollow"data−turbo="false"class="assistant−link"x−datax−tooltip.raw="">Sarfrazetal.,2019</a>).</li></ul><h2class=′paper−heading′id=′relation−to−other−hierarchical−and−nearest−neighbor−clustering−schemes′>7.RelationtoOtherHierarchicalandNearest−NeighborClusteringSchemes</h2><p>FINCHdiffersfromclassicalHACinthatmergesarenotperformedgreedilybypairwiseclusterdistancesbutinducedbyfirst−neighborconnectivity,removingthedependenceonlinkagecriteria.Repetitionofthesingleadjacencyruleonupdatedrepresentativesrecursivelyproducesthehierarchy.Extensionsemployingk$-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)
“Emergent Mind helps me see which AI papers have caught fire online.”
Philip
Creator, AI Explained on YouTube
Sign up for free to explore the frontiers of research
Discover trending papers, chat with arXiv, and track the latest research shaping the future of science and technology.Discover trending papers, chat with arXiv, and more.