Papers
Topics
Authors
Recent
Search
2000 character limit reached

CosNet: Diverse Neural Architectures

Updated 3 July 2026
  • CosNet is a collection of independent neural network architectures that address diverse challenges in image captioning, segmentation, video processing, and multimodal learning.
  • Each instance incorporates novel modules—such as semantic comprehenders, boundary enhancement, and nonlinear low-rank branches—that yield measurable performance gains over standard baselines.
  • The designs emphasize efficiency and resource-constrained deployment, driving superior empirical results in applications from computer vision to materials science.

CosNet (alternatively, COSNet or CoSNet) refers to multiple independent neural network architectures across diverse application domains, each leveraging distinct technical advances under the same or similar acronym. These instances include semantic image captioning, semantic segmentation, video object segmentation, multimodal materials science prediction, architectural augmentations in transformers, multi-agent video summarization, and concise ConvNet macro-design. This article systematically details each principal CosNet instance as found in published research.

1. CosNet for Image Captioning: Comprehending and Ordering Semantics Networks

The Comprehending and Ordering Semantics Network (COS-Net) for image captioning unifies semantic enrichment and learnable linguistic ordering within a Transformer-like architecture (Li et al., 2022).

Semantic Enrichment:

COS-Net collects “primary” semantic cues by cross-modal retrieval, using CLIP to identify top-K human-written captions relevant to an input image. Key words from these captions, after stop-word removal, become initial semantic candidates.

Semantic Comprehender:

A Transformer block ingests these primary cues, augmented with a set of learned semantic “query” slots. Through self-attention and cross-attention to visual tokens, this module filters out irrelevant cues and infers visually-grounded but missing words. Training objectives combine single-label cross-entropy (to prune irrelevant primaries) and multi-label asymmetric loss (to infer missing words).

Learnable Semantic Ordering:

A nonparametric ranking module arranges the refined semantic tokens into a plausible linguistic sequence. Rather than using fixed positional embeddings, COS-Net computes a soft-attention over a bank of learnable position vectors, yielding an ordered set of position-aware semantic tokens.

Sentence Decoder:

A gated Transformer decoder receives both the ordered semantic tokens and visual tokens, performing masked self-attention over caption prefix embeddings, cross-attending to visual and semantic tokens, and fusing results via a learned gating mechanism.

Training and Evaluation:

Two-stage training is used: (1) cross-entropy with semantic-comprehender supervision and (2) self-critical sequence training explicitly maximizing CIDEr. COS-Net achieves to-date the highest reported single-model CIDEr score (141.1) on the COCO Karpathy test split. The architecture notably reduces object hallucination (e.g., CHAIR_s=6.2% vs. 7.9% for baselines). Ablations confirm incremental improvements from each module.

Significance:

COS-Net establishes a new paradigm for image captioning by explicitly modeling both semantic mining and ordering as learnable sub-problems, integrated end-to-end. The retrieval/mining of candidate words and set-prediction refinement, jointly with explicit ranking, yields superior fluency and factual correctness (Li et al., 2022).

2. CosNet in Semantic Segmentation: Boundary-Enhanced Feature Sharpening

For semantic segmentation in highly cluttered scenes, particularly automated waste sorting, COSNet (Cluttered Objects’ Semantic Segmentation Network) introduces two novel modules: Feature Sharpening Block (FSB) and Boundary Enhancement Module (BEM) (Ali et al., 2024).

Architecture:

  • FSB: Operates within the encoder backbone. A Multi-Contextual Feature Sharpening (MCFS) module combines multi-scale context via parallel dilated group convolutions with an implicit sharpening submodule, boosting channel-wise high-frequency components adaptively, effectively serving as an “unsharp mask” in feature space.
  • BEM: Applied after stage 3 of the encoder, forms a boundary-focused residual by subtracting a maxpooled/upsampled version of features from the original, explicitly highlighting object boundaries before the decoder.

Decoder:

A UPerNet-style lightweight structure fuses multi-scale features, including the boundary-refined map, to produce full-resolution segmentations.

Results:

On ZeroWaste-f and SpectralWaste, COSNet outperforms CNN and feature-enhancement baselines, yielding +1.8% (mIoU) over FANet and sharper object boundaries particularly for translucent plastics (e.g., rigid plastic IoU improvement: 24.8→37.2). COSNet is parameter-efficient (37M vs. 59M for InternImage), and ablation confirms FSB, sharpening, and BEM each yield measurable incremental gains.

