Skip to main content

Flexible Conditional Modeling for Structured Dependencies

Project description

Overview

We propose a flexible conditional modeling framework that learns structured dependencies between variables by blending linear and nonlinear transformations. Our method dynamically adjusts to data characteristics via a learnable mixture parameter, allowing the model to preserve simplicity where appropriate while capturing complex behaviors when necessary. We validate the approach on synthetic nonlinear datasets, achieving significant improvements over traditional linear models. This framework opens the door for scalable integration into large models, including language model retraining where structured paths in latent space matter.

Features

  • Dynamic alpha-weighted mixture of linear and nonlinear paths
  • Experiments on:
    • Simple synthetic functions
    • Spiral curve datasets
    • OpenMathReasoning (real-world text embeddings)
  • Full paper included

Usage

from kln import FlexibleConditional

model = FlexibleConditional(input_dim=2, hidden_dim=64, output_dim=1)

Acknowledgements

OpenAI's ChatGPT provided substantial assistance with the research, writing, and development of this work. The authors gratefully acknowledge its contributions while assuming full responsibility for the final content.

We thank the contributors to open-source geometry libraries and acknowledge the support of interdisciplinary visualization research.

We would also like to include this poem, written by ChatGPT o4

REFERENCES

[1] J. A. Reeds and L. A. Shepp. 1990. Optimal paths for a car that goes both forwards and backwards. Pacific J. Math. 145, 2 (1990), 367–393.

[2] Michal Krupa. 2025. Geometrically-Constrained Pathfinding: An Arc-Based Algorithm for Navigation in Restricted Domains. In . ACM, New York, NY, USA, 1 page.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fckln-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fckln-1.0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file fckln-1.0.1.tar.gz.

File metadata

  • Download URL: fckln-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fckln-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b6611c45521d2ede37f659d467004a66d0bae80e9b893c33c60866fc8d7b8db7
MD5 a65f048f3c1848d2a147d4a0616e93eb
BLAKE2b-256 7d54b3ccd41001ba2df61dceb81761a9a8d235a43e629c2a23ad7c9165590252

See more details on using hashes here.

Provenance

The following attestation bundles were made for fckln-1.0.1.tar.gz:

Publisher: workflow.yml on michalkrupa/kln

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fckln-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fckln-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fckln-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14efc14c491fd28f07a47b6e9e25751a8028e4ba5eb65786285cdd272047c080
MD5 ed538c78a9a7ca6c15a5bbe5053b62ae
BLAKE2b-256 a4231e938be7cf4b6cc7643acaac82bc7a12ec66b946dc955467c0b97807e9c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for fckln-1.0.1-py3-none-any.whl:

Publisher: workflow.yml on michalkrupa/kln

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page