{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2609-02155","title":"Exact Limits of Random Projections for Preserving Geometry: Distance Recovery, Nearest-Neighbor Rankings, and Covariance Shape in Gaussian Models","arxiv_id":"2609.02155","date":"2026-09-02","proceeding":null,"authors":["Piyush Sao"],"abstract":"The Johnson-Lindenstrauss (JL) lemma guarantees that a random projection of $n$ points to $m=O(\\varepsilon^{-2}\\log n)$ dimensions preserves pairwise squared distances within relative error $\\varepsilon$ with high probability, and this dimension order is asymptotically optimal. In high dimensions, however, distances concentrate around a baseline while key geometric information lies in much smaller fluctuations. We show that the JL bound can therefore be uninformative about retained geometry: an independent Gaussian replacement map can satisfy it even though the replacement cloud is independent of the original data. We then ask how well any decoder can recover a feature $f(D)$ of a squared distance $D$ from a linear sketch. Under squared-error loss, the optimal decoder is conditional expectation, so recovery defines a linear operator whose singular values quantify feature recovery. For isotropic Gaussian data ($Σ=σ^2 I_d$), we diagonalize this operator in closed form. For fixed $k$ with $m,d-m\\to\\infty$, its $k$th singular value satisfies $\\ell_k\\approx(m/ d)^{k/2}$. This yields three sharp consequences. A rank-$m$ sketch retains at most an $m/d$ fraction of the variance of any feature of one squared distance. If $m\\to\\infty$ and $m/d\\to0$, the expected Kendall correlation is $\\frac{2}π\\sqrt{m/d}(1+o(1))$; for fixed $q$, nearest- neighbor agreement tends to $1/q$. Yet one projection can satisfy the JL bound while mean Kendall correlation vanishes when $\\log n\\ll m\\ll d$. After removing scale, Haar-averaged retained covariance-shape information is $(m/d)^2$. Thus JL distance preservation does not quantify the geometry available for comparison or inference.","url_abs":"https://arxiv.org/abs/2609.02155","url_pdf":"https://arxiv.org/pdf/2609.02155","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2609.02155","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2609.02155"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/piyush314/random-projection-geometry","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":27},"by_repo_kind":{"found_in_text":{"samples":27,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"1ff8b79676042729","entry":"a_q","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/laws.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/laws.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ff8b79676042729"}},{"code_sha256_prefix":"3b4e33a1e2ecb506","entry":"alpha_m","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ceilings.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ceilings.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3b4e33a1e2ecb506"}},{"code_sha256_prefix":"15ddc67bc11594d2","entry":"alpha_pi","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ceilings.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ceilings.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"15ddc67bc11594d2"}},{"code_sha256_prefix":"c8c3385960ad0251","entry":"audit","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/audit.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/audit.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c8c3385960ad0251"}},{"code_sha256_prefix":"4649bc623a3b4447","entry":"averaging_corr","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ensembles.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ensembles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4649bc623a3b4447"}},{"code_sha256_prefix":"e3bc7b16b52cfdba","entry":"bar_chart","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/plotting.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3bc7b16b52cfdba"}},{"code_sha256_prefix":"7a528978117c427a","entry":"beta_gamma_sample","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/channels.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/channels.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7a528978117c427a"}},{"code_sha256_prefix":"41a4ce117ecf3f4d","entry":"budget","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/budget.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/budget.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"41a4ce117ecf3f4d"}},{"code_sha256_prefix":"7d2f8e9135c37cde","entry":"chain_corr","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ensembles.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ensembles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d2f8e9135c37cde"}},{"code_sha256_prefix":"e4a010ab9e09fe09","entry":"check","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"verification/harness.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/verification/harness.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e4a010ab9e09fe09"}},{"code_sha256_prefix":"c5b5a14f7b0832cd","entry":"chi2_moment","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/channels.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/channels.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c5b5a14f7b0832cd"}},{"code_sha256_prefix":"5395265baca1a3a1","entry":"close","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"verification/harness.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/verification/harness.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5395265baca1a3a1"}},{"code_sha256_prefix":"304b073e4fc52295","entry":"direction_recovery","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/mmse.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/mmse.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"304b073e4fc52295"}},{"code_sha256_prefix":"5538a361314f3549","entry":"gaussian_chain","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/maps.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/maps.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5538a361314f3549"}},{"code_sha256_prefix":"97ae2929f080742e","entry":"gaussian_stage","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/maps.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/maps.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"97ae2929f080742e"}},{"code_sha256_prefix":"f5b016057a362948","entry":"get_figsize","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/plotting.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f5b016057a362948"}},{"code_sha256_prefix":"fd43dcad16a2f67c","entry":"haar_frame","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/maps.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/maps.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd43dcad16a2f67c"}},{"code_sha256_prefix":"1bfea90ecb835a9a","entry":"hgr_isotropic","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ceilings.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ceilings.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1bfea90ecb835a9a"}},{"code_sha256_prefix":"29e586621f88c29e","entry":"line_chart","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/plotting.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"29e586621f88c29e"}},{"code_sha256_prefix":"74b3240bc6331090","entry":"pairwise_agreement","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/laws.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/laws.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"74b3240bc6331090"}},{"code_sha256_prefix":"c4289d30f79f1503","entry":"poly_cca_maxcorr_UT","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/channels.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/channels.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c4289d30f79f1503"}},{"code_sha256_prefix":"144f3c3d6beb223b","entry":"quarter_circle_loss","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/mmse.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/mmse.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"144f3c3d6beb223b"}},{"code_sha256_prefix":"1cafa7f8bb46ec1c","entry":"quarter_circle_loss_quad","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/mmse.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/mmse.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1cafa7f8bb46ec1c"}},{"code_sha256_prefix":"ac235d8108e63524","entry":"recommend_dimension","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/recommend.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/recommend.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac235d8108e63524"}},{"code_sha256_prefix":"b13a12c22c5e7ca4","entry":"run","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"verification/harness.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/verification/harness.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b13a12c22c5e7ca4"}},{"code_sha256_prefix":"f94689277ec5a14a","entry":"slope_cq","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/laws.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/laws.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f94689277ec5a14a"}},{"code_sha256_prefix":"9e7ec86dad7a4ff2","entry":"stacking_ceiling","repo":"piyush314/random-projection-geometry","repo_kind":"found_in_text","path":"src/rpgeom/ensembles.py","file_url":"https://github.com/piyush314/random-projection-geometry/blob/HEAD/src/rpgeom/ensembles.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9e7ec86dad7a4ff2"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_daily_20260903.json"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}