Context:

COSNet’s architectural innovations are tailored for distinguishing fine object boundaries and handling shape/material variability under occlusion and clutter, a regime where standard multi-context CNNs degrade (Ali et al., 2024).

3. CosNet for Video Object Segmentation: Co-Attention Siamese Networks

The Co-Attention Siamese Network (COSNet) targets unsupervised video object segmentation by modeling frame correlation via trainable global co-attention (Lu et al., 2020).

Core Components:

  • Siamese DeepLabv3 Encoder: Produces mid-level features for pairs of input frames.
  • Co-Attention Module: Computes symmetric or vanilla co-attention between the spatial features of two frames, producing gated, query-dependent summary features.
  • Segmentation Head: Concatenates original and co-attention features, decoded via a compact CNN to yield pixel-wise foreground masks.
  • Training: Pairs of video frames (from same sequence), leveraging millions of sample pairs for robust learning. Binary cross-entropy loss, with additional orthogonality regularization for symmetric attention.

Inference:

Query frames aggregate co-attention summaries from multiple reference frames, improving stability for re-occurring objects. Optionally, post-processing is performed using CRF.

Empirical Performance:

COSNet sets state-of-the-art on DAVIS-16 (J=80.5, F=79.4) and FBMS (J=75.6), surpassing previous methods by ~3% IoU. Qualitative results show improved distractor suppression and boundary precision.

Technical Significance:

This instance of COSNet reframes correspondence mining in video segmentation as a global co-attention problem, robustly integrating scene context over time (Lu et al., 2020).

4. CosNet in Multimodal Materials Science: Composition–Structure Bimodal Learning

In materials informatics, COSNet (COmposition–Structure Bimodal Network) addresses the challenge of incomplete structure information in experimentally measured datasets by fusing composition and (possibly missing) structural modalities (Gong et al., 2023).

Architecture:

  • Composition Encoder: Roost-based self-attention model encodes normalized elemental composition vectors.
  • Structure Encoder: de-CGCNN style directional graph neural network encodes attributed crystal structures.
  • Modality Fusion: At prediction time, a softplus-weighted sum or concatenation of the two embeddings, gated according to modal presence (structure absent → learned null vector). Data augmentation ensures each composition appears with both available and missing structure during training.

Results:

COSNet with modal-availability augmentation reduces MAE for key properties (Li-conductivity, band gap, refractive index, dielectric constant) by 7–10% vs. composition-only models. Improvements on “w/structure” and “w/o structure” subgroups are robust, and representation alignment to structural quantities is measurably better.

Broader Implications:

By leveraging both modalities where available, COSNet achieves improved generalization, notably benefiting even samples lacking structure information through shared representation learning (Gong et al., 2023).

5. CosNet as Nonlinear Low-Rank Branch in Transformers

Within the NOBLE architectural augmentation, CosNet refers to a specific nonlinear activation in low-rank bypass branches used to accelerate and enhance Transformer models (Smith, 6 Mar 2026).

Branch Structure:

Each transformer linear layer is augmented with an additional branch:

fNOBLE(x)=xW+b+σ(xWdown)Wupf_\text{NOBLE}(x) = xW + b + \sigma(xW_\text{down})W_\text{up}

where WdownRdin×rW_\text{down} \in \mathbb{R}^{d_\text{in} \times r}, WupRr×doutW_\text{up} \in \mathbb{R}^{r \times d_\text{out}}, and σ\sigma is the CosNet nonlinearity.

CosNet Nonlinearity:

CosNet implements a two-layer sandwich of learnable cosine activations:

  • h1=cos(ω1(xWdown)+ϕ1)h_1 = \cos(\omega_1 \odot (xW_\text{down}) + \phi_1)
  • h2=Mh1h_2 = M h_1
  • CosNet(xWdown)=cos(ω2h2+ϕ2)\text{CosNet}(xW_\text{down}) = \cos(\omega_2 \odot h_2 + \phi_2)

Parameters ω\omega, ϕ\phi are frequency/phase vectors, and MM is a trainable bottleneck mixing layer. CosNet outperforms ReLU, GELU, and Tanh in tight bottlenecks, owing to its symmetry, bounded nonlinearity, non-saturating gradient, and ability to model high-frequency residuals.

