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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GoofyLM Research Hub</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
|
| 9 |
+
<script>
|
| 10 |
+
// Custom configuration for Tailwind to extend the color palette
|
| 11 |
+
tailwind.config = {
|
| 12 |
+
theme: {
|
| 13 |
+
extend: {
|
| 14 |
+
colors: {
|
| 15 |
+
'primary': {
|
| 16 |
+
'light': '#fef3c7', // amber-100
|
| 17 |
+
'DEFAULT': '#f59e0b', // amber-500
|
| 18 |
+
'dark': '#b45309' // amber-700
|
| 19 |
+
},
|
| 20 |
+
'secondary': '#1f2937', // gray-800
|
| 21 |
+
'light': '#f9fafb', // gray-50
|
| 22 |
+
},
|
| 23 |
+
fontFamily: {
|
| 24 |
+
sans: ['Inter', 'sans-serif'],
|
| 25 |
+
},
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
</script>
|
| 30 |
+
<style>
|
| 31 |
+
/* --- Base Styles --- */
|
| 32 |
+
body {
|
| 33 |
+
font-family: 'Inter', sans-serif;
|
| 34 |
+
background-color: #f9fafb; /* Use light gray from palette */
|
| 35 |
+
color: #374151; /* gray-700 */
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* --- Custom Utility for Clamping Text --- */
|
| 39 |
+
.paper-abstract {
|
| 40 |
+
display: -webkit-box;
|
| 41 |
+
-webkit-line-clamp: 4;
|
| 42 |
+
-webkit-box-orient: vertical;
|
| 43 |
+
overflow: hidden;
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/* --- Modal Styles --- */
|
| 47 |
+
.modal {
|
| 48 |
+
display: none;
|
| 49 |
+
position: fixed;
|
| 50 |
+
z-index: 1000;
|
| 51 |
+
left: 0;
|
| 52 |
+
top: 0;
|
| 53 |
+
width: 100%;
|
| 54 |
+
height: 100%;
|
| 55 |
+
overflow: auto;
|
| 56 |
+
background-color: rgba(0, 0, 0, 0.6);
|
| 57 |
+
/* Added for smooth transition */
|
| 58 |
+
opacity: 0;
|
| 59 |
+
transition: opacity 0.3s ease-in-out;
|
| 60 |
+
align-items: center;
|
| 61 |
+
justify-content: center;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.modal.is-open {
|
| 65 |
+
display: flex;
|
| 66 |
+
opacity: 1;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.modal-content {
|
| 70 |
+
background-color: #ffffff;
|
| 71 |
+
margin: auto;
|
| 72 |
+
padding: 2.5rem; /* 40px */
|
| 73 |
+
border-radius: 0.75rem; /* 12px */
|
| 74 |
+
width: 90%;
|
| 75 |
+
max-width: 900px;
|
| 76 |
+
box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
|
| 77 |
+
position: relative;
|
| 78 |
+
max-height: 90vh;
|
| 79 |
+
overflow-y: auto;
|
| 80 |
+
/* Added for smooth entrance */
|
| 81 |
+
transform: scale(0.95);
|
| 82 |
+
transition: transform 0.3s ease-in-out;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.modal.is-open .modal-content {
|
| 86 |
+
transform: scale(1);
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.close-button {
|
| 90 |
+
color: #9ca3af; /* gray-400 */
|
| 91 |
+
position: absolute;
|
| 92 |
+
top: 1rem;
|
| 93 |
+
right: 1.5rem;
|
| 94 |
+
font-size: 2rem;
|
| 95 |
+
font-weight: 300;
|
| 96 |
+
cursor: pointer;
|
| 97 |
+
transition: color 0.3s ease, transform 0.3s ease;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.close-button:hover,
|
| 101 |
+
.close-button:focus {
|
| 102 |
+
color: #111827; /* gray-900 */
|
| 103 |
+
transform: rotate(90deg);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
/* --- Full Paper Content Typography (Prose-like styling) --- */
|
| 107 |
+
.full-paper-content h2 {
|
| 108 |
+
font-size: 1.75rem; /* text-2xl */
|
| 109 |
+
font-weight: 700;
|
| 110 |
+
color: #111827; /* gray-900 */
|
| 111 |
+
margin-top: 2rem;
|
| 112 |
+
margin-bottom: 1rem;
|
| 113 |
+
padding-bottom: 0.5rem;
|
| 114 |
+
border-bottom: 1px solid #e5e7eb; /* gray-200 */
|
| 115 |
+
}
|
| 116 |
+
.full-paper-content h3 {
|
| 117 |
+
font-size: 1.25rem; /* text-xl */
|
| 118 |
+
font-weight: 600;
|
| 119 |
+
color: #1f2937; /* gray-800 */
|
| 120 |
+
margin-top: 1.5rem;
|
| 121 |
+
margin-bottom: 0.75rem;
|
| 122 |
+
}
|
| 123 |
+
.full-paper-content p {
|
| 124 |
+
font-size: 1rem;
|
| 125 |
+
line-height: 1.75;
|
| 126 |
+
color: #4b5563; /* gray-600 */
|
| 127 |
+
margin-bottom: 1rem;
|
| 128 |
+
}
|
| 129 |
+
.full-paper-content ul, .full-paper-content ol {
|
| 130 |
+
margin-left: 1.5rem;
|
| 131 |
+
list-style-position: outside;
|
| 132 |
+
margin-bottom: 1rem;
|
| 133 |
+
color: #4b5563;
|
| 134 |
+
}
|
| 135 |
+
.full-paper-content ul li, .full-paper-content ol li {
|
| 136 |
+
padding-left: 0.5rem;
|
| 137 |
+
margin-bottom: 0.5rem;
|
| 138 |
+
}
|
| 139 |
+
.full-paper-content ul { list-style-type: disc; }
|
| 140 |
+
.full-paper-content ol { list-style-type: decimal; }
|
| 141 |
+
</style>
|
| 142 |
+
</head>
|
| 143 |
+
<body class="antialiased">
|
| 144 |
+
<div class="container mx-auto p-5 sm:p-8">
|
| 145 |
+
<!-- Header Section -->
|
| 146 |
+
<header class="text-center mb-12">
|
| 147 |
+
<h1 class="text-4xl md:text-5xl font-extrabold text-secondary tracking-tight mb-3">
|
| 148 |
+
GoofyLM Research Hub
|
| 149 |
+
</h1>
|
| 150 |
+
<p class="text-lg text-gray-500 max-w-2xl mx-auto mb-6">
|
| 151 |
+
A comprehensive collection of academic research in Artificial Intelligence and Large Language Models.
|
| 152 |
+
</p>
|
| 153 |
+
<!-- New Button for Main Website -->
|
| 154 |
+
<a href="https://goofylm.site" rel="noopener noreferrer"
|
| 155 |
+
class="inline-block bg-primary text-white py-2.5 px-6 rounded-lg font-semibold text-lg no-underline
|
| 156 |
+
hover:bg-primary-dark transition-colors duration-300 focus:outline-none focus:ring-2
|
| 157 |
+
focus:ring-offset-2 focus:ring-primary shadow-md hover:shadow-lg">
|
| 158 |
+
Go to Main Website
|
| 159 |
+
</a>
|
| 160 |
+
</header>
|
| 161 |
+
|
| 162 |
+
<!-- Stats Section -->
|
| 163 |
+
<section class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-12" id="stats">
|
| 164 |
+
<!-- Stats cards will be populated by JS -->
|
| 165 |
+
</section>
|
| 166 |
+
|
| 167 |
+
<!-- Search and Filters Section -->
|
| 168 |
+
<section class="search-filters bg-white p-6 md:p-8 rounded-xl shadow-sm border border-gray-200 mb-10">
|
| 169 |
+
<h2 class="text-2xl font-bold text-secondary mb-6">Explore Research Papers</h2>
|
| 170 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
|
| 171 |
+
<input type="text" id="searchInput" placeholder="Search by title, author, or keywords..."
|
| 172 |
+
class="md:col-span-3 p-3 border border-gray-300 rounded-lg text-base focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition-all duration-200">
|
| 173 |
+
|
| 174 |
+
<select id="yearFilter" class="p-3 border border-gray-300 rounded-lg text-base focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition-all duration-200 bg-white">
|
| 175 |
+
<option value="">All Years</option>
|
| 176 |
+
</select>
|
| 177 |
+
|
| 178 |
+
<select id="categoryFilter" class="md:col-span-2 p-3 border border-gray-300 rounded-lg text-base focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary transition-all duration-200 bg-white">
|
| 179 |
+
<option value="">All Categories</option>
|
| 180 |
+
</select>
|
| 181 |
+
</div>
|
| 182 |
+
|
| 183 |
+
<div class="filter-tags flex flex-wrap gap-2" id="filterTags">
|
| 184 |
+
<!-- Filter tags will be populated by JS -->
|
| 185 |
+
</div>
|
| 186 |
+
</section>
|
| 187 |
+
|
| 188 |
+
<!-- Papers Grid Section -->
|
| 189 |
+
<section class="papers-grid grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-10" id="papersGrid">
|
| 190 |
+
<!-- Paper cards will be populated by JS -->
|
| 191 |
+
</section>
|
| 192 |
+
|
| 193 |
+
<!-- No Results Message -->
|
| 194 |
+
<div class="no-results hidden text-center py-16 px-5 bg-white rounded-xl shadow-sm border border-gray-200" id="noResultsMessage">
|
| 195 |
+
<h3 class="text-2xl font-semibold text-gray-700 mb-3">No Papers Found</h3>
|
| 196 |
+
<p class="text-gray-500">Try adjusting your search criteria or filters.</p>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<!-- Modal for Full Paper View -->
|
| 201 |
+
<div id="paperModal" class="modal">
|
| 202 |
+
<div class="modal-content">
|
| 203 |
+
<span class="close-button" id="closeModalBtn">×</span>
|
| 204 |
+
<h2 class="text-3xl font-bold text-secondary mb-3" id="modalPaperTitle"></h2>
|
| 205 |
+
<div class="text-primary-dark font-semibold mb-2 text-base" id="modalPaperAuthors"></div>
|
| 206 |
+
<div class="text-gray-500 text-sm mb-6" id="modalPaperMeta"></div>
|
| 207 |
+
<div class="full-paper-content" id="modalPaperContent">
|
| 208 |
+
<!-- Full paper content populated by JS -->
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
</div>
|
| 212 |
+
|
| 213 |
+
<script>
|
| 214 |
+
// --- DATA AND STATE MANAGEMENT ---
|
| 215 |
+
let researchPapers = {};
|
| 216 |
+
let filteredPapers = [];
|
| 217 |
+
let activeFilters = new Set();
|
| 218 |
+
|
| 219 |
+
// --- INITIALIZATION ---
|
| 220 |
+
document.addEventListener('DOMContentLoaded', init);
|
| 221 |
+
|
| 222 |
+
async function init() {
|
| 223 |
+
try {
|
| 224 |
+
// Fetch the JSON data from a local file
|
| 225 |
+
const response = await fetch('papers.json');
|
| 226 |
+
if (!response.ok) {
|
| 227 |
+
throw new Error(`HTTP error! status: ${response.status}`);
|
| 228 |
+
}
|
| 229 |
+
researchPapers = await response.json();
|
| 230 |
+
|
| 231 |
+
// Once data is loaded, populate the page
|
| 232 |
+
populateStats();
|
| 233 |
+
populateFilters();
|
| 234 |
+
populateFilterTags();
|
| 235 |
+
displayPapers(researchPapers.papers);
|
| 236 |
+
setupEventListeners();
|
| 237 |
+
|
| 238 |
+
} catch (error) {
|
| 239 |
+
console.error("Could not load research papers:", error);
|
| 240 |
+
const grid = document.getElementById('papersGrid');
|
| 241 |
+
grid.innerHTML = `
|
| 242 |
+
<div class="no-results text-center py-16 px-5 bg-red-50 text-red-700 rounded-lg shadow-md border border-red-200 col-span-full">
|
| 243 |
+
<h3 class="text-2xl font-semibold mb-3">Error Loading Papers</h3>
|
| 244 |
+
<p>We apologize, but there was an issue loading the research paper data. Please try again later.</p>
|
| 245 |
+
</div>
|
| 246 |
+
`;
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
// --- UI POPULATION FUNCTIONS ---
|
| 251 |
+
function populateStats() {
|
| 252 |
+
const statsContainer = document.getElementById('stats');
|
| 253 |
+
const totalPapers = researchPapers.papers.length;
|
| 254 |
+
const totalAuthors = new Set(researchPapers.papers.flatMap(p => p.authors)).size;
|
| 255 |
+
const totalCategories = researchPapers.metadata.categories.length;
|
| 256 |
+
const latestYear = Math.max(...researchPapers.papers.map(p => p.year));
|
| 257 |
+
|
| 258 |
+
const stats = [
|
| 259 |
+
{
|
| 260 |
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>`,
|
| 261 |
+
value: totalPapers,
|
| 262 |
+
label: "Research Papers"
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /></svg>`,
|
| 266 |
+
value: totalAuthors,
|
| 267 |
+
label: "Contributing Authors"
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" /></svg>`,
|
| 271 |
+
value: totalCategories,
|
| 272 |
+
label: "Research Categories"
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
icon: `<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg>`,
|
| 276 |
+
value: latestYear,
|
| 277 |
+
label: "Latest Publication"
|
| 278 |
+
},
|
| 279 |
+
];
|
| 280 |
+
|
| 281 |
+
statsContainer.innerHTML = stats.map(stat => `
|
| 282 |
+
<div class="stat-card bg-white p-6 rounded-xl flex items-center gap-5 shadow-sm border border-gray-200">
|
| 283 |
+
<div>${stat.icon}</div>
|
| 284 |
+
<div>
|
| 285 |
+
<span class="stat-number text-3xl font-bold text-secondary block">${stat.value}</span>
|
| 286 |
+
<div class="stat-label text-gray-500 text-sm">${stat.label}</div>
|
| 287 |
+
</div>
|
| 288 |
+
</div>
|
| 289 |
+
`).join('');
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
function populateFilters() {
|
| 293 |
+
const yearFilter = document.getElementById('yearFilter');
|
| 294 |
+
const categoryFilter = document.getElementById('categoryFilter');
|
| 295 |
+
|
| 296 |
+
const years = [...new Set(researchPapers.papers.map(p => p.year))].sort((a, b) => b - a);
|
| 297 |
+
years.forEach(year => {
|
| 298 |
+
const option = document.createElement('option');
|
| 299 |
+
option.value = year;
|
| 300 |
+
option.textContent = year;
|
| 301 |
+
yearFilter.appendChild(option);
|
| 302 |
+
});
|
| 303 |
+
|
| 304 |
+
const categories = [...researchPapers.metadata.categories].sort();
|
| 305 |
+
categories.forEach(category => {
|
| 306 |
+
const option = document.createElement('option');
|
| 307 |
+
option.value = category;
|
| 308 |
+
option.textContent = category;
|
| 309 |
+
categoryFilter.appendChild(option);
|
| 310 |
+
});
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
function populateFilterTags() {
|
| 314 |
+
const tagsContainer = document.getElementById('filterTags');
|
| 315 |
+
const allTags = [...new Set(researchPapers.papers.flatMap(p => p.tags))].sort();
|
| 316 |
+
|
| 317 |
+
tagsContainer.innerHTML = allTags.map(tag =>
|
| 318 |
+
`<span class="tag bg-light text-primary-dark py-1.5 px-4 rounded-full text-sm font-medium cursor-pointer border border-primary-light hover:bg-primary-light hover:border-primary transition-colors duration-200" data-tag="${tag}">${tag}</span>`
|
| 319 |
+
).join('');
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
function displayPapers(papers) {
|
| 323 |
+
const grid = document.getElementById('papersGrid');
|
| 324 |
+
const noResultsMessage = document.getElementById('noResultsMessage');
|
| 325 |
+
|
| 326 |
+
if (papers.length === 0) {
|
| 327 |
+
grid.innerHTML = '';
|
| 328 |
+
noResultsMessage.classList.remove('hidden');
|
| 329 |
+
return;
|
| 330 |
+
} else {
|
| 331 |
+
noResultsMessage.classList.add('hidden');
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
grid.innerHTML = papers.map(paper => `
|
| 335 |
+
<div class="paper-card flex flex-col bg-white p-6 rounded-xl shadow-sm border border-gray-200 hover:shadow-lg hover:-translate-y-1 transition-all duration-300">
|
| 336 |
+
<div class="flex-grow">
|
| 337 |
+
<h3 class="paper-title text-xl font-bold text-secondary mb-2 leading-tight">${paper.title}</h3>
|
| 338 |
+
<div class="paper-authors text-primary-dark font-semibold mb-1 text-sm">${paper.authors.join(', ')}</div>
|
| 339 |
+
<div class="paper-year text-gray-500 text-sm mb-4">${paper.year} • ${paper.category}</div>
|
| 340 |
+
<div class="paper-tags flex flex-wrap gap-2 mb-4">
|
| 341 |
+
${paper.tags.map(tag => `<span class="paper-tag bg-gray-100 text-gray-600 py-1 px-2 rounded-md text-xs font-medium border border-gray-200">${tag}</span>`).join('')}
|
| 342 |
+
</div>
|
| 343 |
+
<p class="paper-abstract text-gray-600 text-base leading-relaxed mb-4">${paper.abstract}</p>
|
| 344 |
+
</div>
|
| 345 |
+
<div class="mt-auto">
|
| 346 |
+
<button class="paper-link w-full bg-primary text-white py-2.5 px-5 rounded-lg font-semibold text-sm no-underline hover:bg-primary-dark transition-colors duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary" data-paper-id="${paper.id}">Read Full Paper</button>
|
| 347 |
+
</div>
|
| 348 |
+
</div>
|
| 349 |
+
`).join('');
|
| 350 |
+
|
| 351 |
+
// Re-attach event listeners to the new "Read Full Paper" buttons
|
| 352 |
+
document.querySelectorAll('.paper-card .paper-link').forEach(button => {
|
| 353 |
+
button.addEventListener('click', (e) => {
|
| 354 |
+
const paperId = parseInt(e.target.dataset.paperId, 10);
|
| 355 |
+
const paper = researchPapers.papers.find(p => p.id === paperId);
|
| 356 |
+
if (paper) displayFullPaper(paper);
|
| 357 |
+
});
|
| 358 |
+
});
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
// --- FILTERING LOGIC ---
|
| 362 |
+
function filterPapers() {
|
| 363 |
+
if (!researchPapers.papers) {
|
| 364 |
+
console.warn("Research papers data not yet loaded.");
|
| 365 |
+
return;
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
const searchTerm = document.getElementById('searchInput').value.toLowerCase();
|
| 369 |
+
const yearFilter = document.getElementById('yearFilter').value;
|
| 370 |
+
const categoryFilter = document.getElementById('categoryFilter').value;
|
| 371 |
+
|
| 372 |
+
filteredPapers = researchPapers.papers.filter(paper => {
|
| 373 |
+
const matchesSearch = !searchTerm ||
|
| 374 |
+
paper.title.toLowerCase().includes(searchTerm) ||
|
| 375 |
+
paper.authors.some(author => author.toLowerCase().includes(searchTerm)) ||
|
| 376 |
+
paper.abstract.toLowerCase().includes(searchTerm) ||
|
| 377 |
+
paper.tags.some(tag => tag.toLowerCase().includes(searchTerm));
|
| 378 |
+
|
| 379 |
+
const matchesYear = !yearFilter || paper.year.toString() === yearFilter;
|
| 380 |
+
const matchesCategory = !categoryFilter || paper.category === categoryFilter;
|
| 381 |
+
|
| 382 |
+
const matchesTags = activeFilters.size === 0 ||
|
| 383 |
+
[...activeFilters].every(filterTag => paper.tags.includes(filterTag));
|
| 384 |
+
|
| 385 |
+
return matchesSearch && matchesYear && matchesCategory && matchesTags;
|
| 386 |
+
});
|
| 387 |
+
|
| 388 |
+
displayPapers(filteredPapers);
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
// --- EVENT LISTENERS ---
|
| 392 |
+
function setupEventListeners() {
|
| 393 |
+
document.getElementById('searchInput').addEventListener('input', filterPapers);
|
| 394 |
+
document.getElementById('yearFilter').addEventListener('change', filterPapers);
|
| 395 |
+
document.getElementById('categoryFilter').addEventListener('change', filterPapers);
|
| 396 |
+
|
| 397 |
+
document.getElementById('filterTags').addEventListener('click', (e) => {
|
| 398 |
+
if (e.target.classList.contains('tag')) {
|
| 399 |
+
const tag = e.target.dataset.tag;
|
| 400 |
+
|
| 401 |
+
if (activeFilters.has(tag)) {
|
| 402 |
+
activeFilters.delete(tag);
|
| 403 |
+
e.target.classList.remove('active', 'bg-primary', 'text-white', 'border-primary');
|
| 404 |
+
e.target.classList.add('bg-light', 'text-primary-dark', 'border-primary-light');
|
| 405 |
+
} else {
|
| 406 |
+
activeFilters.add(tag);
|
| 407 |
+
e.target.classList.add('active', 'bg-primary', 'text-white', 'border-primary');
|
| 408 |
+
e.target.classList.remove('bg-light', 'text-primary-dark', 'border-primary-light');
|
| 409 |
+
}
|
| 410 |
+
|
| 411 |
+
filterPapers();
|
| 412 |
+
}
|
| 413 |
+
});
|
| 414 |
+
|
| 415 |
+
// --- Modal Event Listeners ---
|
| 416 |
+
const modal = document.getElementById('paperModal');
|
| 417 |
+
const closeModalBtn = document.getElementById('closeModalBtn');
|
| 418 |
+
|
| 419 |
+
closeModalBtn.addEventListener('click', () => {
|
| 420 |
+
modal.classList.remove('is-open');
|
| 421 |
+
});
|
| 422 |
+
|
| 423 |
+
window.addEventListener('click', (e) => {
|
| 424 |
+
if (e.target === modal) {
|
| 425 |
+
modal.classList.remove('is-open');
|
| 426 |
+
}
|
| 427 |
+
});
|
| 428 |
+
|
| 429 |
+
window.addEventListener('keydown', (e) => {
|
| 430 |
+
if (e.key === "Escape" && modal.classList.contains('is-open')) {
|
| 431 |
+
modal.classList.remove('is-open');
|
| 432 |
+
}
|
| 433 |
+
});
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
// --- MODAL DISPLAY LOGIC ---
|
| 437 |
+
function displayFullPaper(paper) {
|
| 438 |
+
const modal = document.getElementById('paperModal');
|
| 439 |
+
document.getElementById('modalPaperTitle').textContent = paper.title;
|
| 440 |
+
document.getElementById('modalPaperAuthors').textContent = paper.authors.join(', ');
|
| 441 |
+
document.getElementById('modalPaperMeta').textContent = `${paper.year} • ${paper.category}`;
|
| 442 |
+
|
| 443 |
+
const contentDiv = document.getElementById('modalPaperContent');
|
| 444 |
+
contentDiv.innerHTML = ''; // Clear previous content
|
| 445 |
+
|
| 446 |
+
// A simple recursive renderer for nested content
|
| 447 |
+
function renderContent(container, contentObject) {
|
| 448 |
+
for (const key in contentObject) {
|
| 449 |
+
if (Object.prototype.hasOwnProperty.call(contentObject, key)) {
|
| 450 |
+
const value = contentObject[key];
|
| 451 |
+
if (typeof value === 'string') {
|
| 452 |
+
const titleEl = document.createElement('h3');
|
| 453 |
+
titleEl.textContent = key;
|
| 454 |
+
container.appendChild(titleEl);
|
| 455 |
+
|
| 456 |
+
const p = document.createElement('p');
|
| 457 |
+
p.innerHTML = value; // Use innerHTML to render any potential HTML tags
|
| 458 |
+
container.appendChild(p);
|
| 459 |
+
|
| 460 |
+
} else if (typeof value === 'object') {
|
| 461 |
+
const sectionTitle = document.createElement('h2');
|
| 462 |
+
sectionTitle.textContent = key;
|
| 463 |
+
container.appendChild(sectionTitle);
|
| 464 |
+
renderContent(container, value);
|
| 465 |
+
}
|
| 466 |
+
}
|
| 467 |
+
}
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
// This handles the top-level sections like "Abstract", "Introduction", etc.
|
| 471 |
+
for (const key in paper.content) {
|
| 472 |
+
if (Object.prototype.hasOwnProperty.call(paper.content, key)) {
|
| 473 |
+
const value = paper.content[key];
|
| 474 |
+
const sectionTitle = document.createElement('h2');
|
| 475 |
+
sectionTitle.textContent = key;
|
| 476 |
+
contentDiv.appendChild(sectionTitle);
|
| 477 |
+
|
| 478 |
+
if(typeof value === 'string') {
|
| 479 |
+
const p = document.createElement('p');
|
| 480 |
+
p.textContent = value;
|
| 481 |
+
contentDiv.appendChild(p);
|
| 482 |
+
} else if (typeof value === 'object') {
|
| 483 |
+
for (const subKey in value) {
|
| 484 |
+
if (Object.prototype.hasOwnProperty.call(value, subKey)) {
|
| 485 |
+
const subValue = value[subKey];
|
| 486 |
+
const subSectionTitle = document.createElement('h3');
|
| 487 |
+
subSectionTitle.textContent = subKey;
|
| 488 |
+
contentDiv.appendChild(subSectionTitle);
|
| 489 |
+
|
| 490 |
+
const paragraph = document.createElement('p');
|
| 491 |
+
paragraph.textContent = subValue;
|
| 492 |
+
contentDiv.appendChild(paragraph);
|
| 493 |
+
}
|
| 494 |
+
}
|
| 495 |
+
}
|
| 496 |
+
}
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
modal.classList.add('is-open');
|
| 500 |
+
modal.querySelector('.modal-content').scrollTop = 0; // Scroll to top on open
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
</script>
|
| 504 |
+
</body>
|
| 505 |
+
</html>
|
papers.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"papers": [
|
| 3 |
+
{
|
| 4 |
+
"id": 1,
|
| 5 |
+
"title": "Small Reasoning Models Falling Into the Void of CoT: A Case Study of GoofyLM/N1",
|
| 6 |
+
"authors": ["GoofyLM Lab", "Daniel (B.) Fox"],
|
| 7 |
+
"year": 2025,
|
| 8 |
+
"category": "Language Model Reasoning",
|
| 9 |
+
"tags": ["chain-of-thought", "small models", "reasoning", "GoofyLM", "token overflow", "instability"],
|
| 10 |
+
"abstract": "CoT prompting destabilizes small models like GoofyLM/N1 (135M), causing endless reasoning and output errors. We identify causes and suggest dataset constraints to fix this.",
|
| 11 |
+
"url": "https://huggingface.co/GoofyLM/N1",
|
| 12 |
+
"content": {
|
| 13 |
+
"1. Introduction": "Chain-of-Thought (CoT) prompting encourages intermediate reasoning steps to enhance interpretability. While effective in large models, this technique poses unique challenges for small language models, which may pursue reasoning chains indefinitely—risking token-limit overflow, truncated outputs, and operational failure. In compact models like GoofyLM/N1, this failure mode can lead to behavioral collapse and extended uncontrolled execution.",
|
| 14 |
+
"2. Model Overview: GoofyLM/N1": "GoofyLM/N1 is a 135-million parameter model derived from LLaMA and trained with CoT supervision. It supports deployment on Transformers, llama.cpp, and Ollama, and is available under the MIT license. Despite its small size, N1 demonstrates coherent multi-step reasoning. However, it often continues reasoning beyond practical token limits, leading to truncated, incomplete, or nonsensical outputs. In extreme cases, the model exhibits unstable behavior—described as 'schizophrenia'—where it generates hallucinated or internally contradictory content for extended periods, even running for hours without stopping unless externally interrupted.",
|
| 15 |
+
"3. Methods": {
|
| 16 |
+
"3.1 Supervision": "Training focused on step-by-step CoT traces using minimal instruction fine-tuning. Prompts did not include explicit stop tokens or token-limit awareness.",
|
| 17 |
+
"3.2 Inference Configuration": "Inference was performed with lightweight backends (Transformers and llama.cpp), focusing on small-context CoT prompting without post-processing."
|
| 18 |
+
},
|
| 19 |
+
"4. Results": "Section removed; this work does not include benchmark evaluations.",
|
| 20 |
+
"5. Discussion": {
|
| 21 |
+
"5.1 The 'Void' of Chain-of-Thought": "Small models like N1 lack robust internal stop criteria when following CoT traces. Without an awareness of length or final-answer markers, they may continue reasoning until forcibly truncated, undermining the coherence and utility of outputs. In pathological cases, this results in extended, unbroken output streams with recursive, incoherent, or erratic reasoning—effectively entering a 'reasoning void.'",
|
| 22 |
+
"5.2 Emergent Schizophrenic Behavior": "When the model exceeds its context or reasoning capacity, its internal state begins to degrade. The output becomes fragmented, self-contradictory, and unpredictable. Without architectural controls, this can persist indefinitely during runtime, producing continuous, unusable output. This suggests an urgent need for explicit self-termination mechanisms in compact CoT models.",
|
| 23 |
+
"5.3 Recommended Solution": "The only effective mitigation observed is to constrain the training dataset to short, well-bounded reasoning traces. By enforcing a strict token budget during data preparation, the model learns to reason within limits and is less likely to exhibit long-form degeneration or token overflow at inference time."
|
| 24 |
+
},
|
| 25 |
+
"6. Conclusion": "GoofyLM/N1 demonstrates that compact CoT models can reason effectively but also reveals a critical failure case: unbounded reasoning beyond token limits that devolves into persistent unstable behavior. To avoid such issues, dataset-level constraints must be imposed to teach the model bounded reasoning behavior. Shorter, token-limited training samples are essential for reliable performance."
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
],
|
| 29 |
+
"metadata": {
|
| 30 |
+
"total_papers": 1,
|
| 31 |
+
"last_updated": "2025-06-21",
|
| 32 |
+
"categories": ["Language Model Reasoning", "Small-scale LLMs", "Chain-of-Thought"]
|
| 33 |
+
}
|
| 34 |
+
}
|