Doc2LoRA Provides Decodable Representations of Scientific Ideas
Organizations: School of Systems Science and Industrial Engineering Binghamton University, Binghamton, NY, USA
Abstract
Representing scientific papers as points in a space lets us search for similar papers and inquire about how fields relate to one another and drive innovation. Beyond search, the vector space of papers invites generation: mixing papers through simple vector operations creates new points, mirroring combinatorial novelty, the recombination of existing ideas into new ones. However, a mixed point often represents an idea no paper has yet realized, with no papers nearby to identify the idea. We propose representing each paper by a LoRA adapter generated by the Doc-to-LoRA hypernetwork. Every point in the space, including mixtures, thus represents a large language model (LLM) open to questions and instructions in natural language. On papers from the American Physical Society (APS), we instruct the LLM at the average of each subfield to name the field in a few words and obtain labels closer to the official names than the labels of five baselines, as judged by word overlap and a panel of five LLM judges. We also ask the LLMs at points between two APS papers to write an abstract and obtain descriptions shifting from one paper to the other in step with the mixing weight. While Doc-to-LoRA is trained for generation, a small invertible transform makes the embeddings competitive for search, on par with SPECTER2 and EmbeddingGemma and close to SBERT. Because the transform is invertible, every point in the transformed space still maps back to an LLM. The embeddings thus serve both search and generation, enabling researchers to question the idea at any point in the space as a starting point for generating new ideas.
Figures & tables
| Ideal mixing weight on paper B | |||
|---|---|---|---|
| Method | |||
| D2L | This research investigates the learning of real-valued functions in neural networks using a statistical-mechanical framework, focusing on the generalization error of trained networks. The problem involves understanding how well a network can generalize from a finite training set to unseen data, particularly… | This research investigates the learning of quantum gates in a unitary model of quantum computation , where a quantum system evolves under a unitary transformation and is trained using a quantum neural network … | This research topic investigates the existence and properties of quantum error-correcting codes , which are essential for protecting quantum information from decoherence . The problem is to determine whether, given a quantum system of qubits , there exists a unitary encoding (quantum map) that transforms… |
| ICAE | This study investigates the learning of statistical mechanics from feedforward neural networks , focusing on the existence of stochastic, Gibbs -free energy-based models. The study assumes a temperature-dependent distribution of networks and considers both realizable and unrealizable rules… | This research explores the existence of quantum error-correcting codes in statistical mechanics , specifically in the context of learning from examples. The study focuses on the existence of a unitary random code, which is a type of error-correcting code that can be defined… | This research explores the existence of quantum error-correcting codes ( QECCs ) in the context of quantum computing . It defines a unitary mapping called a quantum error-correcting code ( QECC ) that maps qubits to a subspace of the quantum state space… |
| in-context | This research investigates the statistical-mechanical behavior of quantum neural networks under the influence of both stochastic learning dynamics and quantum decoherence , blending the statistical mechanics of learning from examples (A:75%) with the principles of quantum error correction (B:25%)… | This research investigates the statistical-mechanical behavior of quantum neural networks under the influence of both stochastic training and quantum decoherence , blending the framework of learning from examples (A) with the principles of quantum error correction (B) in a 58:42 proportion… | This research investigates the emergence of quantum spin-glass phases in neural network architectures under the influence of quantum decoherence , blending statistical mechanics of learning (A) with the theory of quantum error correction (B)… |
| D2L | text encoders | |||||||
| Task | Field / dataset | raw | adapted | SBERT | GTE | Emb.Gemma | Instructor | SPECTER2 |
| Next-paper (AUC) | Economics | .813 .001 | .910 .001 | .937 .001 | .910 .001 | .906 .001 | .877 .001 | .903 .001 |
| Psychology | .799 .001 | .923 .001 | .937 .001 | .912 .001 | .910 .001 | .888 .001 | .908 .001 | |
| Physics | .880 .001 | .958 .001 | .956 .001 | .962 .001 | .947 .001 | .908 .001 | .941 .001 | |
| Topic (macro-F1) | Economics | .242 .015 | .374 .022 | .418 .022 | .398 .023 | .362 .021 | .379 .021 | .344 .021 |
| Psychology | .217 .010 | .340 .020 | .366 .023 | .350 .019 | .358 .020 | .348 .026 | .319 .020 | |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Operates on | #docs | Native output (scored as-is) |
| D2L | embedding (mean adapter) | up to | field name (2–3 words) |
| ICAE | embedding (mean memory slots) | field name (2–3 words) | |
| T2L | embedding (mean TaskEncoder output) | up to | field name (2–3 words) |
| vec2text | embedding (mean GTR vector, inverted) | reconstruction (no prompt) | |
| KeyLLM | text (medoid document) | keyword list | |
| BERTopic | text (members, c-TF-IDF) | up to | keyword list |
| Method | Words | Fuzzy overlap | Pairwise |
|---|---|---|---|
| Ground truth (control) | — | ||
| D2L | |||
| ICAE | |||
| KeyLLM | |||
| vec2text | |||
| BERTopic (top ) |
| cluster set | belongs=yes | rejected | |
|---|---|---|---|
| PACS node (real) | 30 | 73.3% | 3.3% |
| cross-chapter control | 60 | 0% | 100% |
| cross-chapter, norm-matched | 60 | 0% | 96.7% |
| decode family | units | mean pairwise sim. | sim. to the reported prompt | identical strings | |
|---|---|---|---|---|---|
| PACS node labels (2–3 words) | 30 | 8 | 0.787 | 0.841 | 51% |
| two-paper midpoint descriptions | 40 | 8 | 0.705 | 0.705 | 0% |
| space | mean | range | better | worse |
|---|---|---|---|---|
| ICAE | +.178 | [-.004, +.549] | 13/14 | 1/14 |
| D2L (Qwen3-4B) | +.061 | [-.009, +.133] | 11/14 | 1/14 |
| Instructor | +.009 | [-.020, +.040] | 7/14 | 2/14 |
| GTE | +.007 | [-.022, +.029] | 8/14 | 2/14 |
| EmbeddingGemma | +.001 | [-.044, +.025] | 6/14 | 3/14 |
| SPECTER2 / SPECTER | +.001 | [-.034, +.023] | 5/14 | 4/14 |
| space | Collab. (AUC) | Next paper (AUC) | Topic (F1) | Disamb. (B 3 F1) |
|---|---|---|---|---|
| D2L (Qwen3-4B) | .663 | .823 | .358 | .760 |
| ICAE (Mistral-7B) | .660 | .677 | .227 | .617 |
| SBERT | .726 | .941 | .443 | .827 |
| EmbeddingGemma | .712 | .919 | .433 | .813 |
| Instructor | .708 | .887 | .425 | .800 |
| SPECTER2 / SPECTER | .708 | .915 | .417 | .784 |
| Encoder | Field | Next-paper (AUC) | Topic (F1) | Collaboration (AUC) |
|---|---|---|---|---|
| Gemma-2-2b | Economics | .792 / .888 | .217 / .317 | .592 / .617 |
| Psychology | .786 / .910 | .180 / .319 | .593 / .673 | |
| Physics | .864 / .946 | .569 / .582 | .827 / .823 | |
| Qwen3-4B | Economics | .813 / .910 | .242 / .374 | .596 / .629 |
| Psychology | .799 / .923 | .217 / .340 | .602 / .687 | |
| Physics | .880 / .958 | .590 / .590 | .792 / .795 |
| method | Physics | Economics | Psychology | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 2000 | 2008 | pooled | 2008 | 2012 | 2016 | pooled | 2008 | 2012 | 2016 | pooled | |
| D2L (raw) | .786 | .848 | .792 | .646 | .556 | .579 | .596 | .581 | .610 | .627 | .602 |
| .784 | .849 | .795 | .680 | .594 | .603 | .628 | .672 | .721 | .678 | .688 | |
| SPECTER2 | .788 | .857 | .826 | .672 | .593 | .621 | .632 | .651 | .679 | .676 | .665 |
| SBERT | .826 | .887 | .832 | .696 | .626 | .637 | .655 | .691 | .718 | .667 | .691 |
| Instructor | .831 | .843 | .854 | .676 | .577 | .597 | .620 | .645 | .657 | .648 | .649 |
| Physics | Biochemistry | Fruit | Person | Patent (LED) | |
|---|---|---|---|---|---|
| is the fractional quantum effect of accumulating electrons in certain atoms. … | (abbreviated CY), commonly ATP, is an enzyme cycle for the production … | a banana is an edible plantation fruit, traditionally specializing in long, … | Nikola Tesla, an American engineer from Serbia, was an 1860s American … | comprised an ion-doped light-emitting semiconductor forming a nitride structure, nitrid | |
| quantum fraction is a function of the Hall effect in physics: … | enzyme cycle is the metabolic use of ATP for generating cryptic … | fruit is a elongated banana. This is due to the variety … | Nikola Tesla was a Serbian engineer and American engineer, known for … | structure comprised a light-emitting compound of a double-type nitride semiconductor (e.g. | |
| quantum mechanics is the fraction of the Hall effect which is … | acids used for the production of glycogen. The Krebs cycle is … | plant species is a banana. The name derives from a linguistic … | engineering genius Nikola Tesla is a Serbian engineer who contributed to … | structure of a double-layered nickel semiconductor (indicated in the introduction of … | |
| equation for the physics of fractional heating is a contribution to … | the CYCY process of carbohydrates is a way of generating ATP, … | botanical designation of a plant. A banana is a combination of … | American mechanical engineer. Nikola Tesla is credited for the production of … | layer of a g-type nickel plating (indicated in the following table: … | |
| equation for quantum mechanics is a result of the publication of … | the metabolic cycle of enzymes is a contribution to the aforementioned … | botanical name for a banana. This is a variant of the … | American electrical engineer. Nikola Tesla is credited for the contribution of … | a GLTI semiconductor pairing of the following structures: (a) (initiated) (a) … | |
| a number of awards in the field of physics | biology is a key component of the Crypt of the Chemical … | biology of plants is a classic in the discipline of banana … | American electrical engineer who was a major contributor to the creation … | a layered semiconductor for the neo-Neo-Geo-Neo-Neo-Dai |
| Native output (as scored) | ||||
|---|---|---|---|---|
| PACS node | D2L | KeyLLM | ICAE | vec2text |
| 0 General | Quantum field theory | partial decoherence, thermalization, time-domain … | Quantum many-body systems | coupled-dissonance correlations in one-way systems. The … |
| 03 Quantum mechanics, QFT | Quantum optics | quantum state transfer, entanglement, four qubits … | Quantum optics | coupled entanglement of one-state quantums, where the … |
| 03.65 Quantum mechanics | Quantum mechanics | quantum decoherence, single qubit, random matrix theory … | Quantum mechanics | as an empirical measure of the interpolation of one-state … |
| 03.67 Quantum information | Quantum information | Measurement-based quantum computing, AKLT state, spin-1 … | Quantum information | entanglement of single-state quantum computations, so … |
| 05 Statistical physics | Statistical physics | Disturbance spreading, Incommensurate systems … | Statistical mechanics | diffuse-phase dynamics in univariate quantization. This … |