Empirical Results:

Across LLMs (250M–1.5B), BERT-style MLM, and VQGAN/ViT, CosNet-equipped NOBLE branches achieve 1.17–1.22WdownRdin×rW_\text{down} \in \mathbb{R}^{d_\text{in} \times r}0 wallclock pretraining speedup and reduced eval loss at marginal parameter cost (+4–24%). Gains disappear when heavy smoothness regularization (Mixup/CutMix) is applied to ViT classification, consistent with the CosNet branch’s advantage in capturing non-smooth (high-frequency) residuals.

Theoretical Context:

CosNet “bypass” branches enable linear transformers to fit high-frequency targets more efficiently, overcoming the “spectral bias” of standard architectures (Smith, 6 Mar 2026).

6. CosNet in Multi-Agent Video Summarization

The Comparison-Selection Network (CoSNet) formulates video summarization as a multi-agent reinforcement learning problem wherein N agents iteratively compare and select clips for a summary (Liu, 2020).

Architecture and Training:

  • Comparison Network: For each agent/clip, averages local and neighbor C3D features, encoding with LSTM to maintain chronological context.
  • Selection Network: Outputs a policy distribution over discrete move/stay actions for temporal navigation.
  • Rewards: Both supervised (using ground-truth keyframes) and unsupervised (diversity and centrality) local/global components are optimized with REINFORCE. Joint policy-learning and per-agent feedback enable both diversity and coherence.

Empirical Findings:

On SumMe and TVSum, CoSNet with full reward achieves 47.8% and 59.7% F-score, respectively, outperforming prior unsupervised and most supervised methods. Finer granularity (16-frame clips) and local rewards are key factors. Adding supervised loss yields a small further gain, attesting to the robustness of the local-global reward formulation.

Interpretive Note:

CoSNet’s multi-agent protocol and compare–select design closely mirror actual human summarization behaviours, yielding more stable and less subjective summaries (Liu, 2020).

7. CosNet as Macro-Level ConvNet Design: Columnar Stage Networks

Columnar Stage Network (CoSNet) is a highly parameter- and computation-efficient ConvNet macro-architecture, designed for concise, shallow, resource-constrained deployment (Kumar et al., 2024).

Stage Structure:

  • Input Squeeze: 1×1 convolution compresses channels.
  • Input Replication: Entire squeezed feature map is replicated M times, providing each parallel column with full feature context.
  • Parallel Columnar Convs: M columns, each with N filters and l stacked 3×3 convolutions; implemented as block-diagonal batched conv.
  • Fuse/Expansion: One 1×1 convolution fuses all columns, expanding channel dimension.
  • Deep Projection Residual: A downsampled/pooled 3×3, then 1×1 residual projects input to output shape.
  • Final Output: Fused output plus residual; optionally a final nonlinearity.

Resource Profile and Performance:

By minimizing 1×1 convolutions, tightly controlling depth (as few as 26 sequential layers), and maximizing parallel columnar utilization, CoSNet achieves substantial FLOP and parameter reductions. For example, CoSNet-Small (1.25B FLOPs, 8.8M parameters) surpasses EfficientNet-B0 in accuracy and runtime, and CoSNet-Medium/Large outperforms ResNet-50, ResNeXt-50, and transformer hybrids under matched constraints.

Pseudo-Code for Custom Instantiation:

WdownRdin×rW_\text{down} \in \mathbb{R}^{d_\text{in} \times r}1 Parameter and FLOP analysis for a stage follow explicit formulas as in the originating text.

Significance:

CoSNet macro-design demonstrates that concise, shallow, attentionless ConvNets can match and often surpass more complex architectures in both runtime and accuracy under resource constraints by strategic columnar stacking, input replication, and minimization of pointwise operations (Kumar et al., 2024).


These distinct CosNet architectures demonstrate the acronym’s independent adoption for a spectrum of technical innovations—ranging from cross-modal semantic reasoning and boundary-enhanced vision, to nonlinear architectural modules and modality-robust multimodal learning—in both vision and scientific domains. Each instance advances its respective field by producing superior empirical performance or offering improved efficiency over prevailing state-of-the-art baselines.

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 CosNet.